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
With CameraControlfollowPointer set true, it can be hard to dolly through objects with the mouse scroll wheel, and takes a strong push on the wheel to break through.
CameraControl is designed to slow down as we approach an object, but is slowing down too much.
This can be fixed by ensuring that dollying speed in this case does not fall below a given minimum.
Solution
Increase the default value for CameraControl#dollyMinSpeed from 0.01 to 0.06.
If this is not enough, it can be increased further, eg:
xeolabs
changed the title
CameraControl in followPointer mode has difficulty dollying through some objects
Improve CameraControl dollying through objects
Nov 13, 2020
Would you have any additional information on what this value would be dependent on? Browser, viewport size, js engine, hardware, model size, number of meshes, so forth?
In other words, how to do we make sure it works for every models we render?
With
CameraControl
followPointer
settrue
, it can be hard to dolly through objects with the mouse scroll wheel, and takes a strong push on the wheel to break through.CameraControl
is designed to slow down as we approach an object, but is slowing down too much.This can be fixed by ensuring that dollying speed in this case does not fall below a given minimum.
Solution
Increase the default value for
CameraControl#dollyMinSpeed
from0.01
to0.06
.If this is not enough, it can be increased further, eg:
Experiment with that here:
https://xeokit.github.io/xeokit-sdk/examples/#CameraControl_orbit_Duplex
The text was updated successfully, but these errors were encountered: