Click to See Complete Forum and Search --> : User's interaction with Direct3D?


Cvele
January 15th, 2007, 04:39 AM
I got a panel on my main form. Direct3d is rendering on that panel. I want to move (simple translatory movement) a camera by X and Y axises using mouse. Problem is I dunno a ratio between 1 pixel size and D3D unit size.

Please help, only with some theory, not code.
Thanx!

Cvele
January 15th, 2007, 09:19 AM
Ok, I could use any kind of help, including code, please :wave:

Cvele
January 16th, 2007, 07:52 AM
Even a random guess would do, if nothing better is possible?

Cvele
January 17th, 2007, 06:09 AM
I forgot to say that speed of camera should increase proportionally to camera's Z value (height, zoom)!

Maybe I should make some Vector3 based on camera location and screen position of cursor * camera height i.e. zoom??? And maybe some constant should be added to the mixture?

Somebody?