Page 1 of 1

(may be a) BUG in EmissiveColor / AmbientColor

Posted: Thu Apr 06, 2006 7:27 am
by oleo
Hi!
I've a lot of meshes I've texturized with LithUnwrap, setting for each matherial this parameters:
Diffuse: 255,255,255 (white)
Ambient: 192,192,192 (light gray)
Emissive: 0, 0, 0 (black)
Specular: ---different colors---

...then I wrote a function that gets all SceneNodes and all materials (pseudocode):

Code: Select all

for each ISceneNode in the Scene
{
   print DiffuseColor \t
   print AmbientColor \t
   print EmissiveColor \t
   print SpecularColor \n
}
The output shows something strange in these parameters:
- the diffuse color is ok
- the ambient color is white (255,255,255) for each material.
- the emissive color is light gray (192,192,192) exactly as the model Ambient color
- the specular color is ok.
Is this a bug in Irrlicht? ...in LithUnwrap?
Thanks for answers,
Fabio

Posted: Thu Apr 06, 2006 7:50 am
by hybrid
Which file format do you use? It's probably related to the file loader implementation.

Posted: Thu Apr 06, 2006 8:09 am
by oleo
File format is 3ds.
I create my models in 3d studio max, than I apply texture with LithUnwrap.

Posted: Thu Apr 06, 2006 8:16 am
by hybrid
Yes, I just came across this bug recently when fixing some annoying bugs in the 3ds loader. Check the bugs forum for a link to the patch file to fix all those things and add several useful features. You'll need to recompile Irrlicht, though.