Author Topic: [Flash] Additive Blending Test  (Read 3070 times)

0 Members and 1 Guest are viewing this topic.

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
[Flash] Additive Blending Test
« on: April 21, 2011 »
While developing another project, I have created a simple demonstration of the additive blending mode in Flash.

Kirl used this to great effect in Wreckreation, and this isn't quite as cool, it does demonstrate the effect at it's most basic level. I do hope to recreate a similar fire effect Kirl made, but for now, if you have downloaded the attached ZIP file, please run the .SWF and try to drag the white circle.

This effect on it's own could be used to demonstrate how RGB works on colour computer monitors, to those who think primary colours are "Red, Blue and Yellow".
« Last Edit: April 21, 2011 by combatking0 »
You are our 9001st visitor.
Challenge Trophies Won:

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1199
  • Karma: 230
    • View Profile
    • Homepage
Re: [Flash] Additive Blending Test
« Reply #1 on: April 21, 2011 »
That's a good demonstration of the basic workings. For explanation purposes the simpler, the better!

If you're interested I can isolate the fire effect and send you the file, but it does take away some of the fun of tinkering and tweaking your own solution. If you only want an explanation of the particles behaviour, let me know.
www.kirl.nl
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: [Flash] Additive Blending Test
« Reply #2 on: April 21, 2011 »
I'd like to come up with my own solution, but if I get stuck, please may I have a look at your particle behaviour ;)

K+ for offering. I'll have a go first though.
You are our 9001st visitor.
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17376
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: [Flash] Additive Blending Test
« Reply #3 on: April 21, 2011 »
Well it works as a demonstration of how RGB mix on a computer screen :)
Next step is to turn it into a burning effect, to that means losing the primary colours and setting fire to something :D
Shockwave ^ Codigos
Challenge Trophies Won:

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: [Flash] Additive Blending Test
« Reply #4 on: April 25, 2011 »
Here's a newer, more fun version.

Click on the running SWF to toggle the effect on or off.
You are our 9001st visitor.
Challenge Trophies Won:

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17376
  • Karma: 497
  • evil/good
    • View Profile
    • My Homepage
Re: [Flash] Additive Blending Test
« Reply #5 on: April 25, 2011 »
That's much nicer, it looks odd that the particles are perfect circles and just pop on and pop off - real fire is smoother, this is very close to being really authentic, it just needs to have a few very small tweaks here and there.

Shockwave ^ Codigos
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4380
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: [Flash] Additive Blending Test
« Reply #6 on: April 25, 2011 »
That's very cool, CK0! Well done  :clap:
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline Kirl

  • Senior Member
  • Pentium
  • ********
  • Posts: 1199
  • Karma: 230
    • View Profile
    • Homepage
Re: [Flash] Additive Blending Test
« Reply #7 on: April 25, 2011 »
That's a good start, some movement and scaling tweaks and you're there!
« Last Edit: April 25, 2011 by Kirl »
www.kirl.nl
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: [Flash] Additive Blending Test
« Reply #8 on: April 25, 2011 »
Nice particles of fire ;):)

Offline combatking0

  • JavaScript lives!
  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4569
  • Karma: 235
  • Retroman!
    • View Profile
    • Combat King's Barcode Battler Home
Re: [Flash] Additive Blending Test
« Reply #9 on: April 25, 2011 »
Thanks for the feedback, I'll add those changes soon.

I didn't think I'd be able to do anything like this in Flash, but being a member of this forum has taught me a great deal.
You are our 9001st visitor.
Challenge Trophies Won: