Skip to content

Best practice for initial camera positioning #355

@onlyhy

Description

@onlyhy

Question: Best practice for initial camera positioning for 3D Gaussian Splat models of varying sizes?

I'm using Spark 2 to load 3D Gaussian Splat models (SPZ), but each model has a different size, bounding box, coordinate system, and forward direction.
It’s very difficult to manually adjust the camera position and lookAt for every model.

I would like to know:

  1. What is the official recommended way to automatically center and fit the model in view, regardless of its size?
  2. How to automatically position the camera to face the "front" of the model consistently?
  3. Is there a built-in helper or API to compute bounding box and set camera distance automatically?

A code example of universal initial camera setup would be greatly appreciated.

HELP!!!!!!!!!!
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions