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"

Matching color in render texture that is the result of a SceneCapture2D with original scene render

I have captured my scene from my first person camera position using a SceneCapture2D in order to use the resulting texture in a post process material.

I noticed considerable color differences between the scene rendered by the camera and the scene captured by the SceneCapture2D, which is obviously not what I want.

I found this forum post https://forums.unrealengine.com/showthread.php?51133-Postprocessing-pipeline-is-FUBAR!&highlight=devast3d in which the same issue was described and a solution to get matching colors was given. Namely:

SceneCapture2D component - set CaptureSource to LDR

RenderTarget asset - HDR off, TargetGamma 2.2

Inside postprocess material - SceneTexture's SamplerType is LinearColor

I followed these steps but if I set my SamplerType to LinearColor I get an error in my material "Error [SM5] (Node TextureSample) TextureSample> Sampler type is Linear Color, should be Color for /Game/Textures/SceneColor.SceneColor"

The material still renders correctly (except for an unsightly vignette which I guess is trying to tell me there is a problem).

The issue is that unless I set the sampler type to linear color I don't get a color match with the render from the first person camera (which is obviously the result I desire).

I have attached 3 screen grabs of the different renders:

RenderFirstPersonCamera - The scene rendered with no post process material PostProcessTextureSample_LinearColorSampleType - The scene rendered with post process material that samples the output from the SceneCapture2D rendertarget using a linear color sample type and outputs the result at each pixel PostProcessTextureSample_ColorSampleType - The scene rendered with post process material that samples the output from the SceneCapture2D rendertarget using a color sample type and outputs the result at each pixel

You can see from the screenshots that PostProcessTextureSample_LinearColorSampleType.png matches the colors of the first person camera shot. Unfortunately it has the unsightly error vignette.

Is there any way to ignore the error and get rid of the vignette? If not is there an alternative way of getting the colors to match?

Regards,

Phil

Product Version: Not Selected
Tags:
more ▼

asked Nov 11 '14 at 04:42 PM in Rendering

avatar image

PhilMaguire
11 4 4 8

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

1 answer: sort voted first

Hey PhilMaguire -

From the initial directions that you were following use SceneTexture: PostProcessInput0 instead of SceneTexture:SceneColor and you should be able to set it as Linear Color. The Vingette is indeed there to show that the Post Process can not be rendered, its a visual error message.

Thank You

Eric Ketchum

more ▼

answered Nov 18 '14 at 11:04 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.6k 703 260 737

(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