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

GLTFSerializer : Ext mesh gpu instancing #12495

Merged
merged 5 commits into from May 27, 2022

Conversation

pandaGaume
Copy link
Contributor

Add support to EXT_mesh_gpu_instancing to Babylon GLTF Serializer.
Thin instances are used to save transformation into GLTF buffer.
This extension is NOT official and not supported yet by many viewer. This may be used with caution while terminology between Local Transformation and World transformation are not consistent beetwen this Extension and the babylon Thin instances.
Test has been conducted sucessfully with playground and sandbox, using respectively coding samples and imported gltf sample.
The main sample used was the "official" gltf sample
Also add Visualization test.
Note - deleted previous PR for configuration issues.

@pandaGaume pandaGaume changed the title Vendor gpu instancing Ext mesh gpu instancing May 6, 2022
@azure-pipelines
Copy link

Please make sure to tag your PR with "bug", "new feature" or "breaking change" tags.

@azure-pipelines
Copy link

@pandaGaume pandaGaume changed the title Ext mesh gpu instancing GLTFSerializer : Ext mesh gpu instancing May 6, 2022
@RaananW RaananW requested a review from bghgary May 9, 2022 11:59
Copy link
Contributor

@bghgary bghgary left a comment

Choose a reason for hiding this comment

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

LTGM overall. I'm confused by the normalized array code.

@azure-pipelines
Copy link

Please make sure to tag your PR with "bug", "new feature" or "breaking change" tags.

@azure-pipelines
Copy link

the buffer might be always a Float32Array because all the values are coming from matrix decompose
@azure-pipelines
Copy link

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.

@azure-pipelines
Copy link

@sebavan
Copy link
Member

sebavan commented May 16, 2022

@bghgary I ll let you review and merge this one :-)

@bghgary
Copy link
Contributor

bghgary commented May 16, 2022

There is at least one outstanding comment that hasn't been addressed. I'll review once it is. :-)

@azure-pipelines
Copy link

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.

@azure-pipelines
Copy link

@deltakosh deltakosh enabled auto-merge (squash) May 27, 2022 21:16
@deltakosh
Copy link
Contributor

Good to go?

@deltakosh deltakosh merged commit 5a8db04 into BabylonJS:master May 27, 2022
alvov-evo pushed a commit to alvov-evo/Babylon.js that referenced this pull request Jun 16, 2022
* add Ext_mesh_gpu_instancing

* finalize Ext_mesh_gpu_instancing

* cleaning

* change signature of _buildAccessor

the buffer might be always a Float32Array because all the values are coming from matrix decompose

* remove quaternion quantization option
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.

None yet

4 participants