Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Load a 3DS model into my OpenGL application

Posted on 2006-03-23
4
Medium Priority
?
644 Views
Last Modified: 2013-12-06
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
Comment
Question by:mstukart
2 Comments
 
LVL 20

Accepted Solution

by:
ikework earned 2000 total points
ID: 16272785
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
 

Author Comment

by:mstukart
ID: 16282755
I am goint to check that. I will let you know shortly.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Screencast - Getting to Know the Pipeline
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question