Crate kiss3d_trackball

Crate kiss3d_trackball 

Source
Expand description

Coherent Virtual Trackball Camera Mode for Kiss 3D

Complements common trackball operation handlers with kiss3d-specific Input resulting in a compound Trackball Camera mode implementation for the kiss3d graphics library.

§Coherence

This is an alternative trackball technique using exponential map and parallel transport to preserve distances and angles for inducing coherent and intuitive trackball rotations. For instance, displacements on straight radial lines through the screen’s center are carried to arcs of the same length on great circles of the trackball (e.g., dragging the mouse along an eights of the trackball’s circumference rolls the camera by 360/8=45 degrees, dragging the mouse from the screen’s center to its further edge linearly rotates the camera by 1 radian, where the trackball’s diameter is the maximum of the screen’s width and height). This is in contrast to state-of-the-art techniques using orthogonal projection which distorts radial distances further away from the screen’s center (e.g., the rotation accelerates towards the edge).1


  1. G. Stantchev, “Virtual Trackball Modeling and the Exponential Map”, S2CID 44199608 (2004) , Archived PDF  

Re-exports§

pub use kiss3d;
pub use trackball;

Structs§

Input
Input keys/buttons and their modifiers.
Trackball
Trackball camera mode.