You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using CameraControls (from drei) to allow the user to switch between different views of a 3D model that is being loaded with the useFBX() hook. I'm noticing that the first time I call the setCamera function below, the center is being incorrectly calculated to be (0,0,0), even though the box.min and box.max values are being correctly calculated. The size property also seems to be wrong. The subsequent times the function is called, all values are correct.
As a workaround, I am using the min and max to calculate the center.
Thank you for contributing! We’re marking this issue as stale as a gentle reminder to revisit it and give it the attention it needs to move forward.
Any activity, like adding an update or comment, will automatically remove the stale label so it stays on our radar.
Feel free to reach out on Discord if you need support or feedback from the community. This issue will close automatically soon if there’s no further activity. Thank you for understanding and for being part of the project!
We’re closing this issue to keep our project manageable and make room for other active work, but we truly appreciate your effort and contribution.
If you’d like to continue working on this, please feel free to re-open it or reach out on Discord — our community is always ready to support you. Thanks again for helping us stay organized and for understanding our approach!
three
version: 0.159.0@react-three/fiber
version: 8.15.19@react-three/drei
version: 9.102.6node
version: 18.17.1npm
(oryarn
) version: 9.6.7Problem description:
I am using CameraControls (from drei) to allow the user to switch between different views of a 3D model that is being loaded with the
useFBX()
hook. I'm noticing that the first time I call the setCamera function below, the center is being incorrectly calculated to be (0,0,0), even though thebox.min
andbox.max
values are being correctly calculated. The size property also seems to be wrong. The subsequent times the function is called, all values are correct.As a workaround, I am using the min and max to calculate the center.
Relevant code:
The text was updated successfully, but these errors were encountered: