Sign in to follow this  

Help on how to pan on directx

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

This topic is 3321 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this