Camera turn / pitch
I'm trying to move where my camera is pointing at. I read somewhere that you have to do:
device.Transform.View *=
Matrix.RotationY(angle);But, that only seems to orbit the camera target -- do I have to useLookAtLH or something to move the camera target around?
[398 byte] By [
r3n] at [2007-12-29]
Ah, I figured it out... My projection matrix was all wrong; using the following code, the view rotation is now applied to the camera target.
device.Transform.Projection =
Matrix.PerspectiveFovLH((float)Math.PI / 4, this.Width / this.Height, 1f, 20000f);It's probably not neccecary to have such a massive farplane, but my meshes are quite large.
r3n at 2007-9-4 >
