Page 1 of 1

What the heck?

Posted: Sat Nov 18, 2006 7:39 am
by Anteater
I've add no lights to my scene, yet any animated mesh scene nodes are full bright, as if the EMF_LIGHTING flag was off (it isn't), and their shadows don't draw. I'd like to have nicely lit characters, not ones that glow in the dark.

I'm using a lightmapped DMF level, if that makes any difference.

Posted: Sat Nov 18, 2006 4:37 pm
by TheC
Have you set driver->setAmbientLight ?

Posted: Sat Nov 18, 2006 11:09 pm
by Anteater
No.

Posted: Sun Nov 19, 2006 2:22 am
by bitplane
what driver, what other materials are you using, are you using irrlicht svn or 1.1, how did you create your mesh, do your meshes look okay without the DMF, if not, can we have a link to it?
I guess you're feeling frustrated, but "what the heck" doesnt describe your problem at all

Re: What the heck?

Posted: Sun Nov 19, 2006 10:13 am
by sio2
Anteater wrote:I've add no lights to my scene, yet any animated mesh scene nodes are full bright, as if the EMF_LIGHTING flag was off (it isn't), and their shadows don't draw. I'd like to have nicely lit characters, not ones that glow in the dark.

I'm using a lightmapped DMF level, if that makes any difference.
Have I missed something? If you have no light entities, how can your animated meshes be lit?

Posted: Sun Nov 19, 2006 10:53 am
by Luke
Try setting EmissiveColor to 0, some of the mesh loaders set it higher.

And maybe set driver->setAmbientLight to 0 too

Posted: Sun Nov 19, 2006 6:09 pm
by Anteater
Yeah, I ttried adding setAmbientLight(SColor(0,0,0,0)); and that fixed it. For some reason, It was all 255 by default.