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"

Jagged edges on scene depth mask used to render 3D in UMG

Hi all,

I am trying to render 3D objects in my HUD. I have an UMG that gets drawn to the HUD. This UMG includes two images, one for a gray background and another for the material that has my object's RGB and the mask.

The 3D object is in my scene with a camera and two SceneCaptureComponent2Ds pointing at it. One for color one for masking.

I placed a scenecapture2D and made a post process material for it following some tutorials. Here is the materialalt text This gives me the mask I use for the opacity channel. For the color channel, I used a 2nd capture, not set to depth but set to RGB.

Here is where I use one for the opacity and one for the color: alt text

Here is my problem, note the edges: alt text

All my RenderTextureTargets are 1024 and are drawn as 1024 images in my UMG. I also tried 2k and other options to no avail.

All help appreciated, Thanks in advance.

Product Version: UE 4.14
Tags:
postprocessmat.png (184.7 kB)
edges1.png (171.7 kB)
umgmat.png (249.0 kB)
more ▼

asked Dec 20 '16 at 06:39 AM in Rendering

avatar image

serulas
38 4 4 8

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

1 answer: sort voted first

Make background of the object - black.

It is the clouds color what is leaking through border of the mask.

more ▼

answered Dec 30 '16 at 11:00 PM

avatar image

S-ed
1.4k 27 23 47

avatar image serulas Jan 01 '17 at 09:58 PM

Thank you! I deleted everything that gave any kind of color to my sky, now that it has a black background, nothing is leaking in.

Cheers!

(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