21 August 2008, 15:41 | #1 |
Zone Friend
|
Viewing raw images in correct colors
Hi
I have a color problem with this raw image (attached - change extension if necessary, bloody extension filters :P) I've tried it with PicCon (thanks Stingray ), but the colors are all wrong. Format is recognized as 8bit iff (bin), not to be confused with IFF-ILBM which *always* has the FORM-ILBM header at the beginning of the file. I've also tried with Kefrens IFF Converter, but colors are wrong there too. Where's my (logical) mistake? |
21 August 2008, 16:15 | #2 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,865
|
You need to load the palette. Raw files don't have any color information attached.
|
21 August 2008, 17:06 | #3 |
Registered User
Join Date: Mar 2006
Location: Germany
Posts: 899
|
which is wrong, it's 3bpp (8 colors) and 320x128 resolution (320/8*128*3=15360) and as StingRay said, there is no palette data, so you could either rip that (don't know where you got the picture from) and load it for the image or try to adjust the colors by yourself.
|
21 August 2008, 23:30 | #4 | |
Zone Friend
|
OMG, adjust them myself, good one ;-)
Thanks for the info, this does make lots of sense that these pics have no palette information :) Well it's taken from a game ... and I could see hardcoded relative pic paths in the executable ( :pics/pic20 ), hence I would assume the palette is set by the main program or a subroutine...so without disassembling, it won't be too easy to find the right colors, hah fantastic :-) Quote:
If 320x128 were true, pics would appear quite vertically stretched! Last edited by andreas; 22 August 2008 at 00:06. |
|
22 August 2008, 00:53 | #5 | |||
Registered User
Join Date: Mar 2006
Location: Germany
Posts: 899
|
Quote:
Quote:
Quote:
|
|||
22 August 2008, 02:48 | #6 |
Zone Friend
|
to cut a long story short: yes you were right
in my sample pic, all pics are already duplicate! but the 400 (exactly even 384 [128 * 3]) seems reasonable because I *DID* try to change colors with my sample above, but only first 4 color fields reacted on my modifications... also thanks for the IFFMaster pointer, will try that one too... BTW, as far as I understand the matter: am I right that the pic parts get MERGED when I reduce the Y axis to a height of Y divided by the amount of bitplanes? They actually should because the 3-way pic in 384 vertical pixel reminds me a bit of process-color-printing (Vierfarbendruck) used for professional printing products like encyclopedia: partial pictures absolutely identical in pixels, but different in color values; eventually merged for the final product. Last edited by andreas; 22 August 2008 at 02:58. |
22 August 2008, 10:59 | #7 | |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Quote:
|
|
22 August 2008, 23:12 | #8 |
Zone Friend
|
Thanks everybody for participating in this thread: I've learned lots of things now!
I could even use KEFRENS IFF-Converter from days of yore to get proper pictures! I just had to force the program to use 128 pixels only on the Y axis! This did indeed cause the picture to get its bitplanes merged, so I finally ended up with a picture with more than 4 colors! Nice! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Raw images | VoltureX | Coders. General | 24 | 16 November 2011 22:43 |
displaying correct MagicWB-colors | Bamiga2002 | support.Apps | 3 | 26 July 2010 11:06 |
rawread: Making use of partial raw images | andreas | support.Apps | 7 | 12 January 2010 14:51 |
ISO viewing | dezmond | New to Emulation or Amiga scene | 1 | 04 November 2009 03:02 |
Best resolution for TV viewing? | th4t1guy | support.Apps | 7 | 30 May 2004 08:06 |
|
|