Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: TurduckenMan on Wed 28/10/2015 23:05:51

Title: SOLVED: Changing default graphics driver causing some sprites to disappear
Post by: TurduckenMan on Wed 28/10/2015 23:05:51
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:
(http://i63.tinypic.com/14izbxs.png)

However, once I switched the graphics driver, this is what happens now:
(http://i64.tinypic.com/20trmuw.png)

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!)
(http://i66.tinypic.com/jinqrp.jpg)
Title: Re: Changing default graphics driver causing some sprites to disappear
Post by: Crimson Wizard on Wed 28/10/2015 23:54:58
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.
Title: Re: Changing default graphics driver causing some sprites to disappear
Post by: TurduckenMan on Thu 29/10/2015 15:24:41
Ah, IgnoreWalkbehinds was causing the issue.

Thanks so much!
Title: Re: SOLVED: Changing default graphics driver causing some sprites to disappear
Post by: Crimson Wizard on Thu 29/10/2015 16:23:42
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.