LightsGroups
LightGroups is a concept that allows the user to assign multiple Snappers that has lights into groups, and then control the light parameters, such as brightness, color, and shadows for the entire group, rather than having to select one Snapper at a time and then try to apply roughly the same brightness.
A LightGroups
object is stored in Space
which contains all the individual LightGroup
objects which are created from any Snapper
that uses lights. Only Snapper
s have the inbuilt ability to do so with Space
.
LightGroup
A single LightGroup
object mainly consists of a key that is used to uniquely identify lights that are intended to have the same properties. Each property within a LightGroup
is defined in the props
collection:
/** * Properties. */ public GProp[] props;
which contains again a key to identify the type of property.
If two different LightGroup
s were selected, only the main Snapper
within the Selection
will populate the Light Settings dialog:
But if different LightGroup
s are grouped together, all of the properties from the different LightGroup
s will populate the Light Settings dialog. When a user changes a GProp
, only LightGroup
s that share that GProp
key will change along:
GProp
(i.e. Brightness), then make sure to use the same key for its construction (i.e. "intensity").This is so that it would share the same property as the lights provided in our core code (refer to the example's
SpotLightSnapper
).
Comments
0 comments
Please sign in to leave a comment.