SOLVED: Changing default graphics driver causing some sprites to disappear

Started by TurduckenMan, Wed 28/10/2015 23:05:51

Previous topic - Next topic

TurduckenMan

Hello! Quick question, I've currently switched the game's default graphic driver from DirectDraw 5 to Direct3D 9. This was awesome because it fixed a couple graphical issues that were coming up with sprites being scaled in locations, but suddenly a sprite of mine has stopped appearing!

On the main menu, when hovering over any of the buttons, a spotlight is supposed to point at the button, like such:


However, once I switched the graphics driver, this is what happens now:


Any ideas why the sprite has suddenly stopped appearing?
Any help is much appreciated. :)

(Also, here's a screencap of the game so far in case anyone was interested!)

Crimson Wizard

There are two possible situations when something that worked in DX5 mode stopped working in Direct3D.

1) When you are using IgnoreWalkbehinds property for an object, which you should not use at all, because it is a hack, and not supported for D3D9.
2) When you were drawing with DrawingSurface and forgot to call DrawingSurface.Release() in the end.

TurduckenMan

Ah, IgnoreWalkbehinds was causing the issue.

Thanks so much!

Crimson Wizard

Quote from: TurduckenMan on Thu 29/10/2015 15:24:41
Ah, IgnoreWalkbehinds was causing the issue.
Yes, we recommend to never use this property, because it can only work in software renderer mode. In short, it breaks the logic of object drawing order. There should be a way to achieve same effect without this property by setting objects baselines.

SMF spam blocked by CleanTalk