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
Bug in scale
or getDimensions
#4167
Comments
This seems to be working fine on the dev tools command line. I wonder if you forgot to wait for the |
Thank you for attention, checked
Web vieverI also tried to view the model at
But if I change |
Okay, so I can repro this now - it's specific to this model, or at least has something to do with its skinned mesh portion and large transforms. The first time bounds are calculated, the |
I see, great investigation. For now, as a workaround, I avoid changing the scale of the model and change the distance in the camera-orbit. |
Description
Unexpected behaviour when trying to scale a model using Puppeteer (but I believe it will be reproduced in any browser).
After scaling at 1.5 times a model size becomes incredibly large according to
getDimensions
andgetBoundingBoxCenter
(see the output below). However, it looks like the problem is in the output of incorrect values for sizes, because the model is rendered as if it had been enlarged correctly.Code snippet that I used to generate this output
Model (for additional info: I transformed it with gltf-transform since it has SpecGloss PBR format):
robot.glb.zip
html template:
Version
Browser Affected
OS
The text was updated successfully, but these errors were encountered: