x

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"

SceneTexture: Scene input without post processing

How can I get a Scene Texture:PostProcessInput0 without post processing? The idea is to mask the effect to a portion of the screen, like they did here: https://forums.unrealengine.com/showthread.php?70143-So-Blurred-glass-material-is-impossible-in-Unreal-Engine-4&p=293408&viewfull=1#post293408

SceneColor is not working anymore. Here's a screenshot:

alt text

thanks

Product Version: UE 4.9
Tags:
more ▼

asked Oct 08 '15 at 08:33 AM in Rendering

avatar image

starfighterdude
144 15 23 145

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

1 answer: sort voted first

Hello brunogruber,

Although this function worked in 4.8 this is no longer valid in 4.9. This the SceneTexture:SceneColor not working in 4.9 is by design.

As the source code is available I suggest you comment the error in code and quite likely you content will work again (if not the solution below would be needed). We are doing engine optimizations and this change prevents some optimizations which haven't been finished yet. Let me explain a bit: SceneTexture:SceneColor gives access to a intermediate rendertarget which is needed only during lighting. For postprocessing we want to free it and reuse the memory for the postprocessing. This is especially important for hardware like the XboxOne. I suspect many uses wanted to do color manipulations and did them by reading SceneColor - it seems the right thing to do. This goes wrong with TemporalAA as SceneColor is jittered and it looks bad. It also looks wrong with multiple PostProcessMaterials in a chain where you don't get the data from the one before. PostProcessInput0 has that data and that is why the error message mentions this. The PostProcessing UI doesn't make that clear and this is why we want to prevent that access. The correct fix would be to do reference counting on the SceneColor to keep it alive until no longer needed.

Logan

more ▼

answered Oct 08 '15 at 05:01 PM

avatar image EdWasHere Oct 09 '15 at 04:49 PM

Hi, I'm interested in this topic, as I used scenecolor like in this screenshot for various effect. @Logan Bailey: What do you mean by: "I suggest you comment the error in code and quite likely you content will work again ". What exactly are we supposed to do? And when you say: "this change prevents some optimizations which haven't been finished yet", do you mean that scenecolor will work again like in 4.8 when these optimizations will be finished? Cheers Ed

avatar image kingcrimson May 22 '17 at 06:08 PM

any update on this topic? how to reference the original scene input in engine 4.12 and above ?

avatar image redbox May 22 '17 at 07:18 PM

for what? blur effect? you can do this with spiral blur function

https://wiki.unrealengine.com/How_To_Use_The_Spiral_Blur_Material_Node

(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