(may be a) BUG in EmissiveColor / AmbientColor

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
oleo
Posts: 27
Joined: Fri Dec 16, 2005 9:50 am

(may be a) BUG in EmissiveColor / AmbientColor

Post 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
hybrid

Post by hybrid »

Which file format do you use? It's probably related to the file loader implementation.
oleo
Posts: 27
Joined: Fri Dec 16, 2005 9:50 am

Post by oleo »

File format is 3ds.
I create my models in 3d studio max, than I apply texture with LithUnwrap.
hybrid

Post 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.
Post Reply