This post being my first comes with lots of hope.
The situation till now :-
I have multiple objects in a scene. On a moment there is only 1 interact able object. The object is being rotated by the user input IN THE WORLD COORDINATE SYSTEM.
The free form rotation is doing JUST FINE.
The Problem :
Now while the user input ends I have to snap the object close to 90 degree or its multiples in any of the axes.
Any idea of how to do it ?
My first approach was to get the euler angle values. But after googling a bit I think that is impossible.
The transformation applied . . . . . .
Translatation, Rotation, Scalling,(GL_NOMALIZE is turned on). and there is a use of gluLookat.
Any help in this reagard will be greatly appriciated.