Author Topic: Can Light focus on model?  (Read 860 times)

Offline denzel

  • byte
  • *
  • Posts: 22
    • View Profile
Can Light focus on model?
« on: February 29, 2012, 10:46:19 am »
Just like a light focus on a actor in the stage.
I think the Light in JPCE-AE is a pointolite like the sun, is there a way to make a Cone-Light?


Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11775
    • View Profile
    • http://www.jpct.net
Re: Can Light focus on model?
« Reply #1 on: February 29, 2012, 08:41:00 pm »
In a way that a only a small part of the scene is lit or in a way that the cone is actually visible like in the image?

Offline denzel

  • byte
  • *
  • Posts: 22
    • View Profile
Re: Can Light focus on model?
« Reply #2 on: March 01, 2012, 02:29:29 am »
In a way that a only a small part of the scene is lit ,like a spotlight
or put it another way,it's that there's parameter for GL_SPOT_CUTOFF in ES

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11775
    • View Profile
    • http://www.jpct.net
Re: Can Light focus on model?
« Reply #3 on: March 01, 2012, 07:07:11 am »
jPCT-AE doesn't support any attenuation or cut off for lights, because i couldn't get it to work properly on a variety of devices....so i finally decided to disable support for it. When using OpenGL ES 2.0, you should be able to write a shader that does it, if that's an option.

Offline denzel

  • byte
  • *
  • Posts: 22
    • View Profile
Re: Can Light focus on model?
« Reply #4 on: March 01, 2012, 08:33:34 am »
Get it.I will have a try.
 :)