Instanced Static Mesh & Max Draw Distance?

Hi everyone,

I’ve made a Blueprint of a sidewalk as an Instanced Static Mesh for better performance. I place it on the map, increase the ‘mesh count’ variable, and it just repeats the same segment without using any extra Draw Calls.

This is how it works:

Trouble is when I set the Max Draw Distance, the segments of the sidewalk don’t disappear one-by-one as the camera moves away; as they would in a spline. Instead Max Draw Distance is only applied to the first segment, and when that disappears, all the other segments disappear with it.

Did I do something wrong, or is this the Max Draw Distance works with Instanced Static Meshes?

Thanks :yum:

The max draw distance is applied to the “ISM Component” … not the meshes individually.

You can use HISM and its LoD features. Have the lowest LoD use a transparent material. Just remember HISM’s LoD is cluster based.

But a transparent material won’t get rid of the vertices on screen which is what I’m trying to achieve. :face_with_raised_eyebrow:

I’ll have a look at HISM’s, thanks. :wink:

Up ? :slight_smile:

Did you find a way ?

the solution is to add a hierarchical instance static mesh component every(nth index) and add instance to the current hism
below code will also add hism component to 0th index and then every nth index you want