Author Topic: Image without lighting  (Read 3280 times)

Offline dear_stephen

  • byte
  • *
  • Posts: 32
  • 'day mate
    • View Profile
    • Fluidforms ~ Individual Design
Image without lighting
« 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Image without lighting
« Reply #1 on: March 28, 2007, 05:10:42 pm »
Try yourObj.setAdditionalColor(Color.WHITE);

Offline dear_stephen

  • byte
  • *
  • Posts: 32
  • 'day mate
    • View Profile
    • Fluidforms ~ Individual Design
Re: Image without lighting
« Reply #2 on: March 29, 2007, 10:59:28 am »
Thanks! That worked great!