Sign in to follow this  
Cain La Croix

C++ Supported 3D Model Formats

Recommended Posts

I wanted to know what 3D Model formats are supported. I mainly want to know if it was possible to use the DTS and DIF model formats from Torque Game Engine for use in C++ (I'm using the Visual C++ 2008 Express Edition as my compiler) and also the ms3d model format.

Share this post


Link to post
Share on other sites
C++ does not support 3D model formats. However, third-party libraries for C++ are available that support the 3D models you mention (Irrlicht supports ms3d, for instance), and if you have access to the file format specification you may write your own support code.

Share this post


Link to post
Share on other sites
Models are 3D objects in which a graphic API of sorts handles them and renders ( draws them ) to the screen.
C++ is a language that is used in most of these graphical APIs in which you can make graphics in your program(s).

Google these two APIs ( there's more, but these are common ):
Direct3D [ branch of DirectX ]
OpenGL

~Maverick

Share this post


Link to post
Share on other sites
Seconding ToohrVyk's final point about writing your own model parser. It may not be the most effective use of your time if you need to support a specific format for which an existing library will probably exist, but it can be illuminating to implement your own parser and/or file format so that you have full control and a full understanding of its features. Depending on the needs of your game it may be that you'd like to include data in your model format that is non-standard. To get started you could take a look at the .OBJ file specification for a very basic file format that is supported by most modeling packages and is easy to parse and extend.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this