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

Code: [Select]
myObject.setLighting(Object3D.LIGHTING_NO_LIGHTS);
It works for lights added with...
Code: [Select]
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.