Hello Guest

Cube Rotation on every axis with mouse input

  • 1 Replies
  • 2890 Views
Cube Rotation on every axis with mouse input
« on: November 19, 2013, 22:56:26 »
Hey Guys! I'm new to this forum. I just had a quick (hopefully) question. How would I go about rotating a cube on every axis using mouse input, without flipping anything over (with one way I tried, when i rotated it one way, it flipped the direction of my rotations after that)?

*

Offline quew8

  • *****
  • 569
  • Because Square Eyes Look More Real
Re: Cube Rotation on every axis with mouse input
« Reply #1 on: November 20, 2013, 22:33:25 »
Why don't you take a look here http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Tutorial_Arcball. Good site. The input stuff there uses GLUT and the language is C++ but I'm sure you'll cope and I would be happy to assist in anyway necessary. Take a scan of the other tutorials there, there's all sorts of interesting things there.

Of course that's just one method of many, but you get the idea.