Closed jimbogill closed 3 years ago
You cannot have a single object be a part of multiple scenes, unfortunately. This is both to do with how pythreejs organizes the hierarchy as well as how threejs itself handles things. Your best bet is probably to create a util function that copies and/or links all the properties of one light/camera with another.
Hi,
When I run the following code in a Jupyter Notebook, the first sphere is only lit by AmbientLight:
It works fine if the 2 scenes have different cameras. But I want to be able to view 2 slightly different objects with exactly the same light and view direction. It also works fine if I make AmbientLight a child of the scene and don't make the camera a child of the scene. But this gives a different behavior. Thanks, James