PDA

View Full Version : Rotating Point Modification



Andrewinator
11-18-2003, 11:39 AM
Right now, when I ajust the camera's angle (in 3d), it rotates around the lower left corner of the camera. How might I change this to the center of the camera? I tried translating x and y (z is depth) by 5, then -5, but they didn't sem to do anything. Help!

BionicBytes
11-05-2011, 04:16 PM
What rotates?
What code are you using?

blackzero
11-11-2011, 11:43 PM
it seems that it is not possible without any mistake
so if you post code or a part of code then one can understand your problem

Dinesh
11-12-2011, 04:13 AM
you have to change the angle of rotation by using glutTimerFunc function here is the sample example http://codeincodeblock.blogspot.com/2011/11/rotate-object-in-openglglut-sample.html

BionicBytes
11-12-2011, 07:18 AM
how did you arrive at the conclusion he's using Glut?