https://bugs.winehq.org/show_bug.cgi?id=38936
Bug ID: 38936 Summary: Stardock games need terrain/model height coordinate correction Product: Wine Version: 1.7.47 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: unsuspicious.fakename+wine@gmail.com Distribution: ---
Created attachment 51871 --> https://bugs.winehq.org/attachment.cgi?id=51871 WINEDEBUG=+d3d wine SorcererKing (first and last 5k lines; cropped ~1GB in the middle)
Same problem in Stardock's "Fallen Enchantress" and successor game "Sorcerer King" (seems to use the same engine).
Draws the terrain above everything else. The tops of some models actually stick out of the floor, doesn't flicker or anything, so this does not just look like a typical problem with buffers / drawing order or something.
From the otherwise "cleanness" of the rendering it looks a bit like a well
contained coordinate system conversion error or something like that. As if terrain and models use different methods of adjusting their z or centres in the vertex shaders... and one of them has an offset +/-1 that doesn't work in wine for some reason.
( Tested using wine versions starting from ~2 years ago up to & including 1.7.47. I used "staging" for the log only - because I don't have debug symbols for vanilla wine at all )