Occlusion Test Actor

Step 0.

Knowing how 'Occlusion' works will greatly help you optimize performance.

Type console command, r.VisualizeOccludedPrimitives 1
This command shows the mesh covered by the green line. But it only works in the editor.


So In this article, we will make an actor to help us find distance and bound.



Step 1.

Create new StaticMeshActor.

Add two TextRender components and arrow component.
Check 'Use Attach Parent Bound'.



Step 2.

Draw the distance to player character and Bound size. This is convenient to use with OcclusionCullVolume.



Step 3.

This is the result screen.






Step 4.

Type console command 'show bounds' to see more information.



Comments

Popular posts from this blog

Liquid material in a bottle

How to Make Circular Progress Bar(or Rounded Rectangle)

MatCap material