Jump to content
  • Advertisement
Sign in to follow this  
Lupe

Help on how to pan on directx

This topic is 3533 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 to everyone, I have implemented a grid on Directx on which i want to zoom and pan. I have implemented the zoom in/out functionality using an ortho projection but i would like some guidelines on implementing the panning. The idea that I'm trying to implement is when the user clicks and drags an area on the grid to move it appropriatly. I can't figure out where exactly to start. Any feedback is welcomed. Best, Lupe.

Share this post


Link to post
Share on other sites
Advertisement
Hi,

After some trial and error attempts I have implemented the pan functionality :) However, i have an issue and don't know exactly where to look into.

The user has to move the mouse very (very) slowly in order for the pan to take place at every mouse movement. Every time that the mouse changes its coordinates I adopt the camera's positions appropriatly. However, if you move the mouse at a normal speed, it seems that some of the positions are not taken into account and the pan is not executed along the entire mouse movement. What do you thing i shall check for?

Any feedback is much appreciated.

Best,
Lupe.

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!