• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 648
  • Last Modified:

Load a 3DS model into my OpenGL application

Hi,
I have been trying several 3DS loaders in my OpenGL - MacOS X application, even suggested by this web site.
No one has worked well. I can just load some simple model, but I cannot import complex models like e.g. a car.
Actually the loader I use just parses the chunk id(s)

case CHUNK_OBJBLOCK :  // 0x4000
case CHUNK_VERTLIST :   // 0x4110
case CHUNK_FACELIST :   // 0x4120
case CHUNK_MAPLIST :    // 0x4140

I just need the model geometry, colors and texture mapping. I don't need cameras, lights, views...
What other chunk id should I parse? And how?
For example I cannot import texture image files automatically, even if present in the same folder of the 3DS file.
I cannot yet import surface colors, and I have to build the normals by myself.
Any help? Is a complete source code so that I can include it in my app and just get, e.g.
object->faces
object->vertex
object->texture
object->vertextColor
object->vertexNormal

Thank you for your help.
0
mstukart
Asked:
mstukart
1 Solution
 
ikeworkCommented:
hi mstukart,

here are some useful links with tutorials and source-code:

http://www.spacesimulator.net/tut4_3dsloader.html
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=506


good luck :)
ike
0
 
mstukartAuthor Commented:
I am goint to check that. I will let you know shortly.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now