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"

Is it possible to use a layered material for both an opacity mask and translucency?

Hey everyone, I'm trying to make a cool stealthing effect but I'm currently stuck between using an opacity mask to make an object completely vanish, and using refraction to create the classic "cloaked" effect. I followed the tutorial found here on how to do the dissolve effect and I'm using a basic translucent material with some refraction for the "Cloaked" effect.

Basically all I'd like to do is as the opacity mask takes over, the translucent material becomes visible underneath. I've tried using a seperate mesh and using the custom depth pass but I haven't found any concrete tutorials on how it even works or if it's even the correct approach. Any help would be greatly appreciated!!

Product Version: UE 4.12
more ▼

asked Jun 17 '16 at 05:52 PM in Rendering

avatar image

11 3 6

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

1 answer: sort voted first

The first approach you're talking about sounds like this: duplicate characters' polygons in the 3D package move them a bit "inside" (along their normals) so they don't interfere with the upper layer assign them a different material List item

Both meshes are rendered simultaneously, only with the upper one disappearing when the effect is active. The tutorial you're talking about doesn't mention DitherTemporalAA node. You could be interested in that - https://www.youtube.com/watch?v=ieHpTG_P8Q0

This method sounds valid and should work. But I think that it can cause performance problems. So the second method you mention (Custom Depth) probably works like this but using Custom Depth as a mask - http://imgur.com/cTcfqgD Do you know how to enable Custom Depth in character's mesh? I can provide some more info if you need.

EDIT: cloak effect using Custom Depth :) https://www.youtube.com/watch?v=9ZawosRVZrs Jump to 15:34 for the shader graph.

more ▼

answered Jun 17 '16 at 06:49 PM

avatar image

Oskar Świerad
408 13 31 29

avatar image Zygora Jun 17 '16 at 07:00 PM

I've looked into the DitherTemporalAA method along with a DitheredOpacity in the material settings. The downside is that the model I'm hoping to use this material on spin pretty quickly which cause the dithering to mess with the shape of the model.

I'm curious to hear more about how to use Custom Depth as a mask. Isn't Custom Depth a check box you enable on the characters mesh?

avatar image Oskar Świerad Jun 18 '16 at 11:00 PM

I recorded a video and edited the answer ;) Link at the end of the post

Also, Tom Looman's article is worth checking out. A more detailed explanation and more use cases: http://www.tomlooman.com/the-many-uses-of-custom-depth-in-unreal-4/

(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