Print at May 25, 2019 4:42:30 AM

Posted by Puybaret at May 11, 2010 8:45:23 AM
Re: Simulate sun position and lights/shadows
Nice experimentation. smile
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:

lightSourceX#n=
lightSourceY#n=
lightSourceZ#n=
lightSourceColor#n=

can cite one light source as in the following example:

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:

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:

----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer