-
Notifications
You must be signed in to change notification settings - Fork 12
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
unwrapper.packAtlas(...) goes wrong #1
Comments
Hi, can you share the 3d model which has this issue? |
Hi! The issue occurs only with rounded geometries (usually small triangles). Do you know what is the problem? Example of broken model (single geometry) below. |
It looks like this could be due to the geometry's index array being set to use a Uint32 buffer while XAtlas.js is only designed to support Uint16 index arrays. The model contains more than 80,000 vertices while Uint16 indices only support up to around 65,500 vertices. Looking at the XAtlas code, though, it looks like it would be possible to enable support for either Uint16 or Uint32 indices here. Or, more simply, the code could be changed to just support Uint32 indices and the buffer could be converted when set, similar to #11. edit |
Here is the code
package.json
before unwrapping
here is the result of the unwrap(
unwrapper.packAtlas(...)
)I pass to
unwrapper.packAtlas(...)
array with only one geometry:UPD: meanwhile with the model from this github project https://github.com/lucas-jones/three-lightmap-baker all is ok:
what is the problem?
The text was updated successfully, but these errors were encountered: