CDK render distance problem

Is it possible to change the tree render distance in the Mission Editor? Around a year ago the CDK was updated so the trees seem to be rendered at max. 1500 meters. And since then - doing anything on air maps is almost impossible.

https://community.gaijin.net/issues/p/warthunder/i/o8zpZHIjDsah

1 Like

Anybody find a solution to this render distance issue?

The render distance of objects is determined by LOD (Level of Detail), which can be checked in the AssetViewer. The numbers indicate how many meters away the object should switch to the next lower detail version. If there are no more LODs left, the object disapper.

I noticed that trees have relatively low LOD values, so I decided to increase them, but this didnt fully solve the problem.
For some trees, like mozdok_fir1, it works okay. I set the LOD value to very high value, and I can see that the mozdok trees cover the entire sample map. IMG1

However, for about 98% of the trees, it doesnt work. There seems to be a fixed limit or a bug in the CDK that causes these trees to disappear after (if i remember good) 1200 meters, even when the LOD values are set much higher. IMG2

I havent found exactly what causes this, but I did some tests and discovered something strange:
I created two identical rendinst models. The only difference is that the first one has a single LOD with a value of 9999, while the second one has two LODs, both also set to 9999. Theoretically, both models should disappear at the same distance, since they have the same LOD values. But somehow, model nr1 disappears much earlier, while the second one remains visible for longer.
Since in-game trees have more than one LOD and still disappears quickly, Im not sure what to think about this. IMG3 IMG4


Unfortunately, there is only one basic tree sample available to study, and without access to other in-game trees I wasnt able to solve this issue.

My only last idea is to somewhere set overrideRiLodRange or @override lod directive which is mentioned here: .blk File Format — Dagor Documentation documentation
But no idea in which config file should i put this and how.

One more thing: this problem does not exist in the official Dagor engine. After increasing the LOD values there, the entire map is properly covered with trees. So it seems to be something specific to the CDK. IMG5

1 Like