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

[meshing] Type of the indexbuffer #19

Open
rcabanier opened this issue Aug 30, 2019 · 1 comment
Open

[meshing] Type of the indexbuffer #19

rcabanier opened this issue Aug 30, 2019 · 1 comment

Comments

@rcabanier
Copy link

rcabanier commented Aug 30, 2019

From @thetuvix:

required Uint16Array indices;
Depending on the density of mesh requested, a mesh volume on HoloLens can sometimes have enough indices to require a 32-bit index buffer.

@rcabanier
Copy link
Author

WebGL does not allow for a 32 bit index buffer by default.
Is it easy to split the mesh into smaller pieces on the UA side?

I see that if the "OES_element_index_uint" extension is available, you can pass a Uint32Array.
Maybe we can have an option where an author can ask for more efficient meshes. I don't think it should be done by default because it might break content if we return 32bit values to code that expects 16bit

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

No branches or pull requests

1 participant