www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Thomas. on March 07, 2011, 09:08:14 am

Title: Lights
Post by: Thomas. on March 07, 2011, 09:08:14 am
Is something like this possible in jPCT-AE? Light in box with 12 triangles.

 (http://2i.cz/2i/t/04f04963b0.jpg)  (http://2i.cz/04f04963b0)
Title: Re: Lights
Post by: Thomas. on March 09, 2011, 10:00:31 pm
I am try scene from screen in engine and it seem that jpct use per vertex lighting... is here any option for triangulation or something other what will have a similar result?
Title: Re: Lights
Post by: EgonOlsen on March 09, 2011, 10:17:01 pm
Oh, sorry...i somehow forgot about this one. Yes, it uses vertex lighting and to get something similar, you have to triangulate the object yourself. Or compose it out of several planes generated by the Primitives, because they can be created using any triangulation level you like.

Edit: Another problem might be that light attenuation is disabled and hidden (API wise) ATM, because it simply doesn't work on some devices and creates nothing but bizarre artifacts.