How to scale plane to fit screen

This is not a direct solution to the problem, but I ended up doing the following:

  • Calculated the vertical FOV through Rama’s Victory Plugin
  • To avoid the mesh rotation problem, I placed it always centered in the camera forward vector multiplied by the distance to the render area. This workaround made me realize that the procedural mesh was no longer needed, and scaling a static mesh did the trick.

However, another problem did come up. The movement of the plane is not smooth, and it shakes a lot along its translation or rotation. Not sure if it has something to do with the mesh being edited every frame, or if it is something to do with the VIVE controllers with which I am controlling the camera. Need to do further research on this.