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
The zoom is not actually happening. If you keep doing it, it will simply front clip the model (like if the near plane is too close to the model).
It's like a problem when changing from perspective to ortho. Something else needs to be changed probably in setupOrthoCamera(). Seems like the controls are still doing the DOLLY that moves the camera towards the model.
We think this change is needed:
private setupOrthoCamera(height: number, width: number) {
this._component.controls.touches.two = CameraControls.ACTION.TOUCH_ZOOM_TRUCK; // ADD THIS LINE
this._component.controls.touches.three = CameraControls.ACTION.TOUCH_ZOOM_TRUCK; // ADD THIS LINE
}
Also this needs to be changed back in setPerspectiveCamera(), so:
private async setPerspectiveCamera() {
this._component.controls.touches.two = CameraControls.ACTION.TOUCH_DOLLY_TRUCK ; // ADD THIS LINE
this._component.controls.touches.three = CameraControls.ACTION.TOUCH_DOLLY_TRUCK ; // ADD THIS LINE
}
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a repository issue and not a framework-specific issue. For example, if it's a THREE.js related bug, it should likely be reported to mrdoob/threejs instead.
Check that this is a concrete bug. For Q&A join our Community.
And to be honest, also this would be nice to be changed from the default. The default dollySpeed is 1.0, it is very slow for any bim model. We think 5 is better.
Describe the bug 📝
Hi guys,
we have a problem with the OrthoPerspectiveCamera. You can easily test this with any phone or tablet.
Open this: https://docs.thatopen.com/Tutorials/Components/Core/OrthoPerspectiveCamera
Put the scene camera projection to
orthographic
and just try to zoom (with a pinch to zoom touch gesture).The zoom is not actually happening. If you keep doing it, it will simply front clip the model (like if the near plane is too close to the model).
It's like a problem when changing from perspective to ortho. Something else needs to be changed probably in
setupOrthoCamera()
. Seems like the controls are still doing the DOLLY that moves the camera towards the model.We think this change is needed:
Also this needs to be changed back in
setPerspectiveCamera()
, so:Reproduction▶️
Open this: https://docs.thatopen.com/Tutorials/Components/Core/OrthoPerspectiveCamera
video_2024-11-17_21-40-30.mp4
Steps to reproduce 🔢
No response
System Info 💻
Used Package Manager 📦
npm
Error Trace/Logs 📃
No response
Validations ✅
The text was updated successfully, but these errors were encountered: