• Advertisement
Sign in to follow this  

D3DXMatrixLookAtLH & D3DXMatrixLookAtRH

This topic is 3540 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi! For my project I need to intercept all the calls to the D3DXMatrixLookAtLH & D3DXMatrixLookAtRH functions of DirectX using dll proxy hooking. I am new to DirectX and game development, so my question is; Does every game engine using DirectX library use D3DXMatrixLookAtLH & D3DXMatrixLookAtRH functions for matrix transformation? Are there any other / custom functions that do the same thing? Best, Domen

Share this post


Link to post
Share on other sites
Advertisement
A lot of game engine using own matrix transformation routines. Because this routines may be faster than D3DXMatrixLookAtLH, D3DXMatrixLookAtRH and any other functions. Long time ago I'm tried your thinking with proxy dll but not worked.

Share this post


Link to post
Share on other sites
Most D3D applications that don't use shaders will use IDirect3DDevice9::SetTransform() however, so you could hook that call instead. Newer applications will pass the world*view*projection matrix as a shader argument, and that'll be more difficult to hook (If it's even possible).

What exactly are you trying to do? There's probably a better way of doing it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement