Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

thedo

D3DXMatrixLookAt

This topic is 6000 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

If I call this method each frame my camera moves down. I am not transforming my camera at all. Here is the look at code:
  
void __fastcall TCamera::LookAt(TMatrix *in)
{
 D3DXVECTOR3 E,U,L;
 L.x=in->Matrix._41;
 L.y=in->Matrix._42;
 L.z=in->Matrix._43;
 E.x=-Matrix._41;
 E.y=-Matrix._42;
 E.x=-Matrix._43;
 U.x=0;
 U.y=1;
 U.z=0;
 D3DXMatrixLookAtLH(&Matrix,&E,&L,&U);
}
  
Is it just floting point inaccuracy? Neil WHATCHA GONNA DO WHEN THE LARGEST ARMS IN THE WORLD RUN WILD ON YOU?!?! Edited by - thedo on January 15, 2002 8:57:29 AM

Share this post


Link to post
Share on other sites
Advertisement
Thanks for the quick reply. I changed it and now the screen constantly flickers (almost like it is rotating 180 degrees between each render, thus showing my object/not showing it,etc)

Any Ideas

Neil

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!