Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SkinnedMesh: Add bounding volumes. #25612

Merged
merged 3 commits into from
Mar 7, 2023
Merged

SkinnedMesh: Add bounding volumes. #25612

merged 3 commits into from
Mar 7, 2023

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Mar 3, 2023

Fixed #14499.

Description

This PR adds bounding volume computations for SkinnedMesh which should fix a long-standing culling issue.

Note: If a skinned mesh is animated, computeBoundingSphere() has to be called per frame for correct view frustum culling.

@Mugen87 Mugen87 added this to the r151 milestone Mar 3, 2023
@makc
Copy link
Contributor

makc commented Mar 5, 2023

wait since when there is bounding sphere/box on object3d-s? I thought it was always only on geometries.

@donmccurdy
Copy link
Collaborator

Related:

@Mugen87 Mugen87 merged commit 6b6da56 into mrdoob:dev Mar 7, 2023
@Mugen87
Copy link
Collaborator Author

Mugen87 commented Mar 7, 2023

@mrdoob I'm aware of a more performant approach that you have outlined in google/model-viewer#3189 (comment). However, I could not get it to work yet since I'm struggling with some coordinate spaces issues.

I'll go ahead and merge this PR so we have something in dev that eventually fixes the culling issue. I'll give the more performant approach another go next time though 👍 .

@Mugen87 Mugen87 mentioned this pull request Mar 8, 2023
@mrdoob
Copy link
Owner

mrdoob commented Mar 14, 2023

@mrdoob I'm aware of a more performant approach that you have outlined in google/model-viewer#3189 (comment). However, I could not get it to work yet since I'm struggling with some coordinate spaces issues.

Thanks for looking into it! 🙏

This pull request was closed.
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.

SkinnedMesh: Incorrect bounding box and culling
4 participants