capnmidnight/Primrose

Rendered aspect ratio is wrong when canvas is wider than it is tall

Closed this issue · 0 comments

It's pretty close to being right when the window is full-screen, so it's not easy to tell. Try resizing the window down in the vertical axis and you'll see that objects get smashed horizontally. But if you resize the window so that the height is larger than the width, everything looks fine.

The location where the aspect ratio calculation occurs is in the StandardMonitorVRDisplay class.

I think the problem is that the vertical FOV is fixed and the horizontal FOV is calculated as a dependent value. It should probably swap if the width is larger than the height.

The FOV calculation may need to be researched and reconsidered. I don't know that I'm doing it correctly.