Thread: DirectX matrices

  1. #1
    Confused Magos's Avatar
    Join Date
    Sep 2001

    DirectX matrices

    I'm looking for a function similar to D3DXMatrixLookAtLH. This calclulates the view when the camera is at one point, and looks at another.
    I want one where the camera is at one point, and looking at a certain angle (Yaw, Pitch, Roll).

    There is a D3DXMatrixRotationYawPitchRoll function, but it doesn't have a camera point (Do you have to do a translation?).

    Also, is there a translation matrix function that takes a vector, rather than 3 coordinates? Couldn't find it on MSDN.

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  2. #2
    Registered User
    Join Date
    Nov 2002
    to do this, i just used trig to calculate the look at point in front of the point by the angles.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Isometric Tile Engine using DirectX
    By Wraithan in forum Game Programming
    Replies: 3
    Last Post: 07-17-2006, 12:16 PM
  2. DirectSound header issues
    By dxfoo in forum C++ Programming
    Replies: 0
    Last Post: 03-19-2006, 07:16 PM
  3. DirectX - Starting Guide?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-25-2004, 12:49 AM
  4. DirectX rotation matrices
    By confuted in forum Game Programming
    Replies: 7
    Last Post: 08-10-2003, 03:05 PM
  5. Problem multiplying rotation matrices together
    By Silvercord in forum A Brief History of
    Replies: 20
    Last Post: 03-04-2003, 09:20 AM