# Nanite Mesh Foliage and Occlusion Masking?

**URL:** <https://forums.unrealengine.com/t/nanite-mesh-foliage-and-occlusion-masking/1308075>\
**Category:** World Creation\
**Tags:** occlusion, occlusion-culling, unreal-engine, Foliage, staticmesh, Nanite, question, UE503\
**Created:** [September 22, 2023, 5:19pm UTC](https://forums.unrealengine.com/t/nanite-mesh-foliage-and-occlusion-masking/1308075 "2023-09-22T17:19:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [September 22, 2023, 5:19pm UTC](https://forums.unrealengine.com/t/nanite-mesh-foliage-and-occlusion-masking/1308075/1 "2023-09-22T17:19:51Z")

</div>

I’ve a Question about Trees and Nanite… And my Occlusion Masking Material…

Since my Game is TopDown and Trees would overlap everything visible to the Player… I need to Mask out a circular area around the Player by Occlusion masking…

This is the Tutorial i followed here:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/3/1635caf766bd82c751c535ec09ce749c2d447f6c.jpeg "UE4 Tutorial: Occlusion Masking") ](https://www.youtube.com/watch?v=O6W7pLF2GwU)

(Just added a Simple AA Dithering to the Mask effect)  
(trees are Static Meshes exported from Simple Tree Generator, and activated Nanite in them)

I added the Material Function to the Materials of my Trees… And it worked… But… The Trees should be Nanite meshes… Since of a higher polycount… But that seems to get rejected cause of a masked Material…

How would one do such an “look-thru” effect for things like walls, trees, roofs…etc. If masking a hole into the view to show the player and his surroundings is not working?
