Author Topic: Disable Ambient Lighting for an Object  (Read 2378 times)

Offline dear_stephen

  • byte
  • *
  • Posts: 32
  • 'day mate
    • View Profile
    • Fluidforms ~ Individual Design
Disable Ambient Lighting for an Object
« 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11747
    • View Profile
    • http://www.jpct.net
Re: Disable Ambient Lighting for an Object
« Reply #1 on: September 20, 2007, 12:28:17 pm »
No, that's not possible ATM. I'll add it this evening.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11747
    • View Profile
    • http://www.jpct.net
Re: Disable Ambient Lighting for an Object
« Reply #2 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). However, i haven't tested, if it really works... ;)...but it should...

Offline Klaudiusz

  • int
  • **
  • Posts: 75
    • View Profile
Re: Disable Ambient Lighting for an Object
« Reply #3 on: September 21, 2007, 03:17:54 pm »
I hope it's just an option because for me it was usefull.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11747
    • View Profile
    • http://www.jpct.net
Re: Disable Ambient Lighting for an Object
« Reply #4 on: September 21, 2007, 07:48:39 pm »
Yes. it's an additional option.