Page 1 of 1

Vehicles disappering behind the roads

Posted: 2017-01-19 21:01
by B4rr3l
Hi guys, I'm doing a PRject on classic Vanilla Maps for visual enhacements as you can see on some of the above pictures:

http://imgur.com/a/MCUPa

http://imgur.com/a/VaeUQ

http://imgur.com/a/WHQjY

Maps aren't ready yet but I'm having a big problem with one of the improvements.

I'm using the following Init.con addend:

renderer.globalBundleMeshLodDistanceScale 3
renderer.globalBundleMeshLodDistanceScale 3
renderer.globalSkinnedMeshLodDistanceScale 3
terrainCuller.lodSwitchDistance 120
terrainCuller.baseCellSize 128
terrainCuller.detailCullMaxLevel VD Based
renderer.roadLodDistMod 120
rem "renderer.disableFadeOnRoads 1"

Also using 120 for Undergrowth distance.

This part is for terrain detail improvement:

terrainCuller.lodSwitchDistance 120
terrainCuller.baseCellSize 128
terrainCuller.detailCullMaxLevel VD Based

And it works great except for the fact that Vehicles keep disappearing/fading behind the Roads when they goes over it. You can see the vehicle in the terrain but it just disappear as soon as it hit the road.
Tried the Road LOD distance lower than the Terrain Lod distance and also Higher but they don't seem to help.

Pleas Help, that will bring happiness for a lot of BF2 fans.

Re: Vehicles disappering behind the roads

Posted: 2017-01-19 21:26
by Rhino
Add this code to help change how much the roads "lift" off the ground at distance (which prevents zfighting btw) but the value will need some trial and error to get a good setting for no zfighting and as little lift as possible but the value below should work wellish.

Code: Select all

renderer.roadDepthBias -0.000005

Re: Vehicles disappering behind the roads

Posted: 2017-01-19 21:38
by B4rr3l
Will try, thanks a lot for the quick repply, love you man! I saw that command but didn't know how to use it.

Re: Vehicles disappering behind the roads

Posted: 2017-01-19 22:34
by B4rr3l
ok, tested -0.000005 but the wheels still not showing but was much better than a completely hidden vehicle, so I tried -0.000015 and the road gets way above the vehicle, So I've tired -0.000001 now and the vehicle is just over the Road as it should but now it starts flickering showing undergrowth beneath it, so I think -0.000003 is a good shot. But Why this game has suck a stupid bug, don't it have layers exacly for that? So Road should be over all of that and ende of discussion, stupid flickering problems, bridge are the same, just always show the last layer, when there is collision.... simple like that, my bet it will loose 3% performance and will look much better, there is flickering everywhere.

Even default vanilla maps has the same problem with roads hiding vehicles, I've checked, but is not that bad caus it uses a lower ROAD LOD distance.

Any way to change the FOV within a MAP level? Tried some commands at Init.co using 1.3 as floting value and they didn't change anything.

Thanks again!

Re: Vehicles disappering behind the roads

Posted: 2017-01-19 23:28
by B4rr3l
Yhere is only one Road problem I can't get rid off, in a juction between a dirt road and a tarmac one, the texture in the juction keeps flashing, changing between asphault and mud...any hint?