Help on how to pan on directx

Started by
0 comments, last by Lupe 15 years, 5 months ago
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.
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.

This topic is closed to new replies.

Advertisement