Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Makeout Patrol on Thu 26/06/2008 23:52:02

Title: AGS 3.0.2+ distorts colours on imported sprites
Post by: Makeout Patrol on Thu 26/06/2008 23:52:02
I'm having trouble importing sprites all of a sudden. I've tried versions 3.0.1, 3.0.2, and 3.0.2.43 with the same sprite, and the problem only exists in 3.0.2 and 3.0.43. The problem is that colours are distorted when imported.

Here is a picture of the importing window, in which one sprite is displayed correctly:

(http://_th.) (http://img58118.pictiger.com/images/15796622/)

Once I click on "import whole image, however, the sprite appears like so in the editor:

(http://img58118.pictiger.com/images/15796625/)

Is this a bug, or am I doing something wrong? Is there a workaround?
Title: Re: AGS 3.0.2+ distorts colours on imported sprites
Post by: marcusbugger on Fri 27/06/2008 00:24:57
Quote from: Makeout Patrol on Thu 26/06/2008 23:52:02
I'm having trouble importing sprites all of a sudden. I've tried versions 3.0.1, 3.0.2, and 3.0.2.43 with the same sprite, and the problem only exists in 3.0.2 and 3.0.43. The problem is that colours are distorted when imported.

Here is a picture of the importing window, in which one sprite is displayed correctly:

(http://_th.) (http://img58118.pictiger.com/images/15796622/)

Once I click on "import whole image, however, the sprite appears like so in the editor:

(http://img58118.pictiger.com/images/15796625/)

Is this a bug, or am I doing something wrong? Is there a workaround?


Try to make a simple sprite in windows paint and save them in all the know bmp. (256, 16, 24-bits and try to import one of them again.) I don 't know if it will work, if you have succes let me know.
Title: Re: AGS 3.0.2+ distorts colours on imported sprites
Post by: Makeout Patrol on Fri 27/06/2008 00:37:44
Yeah, that works, and I guess I can use it as a workaround for now. I'd still be interested in knowing why I can't use .gifs anymore, though. (I've also discovered that the same problem exists when I try to import room backgrounds.)
Title: Re: AGS 3.0.2+ distorts colours on imported sprites
Post by: Pumaman on Fri 27/06/2008 18:52:04
Can you upload the source image file that causes this problem?
Title: Re: AGS 3.0.2+ distorts colours on imported sprites
Post by: Makeout Patrol on Fri 27/06/2008 21:41:08
Here are three source images:

(http://i26.tinypic.com/dxh7pv.jpg)
(http://i32.tinypic.com/332xo5k.gif)
(http://i31.tinypic.com/2evtezo.gif)

If you want more, I can send them along.

Edit: You know, I think I'd rather use a host that doesn't suck quite as much as that one
Title: Re: AGS 3.0.2+ distorts colours on imported sprites
Post by: Pumaman on Fri 27/06/2008 23:28:30
What colour depth is your game? I imported that big image into both an 8-bit and 32-bit game and it seemed to show up fine in the sprite manager?
Title: Re: AGS 3.0.2+ distorts colours on imported sprites
Post by: Makeout Patrol on Sat 28/06/2008 01:25:16
It's 32-bit.

The problem with the big sprite is that one of the colours (the one of the side of the lockers and the lines between the locker doors) turns transparent when I import it, even if I have "no transparency" selected.
Title: Re: AGS 3.0.2+ distorts colours on imported sprites
Post by: Pumaman on Sat 28/06/2008 16:22:29
Ok, thanks for posting this. I've investigated and found that the "No transparency" setting doens't work properly if the image colour depth is different to the game colour depth. I'll get it fixed, but in the meantime the workaround would be to save the image as a 32-bit BMP/PNG rather than a GIF, which should then import correclty.

However, I'm not sure why this was working for you in 3.0.1, which is slightly odd.

EDIT: this is fixed in the 3.0.2 SP1 release, please try it out and confirm.
Title: Re: AGS 3.0.2+ distorts colours on imported sprites
Post by: Makeout Patrol on Sat 28/06/2008 21:09:52
That seems to have worked, thanks! I'm still having problems with some of the transparent .gifs, but I'm noticing some strange behavior in other programs, too, so this is probably something on my end (that is, a problem with the .gifs themselves). I'll post again if I can't figure out what's causing this.