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"

Render Target 2d Export PNG Appeared Darker

When I use CaptureScene2D to capture scene using "Final Color (LDR) in RGB", and store it in a RenderTarget2D with a RGBA8 format, the captured image is much darker than in viewport, And after I export it to a PNG file,it appears even darker,and with unwanted alpha channel.

alt text

What it should look like: alt text

Captured to aRenderTarget2d: alt text

Export to PNG,and import to UE to see how it look like: alt text alt text

BTW I use TAA for the capture and captured multiple times to get better TAA result. TAA works fine,but only darker. I simply want to capture the image which is exactly look like which is in viewport, What did I miss?

Product Version: UE 4.18
Tags:
more ▼

asked Aug 09 '18 at 04:47 PM in Rendering

avatar image

Nevets
31 1 2 3

avatar image papalqi Aug 18 '18 at 08:47 AM

Have you solved this problem?

avatar image Nevets Sep 01 '18 at 02:42 PM

Yes...well kinda... To get the same brightness in capture, I tweeked the postprocess\Tonemapper\Slope=1,Toe=0,and it gives me a relatively accaptable result. And to get the right PNG output,I set the render target gamma to 1.001. NOT 1, 1 will not work.., These settings solved my problem, but the result is still a little pale than the original image... I can't help myself to say this: Why O why is it so hard to get a simple render output ???

avatar image Nevets Nov 27 '18 at 04:42 PM

Hey I just found the solution! I found out that viewports are using gamma correction(=2.2) but the scene captures are not,so first set the gamma in render target to 2.2,then is the post proccess material, add a power node to the final result,(exp=2.2),then export to png,you will finally get the exact result like it's in the viewport.

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

0 answers: sort voted first
Be the first one to answer this question
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