www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: denzel on February 29, 2012, 10:46:19 am

Title: Can Light focus on model?
Post by: denzel 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?

(http://www.tu265.com/di-866ya1.jpg)
Title: Re: Can Light focus on model?
Post by: EgonOlsen 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?
Title: Re: Can Light focus on model?
Post by: denzel 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
Title: Re: Can Light focus on model?
Post by: EgonOlsen 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.
Title: Re: Can Light focus on model?
Post by: denzel on March 01, 2012, 08:33:34 am
Get it.I will have a try.
 :)