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"

Disabling Custom Depth Rendering on certain objects

In my project I have interact-able objects outlined to show that they can be interacted with.

The problem is that the outline is shown through the player mesh (third person template). Is there a way to make the outline not render through the player mesh?

alt text

Thanks!

Product Version: Not Selected
Tags:
more ▼

asked Nov 24 '14 at 04:43 AM in Rendering

avatar image

Tobbo
43 3 5 9

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

I know it is an old question but I wanted to share a way to achieve that effect since I couldn't find one anywhere. Just modify M_Highlight in the following way: To outline only unoccluded parts of objects: alt text

To outline only occluded parts of an object just switch the inputs of the if node (A>=B and A).

What it dose is the following: When we want to draw an outline we compare the depth value of the custom depth buffer and the depth value of the buffer at that uv. If the value of the depth buffer is less then the value of the custom depth buffer at that uv then it means that that uv is occluded and we discard the outline draw at that uv coordinate.

capture.png (238.1 kB)
more ▼

answered Apr 23 '15 at 08:49 AM

avatar image

lion032
981 31 80 55

avatar image paras.chaudhary Jun 02 '15 at 08:20 AM

I cannot thank you enough!

avatar image RaykHST Sep 27 '16 at 10:11 PM

Thanks so much ! When u change the upper SceneTexture:SceneColor to SceneTexture:PostProccessInput0 then it works with UDK 4.13 too.

avatar image DigitalCraze Jan 02 '19 at 05:10 AM

Dude! It's been years... but THANK YOU!!!! hahaha

(comments are locked)
10|2000 characters needed characters left

I assume the outline is implemented as PostprocessMaterial reading CustomDepth. You can read SceneDepth there as well and with some depth comparison you can mask or dim the areas you want.

more ▼

answered Nov 26 '14 at 04:38 PM

(comments are locked)
10|2000 characters needed characters left
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