don't click here

Palette Cycling Isn't Dead

Discussion in 'Technical Discussion' started by Mercury, Aug 19, 2010.

  1. Mercury

    Mercury

    His Name Is Sonic Tech Member
    1,740
    21
    18
    Location Location
    AeStHete
    A friend sent me a link to this website with landscape pictures that are animated entirely through the use of palette cycling.

    I immediately thought of how the trick was used to animate the water and things in Sonic games.

    It strikes me that most modern game systems don't support this sort of thing, but it would be cool if they did. Apparently there's still plenty of mileage left in the ol' process.
     
  2. Max Firestorm

    Max Firestorm

    Pyrodramatic Member
    Wow, these are quite stunning...
     
  3. PsychoSk8r

    PsychoSk8r

    PsychedelAnt | Tone Turner Oldbie
    2,642
    57
    28
    Birmingham, UK
    30 Day Project: Revisited.A New Release!
    QFT. I'm loving HTML5 more and more =P
     
  4. Ritz

    Ritz

    Subhedgehog Member
    4,086
    110
    43
    I think I spent about two hours staring at these and trying to comprehend how it was done.
     
  5. Kurosan

    Kurosan

    Samurai of Gaming Oldbie
    That is amazing...!
     
  6. Ch1pper

    Ch1pper

    Fighting the Battle of Who Could Care Less Member
    840
    102
    43
    Life.
    This is great. Awesome. Giving me ideas for ambient music. Will have to see if I can make anything out of them tomorrow. :)
     
  7. Quarterman

    Quarterman

    Just another day in paradise. Member
    That was awesome. It looks like it would be a great meditation tool.
     
  8. theocas

    theocas

    Tech Member
    346
    0
    16
    God, that is just awesome. It's amazing the way they do it and it looks well. God, I love HTML 5. I really wish newer consoles supported it.
     
  9. Flygon

    Flygon

    Member
    Newer consoles do support it... don't they? All you need to do is assign something to a palette and rotate the palette... how else does this sort of thing work on a modern HTML5 compatible browser?
     
  10. RamiroR

    RamiroR

    Member
    355
    0
    16
    I can't see it D=. It keeps loading and the images never appear :/
    I'm using Chromium.
     
  11. Mastered Realm

    Mastered Realm

    Member
    3,830
    556
    93
    -
    Jesus, this is awesome!
     
  12. GerbilSoft

    GerbilSoft

    RickRotate'd. Administrator
    2,971
    76
    28
    USA
    rom-properties
    HTML5 implements its own paletted graphics system. Most newer graphics APIs typically don't support palettes. For instance, there's an extension for OpenGL called GL_EXT_paletted_texture. It was supported on plenty of older hardware (i810/i815, NV1x, NV2x, NV3x, probably some older ATIs, some S3 cards, and Voodoo cards), but newer cards dropped support for this extension. (My ATI FireGL V5200 using Mesa 7.9-devel with Gallium3D doesn't support the extension.)

    Interestingly, Windows XP's software OpenGL implementation (which only supports OpenGL 1.1) does support the GL_EXT_paletted_texture extension.
     
  13. Techokami

    Techokami

    For use only on NTSC Genesis systems Researcher
    1,373
    81
    28
    HoleNet!
    Sonic Worlds Next
    I saw this a looong while ago, and it hasn't become any less awesome. It's a damn shame that the artist who pixeled those scenes by hand is no longer doing graphical art, though.
     
  14. Nibble

    Nibble

    Oldbie
    The only reason modern games don't do this anymore is because we have crazy amounts of storage space and millions of colors to work with. Making palletized art, while generally more space-efficient, takes more effort and thought than just using the colors you want directly.

    And as mentioned earlier, palletized graphics are no longer 'fast' on modern hardware. As an example, those HTML5 samples have to use a bit of CPU time to emulate an 8-bit palette and translate it to 32-bit color. This takes away an important speed advantage palettes once had, thus making it a little less practical for use in modern games.

    But yeah, all that said, it doesn't take away from the fact that those samples are quite beautiful, in both looks and efficiency. These kinds of artists don't really exist anymore, other than maybe in mobile games or hobby projects (like Sonic hacking).
     
  15. Elratauru

    Elratauru

    Little Shiny Emurralds Member
    These illustrations look like old Magic the gathering cards. Nice to look at.

    However, like Delta said, I don't really see the point of using palettes in today games or in a web...Its cool to look at, and practical to storage, but we have freaking blu-rays right now. And internet connections are fast like hell...

    Also, even if its new on html5, we could do that on Actionscript long ago, I remember watching at this when Flash 8 came out: http://www.fumiononaka.com/Sample/Flash8/paletteMap.html , even if its a pretty random pallete, its the same exact thing, but on flash.
     
  16. Cooljerk

    Cooljerk

    Professional Electromancer Oldbie
    4,519
    210
    43
    On the subject of modern game systems, it's trivial to create a palette cycling effect using pixel shaders now, and a lot more efficient too.
     
  17. MarkeyJester

    MarkeyJester

    Original, No substitute Resident Jester
    2,202
    432
    63
    Japan
    Well hot damn those are impressive, inb4 someone makes them into a level =P

    Also on the subject of it's usefulness, isn't palette cycling/swapping much faster than art swapping? I know this is the case for the Megadrive/Genesis, though I would've thought the same for advanced hardware/software too.
     
  18. Ross-Irving

    Ross-Irving

    Member
    1,087
    0
    0
    Holy shit, that is SNK quality right there. Reminds me of Metal Slug's backgrounds. This is even better than what I've seen of SNK's spritework for backgrounds, actually.
     
  19. Cooljerk

    Cooljerk

    Professional Electromancer Oldbie
    4,519
    210
    43
    Newer games don't necessarily use palettes like this anymore. So doing things in this way is pretty much unfeasible.

    Like I said, however, it's much more efficient to use a pixel shader to create the same effect, if only because the work can be done entirely in the GPU.