Original Post
Hi Guys, Just wondering how I would achive the following. I'm fairly new to opengl so please forgive me if it's simple. To cut a long story short i'm constructing a simple modelling program - I want to be able to move along the local camera axis a particular distance according to user input from the mouse. This is all well and good and I have acheived this so far - however, the scene's translation is not based on the current view matrix - it is based on a fixed amount and therefore when I zoom in close to objects, the translation is much larger than when I am zoomed out - so my question would be - how can I convert a particular distance in pixels (i.e. a mouse drag) into the appropriate translation based on the current view transform - the end result being that no matter where I am in the scene, the geometry under the mouse is translated the same distance as the mouse. I hope this is clear enough, if not let me know and any help would be more than appreciated. Kind Regards, Chris