VR Preview/Mirror mode has black left/right bars

One of the most annoying things when you try to get a screen recording **using the ** of your game is the huge black borders on either side of the screen that look like this.


This is the default view for all UE4 games but there is a way to be able to change the view to wide screen without stretching the image.

1st You need to find and open a file called SteamVRRender.cpp This is the path for that file on my computer.


2nd Change it from this

RendererModule->DrawRectangle( RHICmdList, ViewportWidth / 4, 0, ViewportWidth / 2, ViewportHeight, 0.1f, 0.2f, 0.3f, 0.6f, FIntPoint(ViewportWidth, ViewportHeight), FIntPoint(1, 1), *VertexShader, EDRF_Default);


to this

RendererModule->DrawRectangle( RHICmdList, 0, 0, ViewportWidth, ViewportHeight, 0.0f, 0.3f, 0.4f, 0.4f, FIntPoint(ViewportWidth, ViewportHeight), FIntPoint(1, 1), *VertexShader, EDRF_Default);


3rd Save the change then rebuild the version of the engine you are using.

After that when I play the game in the project editor or a packaged game and I want to do a screen recording it goes from this before build


To this after build


Can you please include this fix in the standard engine build (4.15)? It should be easy to do, and as it is now it is plainly not possible to do a decent screen recording of a VR game when you have the .

Hello dkoding,

Thank you for providing that information. However, since you have a suggested fix for this issue already, I would suggest submitting that fix as a pull request on GitHub. That is our preferred method for receiving suggested fixes or new features… It will then be sent to the developers for further consideration. I have provided a link to Github. I hope that this information helps.

Link: https://github.com/EpicGames/UnrealEngine/compare

Make it a great day