Author Topic: fire effect source code  (Read 361 times)

touko

  • Hero Member
  • *****
  • Posts: 953
fire effect source code
« on: June 07, 2013, 11:40:34 PM »
Hi all .

I post the source code of this effect.
It's based on old tomaitheous's h-sync routine for huc.Even if i use my own h_sync routine now, the goal is the same.

You will see how simple this effect is  ..

http://rapidshare.com/files/493393077/fire_effect.zip
« Last Edit: June 11, 2013, 01:29:14 AM by touko »

Bonknuts

  • Hero Member
  • *****
  • Posts: 3292
Re: fire effect source code
« Reply #1 on: June 08, 2013, 01:31:08 PM »
Hi all .

I post the source code of this effect.
It's based on old tomaitheous's h-sync routine for huc.Even if i use my hown h_sync routine now, the goal is the same.

You will see how simple this effect is  ..

http://rapidshare.com/files/493393077/fire_effect.zip


 Where did you get that sin table from? Great effect :D

touko

  • Hero Member
  • *****
  • Posts: 953
Re: fire effect source code
« Reply #2 on: June 08, 2013, 10:15:29 PM »
at first I wanted to make a simple wavy effect, as in a level of Thunder force 3  .

And I forgot to initialize the sin table,the result was this effect,i just had to put some values on screen to see how kind of values are needed .

To summarize, is a wavy effect with chaotic values .

In fact this effect is due to chance lol ..
« Last Edit: June 08, 2013, 10:19:26 PM by touko »

Bonknuts

  • Hero Member
  • *****
  • Posts: 3292
Re: fire effect source code
« Reply #3 on: June 11, 2013, 02:18:37 PM »
It's a great effect. Thanks for sharing the sine table :D

touko

  • Hero Member
  • *****
  • Posts: 953
Re: fire effect source code
« Reply #4 on: June 12, 2013, 01:03:05 AM »
Thanks,this is my modest contribution ;-) .

You can see it in action in the menu of my ik like game :

Of course it's very smooth on real hardware,and may be add a blur effect make it more realistic, or less pixelated..
« Last Edit: June 12, 2013, 01:15:51 AM by touko »

roflmao

  • Hero Member
  • *****
  • Posts: 4830
Re: fire effect source code
« Reply #5 on: June 12, 2013, 03:35:45 AM »
Nice!