|Project:||The Open Toolkit library|
please help i am new to 3d world. i want to draw a cube in 3d which i can rotate along x and y axis with mouse drag. i.e. if mouse is dragged from left to right cube should rotate counter clockwise around y axis and if mouse is dragged from top to bottom then cube should rotate along x axis.
And i tried simply GL.Rotate() but i am not able to predict rotation its weird.
i read something about QUATERNION as well. but, was not successful.
If any one please give suggestions for implementation of QUATERNIONS or anything better i'll be very thankful.
i am new to 3d so, a little explained suggestion will be best.
Thanks a lot.