Sign in to follow this  

3ds file texture info

This topic is 3629 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

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

This topic is 3629 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this