HomePhabricator
Diffusion MITK ba631f3b301b

Calculating gizmo translations based on 2D screen coords.

Description

Calculating gizmo translations based on 2D screen coords.

Prior to this change, the code was using the distance between
two 3D-picked coordinates to calculate a movement vector. This
is obviously leading to strange results when the mouse movement
covers parts with background objects and parts without any
background (picking returns far plane). Visually this results in
a "jumping" impression during translation.

The fix calculates a movement vector on a fixed plane that is parallel
to the screen/camera. This leads to smooth movements.

Details

Provenance
maleikeAuthored on Oct 22 2020, 2:04 PM
kislinskPushed on Nov 4 2020, 8:04 AM
Parents
rMITKb34059bcb29a: Comment on an implementation detail that might look strange
Branches
Unknown
Tags
Unknown