Hide landscape foliage/grass where an actor is placed?

Hey! Took me a bit to get back to this. I’m assuming you have the basics of RVT setup with this. If not let me know and I’ll add that setup as well.

Plug this series of nodes up on your grass material. The scalar parameter will determine how much to apply the occlusion.

Set your default mask to zero by putting this in your landscape. I’m using the roughness channel but any black and white masking channel will do.

Screenshot 2022-04-11 161429

Then you want to run that mask into your landscape grass output.

Screenshot 2022-04-11 163911

For any meshes you want to apply the effect to, run a constant of 1 into the RVT output to ensure the RVT takes them into account.

Screenshot 2022-04-11 164137

So far my object looks like this.

Screenshot 2022-04-11 163100

Not doing anything. The last step is to tell the object to render to the Virtual Texture. In the object properties Find this area.

Screenshot 2022-04-11 164745

Click the plus to add an element. Select your RVT.

image_2022-04-11_165026753

Now it should look like this.

image_2022-04-11_165144690

If it doesn’t work right away you may need to tweak the grass parameter.

Hope this helps!

5 Likes