niklasbanan

09-07-2015, 04:16 PM

Hey!

I suppose that in every new game that has an FOV(Field of view) slider in it adjusts the horizontal angle. The GLM perspective(fovy, aspect, near, far) matrix accepts an angle that is vertical.

How can I adjust the horizontal angle? Does the projection matrix calculate the relationship between the vertical/horizontal? example: if I set the vertical angle to 65 degrees, how many degrees is the horizontal angle? I know how to calculate from vertical to horizontal and from horizontal to vertical, https://en.wikipedia.org/wiki/Field_of_view_in_video_games.

If I let the user to adjust the horizontal angle with a slider and then convert it afterwards to vertical with the formula described at wikipedia, will this result in a correct relationship if I use the GLM perspective function with the converted horizontal angle?

Thanks

I suppose that in every new game that has an FOV(Field of view) slider in it adjusts the horizontal angle. The GLM perspective(fovy, aspect, near, far) matrix accepts an angle that is vertical.

How can I adjust the horizontal angle? Does the projection matrix calculate the relationship between the vertical/horizontal? example: if I set the vertical angle to 65 degrees, how many degrees is the horizontal angle? I know how to calculate from vertical to horizontal and from horizontal to vertical, https://en.wikipedia.org/wiki/Field_of_view_in_video_games.

If I let the user to adjust the horizontal angle with a slider and then convert it afterwards to vertical with the formula described at wikipedia, will this result in a correct relationship if I use the GLM perspective function with the converted horizontal angle?

Thanks