Jump to content
  • Advertisement
Sign in to follow this  
TiitHns

3ds file texture info

This topic is 3935 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
A bit confused with it. Whats in the face material list? And do i have to load texture names and coordinates from material block?

Share this post


Link to post
Share on other sites
If you want, from here you can download a basic 3ds loader that I wrote a year ago or so. In the package there is the loader (just a couple of source files), a small example app and all the docs over 3ds format that I was able to find.

Hope this helps

Share this post


Link to post
Share on other sites
Quote:

A bit confused with it.

yeah...3ds can be like that....

Quote:

Whats in the face material list?

...and it gets better...

Sometimes (rarely) a Triangular mesh (belonging to an Object block) can
have more than one material applied to it. e.g. Say you have
a Triangular mesh with 200 triangles. 50 tris could have one material
applied to them, while the other 150 could have another material applied to them.

So, now the face material list in the specs is self explanatory (we hope?)

Each face material list contains[Edit]:
(1) a material name that you use as a reference(or identifier..if you will) to (fetch) a material block in the file (that is to be applied to some triangles).
(2) The list of triangle indices that the material in (1) should be applied to.(the triangle index here is simply the position of the triangle in the triangle
list you read in the parent block 0x4120 (Faces description).

[Edit: and so typically: 'almost always' you may find only one face material list per Triangular mesh. And 'usually' only one Triangular mesh per Object block.]

Quote:

And do i have to load texture names and coordinates from material block?

texture name(s) from material block ?: yes (typically only the first one
0xA200 : Texture map 1.)

coordinates from material block?: if you mean uv coordinates, no. They are in the 0x4140 "Mapping coordinates list for each vertex" block.

I have been quite intimate with 3ds files from time to time (as you might be able to tell), unfortunately :)

Hopefully that has eased some pain?

[Edited by - steven katic on January 9, 2008 3:48:07 PM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!