Lights

Started by Thomas., March 07, 2011, 09:08:14 AM

Previous topic - Next topic

Thomas.

Is something like this possible in jPCT-AE? Light in box with 12 triangles.


Thomas.

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?

EgonOlsen

#2
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.