Author Topic: Lights  (Read 2722 times)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Lights
« on: March 07, 2011, 09:08:14 am »
Is something like this possible in jPCT-AE? Light in box with 12 triangles.

« Last Edit: March 07, 2011, 10:41:51 am by Thomas. »

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Lights
« Reply #1 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?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Lights
« Reply #2 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.
« Last Edit: March 09, 2011, 10:20:09 pm by EgonOlsen »