PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Unnormales Textur Flimmern mit AF und teils nur mit MSAA (Stalker)


Wolfi
2016-09-10, 14:21:12
Hallo Miteinander


Vieleicht weiss jemand rat woran es liegt.

Habe hier mit heftigem Textur Flimmern unter Stalker und neueren Treibern zu kämpfen. (Erste Stalker Teil Vanila)

Statische Beleuchtung (Mit Dynamischer Beleuchtung ist es auch, aber mit Statischer sieht man besser das es ein Problem der Textur Filterung ist)
Teststelle gleich bei Spielanfang die Strasse.

Treiber 368.81 GTX980Ti und GTX460 gleiches verhalten. (Texture Filter Qualität ist natürlich auf hohe Qualität)
Ohne AF AA = Kein Textur Flimmern
Mit 16xAF = Textur Flimmern (Nur unter Win7, unter WinXP kein Flimmern, dort saubere AF Filterung, es geht also generell)
Mit 16xAF + 4MSAA = Textur Flimmern (Sowohl Win7 als auch WinXP)

Mit der GTX460 und altem 260.99 Treiber gibt es generell kein Flimmern (Win7 + WinXP), benutze ich den neuen 368.81 mit der GTX 460 hatt sie das gleiche Flimmerverhalten.

Lösungen
Mipman per Inspector Verschieben beseitigt das Flimmern nicht. (Mipmap verschieben scheint nicht zu Funktionieren)
AA Kompatibilität bit Ändern oder Löschen, bringt nichts. (Zumal nur unter WinXP AA das Flimmern auslöst, unter Win7 ist es Generell)
Einziege abhilfe ist SSAA, aber das kann doch nicht die einziege lösung sein.


Bei anderen Spielen scheint es erstmal keine derartigen Probleme zu geben.
Aber bei Stalker flimmert die strassentextur mit AF im Nachbereich als ob die Mipmap völlig verschoben ist.
Früher war das AF dort in Ordnung, jetzt nicht mehr.

Guzz
2016-09-11, 21:36:34
By default, game uses value MIPMAPLODBIAS = -0.5
https://abload.de/thumb/stkm7q5j.png (https://abload.de/img/stkm7q5j.png)

Negative lod bias value cause texture flickering.

To avoid texture flicker:

You can patch XR_3DA.exe file to make MIPMAPLODBIAS = 0
Change bytes
57 6A 08 56 50
to
56 6A 08 56 50


You can patch video driver, so it will read any negative lod value as 0.
Copy nvd3dum.dll file from C:\Windows\SysWOW64\
to
S.T.A.L.K.E.R. Shadow of Chernobyl\bin\
Change bytes in nvd3dum.dll
74 05 0D 00 F0 FF FF 8B
to
74 05 0D FF FF FF FF 8B

At every driver update you should copy nvd3dum.dll to the game folder and patch it again.



You can make MIPMAPLODBIAS = 0 using game console
r1_tf_mipbias 0 - for static lighting
r2_tf_mipbias 0 - for dynamic lighting
You should write this command, at every game startup and after entering to a new location in game.

Wolfi
2016-09-12, 01:57:40
Very Very Thanks for reply and this Infos.
Yes, this resolve the Problem (Console r1_tf_mipbias 0)

It is Crazy, console and user.ltx already say mipbias is 0, but when i apply 0, texture flickering remove.

In next days i will patch with HEX Editor.
Have you also the name of nvidia dll in WinXP and the HEX values must be change ?

Have you find himself this bug ?, or have you a source for this ?



And i not understand why old driver 260.99 makes no texture flickering with 16AF on a GTX460.
The 368.81 makes Texture flickering on GTX460 + GTX980Ti in Win7 Every Time, in WinXP only with 4MSSA, Without MSAA no Texture Flickering.

Make i Clamp Switch off in 260.99, also no texture flickering, and clamp switch not help in 368.81



A other Strange thing.
Make i mip 0 in console, it removes texture flickering, but it makes also wood of Trees more Blurry.
Please look at Screenshots.

On WinXP mip 0 makes Trees Blurry (Street not much more Blurry, and mip 0 is no Texture Flickering, same flickering without mip 0)

16AF
http://thumbnails116.imagebam.com/50403/07a8bf504025141.jpg (http://www.imagebam.com/image/07a8bf504025141)

16AF mip 0
http://thumbnails115.imagebam.com/50403/a98fcb504025143.jpg (http://www.imagebam.com/image/a98fcb504025143)




On Win7 mip 0 removes flickering Street Texture and makes Trees Blurry.

16AF
http://thumbnails115.imagebam.com/50403/f8141b504025144.jpg (http://www.imagebam.com/image/f8141b504025144)

16AF mip 0
http://thumbnails116.imagebam.com/50403/5d32d4504025145.jpg (http://www.imagebam.com/image/5d32d4504025145)

Guzz
2016-09-12, 11:33:01
It is Crazy, console and user.ltx already say mipbias is 0, but when i apply 0, texture flickering remove.
This is a game bug, game reads setting "r1_tf_mipbias 0" and "r2_tf_mipbias 0" is too early. So, no matter what value will be in user.ltx.

In next days i will patch with HEX Editor.
Have you also the name of nvidia dll in WinXP and the HEX values must be change ?
Can't help with XP driver. It work in ring 0, and debug it much harder.
But instead of patched driver, you can use modifed d3d9.dll file. Just copy it to the game folder.
It will read all MIPMAPLODBIAS negative values as 0.

Have you find himself this bug ?, or have you a source for this ?
Himself.


And i not understand why old driver 260.99 makes no texture flickering with 16AF on a GTX460.
I guess, that in this driver "Negative LOD Bias Clamp" option is not broken yet.
So, when you force 16xAF HQ in driver, it reads -0.5 mipbias value as 0, and you get no texture flicker.



Make i Clamp Switch off in 260.99, also no texture flickering, and clamp switch not help in 368.81
Nvidia wrote in release notes about broken this feature, starting 310.64, but I think it broke at much earlier driver version.

http://us.download.nvidia.com/Windows/310.64/310.64-winxp-desktop-release-notes.pdf
Negative LOD Bias Clamp
Negative LOD bias clamp for DirectX applications is not supported on Fermi-based GPUs and later.



A other Strange thing.
Make i mip 0 in console, it removes texture flickering, but it makes also wood of Trees more Blurry.
Please look at Screenshots.
This is a normal thing, this is how a mipmap works.
-3.0:
https://abload.de/thumb/3-dpsdl.png (https://abload.de/img/3-dpsdl.png)

0:
https://abload.de/thumb/07aslp.png (https://abload.de/img/07aslp.png)

+3.0:
https://abload.de/thumb/3jds4s.png (https://abload.de/img/3jds4s.png)

Wolfi
2016-09-12, 23:31:44
Very Thanks for Infos.

Have you the HEX Values for your Patched d3d9.dll and can write here ?



A other little Problem, maybe you know a resolution (It looks You know good the stalker Technics)
Stalker was maked for 4:3 Monitors, use 16:9 example, make the Hud and Gun Optics to wide.
Maybe this can patch also with a HEX Value ?

Clear Sky + Cop not have this problem.

Wolfi
2016-09-14, 14:22:36
I not find the "57 6A 08 56 50" in my Original 1.0006 XR_3DA.exe with copy Protection (6.251.200 Bytes)

Which Version you used ?
How can i find in my XR_3DA.exe the Value for MipBias 0 ?



The "74 05 0D 00 F0 FF FF 8B" i found in nvd3dum.dll and it works, but i prefer patch the exe.

Guzz
2016-09-14, 15:45:45
Have you the HEX Values for your Patched d3d9.dll and can write here ?
Will work only with d3d9.dll 5.03.2600.5512 (xpsp.080413-0845)


change bytes:
8B 4D F4 8B 45 08 5F 5E 64 89 0D 00 00 00 00 5B 8B E5 5D C2 10 00 CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC 8B FF 55 8B EC
to

8B 4D F4 8B 45 08 5F 5E 64 89 0D 00 00 00 00 5B 8B E5 5D C2 10 00 CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC E9 1E 3C 0B 00

change bytes:
89 3E 89 46 08 5F 89 4E 0C 89 4E 10 8B C6 5E 8B E5 5D C2 04 00 CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC CC
to
89 3E 89 46 08 5F 89 4E 0C 89 4E 10 8B C6 5E 8B E5 5D C2 04 00 CC CC 83 7C E4 0C 08 74 0A 8B FF 55 8B EC E9 D1 C3 F4 FF 80 7C E4 13 FF 7D EF C7 44 E4 10 00 00 00 00 EB E5



A other little Problem, maybe you know a resolution (It looks You know good the stalker Technics)
Stalker was maked for 4:3 Monitors, use 16:9 example, make the Hud and Gun Optics to wide.
Maybe this can patch also with a HEX Value ?
http://www.nexusmods.com/stalkershadowofchernobyl/mods/389/

I not find the "57 6A 08 56 50" in my Original 1.0006 XR_3DA.exe with copy Protection (6.251.200 Bytes)
Because of copy protection, mostly protected exe is packed.

Which Version you used ?
gog.com
https://www.gog.com/reclaim


How can i find in my XR_3DA.exe the Value for MipBias 0 ?
You can't find it in exe because it packed. You can find and change this bytes only in memory, when game will be started and "XR_3DA.exe" will be unpacked.

Wolfi
2016-09-14, 17:52:24
Very Thanks for Infos.

I have a other d3d9.dll 5.3.1.904 / 5.3.0000001.0904 (1.703.936 Bytes)
this dll have the same HEX Entrys, i changed, but not works. (You sayed, only specific Version works)

I have Patch now the exe (From Official GSC Multi Patch, this Removes Copy Protectionm and make Vsync Default On)
This Works


But the 16:9 Mod only Help with Scopes, HUD and Minimap not Correcting, and Position on Mini is not Correctly in 16:9, make a 360° Turn and you see position move.

Wolfi
2016-09-17, 14:13:01
I have use now the d3d9.dll from SP3, this is the same as your description 5.03.2600.5512 (xpsp.080413-0845)
But it not work, your provided d3d9.dll for download also not work.

Is no Problem, i use the patched exe (I Prefer this)