Author Topic: Help loading .3ds files with OpenGL (Bmax)  (Read 13837 times)

0 Members and 1 Guest are viewing this topic.

Offline Clyde

  • A Little Fuzzy Wuzzy
  • DBF Aficionado
  • ******
  • Posts: 7271
  • Karma: 71
    • View Profile
Re: Help loading .3ds files with OpenGL (Bmax)
« Reply #20 on: February 26, 2009 »
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:

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 909
  • Karma: 67
    • View Profile
Re: Help loading .3ds files with OpenGL (Bmax)
« Reply #21 on: February 26, 2009 »
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.