How to get set max draw distance working?

Create blueprint with some static mesh. Now somewhere in the blueprint (for example begin play) set Max Draw Distance. You will see that it isn’t working in game. The mesh is still visible even if Max Draw Distance was set to 1.

You first need to be using a Cull Distance Volume around any object that you want to be culled from view for the distance setting to be available.

You can then set the max draw distance but a value of 1 will not work unless you can get that close to the object. The value here is the distance in world space units from the center of the objects bounding sphere to the camera.

In my test I used a the SM_Chair from the starter content and had two in my scene. One as a control with no cull distance or cull volume around it. The second with the distance set to 0 for min and 500 for max and a cull distance volume surrounding it. When the camera reaches the 500 units from the objects bounding sphere center it will pop into view. The same for the minimum. If I set the min to 200 it will appear between the 500 and 200 unit space and disappear as I get even closer.

Thanks!

Tim

If you place Static Mesh or Particle System into your level and set Max Draw Distance you don’t need any Cull Distance Volume - it’s working I was thinking that it’s the same thing :slight_smile:

Can we add Cull Distance volume into the blueprint and it will work on Mobile?

Thanks Tim!

Yup, sorry, you’re right on the cull volume not needed. :slight_smile:

Cull Volumes cannot be directly added to the level blueprint or any other blueprints. You can reference the cull distance volume in the level blueprint though. Cull Distance Volumes will work on mobile.

Ok I think that there is misunderstanding here :slight_smile:

If you put Static Mesh into your level you can set Max Draw Distance and it will work.

If you create new blueprint add static mesh into it and use blueprint to change Max Desired Draw Distance (which have the same tooltip as static mesh in editor) it won’t work. Max Draw Distance won’t change even if you are changing it using Tick / Begin Play / Construction Script.

If Set Max Desired Draw Distance block isn’t working why it’s there? :slight_smile:

Sorry about that. I didn’t initially test it in a Blueprint. I made one but didn’t use it. Oops!

I was able to replicate this and have put in a bug report for that (TTP: 343936). You can set the values manually in the components tab but I could see where I was passing a value in to change the distance and it was being passed but not applied.

There is no timeline for when this will be fixed but I’ll be sure to update here when I get notice it has been addressed.

Thank you!

Tim

Thanks Tim! It shouldn’t be hard to fix this because changing MaxDrawDistance in-game in UE3 works. I need this for my procedurally generated dungeons on mobile so i have good draw calls. Don’t rush - i can work without the fix.

Thanks again!

btw is there any way to check all of the TTPs somehow?

It looks like Max Draw Distance is not at all working anymore. While Min Draw Distance is working fine everywhere. Using 4.12

Edit: Turns out Max Draw Distance is not working in editor but in play while Min Draw Distance is working in both. That was pretty confusing. Would still be nice to get it working in editor so you can instantly see the distance and setup values accordingly.

You have to use the keyboard shortcut G for Game View.

1 Like

Just a note that max desired draw distance will only work on meshes that are movable.

268430-capture.png