# Heavy Nanite Bug. Mesh Disappears at Distance

**URL:** <https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116>\
**Category:** Rendering\
**Tags:** unreal-engine, UE5-0, Rendering, question\
**Created:** [June 4, 2022, 6:04pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116 "2022-06-04T18:04:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bestvegeta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bestvegeta](https://forums.unrealengine.com/u/Bestvegeta)\
**Post date:** [June 4, 2022, 6:04pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/1 "2022-06-04T18:04:26Z")

</div>

Hey,

I have a problem with Nanite.

When i enable Nanite on my meshes, the mesh will disappear at certain distances. Watch the video for example.

The left mesh has Nanite enabled and the right one has it disabled. It happens with every mesh that has Nanite enabled.

I tried alot already. My Windows and my drivers are up-to-date and im using DirectX12 in the engine.

The mesh is a regular mesh from Quixel Bridge.

I didn’t had this problem in version 5.0 EA2

Anyone else having this problem? Or can replicate that? Someone know what i could do?

[https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/3/3b3243e801a3b67ca44799ee4e27f62b80c71b0f.mp4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/3/3b3243e801a3b67ca44799ee4e27f62b80c71b0f.mp4)

---

<div class="post-metadata">

**Author:** ![Bestvegeta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bestvegeta](https://forums.unrealengine.com/u/Bestvegeta)\
**Post date:** [June 5, 2022, 8:24am UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/2 "2022-06-05T08:24:40Z")

</div>

So i did so more testing.

I found out that this bug has to do something with the location.  
For example: When i place the Nanite mesh at 0,0,0 in world location, everything works fine and the mesh does NOT disappear/pop in.

But when i place the mesh at 0,200000,0 in world location for example , then this bugs start to occur and the mesh starts to disappear when i move away with the camera.  
So it seems that Nanite gets some problems with meshes that are placed further away from world origin.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [June 5, 2022, 9:09am UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/3 "2022-06-05T09:09:52Z")

</div>

Hi, Check static mesh LODs configuration. Maybe it is relationed with triangles reduction. I had some problems using Nanite+LODs too. And i solved it (more o less) changing a little bit the LODs configuration… and if you are using DIRECTX11 probably Nanite wont work. Update to DIRECTX12.

---

<div class="post-metadata">

**Author:** ![July014](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@July014](https://forums.unrealengine.com/u/July014)\
**Post date:** [July 2, 2022, 8:04pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/4 "2022-07-02T20:04:55Z")

</div>

I have the same problem.  
It makes me crazy.

Have you found a solution?

---

<div class="post-metadata">

**Author:** ![Bestvegeta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bestvegeta](https://forums.unrealengine.com/u/Bestvegeta)\
**Post date:** [July 3, 2022, 7:24pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/5 "2022-07-03T19:24:18Z")

</div>

> [@July014](#):
>
> I have the same problem.  
> It makes me crazy.
> 
> Have you found a solution?

Yes i did. It is not a solution, more a wacky workaround.  
You have to increase the bounding box of your meshes.  
So in your content browser go to your mesh, double click on it so Mesh editor window pops up.  
Then on the right panel search for"bounds", increase bounding box until it fixes your problem.

---

<div class="post-metadata">

**Author:** ![July014](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@July014](https://forums.unrealengine.com/u/July014)\
**Post date:** [July 4, 2022, 8:21am UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/6 "2022-07-04T08:21:35Z")

</div>

I am using a mesh bounding box to calculate the mesh size. If I change it, will this influence the result of the calculation?

---

<div class="post-metadata">

**Author:** ![Eric\_A.Navarra](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eric\_A.Navarra](https://forums.unrealengine.com/u/Eric_A.Navarra)\
**Post date:** [July 18, 2022, 9:26pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/7 "2022-07-18T21:26:31Z")

</div>

Hi,

Open your Mesh / Asset, under “Details” search for “LOD Settings”, change the LOD Group to “LevelArchitecture”, then Reimport the mesh (upper left corner).  
Hope it works for you! - same method was used in Epic’s City Sample Project, even has a custom LOD Group!

Best wishes,  
Eric A. Navarra

---

<div class="post-metadata">

**Author:** ![Bestvegeta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bestvegeta](https://forums.unrealengine.com/u/Bestvegeta)\
**Post date:** [July 22, 2022, 6:54pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/8 "2022-07-22T18:54:55Z")

</div>

> [@Eric\_A.Navarra](#):
>
> Hi,
> 
> Open your Mesh / Asset, under “Details” search for “LOD Settings”, change the LOD Group to “LevelArchitecture”, then Reimport the mesh (upper left corner).  
> Hope it works for you! - same method was used in Epic’s City Sample Project, even has a custom LOD Group!
> 
> Best wishes,  
> Eric A. Navarra

Hey,

I tried out your answer but sadly that didn’t fix the problem.  
I appreciate the effort but i think its just a bug at this point.  
In UE5 Early Access, Nanite worked like intended. Not fumbling around with LOD Settings and such. But again, the only method what works for me now is to increase the bounds of the meshes.

---

<div class="post-metadata">

**Author:** ![reinaldo.gonzale](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@reinaldo.gonzale](https://forums.unrealengine.com/u/reinaldo.gonzale)\
**Post date:** [August 4, 2022, 3:09pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/9 "2022-08-04T15:09:59Z")

</div>

Well your wacky workarround works, it is the only trick have worked for me

---

<div class="post-metadata">

**Author:** ![July014](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@July014](https://forums.unrealengine.com/u/July014)\
**Post date:** [August 12, 2022, 4:10am UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/10 "2022-08-12T04:10:51Z")

</div>

Finally Fixed the issue 😅:  
Just add these settings to your DefaultEngine file.

> [/Script/Engine.RendererSettings]  
> r.Nanite.CoarseMeshStreaming=True  
> r.Nanite.ProxyRenderMode=2
> 
> [SystemSettings]  
> r.Shadow.Virtual.NonNanite.IncludeInCoarsePages=0
> 
> ; Imposters are not necessary because of HLOD  
> r.Nanite.Streaming.Imposters=0
> 
> ; Set initial size to we prevent a resize to 6144 at the transition to chase  
> r.Nanite.Streaming.NumInitialRootPages=5120
> 
> ; Increase the number of Nanite nodes to prevent some visual issues.  
> r.Nanite.MaxNodes=2621440

I got this information from CitySample Project Epic made.  
Finally!!!

---

<div class="post-metadata">

**Author:** ![Bestvegeta](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bestvegeta](https://forums.unrealengine.com/u/Bestvegeta)\
**Post date:** [August 21, 2022, 1:05am UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/11 "2022-08-21T01:05:05Z")

</div>

Wow, thats interesting.  
I will try that later. But i do wonder why this is not enabled by default.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a0fadbe9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a0fadbe9](https://forums.unrealengine.com/u/anonymous_user_a0fadbe9)\
**Post date:** [September 21, 2022, 8:44am UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/12 "2022-09-21T08:44:31Z")

</div>

[/Script/Engine.RendererSettings]  
r.Nanite.CoarseMeshStreaming=True  
r.Nanite.ProxyRenderMode=2

[SystemSettings]  
r.Shadow.Virtual.NonNanite.IncludeInCoarsePages=0

; Imposters are not necessary because of HLOD  
r.Nanite.Streaming.Imposters=0

; Set initial size to we prevent a resize to 6144 at the transition to chase  
r.Nanite.Streaming.NumInitialRootPages=5120

; Increase the number of Nanite nodes to prevent some visual issues.  
r.Nanite.MaxNodes=2621440  
[/quote]  
I think the Nanite has some issue. it was not solved.

Hi, July014. your script didn’t work. **In fact none of the given solution solved my issue.** 😔

I copied the settings scrips into the DefaultEngine.ini  
here is the .ini look of the script

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/8/1f85e1001bc026977b922be924238c4cd8137e4d.png)

I tried changing the Collision box scale

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/9/9e96279c84a44e8ba6f6151b739bb884e3ecb9d0.jpeg)

I tried to change the Bounds extension. Increased it from 0 to 1000000  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/b/3fb0d60be5dd4b2f1f6fd2b14e9e5045f913519f.png)

and  
I also tried changing “LOD Settings” LOD Group to “LevelArchitecture”,

**!!! None of them work. !!!**

In my case I am using a speed tree asset as foliage.  
I tried to import the tree in to the scene both as foliage and as simple static mesh in to the level. But it does not work.

If I go far away from the tree it starts to disappear the leaves and at some longest distance I start to lose the tree branches.  
here is the screen shot.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/0/950a18ae380d77320adebf5155018e90df704d4d.jpeg)

**If some one found any real solution please let us have it.**

And @July014 I think it is not related to the DefaultEngine settings of the project. because I literally imported my tree into the Matrix city sample you are talking about. and it still have the same issue.

close distance screen shot

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/2/392268606b1696b113af05d71c3fadc43459b2c5.jpeg)

medium distance screen shot

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/5/8b541b8e2a311ff95fe99c81fac4c6d92532aaac.jpeg)

far distance screen shot

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/5/c/a5ce4a0147edf9c0dfa30990d23b90bab07f9f0a.jpeg)

---

<div class="post-metadata">

**Author:** ![Arkiras](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arkiras/32/1008648_2.png) [@Arkiras](https://forums.unrealengine.com/u/Arkiras)\
**Post date:** [September 21, 2022, 9:31pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/13 "2022-09-21T21:31:14Z")

</div>

> [@anonymous\_user\_a0fadbe9](#):
>
> In my case I am using a speed tree asset as foliage.

> [@anonymous\_user\_a0fadbe9](#):
>
> **In fact none of the given solution solved my issue**

None of them work because this is just inherent to the way Nanite works. Nanite simplifies meshes by collapsing edges, this approach will not work on foliage.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a0fadbe9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a0fadbe9](https://forums.unrealengine.com/u/anonymous_user_a0fadbe9)\
**Post date:** [September 22, 2022, 4:29am UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/14 "2022-09-22T04:29:14Z")

</div>

Thanks for your reply.  
I would love to know if there is any other way to solve my problem. Thanks in advanced.

---

<div class="post-metadata">

**Author:** ![July014](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@July014](https://forums.unrealengine.com/u/July014)\
**Post date:** [October 6, 2022, 3:39pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/15 "2022-10-06T15:39:26Z")

</div>

Hi @anonymous_user_a0fadbe9 ,

I discovered that the script from Matrix city only works for Nanite mesh rather than foliage.  
For foliage, we may wait for ue5.1.

---

<div class="post-metadata">

**Author:** ![PeaceSells](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/peacesells/32/778010_2.png) [@PeaceSells](https://forums.unrealengine.com/u/PeaceSells)\
**Post date:** [October 24, 2022, 5:29pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/16 "2022-10-24T17:29:11Z")

</div>

It seems that the issue was fixed, or at least much improved, in 5.1 PREVIEW 2…

---

<div class="post-metadata">

**Author:** ![jarnosrt8](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jarnosrt8/32/469649_2.png) [@jarnosrt8](https://forums.unrealengine.com/u/jarnosrt8)\
**Post date:** [October 30, 2022, 5:59pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/17 "2022-10-30T17:59:51Z")

</div>

5.1 Preview 2: the grass disappears when we are 3 meters away from it…

---

<div class="post-metadata">

**Author:** ![PeaceSells](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/peacesells/32/778010_2.png) [@PeaceSells](https://forums.unrealengine.com/u/PeaceSells)\
**Post date:** [October 31, 2022, 5:35pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/18 "2022-10-31T17:35:02Z")

</div>

I’m using nanite foliage in 5.1 preview 2 and it’s being rendered (including it’s shadow) up to very far… but I don’t know about grass since I’m not using it… I guess the distance it stops rendering is proportional to the meshe’s size, maybe the grass is smaller and only renders close… I don’t know…

 ![Capture](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/9/ef9d4a6e6608fb42724e9e8207a72c778fd14235.jpeg)

---

<div class="post-metadata">

**Author:** ![Juanmilanese](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/juanmilanese/32/88709_2.png) [@Juanmilanese](https://forums.unrealengine.com/u/Juanmilanese)\
**Post date:** [November 28, 2022, 5:02pm UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/19 "2022-11-28T17:02:30Z")

</div>

yeah, move the project to 5.1 and enable the “preserve volume” flag in your foliage. That should fix the leaves disapearing

---

<div class="post-metadata">

**Author:** ![greatding](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@greatding](https://forums.unrealengine.com/u/greatding)\
**Post date:** [December 28, 2022, 5:06am UTC](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116/20 "2022-12-28T05:06:03Z")

</div>

hello!I got them same problem a few days ago.I already solved it.You should check out this:

> [@Why does my foliage almost disappear when I move further away?](https://forums.unrealengine.com/t/why-does-my-foliage-almost-disappear-when-i-move-further-away/214402):
>
> I’m doing a fly-through render and when I render far away from these Evermotion trees they lose detail - My cinecamera has an LOD drop down with low-medium-high settings but it doesn’t appear to make a difference. I also turned off ‘auto compute LODs’ and set the LOD screen space on all meshes to 1, no difference, the trees themselves only seem to have LOD ‘0’. In the foliage painter there is a cull setting but that makes no difference either. I’ve looked into LODs for the meshes, material set…

Change the OpacityMaskClip to 0.1

[Next page](https://forums.unrealengine.com/t/heavy-nanite-bug-mesh-disappears-at-distance/574116.md?page=2)
