Quote:
in perspective view as well as most other applications. They just don't allow xyz to be modified simultaneously. I just want to predict a single x y OR z, not all 3.
Well, with a mouse you can update two axis at the same time, but you can make your program to update just one axist at one time if you want.
For doing just the PAN effect I dont use any complex math, really, but maybe in my editor i am not really interested in move objects at exact milimetric positions.
Like BlackSeeds tould, you can use windgets (or push butons that can be On/Off to tell which axis you want to update); then you use the "drag" mouse method, mean you clik and hold a mouse button, at that moment you save current x,y mouse position, then use an "On mouse move" event and there you check the new mouse x,y position and calc the displacement from the initial position and update your vertex position in the selected axis using the displacement from the X or Y mouse coordinate; if i have selected to update XZ then mouse X displacement will update X vertice coordinate, and Y mouse displacement will update Z vertice coordinate
Like i said i dont use any complex math, i just define how much units in world coordinate the vertice will be updated for any mouse x,y displacement; low factors will drag the vertice slowly, high factors will drag faster.
Now, for me this work becouse i really know what is the current position in world coordinate for all vertices in my model so i can add any displacement i want to any vertice; BUT if you only know the original model vertices and to that you have done a lot translation and rotation a matrix and then you use that matrix to show in screen the resulted transformed model then the above aproach will not work.