Download

Hiding Meshs not in Camera View

Hi guys!

It is possible to automatically hide and unhide meshes which are not in Camera FOV, in real time. By hiding I mean the mesh visibility and unloaded from memory too, and opposite!

if anyone can help me to do it with a blueprint? any ideas.

thanks

This is generally called Occlusion Culling and it is in UE4, although it doesn’t unload the object from memory (cause it may come back in view).

Here is basic information on how UE4 handles it, and basic debugging occluded objects.
https://answers.unrealengine.com/questions/312646/how-does-object-occlusion-and-culling-work-in-ue4.html

Are you looking to destroy/garbage collect any objects that go off screen? Kind of like tappy chicken (Where things come into view, but onces they leave it doesn’t matter cause it should never come back?)

Thanks for the reply! the main reason i am looking for hide and off load meshes is for performance reason! I tried level streaming, in Editor it works pretty well! the level load and unload time was almost seem less, there was a small lag but it was ok! but for some reason when i compile the project, and run it from exe file. the lag of level streaming was very high, i had to wait for the objects to load and off load. same machine same setting, in Editor it was fine. thn I tried to use cull distance volume to counter the performance, but i got another strange issue! non of my imported mesh is able to cull by volume. if I add objects like box or sphere from editor, in the same scene thy work well with Volume. but non of my imported mesh works!! dont know how to make it work!