Disable Ambient Lighting for an Object

Started by dear_stephen, September 20, 2007, 11:28:19 AM

Previous topic - Next topic

dear_stephen

I would like to disable lighting for a single object.

I have tried...

myObject.setLighting(Object3D.LIGHTING_NO_LIGHTS);

It works for lights added with... world.addLight() ...but not for ambient light.

Is there a way to disable the ambient light for an object?

Cheers,
Stephen

EgonOlsen

No, that's not possible ATM. I'll add it this evening.

EgonOlsen

Ok, i've added the option to do this to the beta (http://www.jpct.net/download/beta/jpctapi.zip). However, i haven't tested, if it really works... ;)...but it should...

Klaudiusz

I hope it's just an option because for me it was usefull.

EgonOlsen