Wrong color in background

Started by cat, Sun 27/01/2008 14:47:31

Previous topic - Next topic

cat

Hi!

I haven't found anything in search or the manual about it.

I'm using AGS 3.0 with 8bit color and 320x240. I didn't edit the palett by now.
I have imported a background which looks ok in the room details view and i can also make walkable areas without problems. But when I start the game (either with or without debug) the areas which are black in the background are suddenly bright blue.
Probably it is something with the palett, however I don't know. The background itself looks ok in my other graphics viewer and has 21 colors and is stored in gif format.

edit: ok, additional problem:
Now I have imported a sprite with "Remap colors" and "lock to room palette" checked. It looks ok in the preview of the room (as does the background) but when i start the debug it has wrong colors.
The sprite also looks correct in the sprites overview

Thanks in advance, cat

twin-moon

*Bump*

I have the same problem, also using 3.0, 256 colours and 320x240.

I solved this by changing the black in my original image to grey (32,32,32) but it's a bit of a ramshackle solution. Bug?
                                    The Grey Zone

Pumaman

Hmm, would one of you mind uploading a sample image that causes this problem?

twin-moon

Of course.
I started a new game in 256 colours (I've tested 320x200 and 320x240) and used this image as room 1:



It looks normal in the editor, but if I run the game, it looks like this:
                                    The Grey Zone

cat

I thought there was a problem with my pics. After trying several things I changed the mode to 16bit color. Now it is working fine. Probably there is some problem with 256 color mode?

Khris

Yes, that'd be my advice, too.
I tried different formats and palette index numbers, and every time, a near-black color ends up blue (0,0,170) in-game.

cat

Did you also have strange behaviour with "Remap colors" and "lock to room palette" checked for sprites?

twin-moon

Switching to more colours did fix the problems.

Quote from: cat on Fri 07/03/2008 13:08:05
Did you also have strange behaviour with "Remap colors" and "lock to room palette" checked for sprites?

Yep. Colours are not 100% correct and there's one door which turned into a completely black rectangle? Importing things again keeps giving different results.

But this was also fixed by switching to hi-colour mode.
                                    The Grey Zone

cat

So, should we make some kind of trouble ticket or what is the procedure? I think chances are good that this is a problem with AGS 3.0 and other people might have this problem as well.

Pumaman

Thanks for uploading the image, I've verified that there is a bug in AGS 3.0 importing 8-bit backgrounds if black is not colour 0 on the source image. I'll get it fixed.

QuoteDid you also have strange behaviour with "Remap colors" and "lock to room palette" checked for sprites?

If there are more issues, please let me know. I wouldn't be surprised if there were, because during AGS 3.0 beta testing it was almost impossible to find anyone with an 8-bit game to make sure that everything was working properly.

Gilbert

Sorry for intruding this thread, but since there's something needed to be fixed in the background import routine, is it possible to bring back the exact palette import feature in the next version?

cat

Quote from: Pumaman on Sat 08/03/2008 22:12:41

If there are more issues, please let me know. I wouldn't be surprised if there were, because during AGS 3.0 beta testing it was almost impossible to find anyone with an 8-bit game to make sure that everything was working properly.


I had problems, as written in the first post. I imported my sprites with "Remap colors" and "lock to room palette" checked and they had wrong colors when executing the game.
I converted my game to 16bit to avoid this problem so I can't make screenshots of the problem anymore. Should I make a demo game to show you the problem?

Pumaman

Hmm there does seem to be some inconsistency in the results here, I'll look into it.

QuoteSorry for intruding this thread, but since there's something needed to be fixed in the background import routine, is it possible to bring back the exact palette import feature in the next version?

Is this something that anybody else needs?

twin-moon

                                    The Grey Zone

abstauber

*bump*
Quoteis it possible to bring back the exact palette import feature in the next version?
QuoteIs this something that anybody else needs?

me too, please bring it back.
Pretty pretty please  :D

Pumaman

I have added a Preferences option to the latest beta version to support this behaviour, since it seems more than 0 people were using it after all :)

abstauber


SMF spam blocked by CleanTalk