Author Topic: Graphics remapping techniques?  (Read 2380 times)

ccovell

  • Hero Member
  • *****
  • Posts: 2245
Graphics remapping techniques?
« on: February 21, 2011, 02:12:38 AM »
Okay, so everybody knows that the PCE's 9-bit colour space is pretty limited.  Especially when remapping photographs or high-colour art, you get banding, flat colours, or have to resort to a high amount of dithering.

Does anyone know of a paint program that can remap 24-bit -> 9-bit (or any other colour space in RGB (non-indexed)) and apply dithering at the same time?

One technique which I've toyed around with in the meantime:

(The images at the bottom have been posterized again into the PCE's 8-level colour space.)

Each combination of posterization levels gives a different dithering type, to high dither, dither in dark colours only, bright colours only, narrow dithering bands, etc.  There's no perfect balance that I've found, so one has to select the best-looking type for each picture:


Any other good ideas?

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: Graphics remapping techniques?
« Reply #1 on: February 21, 2011, 06:51:03 AM »
NeoPaint!

Has tons of dithering modes also.   Sierra is my favorite.

NeoPaint is my favorite Paint program, especially for PCX related things.
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

ccovell

  • Hero Member
  • *****
  • Posts: 2245
Re: Graphics remapping techniques?
« Reply #2 on: February 21, 2011, 09:13:45 AM »
With all due respect, NeoPaint is a step in the wrong direction.  Simplified options, 16- 256- colour indexed modes only: it's for kids.

What I asked about above is not about programs for dithering 24-bit down to 16 indexed colours.  There are plenty of those.  I'm looking for ways to remap 24-bit RGB down to, for example, 15-bit RGB, or 9-bit RGB non-indexed, and perhaps apply some picture voodoo during the conversion process.

Arkhan

  • Hero Member
  • *****
  • Posts: 14142
  • Fuck Elmer.
    • Incessant Negativity Software
Re: Graphics remapping techniques?
« Reply #3 on: February 21, 2011, 09:28:20 AM »
Oh.  I read your post too fast because I was doing something else at the same time.

I'm not really an art person.  16 colors dithered is about all I can manage, so I have no idea.  Maybe sunteam_paul knows, hes smrt.
[Fri 19:34]<nectarsis> been wanting to try that one for awhile now Ope
[Fri 19:33]<Opethian> l;ol huge dong

I'm a max level Forum Warrior.  I'm immortal.
If you're not ready to defend your claims, don't post em.

sunteam_paul

  • Hero Member
  • *****
  • Posts: 4732
Re: Graphics remapping techniques?
« Reply #4 on: February 21, 2011, 09:33:25 AM »
I dunno, I kind of went from Dpaint to Photoshop and am only just getting started on all this mysterious PCE palette stuff.
The PC Engine Software Bible
Quote from: Tatsujin
I just felt in a hole!

Bonknuts

  • Hero Member
  • *****
  • Posts: 3292
Re: Graphics remapping techniques?
« Reply #5 on: February 21, 2011, 10:31:45 AM »
Chris, that's a fantastic method you've got there. I take it that the posterization there is straight, right? How about a weighted conversion to each posterized level? I've toyed with that idea in the past (a non linear rounding scale). It'd be interesting to try that in conjunction with the method you described. Either way, nice job :D Have you tried out Orion's Magictreme?

ParanoiaDragon

  • Hero Member
  • *****
  • Posts: 4619
Re: Graphics remapping techniques?
« Reply #6 on: February 21, 2011, 09:11:05 PM »
Anyone tried asking Nod or Keranu?  Or what about Frag?  I saw him on IRC last nite, maybe he'd know?

ccovell

  • Hero Member
  • *****
  • Posts: 2245
Re: Graphics remapping techniques?
« Reply #7 on: February 22, 2011, 02:16:30 AM »
I take it that the posterization there is straight, right? How about a weighted conversion to each posterized level?


Bonknuts, that's it!!!  Regular posterization won't work, so a pair of colour biasing curves has to be created for each image.

Here's a set of curve maps for Photoshop that'll do regular 8-level and 15-level posterization... but also the two 8-level posterizations that'll dither into 15 levels:
http://www.chrismcovell.com/data/PCE_Remapping_Curves.zip

Here's a demonstration:

esteban

  • Hero Member
  • *****
  • Posts: 24063
Re: Graphics remapping techniques?
« Reply #8 on: February 22, 2011, 09:25:47 AM »
Can you use apply this technique on the same reference photo (of the SuperCD + CoreGrafx combo) for comparison purposes?

Thanks in advance :)

  |    | 

ccovell

  • Hero Member
  • *****
  • Posts: 2245
Re: Graphics remapping techniques?
« Reply #9 on: February 22, 2011, 09:54:49 AM »
Okay, here are the old methods next to the new (15-level dither) method:

nodtveidt

  • Guest
Re: Graphics remapping techniques?
« Reply #10 on: February 22, 2011, 10:34:40 AM »
You would have a hell of a time getting that onto the real hardware though. :) The colors are correct but you'd have a murderous time trying to reduce 8x8 blocks to only sixteen 15+1 color palettes. 402 uniques in the entire image, and I couldn't get a 256x224 selection at any lower than around 260 uniques. Even with sprite mixing, you'd be at this for hours... and I know; I've been working with Black Tiger's highly colorful images, which are already designed for the PCE palette limitations, and it can take up to 3 hours to get a single image reduced enough to fit into 16 palettes.

Of course, if you can get this technique to work for actual pics you would use in a real game, it might be a different story. It really depends on the source, and whether or not you want to do color reduction blending (that is to say, combining similar colors without noticeable detail loss).
« Last Edit: February 22, 2011, 10:36:53 AM by The Old Rover »

ccovell

  • Hero Member
  • *****
  • Posts: 2245
Re: Graphics remapping techniques?
« Reply #11 on: February 22, 2011, 12:23:54 PM »
Naah, this is just a reference pic.  And if I wanted to get that much colour in, I'd overlap sprites and BG.

Bonknuts

  • Hero Member
  • *****
  • Posts: 3292
Re: Graphics remapping techniques?
« Reply #12 on: February 25, 2011, 04:49:30 AM »
Chris, how do I use those files you posted?

esteban

  • Hero Member
  • *****
  • Posts: 24063
Re: Graphics remapping techniques?
« Reply #13 on: February 25, 2011, 07:13:36 AM »
Chris, thanks for posting the reference pics. Pretty damn nice, I say. :)

If only the cover art for the Ultra Box catalogs used some of these techniques :)

  |    | 

ccovell

  • Hero Member
  • *****
  • Posts: 2245
Re: Graphics remapping techniques?
« Reply #14 on: February 25, 2011, 10:52:29 AM »
Chris, how do I use those files you posted?
You'll need Adobe Photoshop.  Get your image, select Adjust->"Curves", click "load", and change the file extension in the load dialogue to *.amp.