-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
BatchedMesh: Exception with InterleavedBufferAttribute #27973
Comments
Here's a bit more info. Seems like when creating a new instance of the InterleavedBufferAttribute class the passed in |
A quick hack in _initializeGeometry works needle-tools@fa7e823 Maybe someone can explain why the arrays are created with |
These lines are the problematic ones:
It looks like these lines were added in #25059 but I don't think there shouldn't be any reason to ensure the data is using an
This is done to retain the original precision used for the attribute data and should not change. |
…ttribute, omit usage as sugested mrdoob#27973 (comment)
Thanks - that seems to work. I'll do some more testing and then open a PR. Thank you |
…ttribute, omit usage as sugested mrdoob#27973 (comment)
…ttribute, omit usage as sugested mrdoob#27973 (comment)
…ttribute, omit usage as sugested mrdoob#27973 (comment)
It's hard to say without knowing what the original geometry looks like. I'm not so familiar with how wireframes work internally but it's possible BatchedMesh needs special handling. |
…ttribute, omit usage (#27978) as sugested #27973 (comment)
…ttribute, omit usage (mrdoob#27978) as sugested mrdoob#27973 (comment)
…ttribute, omit usage (mrdoob#27978) as sugested mrdoob#27973 (comment)
Description
Batched mesh
addGeometry
throws exception for geometry with InterleavedBufferAttributesReproduction steps
The mesh was processed with gltf-transform and simplified
Code
see 54b78a0
Sphere.zip
Live example
I have to submit this another time if necessary
Screenshots
Version
162
Device
Desktop
Browser
Chrome
OS
Windows
The text was updated successfully, but these errors were encountered: