My first APNG

The sprite sheet:
a small sprite sheet

As APNG: (You need Firefox 3 Alpha 7 or newer, if you want to see the animation)
the resulting animation as apng

The frames were generated with lhfire and converted with ImageMagick.

The used lhfire script:

render 16 16 newexplosion7_%04d.tga
frames 0 6 0 16
particles 5000
passes 64
camera 0 0 -320

seed 144

rendertype 1

life 1 6

decay 1 0

velocity 0 0 0 15 25
color1 64 64 64 384
color2 32 32 32 768
size 10 40
area 0 0 10 0 30
spawn 500

decay 1 0

velocity 0 0 0 5 25
color1 2560 1024 512 384
color2 192 64 32 384
size 4 16
area 0 0 0 0 30
spawn 2000
area 20 15 0 0 20
spawn 250
area -5 -20 0 0 20
spawn 500
wait 10

ImageMagick command line for png conversion:

mogrify -format png newexplosion7*.tga

After that I created the APNG via APNG Edit in Firefox.

And while I'm at it... here is the ImageMagick command line for the sprite sheet:

montage -background "transparent" -depth 8 -type TrueColorMatte newexplosion7_00??.tga -geometry 16x16 -tile 4x4 -matte -transparent "transparent" -type TrueColorMatte -depth 8 newexplosion7_sheet.png

Comments

Opera support

No problem viewing it in Opera 9.5 either.

- ØØ -

Heh

Yea, I wrote a post about that over here:
Opera 9.5 will support APNG ;)

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options