• Welcome to Dark Bit Factory & Gravity.
 

Help loading .3ds files with OpenGL (Bmax)

Started by Pixel_Outlaw, September 01, 2007

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Clyde

I dont mean to interject or hijack the thread at all.

But Im pretty interested in this too; I have BMAX and followed the NeHe example stuff.
How would you obtain the information for the textures, like which one apply's to which face(s) - if using multiple ones. Not interested in where they are located on the Hard Drive / directory stuff of them, as I have the texture image file(s). Often called Materials.

I Doug up this link which you dudes probably know about: http://www.the-labs.com/Blender/3DS-details.html

Cheers,
Clyde.
Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

zawran

Yes I had already checked the information at that link :)

Files that has more than one object can also point to more than one texture. Textures are not included in the .3ds file, so its basically the texture filename you get from the file. As far as I found out, each mesh within the file can have one texture/material attached to it, so as the mesh is read you would get the associated texture as well. At the moment I am working on finishing the .obj reader though because it seems like a better format to use, but I might revisit the .3ds format sometime down the road.