Direct3D Math: Vector3 vs. Matrix

ThePentiumGuy
05-07-2005, 06:31 AM
Hey,
Long time since I've been here.

I'm wondering what is the recommended thing to do: Vector3 Math or Matrix Math.

Vector3 Math:
dxDevice.Transform.View = Matrix.LookAtLH(CameraPos, CameraTarget, CameraUp)

Where you'd adjust the CameraPos / CameraTarget Vector3's to move the camera

Matrix Math:
dxDevice.Transform.View = Matrix.LookAtLH(some arguments)
dxDevice.Transform.View Matrix.Multiply(dxDevice.Transform.View, Matrix.YawPitchRoll(y,p,r))

-The Pentium Guy

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum