xeolabs / xeogl

A WebGL-based 3D engine for technical visualization. Not actively maintained.
http://xeogl.org
Other
1.14k stars 264 forks source link

Rotating the model will appear jitter #202

Closed yoyomule closed 6 years ago

yoyomule commented 6 years ago
Description of the problem

The model, rotation, and movement of xeogl's canvas are achieved by rotating and moving the camera. We hope in the development activities, by rotating the model itself to achieve its rotation and movement, but found the model of rotation is realized by the rotation axis, it will appear model jitter, not clear what reason.

test record.zip test.zip

Hardware Requirements
xeolabs commented 6 years ago

The problem seemed to be in the modeling transform - try this, my changes are at lines 64 and 145: test.fixed.html.zip

You could also use a quaternion, if you need a more free rotation: http://xeogl.org/docs/classes/Quaternion.html