Increase cube render target resolution?
I'm using the cubeRenderTargets to output images for use as 360 degree stereo panoramas. Currently, there is a hard limit to the resolution that the cube renderTarget will go (2k). I'm aware that going this high, or higher will result in horrible performance, but that isn't a problem when rendering a stereoPano. I just set it up in Matinee and record a movie frameByFrame. I would like to go up to at least 4k for the renderTargets to get quality high enough to use in a gearVR or cardboard.
asked Jun 13 '15 at 03:41 PM in Rendering
Hi 3dlight -
The MaxSize limit is hard coded into the engine source and is there to protect performance in a majority of cases. However you can get a source copy of the engine and change the MaxSize in the ...\Engine\Source\Runtime\Engine\Private\TextureRenderTargetCube.cpp approx. line 83
Change the 2048 to a power of two value as you require. Remember you will get some performance issues if used excessively and also remember that the engine itself has a texture size limit of 8192 and while you can set the value higher than that in the code above, using a render target of a higher value will cause massive performance loss in the engine.
answered Jun 25 '15 at 05:45 PM
Lovecraft_K ♦♦ STAFF
You'll have to compile/build your own custom version of the engine. Download the source from Github. Follow the directions to create the visual studio .sln (solution). edit the above mentioned .cpp file, and build source from VisualStudio. You'll then have a custom version of the engine that has a higher limit. I've done this, and at 4k, things get really slow, but it's usable if you have a good graphics card and are using it to output images, and not real-time playback. I was able to output 8k stereo (4k per eye/capture cube) without much problem other than slow interaction time. Good luck.
answered Oct 05 '15 at 03:49 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here