How can I hide parts of mesh?

HI,

I need to hide a part of the mesh goes beyond the walls during the animation. Is there any way to hide it?

Thank you.

Maybe it can do it with special material?

Hey kirill_ul,

Could you provide a few screenshots so we can visualize what you are describing?

Thanks,

The screenshot door beyond the wall:

This is an expected result:

Below is presented a my solution:

Would you have objections to making the door as a separate mesh, and simply toggling its visibility once it reaches the point in which it is past the wall?

It’s impossible because part of right door mesh is still visible. Also part of the mesh door intersects the wall before the animation stops.

No problem, that was just the easier of the solutions. I did some digging and found what you are looking for is a Custom Depth material.

One of our content creators here at Epic put together a great page, all about the power of Custom Depth. Take a look at it, and I am sure you will find the correct process.

The Many Uses of Custom Depth

Let me know if you still have questions.

Cheers,

1 Like

I don’t understand how I can detect overlapped right door pixels using Custom depth buffer.

First solution with absolute world coordinates is wrong?

So I did some testing on my end, and with some help from another team member have narrowed it down to a few things that could be the reason as to why you are not seeing what you expect.

Since you have this plugged into your Opacity Mask, your object will clip out of view once it hits the masked clipping value. By default this is set to .33 or 33%, so any value above this is being rendered, and any value below is clipped out. You could try editing this value and adding a dither temporal AA node in conjunction so you get somewhat of a smooth “fade” as your door is rendered out.

I am currently working on this for my own knowledge as well so if you get the correct and expected result, I would love to see how you approached it.

Cheers,

In my solution I’m reached expected result. Door is hided by virtual plane described use parameter.

Thank you.

For anyone who wants to do basic mesh clipping and (like me) can’t make heads or tails of this thread, try from Epic.

Thank you…that is perfect

Video is unavailable now. What was it called?

This video has been made private. What was the topic of the video? Maybe we can look it up…

Bump, what was the video referenced ?