Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add preliminary bvh loader #16540

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

Merged
merged 21 commits into from
May 2, 2025
Merged

Add preliminary bvh loader #16540

merged 21 commits into from
May 2, 2025

Conversation

yuripourre
Copy link
Contributor

Hello Babylon.js devs.

I would like to add a preliminary bvh loader to the project.

I haven't tested it thoroughly yet, but I hope to be able to test easily once the playgrounds are updated.

Please share your thoughts and/or suggestions

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 28, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@deltakosh
Copy link
Contributor

The temp playground link will be created when the checks are green (you have some linting / format issues)

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 28, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@yuripourre
Copy link
Contributor Author

Thank you, @deltakosh. Just submitted a fix (hopefully).

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 28, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 28, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 28, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Copy link
Member

@ryantrem ryantrem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd also want to add this plugin to the dynamic.ts file.

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 29, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 29, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 29, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

1 similar comment
@bjsplat
Copy link
Collaborator

bjsplat commented Apr 29, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 29, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 29, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 29, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

1 similar comment
@bjsplat
Copy link
Collaborator

bjsplat commented Apr 29, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 30, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Apr 30, 2025

@yuripourre
Copy link
Contributor Author

Thank you @ryantrem and @RaananW for the reviews, I think I addressed all the comments.

@yuripourre yuripourre requested review from RaananW and ryantrem April 30, 2025 19:47
@bjsplat
Copy link
Collaborator

bjsplat commented Apr 30, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

1 similar comment
@bjsplat
Copy link
Collaborator

bjsplat commented May 1, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented May 1, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented May 1, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented May 1, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented May 1, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented May 1, 2025

Copy link
Member

@RaananW RaananW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, waiting for @ryantrem to approve as well.

@RaananW RaananW merged commit b97759d into BabylonJS:master May 2, 2025
17 checks passed
@yuripourre yuripourre deleted the bvh-loader branch May 2, 2025 18:41
@yuripourre
Copy link
Contributor Author

Thank you so much @RaananW and @ryantrem this feature is a game changer for me!

@ryantrem
Copy link
Member

ryantrem commented May 2, 2025

Thank you so much @RaananW and @ryantrem this feature is a game changer for me!

Thank you for the contribution!

deltakosh pushed a commit that referenced this pull request May 5, 2025
from #16540

In the current BVH loader, the skeleton will be added to the scene twice
when load with `loadAssetContainerAsync`.

To solve this, I applied the same approach as the gltf loader's Skeleton
creation method.

https://github.com/BabylonJS/Babylon.js/blob/master/packages/dev/loaders/src/glTF/2.0/glTFLoader.ts#L1378-L1381

---------

Co-authored-by: Raanan Weber <[email protected]>
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.

5 participants