Jump to content
  • Advertisement
Sign in to follow this  

[DX 9] Issues with Camera

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

Hey there!

Im facing a problem with my camera i cannot explain by myself so im asking here!

First ill describe what happens:
My camera at the moment has implemented 3 movements. Backwards and forwards, left and right and yawing. So far moving backwards and forwards and left and right works like a charm and very fluently but yawing sometimes does some sort of hopping. The camera yaws fluently and suddenly it makes a little jump and again yaws fluently. During the whole yawing frame rate is sticked at 60 FPS as its when moving in the other directions which are not "hopping". When i go to fullscreen this effect is a little bit less visible.

The code that yaws the camera looks like that:

if(m_speedYaw != 0.0f)
m_matRot.SetRotationY(D3DXToRadian(frameDiff * m_speedYaw));
Vector3 vd = m_tar - m_pos;
vd = m_matRot * vd;
m_tar = m_pos + vd;
m_up = m_matRot * m_up;
m_right = m_matRot * m_right;
m_speedFB = m_matRot * m_speedFB;

viewChanged = true;

Does anyone of you know what could be the reason why it hops there and doesnt with other movements?


Share this post

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

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!