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

UE4 projection matrix projects such
that clip space Z=1 is the near plane,
and Z=0 is the infinite far plane.

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 ?

https://forums.unrealengine.com/filedata/fetch?id=1777529&d=1592468478

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