CedricGuillemet / ImGuizmo

Immediate mode 3D gizmo for scene editing and other controls based on Dear Imgui
MIT License
3.22k stars 907 forks source link

Dragging gizmo is jitter #284

Closed Wuqiqi123 closed 1 year ago

Wuqiqi123 commented 1 year ago

Hi, I'm using ImGuizmo::Manipulate alone with https://github.com/seanchas116/qtimgui, but I find jitter when dragging the translation axis. Anyone knows why? And is this a bug?

https://user-images.githubusercontent.com/37368540/209768507-b96da425-4618-4bdf-994e-3aed77ea006c.mp4

Wuqiqi123 commented 1 year ago

The reason is the far of camera was set to 1000000. And the algorithm of ComputeCameraRay is sensitive to
this. I solved this by setting far of camera to 1000.