-
Is there a way to calculate the "initialCameraPosition" and "initialCameraLookAt" dynamically for any given splat file before rendering ? We need the file to be rendered with correct position when its opened for the first time. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
What I did was opening the scene, hitting "I" (for the info window to pop up), moving around the camera until I found the position I liked, and eventually copied the values shown in the info window. |
Beta Was this translation helpful? Give feedback.
-
@fabricDev If you need the center of the splat scene, you could conceivably use |
Beta Was this translation helpful? Give feedback.
@fabricDev If you need the center of the splat scene, you could conceivably use
SplatMesh.computeBoundingBox(applySceneTransforms, sceneIndex)
to first calculate the scene bounds, and then just use the its center. I think you'll most likely want to pass true for theapplySceneTransforms
parameter, although if that doesn't work you can always try passing false :)