Download

How to use FSceneViewProjectionData ?

Hello everyone,

In my current project, I want to modify the projection matrix like described in http://csc.lsu.edu/~kooima/pdfs/gen-perspective.pdf. To do so, I’m using a SceneViewExtension overriding the SetupViewProjectionMatrix method. In this method, I set the ProjectionMatrix, ViewRotationMatrix and the ViewOrigin variables to the values obtained via the technique in the link.

However, even though this method appears to have an effect on the perspective, it doesn’t do what I expect it to do. The view seems to be greatly zoomed in.

I have read the doc on the ProjectionMatrix variable, which states

I’m not sure I understand what this implies for the matrix. Could it be this that prevents the following projection matrix from working as expected ?
projection-matrix.png

If anyone has any experience with this, your input will be greatly appreciated.