First post, by Mplode
I posted about this issue a few years ago here: Re: Regressive bugs - report them here
Unfortunately it's still an issue with the latest version of the game, the latest version of dgVoodoo2, a new OS (Windows 11), and new hardware (GeForce RTX 4070). It seems to be a bug introduced with the "specialized FF vertex shaders" in dgVoodoo 2.76.
To confirm this, I used dgVoodoo 2.78.2 and set [DirectXExt] EnableSpecializedShaders to false and the game looks fine, and when set to true, the bug is visible.
I have identified the pixel shaders being used to render the terrain, but no amount of tinkering fixes it, even with AI helping. The best workaround I have found is tweaking the "num tiles" setting on the terrain textures being blended, which specifies how the textures are tiled/scaled. If all the tiled textures have a similar "num tiles" value, the bug is avoided, but if there is a large difference between any two textures, the latter can get rendered as a blurry/foggy mess.
For example, here's a snippet from one patch of a zone I have been testing:
base texture filename num tiles,tileablemud 256, 1h_leafy_mixed 350, 1browndirt2 256, 1h_ground_scrub 456, 1h_tinyPebbles 356, 1EmainMacha_color 1, 0h_cliff_rock2 100, 1h_leafy_round_alt 256, 1CamelotHills_forest_floor05 300, 1
So this patch has 9 textures, typically 512x512 or 1024x1024 dds files, and each set of 3 is combined with a 64x64 dds file (what AI calls a "splat map") where the RGB channels represent different textures.
With the default values shown above, the bug manifests and h_cliff_rock2 is rendered as a blur/fog. I don't know exactly what is happening, but I call it fog.
If I change h_ground_scrub and h_tinyPebbles to 256, the bug is avoided and everything looks good, although those two textures are scaled slightly wrong.
If I change everything to 500, the bug is avoided, but of course all the scaling looks wrong.
Sometimes CamelotHills_forest_floor05 will be the texture that gets rendered as fog.
Hope this is enough info to help you find and squash this bug, Dege. If not I can provide more info. dgVoodoo2 is absolutely magical in how it makes this old game feel more modern. Appreciate all your work.
