crosire / d3d8to9

A D3D8 pseudo-driver which converts API calls and bytecode shaders to equivalent D3D9 ones.
BSD 2-Clause "Simplified" License
927 stars 83 forks source link

Black Screen in C&C: Generals ZH with "Heat Effects = On" #113

Open GektorUA opened 4 years ago

GektorUA commented 4 years ago

With "Heat Effects = On" and USA Microwave Tank — when it out from factory, area of it get Black Screen (if scroll out of Tank — screen get back, scroll back to the Tank — get black again), in dxwrapper-generals.log gets two messages:

12668 23:17:10.940 m_IDirect3DSurface9::LockRect Emulating the surface lock. Data may be lost here! 12668 23:17:10.940 m_IDirect3DSurface9::LockRect Emulating the surface lock. Data may be lost here!

Seems that bug is very old, and on some hardware with drivers it was fixed, on other - not, Can it be fixed with dxwrapper?

elishacloud commented 4 years ago

That log entry should only happen when AntiAliasing is enabled in the dxwrapper.ini file. Try disabling AntiAliasing and see if that fixes the black screen.

Currently I am not fully emulating all the features of Direct3D9 when AntiAliasing is enabled. So that option is not yet supported with all games.

GektorUA commented 4 years ago

I have disable AntiAliasing in ini file, but black screen is still there, but i have enabled overrided AntiAliasing in Nvidia CP, when i disable it in CP — black screen is gone. But it's not the best for me to turn off AA for Heat Effects, case with AA picture is much better. Maybe in future you found way to emulate all features of Direct3D9 and Heat Effects with AA in C&C Generals will work good.

Thank for you good work, will wait future releases!