PDA

View Full Version : lib3ds -> color



Hylke Donker
08-16-2005, 04:16 AM
Hello,
I've got a really easy question.
Which variable holds the colors of all the triangles?
I've searched the lib3ds documentation, but I couldn't find what I was looking for.
Thanx in advance,
Hylke

CWiC
08-16-2005, 04:49 AM
take a look at "face material" chunk (0x4130). Triangles have assigned not single color but material with diffuse, ambient, specular, etc. components.

Hylke Donker
08-16-2005, 05:38 AM
So there's no such color I can assign to glColor*()?

jide
08-16-2005, 11:23 AM
Diffuse material should best fit for color. 3DStudio (and so 3DSMax) are best suited for lighted scenes, so with using material instead of simple color.

08-16-2005, 01:43 PM
Material colors or vertex colors? I see .3ds has material colors, but it doesn't have vertex colors.

Hylke Donker
08-17-2005, 12:13 AM
Originally posted by jide:
Diffuse material should best fit for color. 3DStudio (and so 3DSMax) are best suited for lighted scenes, so with using material instead of simple color.I'Il just stick to light sources then :-p


Material colors or vertex colors? I see .3ds has material colors, but it doesn't have vertex colors.If you use lighting, it will change the color for (almost) each vertex.
So you only need one.