-
|
Hi, Looking at specific component types, for instance tours or actions, the I reckon that lights do not follow that pattern. The only list of lights seems to to be in the I am considering to add a global list, for instance to the
However, I have realised that the implications might be difficult to see for me. @gjcope would you be able to outline the implementation of how components are tracked in general, and more specifically for lights? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
More specifically, I wonder if there should be a |
Beta Was this translation helpful? Give feedback.
-
|
It is a long shot, but looking at the |
Beta Was this translation helpful? Give feedback.
Hi @carschno , we do indeed use CVLightTool (as well as the rest of the tools) in the Tools and Settings toolbar of Voyager Explorer.
That class will show you one example of how to grab a list of light components in the scene:
dpo-voyager/source/client/components/CVLightTool.ts
Line 65 in 6dfd285
Taking a look at component creation:
dpo-voyager/source/client/nodes/NVNode.ts
Line 81 in 6dfd285
we see that the scenegraph component hierarchy is mapped directly to the document. And the document schema defines a 'li…