Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.7
more ▼

asked Jun 13 '15 at 03:41 PM in Rendering

avatar image

168 11 21 24

avatar image 3dlight Jun 24 '15 at 02:33 PM

I've gotten zero response on this from answerHub and forums. I'm still wondering why this is a hard limitation.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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

const int32 MaxSize=2048;

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.

Thank you

Eric Ketchum

more ▼

answered Jun 25 '15 at 05:45 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 736

avatar image 3dlight Jun 25 '15 at 06:24 PM

Thanks! I'll give it a try! I'm aware the reasoning. Performance will certainly take a massive hit if you go higher. I just prefer to allow such things, since you never know how someone might want to use it. I'm thinking there are plenty of things you might do in the engine to kill performance, so hard-coding this one seems odd... but then again, there's probably tons of hard-coded limits in there to keep us from exploding our scenes;)

avatar image Franchi Oct 05 '15 at 02:20 PM

Hello Eric, 3dlight

I tried to do as you have explained, changed the .cpp files with a note editor (had to find a workaround to edit them because they are protected) anyway i have my modified .cpp file which i have then used to replace the original one in the engine.

Now what should i do exactly?? If i open the engine i still have the limit to 2k. What am i missing?

I am using UE4 4.8.3 downloaded from the launcher.

I´ll be really glad if you can guide me more step by step. Many thanks in advance!!

avatar image Lovecraft_K ♦♦ STAFF Oct 05 '15 at 02:50 PM

Hi Franchi -

The Launcher includes a protected Source for debugging purposes, if you are wanting to make changes to the source code you will need to get a GitHub version of the Engine. Here is some documentation to get you started:


Thank You

Eric Ketchum

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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.

more ▼

answered Oct 05 '15 at 03:49 PM

avatar image

168 11 21 24

avatar image Franchi Oct 05 '15 at 11:52 PM

Thank you very much guys, i´m going to give it a try!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question