Skip to content

Center mesh and ensure mesh fits into camera#188

Open
GiusTex wants to merge 1 commit into
visualbruno:mainfrom
GiusTex:patch-1
Open

Center mesh and ensure mesh fits into camera#188
GiusTex wants to merge 1 commit into
visualbruno:mainfrom
GiusTex:patch-1

Conversation

@GiusTex

@GiusTex GiusTex commented Jun 6, 2026

Copy link
Copy Markdown

Ehy, nice to see the node in the official extension, glad to be able to help.

Anyway, this commit centers the mesh at the origin (same code from my previous comment/commit here), and ensures the mesh fits into the camera.

Reason:
At the moment my big mesh gets cropped out of the camera. Increasing the ortho_scale doesn't help.

image

Ensuring it fits into the camera view still isn't perfect (commit).

image

Adding the center mesh fixes it (code).

image

Center the mesh at the origin and adjust scale based on mesh size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant