Convert 2D Mouse Coordinates to atH and atV

  • Hi all,
    I am trying to use the current hlookat, vlookat and fov to calculate where the user's mouse is in atH and atV angle coordinates. I am not too sure how to go about this. I have placed a sprite over the entire viewing region an am implementing a mouse move listener. When the user moves the mouse I would like to know what atH and atV coordinate they are at. I figured that hlookat and vlookat represent the middle of screen and that the fov is used somehow to calculate the max and min horizonatal and veritcal angle. Any pointers on how to go about this would be much appreciated.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!