narzoul / DDrawCompat

DirectDraw and Direct3D 1-7 compatibility, performance and visual enhancements for Windows Vista, 7, 8, 10 and 11
BSD Zero Clause License
878 stars 67 forks source link

Sacred Gold New Issues #300

Closed ghost closed 2 months ago

ghost commented 2 months ago

Hi, thanks everything is working fine but couple of new problems arises: 1.ResolutionScarle option in menu is broken whenever I go up/down with App(1) or Display(1) settings the graphic artifacts starts to appear like characters disappear/appearing suddenly,even crashing the game and combine with DisplayFilter = bilinear(100) it will look something like this: 20240422_140215 It only effects loading screen and characters.

  1. By choosing RenderColorDepth 32 characters shadows bug out, doesn't happen with old version. pureHD-2024-04-22-12-53-11-17 pureHD-2024-04-22-12-53-31-02 3.Also minimap is bugging when choosing dwarf class, doesn't happen with others characters, side note it only cause issues with fog of war enable not if it's transparent. pureHD-2024-04-22-13-13-55-53 DDrawCompat-pureHD.log P.S. Pure HD is mod for Sacred Gold Edition, basically making playable in widescreen and you can find at SacredGoldPcgamingwiki website, in case if you wonder why there is PureHD Log.
narzoul commented 2 months ago

I cannot reproduce the first 2 issues. Can you give some more info on how to reproduce them? What are your settings for DDrawCompat and Sacred (Settings.cfg)? Are these issues also present if you don't use the overlay? What if you don't use pureHD? By "characters" do you mean player models or text?

The last one I can reproduce, assuming you mean the transparent triangle at the bottom of the map. But that looks the exact same without DDrawCompat too. Are you sure it's not just a bug in the game? Do you have any evidence that it didn't always look that way?

ghost commented 2 months ago

So a quick update about these issues. First Issue is completely solved by using these settings:

DDrawCompat version 0.5.2. AlternatePixelCenter = on Antialiasing = msaa2x(7) BltFilter = point ColorKeyMethod = auto ConfigTransparency = alpha(90) DepthFormat = 24 DisplayFilter = bilinear(100) FontAntialiasing = app FpsLimiter = off RenderColorDepth = 32d10 ResolutionScale = display(1) ResolutionScaleFilter = bilinear SpriteDetection = point SpriteFilter = point SpriteTexCoord = round(-2) StatsPosX = right

So basically solved. Second issues is happening due to DepthFormat if I go say 16 or 32, then the issues with shadow occurs, if choosing 24, then there's no issue whatsoever. And third issue is just a game bug like you said, happens only with dwarf character, other characters aren't affected by it and only happens at started location for dwarf, but as soon as you leave the area, it goes away, again happen in the vanilla game, and even occurs with PureHD, so no fault with DDrawCompat.

In conclusion only Depth Format is broken with character shadows at 16 or 32 setting, again sorry for confusion. DDrawCompat-pureHD 0.5.2..log

narzoul commented 2 months ago

Second issues is happening due to DepthFormat if I go say 16 or 32, then the issues with shadow occurs, if choosing 24, then there's no issue whatsoever.

Ok, you initially wrote RenderColorDepth, that's why I couldn't reproduce it.

The game uses stencil buffers for the shadows (and maybe other things), which is only available with 24 bit depth formats. So both 16 and 32 bit depth buffers will break stencil buffering effects. There's nothing that can be done about it. There shouldn't be any need to tinker with this setting anyway.

ghost commented 2 months ago

Oh, I see, in that case it complete closes my issue, thanks for your help.