www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: dear_stephen on March 28, 2007, 03:44:25 pm

Title: Image without lighting
Post by: dear_stephen on March 28, 2007, 03:44:25 pm
Hi

I would like to display an image in my world. It should be rendered just as it is without any effects of lighting.

I have created a plane, add the image as a texture and am calling...

plane.setLighting(Object3D.LIGHTING_NO_LIGHTS);

The problem is that it is still effected by the worlds ambient light.

How can I prevent this?

cheers
Title: Re: Image without lighting
Post by: EgonOlsen on March 28, 2007, 05:10:42 pm
Try yourObj.setAdditionalColor(Color.WHITE);
Title: Re: Image without lighting
Post by: dear_stephen on March 29, 2007, 10:59:28 am
Thanks! That worked great!