View Single Post
Old 02-28-2006   #4 (permalink)
Kevin Hoffman


 
 

Re: Rotating the PerspectiveCamera

GOT IT!
I do remember saying that it felt as though the rotational
transformation was taking place relative to a centerpoint of the origin
rather than the camera itself being the centerpoint...So,I added:

rt3d.CenterZ = camera1.Position.Z;
rt3d.CenterY = camera1.Position.Y;
rt3d.CenterX = camera1.Position.X;

Before I did the matrix multiplication and it works like a champ.

I knew it was something simple that I was missing, and setting the
centerpoint of the axis rotation to be the camera's position instead of
the origin was definitely a "D'oh!" moment... Thanks for all the
support getting me this far.

My System SpecsSystem Spec