
Required a 3D cube in winforms c sharp which rotates along x and y axis with mouse drag.
Posted Wednesday, 8 February, 2012 - 16:11 by Nikhil Malhotra| Project: | The Open Toolkit library |
| Version: | all versions |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (invalid) |
Jump to:
Description
hi All,
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.


Comments
#1
Try this.
Program.cs
MainWindow.cs
#2
Basic questions should go to the forums, not issue reporting.