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

Triangle indices with dtype=uint16 #65

Open
davidbrochart opened this issue Sep 24, 2020 · 2 comments
Open

Triangle indices with dtype=uint16 #65

davidbrochart opened this issue Sep 24, 2020 · 2 comments

Comments

@davidbrochart
Copy link

When I create triangle indices with a dtype='uint16', I get no output and this message in the browser console:

WebGL warning: drawElementsInstanced: Indexed vertex fetch requires 71173184 vertices, but attribs only supply 1088.

I checked that the triangle indices have no value greater than 65535.
The issue also appears with dtype=uint8, but it works fine with dtype=uint32.

@martinRenou
Copy link
Collaborator

ThreeJS supports those types https://threejs.org/docs/index.html#api/en/core/bufferAttributeTypes/BufferAttributeTypes

So my first guess is that the deserialization (JS side) does not work properly in ipygany.

@davidbrochart
Copy link
Author

When I set the vertices' dtype to int16 I get the same error. Maybe it is due to deserialization indeed.

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

2 participants