# Precomputed visibility

**URL:** <https://forums.unrealengine.com/t/precomputed-visibility/356292>\
**Category:** World Creation\
**Tags:** precomputed-visibili, unreal-engine, Landscape, question\
**Created:** [May 3, 2016, 10:31am UTC](https://forums.unrealengine.com/t/precomputed-visibility/356292 "2016-05-03T10:31:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c94f194d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c94f194d](https://forums.unrealengine.com/u/anonymous_user_c94f194d)\
**Post date:** [May 3, 2016, 10:31am UTC](https://forums.unrealengine.com/t/precomputed-visibility/356292/1 "2016-05-03T10:31:00Z")

</div>

It seems that landscape does not occlude anything with precomputed visibility. This is major problem in outdoor levels. Is this bug or planned feature? Could there be option to allow landscape to contribute to occlusion?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [May 3, 2016, 2:31pm UTC](https://forums.unrealengine.com/t/precomputed-visibility/356292/2 "2016-05-03T14:31:06Z")

</div>

Hey Jenny,

This is not a feature currently, but there are reasons why. Make sure you have LODs established for your models, as well as using Cull Distance Volumes to cull out geometry and objects in your scene at specific distances. I also know that foliage can be marked with ‘Use as Occluder’ to allow foliage to occlude other objects as well.

Precomputed visibility is generally used for optimization of mobile projects so you can reduce the amount of geometry rendered to the screen. Perhaps you can explain what you are attempting to do, as there are always different approaches?

Thanks,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c94f194d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c94f194d](https://forums.unrealengine.com/u/anonymous_user_c94f194d)\
**Post date:** [May 4, 2016, 7:03am UTC](https://forums.unrealengine.com/t/precomputed-visibility/356292/3 "2016-05-04T07:03:58Z")

</div>

Our game is also targeted on mobile. What are the reasons not to allow landscape to occlude? I can only guess that lodding could cause some popping but that is also true for any static meshes with lods. Our outdoor scenes have lot of hills that are perfect ocluders and landscape would also occlude a lot of landscape components.  
It would just make sense to allow landscape to occlude instead of trying to work around that.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [May 4, 2016, 2:36pm UTC](https://forums.unrealengine.com/t/precomputed-visibility/356292/4 "2016-05-04T14:36:43Z")

</div>

Since there are a number of other ways to enable occlusion for foliage and actors alone, this has not been implemented for landscapes. We added a new feature in 4.12, where you now have the option to adjust the bounds for each landscape component by adjusting the Negative or Postive ZBounds Extension settings for the entire landscape or you can do override each component separately by using the component selection while in Landscape Mode.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [May 5, 2016, 5:49pm UTC](https://forums.unrealengine.com/t/precomputed-visibility/356292/5 "2016-05-05T17:49:53Z")

</div>

Hi Jenny,

I’ve entered UE-30368 for this one to be tracked and investigated.

Using the cvar FREEZERENDERING I can see that the landscape is not occluding the actors in the precomputed visibility cells when not within the camera view and when the camera is within the visibility cell.

This is the default view of what the objects should be like when viewed

 ![89556-default+view.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/8/e38b8545b5dd70daa1b791fa2e8aac3a9faac760.jpeg)

This is when the camera is on the other side of the mound and everything is occluded from view of the camera. I would expect that everything here is occluded, but instead it’s only the parts occluded by the static mesh from the cameras view point.

 ![89557-rendering+frozen.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/e/6ee8d5478fefc7906187d6980d7ce3bad1dae06d.jpeg)

Thank you for the report.

Tim

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c94f194d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c94f194d](https://forums.unrealengine.com/u/anonymous_user_c94f194d)\
**Post date:** [May 6, 2016, 8:10am UTC](https://forums.unrealengine.com/t/precomputed-visibility/356292/6 "2016-05-06T08:10:17Z")

</div>

Thanks for your answer. This will help our outdoor performance a ton when it’s fixed.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c94f194d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c94f194d](https://forums.unrealengine.com/u/anonymous_user_c94f194d)\
**Post date:** [September 25, 2016, 4:17pm UTC](https://forums.unrealengine.com/t/precomputed-visibility/356292/7 "2016-09-25T16:17:38Z")

</div>

> **[The Unreal Engine Issues and Bug Tracker](https://issues.unrealengine.com/issue/UE-30368)**
>
> Welcome to the Unreal Engine Issue and Bug Tracker. You can check the status of an issue and search for existing bugs. See latest bug fixes too.

Maybe I am readind the issue tracker wrong but I don’t think this describe problem clearly. “When using precomputed visibility on device for occlusion culling the landscape does not take the cameras view into account for culling objects when out of view of the camera and inside a visibility cell.”

Problem is just that landscape does not provide occlusion for static visibility. It also seems that this is backlogged. I hope it will be fixed sooner than later.

---

<div class="post-metadata">

**Author:** ![spacejumpunreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spacejumpunreal](https://forums.unrealengine.com/u/spacejumpunreal)\
**Post date:** [December 4, 2016, 8:55am UTC](https://forums.unrealengine.com/t/precomputed-visibility/356292/8 "2016-12-04T08:55:39Z")

</div>

after a very quick read of lightmass source code and experimenting, I think this “bug” has something to do with the flag used to trace visibility rays between cell and mesh bounding box. The flag used is LIGHTRAY\_STATIC\_AND\_OPAQUEONLY and setting it to LIGHTRAY\_NONE will allow landscape to occlude things behind it.  
My guess is that the material of landscpae is quite different from that of static mesh?  
Can anyone tell me what the real problem is?

---

<div class="post-metadata">

**Author:** ![spacejumpunreal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spacejumpunreal](https://forums.unrealengine.com/u/spacejumpunreal)\
**Post date:** [December 4, 2016, 8:59am UTC](https://forums.unrealengine.com/t/precomputed-visibility/356292/9 "2016-12-04T08:59:02Z")

</div>

If you really need it, maybe you could try modifiying lightmass yourself.  
It worked for me to change the flag used to trace visibility rays from LIGHTRAY\_STATIC\_AND\_OPAQUEONLY to LIGHTRAY\_NONE (UnrealEngine\Engine\Source\Programs\UnrealLightmass\Private\Lighting\PrecomputedVisibility.cpp).  
But I wish experts can explain why is landscape material not opaque by default.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c94f194d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c94f194d](https://forums.unrealengine.com/u/anonymous_user_c94f194d)\
**Post date:** [December 9, 2016, 9:02am UTC](https://forums.unrealengine.com/t/precomputed-visibility/356292/10 "2016-12-09T09:02:45Z")

</div>

I need to study this a bit. Maybe landscape is not static and opaque by default because of possibility to use landscape hole materials.(which we does not use.)
