Page 1 of 3

Changing color palette of FCE Ultra

Posted: Sat Feb 27, 2010 1:49 pm
by JohnJohn
Once I wanted to save the background graphic of a game. So, I had to do two screenshots. Since the player sprite covers a part of the background, I cut this part out of the second image and pasted it on the first image. Like this:
Image + Image = Image
Then, when the part of the second image was pasted on the first image, I noticed something: The colors were not 100% identical. The first screenshot used another palette as the second screenshot. Both time it was the same emulator and I didn't choose another .pal file either. The differences were not visible right away. Only when I pasted a part of the second image on the first, I saw that all the colors were a nuance different.
I did that on my mother's PC. It never happens on my own. On my PC, the colors are always consistent. But on my mother's, the palette may change from screenshot to screenshot.
Now my question: How is that possible?

Posted: Sat Feb 27, 2010 2:38 pm
by tokumaru
Maybe the bit-depth the desktop uses makes a difference?

Posted: Sat Feb 27, 2010 8:17 pm
by koitsu
Maybe the images are being saved/generated as JPEGs or some other lossy format which results in quality loss every time you re-save them?

Posted: Sat Feb 27, 2010 9:20 pm
by JohnJohn
tokumaru wrote:Maybe the bit-depth the desktop uses makes a difference?
Even if this was the case, both images should still look the same since it would still be the same desktop where they are created. (But, no, it was 32 bit.)
koitsu wrote:Maybe the images are being saved/generated as JPEGs or some other lossy format which results in quality loss every time you re-save them?
No. The images in FCE Ultra are saved as PNG. And during my editing work, I copy them to MS Paint and save them as simple BMP files.

And as I said: It's something that never ever happens on my own PC, but happened the instant I tried to paste images together on the other PC. So, it can't have anything to do with my working techniques.

Posted: Sun Feb 28, 2010 12:07 am
by koitsu
Are the 3 images you're working with literally those in the first post? Because the first image is a JPEG, the 2nd and 3rd are PNG.

EDIT: Nevermind, the first image is actually a PNG but the file extension is wrong.

EDIT #2: What part of image #3 has a slightly different palette? I'm looking at the palette compared to images #1 and #2, and I don't see anything that's different.

Posted: Sun Feb 28, 2010 5:20 pm
by JohnJohn
koitsu wrote:Are the 3 images you're working with literally those in the first post?
[...]
EDIT #2: What part of image #3 has a slightly different palette? I'm looking at the palette compared to images #1 and #2, and I don't see anything that's different.
No, the three images are just an example to explain what I mean with pasting two images together. These pictures all have the same palette since I'm on my own PC and there the palette is always correct. I can't recreate the actual error now because my mother's PC is not available to me in the moment.
koitsu wrote:Because the first image is a JPEG, the 2nd and 3rd are PNG.
EDIT: Nevermind, the first image is actually a PNG but the file extension is wrong.
In this case it's an error of Tinypic. All of them were PNGs and had the correct file extension when I uploaded them.

I assume that the error has something to do with the graphic card. Could this be possible?

Posted: Sun Feb 28, 2010 6:22 pm
by koitsu
I can't say yes or no until I see actual examples. :-)

Posted: Sun Feb 28, 2010 6:43 pm
by JohnJohn
Well, what do you want to see there? Just imagine a screenshot where all the colors are for example three numbers lower for red, green and blue. So, orange, which has usually the RGB value 200, 76, 12 in FCE Ultra would be 197, 73, 9. Something like that.

Posted: Mon Mar 01, 2010 6:44 pm
by koitsu
I can't explain why taking two screen shots within the same running instance of an emulator would result in different palettes. The only explanations I have would be a lossy file format, or if the comparison is between what you see on-screen vs. what gets written to disk in the PNG.

Posted: Mon Mar 01, 2010 8:25 pm
by Zepper
koitsu wrote:I can't explain why taking two screen shots within the same running instance of an emulator would result in different palettes. The only explanations I have would be a lossy file format, or if the comparison is between what you see on-screen vs. what gets written to disk in the PNG.
- Did you try another emulator? o.O

Posted: Mon Mar 01, 2010 11:30 pm
by miau
JohnJohn wrote: No. The images in FCE Ultra are saved as PNG. And during my editing work, I copy them to MS Paint and save them as simple BMP files.
Some MS programs used to have difficulties with PNG files. Older versions of Internet Explorer come to mind. They displayed PNGs a tad darker than they're supposed to be. Never heard of Paint messing up the colors, though.

What version of FCE Ultra are you using?

Posted: Tue Mar 02, 2010 2:25 pm
by JohnJohn
koitsu wrote:I can't explain why taking two screen shots within the same running instance of an emulator would result in different palettes.
Me neither.
koitsu wrote:The only explanations I have would be a lossy file format, or if the comparison is between what you see on-screen vs. what gets written to disk in the PNG.
Cannot be the case either. A difference between screen output and PNG screenshot is not important since the two images with the different palette are both PNG screenshots. (This would only be relevant if I had made one screenshot with the screenshot function of the emulator while the other screenshot was made with the "Print" button on the keyboard.)
miau wrote:Some MS programs used to have difficulties with PNG files. Older versions of Internet Explorer come to mind. They displayed PNGs a tad darker than they're supposed to be. Never heard of Paint messing up the colors, though.
By the way, I don't open the PNG file with Paint. I open the PNG file with Microsoft Photo Editor from Word 97. Then, I right-click and copy the image to the clipboard. Then I paste this to a standard 24 bit BMP file in Paint.
miau wrote:What version of FCE Ultra are you using?
FCE Ultra 0.98.12. But it can't have to do with the emulator, I think. As I said: I worked on two computers. Everything was the same: Same emulator with same palette (FCE Ultra 0.98.12 with default palette), same game ("Castlevania (U) (PRG0).nes"), same screen resolution (800 x 600, 32 bit), same operation system (Windows 98 SE (the PCs are very old)), same program to open the PNG files and to copy the image to the clipboard (Microsoft Photo Editor from Word 97), same program to edit the images (Paint). And the result: My computer always has the same colors for the images, and I edited tons of them. The other computer had a color difference and I recognized it after only six screenshots.

Posted: Tue Mar 02, 2010 2:41 pm
by tokumaru
It seems like the image travels a lot until it finally reaches its destination, so if I were you I'd try to identify exactly when the colors get messed up. If you open the PNG directly in MSPaint, or use different combinations of software you might detect which software is the guilty one.

Posted: Tue Mar 02, 2010 6:45 pm
by JohnJohn
It isn't the software. If it was the software, the error would occur on my PC as well since I always use exactly the same software on the same operation system. Also, even if one of the progams messes up the colors, wouldn't it mess up the colors in every image equally?
I'm still assuming that the graphic card is guilty of it, maybe changing the colors a bit with each restart of the emulator.

Posted: Tue Mar 02, 2010 6:52 pm
by tepples
Sometimes a DirectX or OpenGL window can change depending on whether a menu or tooltip is on top of it.