Sign in to follow this  
csuguy

C++ and Collada

Recommended Posts

Hey all, Ok, so I need to be able to create 3d objects and import them into my program. I am using TrueSpace for 3D Modeling - which saves in a variety of formats. The one that I'm looking at right now is Collada. Does anyone here have experience with Collada files? How do I 3d Model into OpenGL/GLUT? Thank you, Ryan

Share this post


Link to post
Share on other sites
COLLADA is a pretty complex format, and every modelling program seems to output a slightly different format of it :(

The Horde3D project (a OpenGL-based renderer) comes with a collada converter - it's open source so you could have a look at their implementation if you like.

There's also some other open source COLLADA projects, like FCollada, I'm not sure how portable it is though.

Share this post


Link to post
Share on other sites
Quote:
Original post by csuguy
What format would you use for OpenGL/GLUT?


why not try .3ds files...here is a good tutorial for reading it...

http://www.spacesimulator.net/tut4_3dsloader.html

Share this post


Link to post
Share on other sites
Quote:
Original post by csuguy
Thank you I'll look at that. Now - you said Collada is a pretty complex one. What format would you use for OpenGL/GLUT?


Not Collada, or any other format for that matter. Collada, FBX, XSI are all formats that are designed to be intermediate formats. So the idea is that you extract the data that you need, from say Collada, dump that into your own format and use that within your graphics app. You normally then have 2 apps - your game that uses your format, and a converter app that takes input from an intermediate format, and writes out your own format.

The libraries for the intermediate formats tend to be slow, and often times have a large memory and performance foot print that you'd want to avoid in your game engine.

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