Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Lasca on Fri 20/03/2015 10:39:01

Title: Color issue
Post by: Lasca on Fri 20/03/2015 10:39:01
So, it feels like I should know this, but I guess I don't. I've also tried finding answer on the forum, but without any luck.

Why does, regardless of color depth of image or game, my bg look like this in photshop:

[imgzoom]http://i.imgur.com/z3oeVaa.png[/imgzoom]

But like this in AGS:

[imgzoom]http://i.imgur.com/5ry6NlQ.png[/imgzoom]

Is there a way to solve this or do I have to redo the bg with fewer colors?
Title: Re: Color issue
Post by: Snarky on Fri 20/03/2015 10:42:24
It's a bug in the AGS Direct3D 9 driver (and one of the reasons why I think it's not fit for purpose). Try running it with DirectDraw 5 instead.

What version of AGS are you running? I seem to remember this was fixed in the Draconian build, but maybe it never got applied back into the main branch.

Edit: Earlier threads, for reference
http://www.adventuregamestudio.co.uk/forums/index.php?topic=44365.0
http://www.adventuregamestudio.co.uk/forums/index.php?topic=44465.msg593744#msg593744
Title: Re: Color issue
Post by: Lasca on Fri 20/03/2015 10:49:40
It actually happens with both direct draw 5 and direct3d 9.
I'm running 3.2.1.

edit:
actually the colors are off even in the editor.
Title: Re: Color issue
Post by: Snarky on Fri 20/03/2015 10:54:37
Hmmm, well, that's stranger, then. When you say "regardless of the color depth of my game", does that mean you've been changing the color depth on your project? When setting to 32-bit, did you reimport the background?
Title: Re: Color issue
Post by: Lasca on Fri 20/03/2015 11:00:08
Ok, this was bit akward. I actually didn't try the 32-bit setting in AGS since I figured it should be enough as long as the bg and the game had the same depth. Setting the ags depth to 32-bit and reimporting the bg fixed it. Thanks for the help and taking your time!
Title: Re: Color issue
Post by: Monsieur OUXX on Fri 20/03/2015 13:39:51
Rule of thumb : AGS games often start as 16-bits or 24-bits. Change them immediately to 32-bits and reimport all the graphics (cursors, gui buttons, etc.). You'll save yourself a lot of trouble later. Trust me. ;)
Title: Re: Color issue
Post by: monkey0506 on Fri 20/03/2015 22:50:02
This actually makes me wonder if the default shouldn't just be set to 32-bit anyway. Modern versions of Windows actually have difficulty running applications that aren't 32-bit, so I'd say that the stigma of performance is beginning to lean in favor of 32-bit rather than away from it.