Skip to content

Use all GeometryInstance3D nodes when calculating a scene AABB#118690

Open
aaronfranke wants to merge 1 commit into
godotengine:masterfrom
aaronfranke:visual-inst-scene-aabb
Open

Use all GeometryInstance3D nodes when calculating a scene AABB#118690
aaronfranke wants to merge 1 commit into
godotengine:masterfrom
aaronfranke:visual-inst-scene-aabb

Conversation

@aaronfranke

Copy link
Copy Markdown
Member

While testing PR #112866, there were errors printed to the console because MultiMeshInstance3D nodes weren't being considered in the scene AABB calculation. This PR changes the code to look at all GeometryInstance3D nodes. Note that I did not use VisualInstance3D so that the radius of lights are excluded in this calculation.

Additionally, if a scene contains no geometry, the errors would still be printed. Therefore, I also changed the starting AABB to be a very tiny AABB around the origin, rather than being a zero-size AABB.

@aaronfranke aaronfranke force-pushed the visual-inst-scene-aabb branch from f8c3cdb to 92f7787 Compare April 17, 2026 22:32
@aaronfranke aaronfranke changed the title Use all VisualInstance3D nodes when calculating a scene AABB Use all GeometryInstance3D nodes when calculating a scene AABB Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant