Re: Rotate camera around point

108 views
Skip to first unread message

Adam Griffiths

unread,
Oct 23, 2012, 1:45:33 AM10/23/12
to pyglet...@googlegroups.com
Your question is incredibly vague.
You need to be specific about what you are having trouble with.

This doesn't look too hard. Just break the problem down into steps.
Once you've got the input, you should be able to convert this to a translation vector and a facing vector (with an up vector).
This should then be trivial to convert to a matrix and apply to the model view matrix (as a camera).

If you don't understand this you can take a look at my code but if you don't understand the basics of 3d maths or 3d graphics you may not understand it.

My 3D maths project

My OpenGL framework

My basic camera class


Cheers,
Adam

On Thursday, October 11, 2012 7:07:35 AM UTC+11, Ricardo Franco wrote:
Hi, I'm trying to rotate the camera around a  point.
Not doing a full circle around the point, just simulate a head moving with eyes fixed in a point.

this video shows what I want to do:
Reply all
Reply to author
Forward
0 new messages