ravi.joshi53's picture

[CLOSED] Move the entire model in the screen


Is it possible to move the entire model rendered by OpenTK in the screen? During the process only the position of the model should change in the screen not the orientation. As an example it can follow the mouse cursor. Something similar to following-

Vector3 camera = new Vector3(0, 0, -7.5f);
Matrix4 lookAt = Matrix4.LookAt(camera, Vector3.Zero, Vector3.UnitY);
GL.LoadMatrix(ref lookAt);
GL.Translate(1 - 2 * Mouse.X / (float)Width, 1 - 2 * Mouse.Y / (float)Height, 0);

Instead of GL.Translate, I wonder if it is possible with camera .

Thank you


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ravi.joshi53's picture

This topic is a related to Zoom, Pan and Camera Orbit implemenation process in OpenTK

Hence close it.