Skip to main content
GameDev.net gamedev.net
🔒 Locked

3DS Loader

Started by ov3r_dr1v3 Mar 5, 2007 at 12:19 PM 4 replies 5.3k views
Original Post
ov3r_dr1v3
ov3r_dr1v3
Hey... I am currenty working on a project in OpenGL, and I have designed some objects in 3D Studio Max and now i want to import them into my OpenGL code. So i need to write some sort of .3ds Loader class that will load the 3d model. I'm asking for any help what so ever on the subject, im pretty much starting from scratch...any links that any one has, or maybe if anyone has written one of these themeselves could give me soem pointers on how they started it. I dont know too much about importing 3D models into an OpenGL program...if i load in a model does it only load in the vertices and polygons? If i texture an object in 3D Studio Max, do I have to texture it again in my OpenGL code? I was also wondering how animation works with these models? I know it may seem a bit far off from where i am at the moment, but ultimately that it what i am aiming towards. As i say, I would be greatly appreciative on any help that anyone could provide me with. Thanks
ov3r_dr1v3
ov3r_dr1v3
cheers buddy...I've had a quick look at the library you sugested, but im more interested in coding one myself.

Thanks very much for the link though
AndyEsser
AndyEsser
Instead of loading .3ds files I went for the approach of writing an exporter in MAXScript which was much easier to read and understand.

You're more than welcome to use it if you like.

It supports Vertex/Face Data, Texture Coordinates/Faces, Materials & Paths and Colour Per Vertex
dan59314
dan59314
You can get source for reference here

http://www.sulaco.co.za/opengl_project_3DS_file_loading.htm

Daniel

http://dan59314.myweb.hinet.net

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.