Re: Simulate sun position and lights/shadows

by Puybaret » Tue May 11, 2010 8:45 am

Nice experimentation. [:)]
I'm glad you discovered by yourself that the lightSourceColor property could be any color!

For anyone tempted to create its own lights with SH3F files, note that the 4 keys in a PluginFurnitureCatalog.properties file that defines the light sources of the nth piece:

Code: Select all

lightSourceX#n=
lightSourceY#n=
lightSourceZ#n=
lightSourceColor#n=
can cite one light source as in the following example:

Code: Select all

lightSourceX#1=5
lightSourceY#1=5
lightSourceZ#1=5
lightSourceColor#1=#FFFFFF
but also more than one light source as in the following example with 3 lights of different colors:

Code: Select all

lightSourceX#1=0 5.5 11
lightSourceY#1=0 11 0  
lightSourceZ#1=5.5 5.5 5.5
lightSourceColor#1=#FF0000 #00FF00 #0000FF
Note axis directions when you define the x, y, z coordinates of each light source:
Image