KhronosGroup / UnityGLTF

Runtime glTF 2.0 Loader for Unity3D
MIT License
1.84k stars 491 forks source link

Import: Scale factor doesn't effect bounding boxes correctly #669

Closed kipash closed 9 months ago

kipash commented 1 year ago

Adjusting the scaling factor will result in unwanted frustrum culling visible on screen. In other words, the bounding box is not updated correctly. Perhaps there's a chance that it isn't updated at all? That it is based on the original mesh?

With scale factor 1 and object scale 1 image

With scale factor 2 and obeject scale 0.5 image

If i lower the view just a bit, the pot becomes visible: image

Model: https://sketchfab.com/3d-models/plants-are-nice-52704c1bafd44bfd9e98538276ad5614 Or the exact one i used: Model.zip

Info

Unity: 2020.3.38f1 URP: 10.10.1 Unity GLTF: 1.24.0-pre.3 via Needle registry

pfcDorn commented 9 months ago

Should be fixed. Please update to the latest version and open a new issue if the problem persists. Thanks!