Can depth fade effect be faked using masked material?

I’m wondering if there’s a way to achieve the depth fade effect without using translucent materials.
Because translucent materials has a horrible performance.

And it seems can’t to use the depth fade node with masked materials
0

I just need to create circles on the surfaces

It would be great to be able to do the same with masked materials.

Any way to do this?
Thank you so much!!

I don’t think so, because masked only does on/off, not a fade like translucent.

1 Like

I think turning it off/on might work, that’s exactly what I have right now.

(I can’t upload the video here, I put it on GoogleDrive)

Although if it can’t be done with a mask maybe I can make the effect more elaborate and make it fade away.

1 Like

Nice.

I think you could make that particular effect ( except the refraction ) with masking, but you would have to drop the scene depth node, of course :wink:

1 Like

Ok… now I just need to figure out how to do it. :grinning_face:

The thing is that it must fit all surfaces.

1 Like

Distance fields?

1 Like

I’ll try.
Thank you very much. @ClockworkOcean

1 Like

Sort of ( first attempt )

( distance in the instance is actually about 25, remember to turn off DF for the ball )

Two sided is better

1 Like

That looks good.
I’m going to experiment with it.
Thank you so much !!

1 Like

mask

2 Likes

Awesome, that’s exactly what I need.

1 Like

Pretty good with some noise

noise2

( turn off shadow on the sphere mesh )

I recommend this pack

1 Like

What is DF? XD

My sphere is solid…

What is your material configuration?

1 Like

Turn off ‘affect distance fields’ on the mesh :slight_smile:

and ‘cast shadow’.

It won’t look right in the material preview, you have to preview it in the level ( material is above ). You also need distance fields turned on in project settings

1 Like

Something strange happens when I select → Software RayTracing/Generate Mesh Distance field.
I restart the editor… but when I look again the option is not checked.
I’ve done it three times.

I’m not sure if my graphics card supports Ray Tracing… maybe that’s the problem… (1080Ti) I’ll look into Google

1 Like

It’s a setting that’s been around for a while. I had a 1080 before this card, and it worked for me.

Try making a new project, and setting it?

Or try the console command

image

( although that does nothing for me :rofl: )

For some reason it is read only

RO

1 Like

Try a fresh project?

ok… i will… tell you in 5 minutes what happened

1 Like

The only other things I see are:

1 Are you project files in a secure environment? ( you would know if they were )

2 Do you have the latest engine?

3 You could try turning on DF ( using that command ) in the DefaultEngine.ini

I will check back laters… :star_struck: