www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: dear_stephen on September 20, 2007, 11:28:19 AM

Title: Disable Ambient Lighting for an Object
Post by: dear_stephen on September 20, 2007, 11:28:19 AM
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
Title: Re: Disable Ambient Lighting for an Object
Post by: EgonOlsen on September 20, 2007, 12:28:17 PM
No, that's not possible ATM. I'll add it this evening.
Title: Re: Disable Ambient Lighting for an Object
Post by: EgonOlsen on September 20, 2007, 06:10:37 PM
Ok, i've added the option to do this to the beta (http://www.jpct.net/download/beta/jpctapi.zip (http://www.jpct.net/download/beta/jpctapi.zip)). However, i haven't tested, if it really works... ;)...but it should...
Title: Re: Disable Ambient Lighting for an Object
Post by: Klaudiusz on September 21, 2007, 03:17:54 PM
I hope it's just an option because for me it was usefull.
Title: Re: Disable Ambient Lighting for an Object
Post by: EgonOlsen on September 21, 2007, 07:48:39 PM
Yes. it's an additional option.