Archive: fairly realistic fire


30th December 2002 01:40 UTC

fairly realistic fire
Just to explain the file a bit...

It's kind of slow at higher resolutions since the number of dots increases exponentially. However to make the fire seem full I had to do this.

Feel free to mess with the code to try and make it run faster, since I'm sure its not completely optimized.

Also make sure that you are listening to some fairly loud music, since it is volume sensitive. At lower volumes it looks more like a candle than a blaze.

Also you might want to turn off the BG effect to improve performance. Just turn the entire first effect list off and turn the [Main] -> [Clear Every Frame] on for better results.

Well, what do you think? :)
:up: or :down: ?


30th December 2002 07:50 UTC

Sweet fire
Very cool. I like that fire. :up:


30th December 2002 20:53 UTC

Excellent you put it as your own thread:up:
Seeing as how i am a piro i like this one quite a bit :P
Good job!!!
Make more and send them in cause this one rocks!!


30th December 2002 22:21 UTC

Well this is kinda my remix of it :D:D
It's the same thing but only as a blue flame.
Maybe you might like it.:P
I was trying to figure out maybe how to get orange on top pf the blue
to kinda look like a Bunsen Burner Since i dont really understand super scope all that well i failed to do it lol
Well maybe you should give what i just said a shot i think it would look freakin amazing.


30th December 2002 23:06 UTC

How's about attaching the file you so vigorously advertized, kid? :p

The fire effect is nice, but I'd make it turn off when the music stops (e.g. red=v; green=v; blue=v). Also try making it a bit brighter...it's not really firey when it's that dull (color-wise).
And you really don't need that buffer save...just set the two sub-effect lists in the second effect list to:
ignore/replace
additive/replace
and get rid of those FPS-sucking buffer saves :) You can also turn off the clear every frame in the second effect list now (it's a minor speedup).

Slightly sped up DM code:
frame:
t=t+0.2

pixel:
y=y+0.05+rand(256)*0.0004+0.01*sin(t+x*10);
x=x*1.1+rand(256)*0.0002-0.025;
That creates almost the exact same effect; the difference is hardly noticeable.


31st December 2002 03:49 UTC

OK, here's the update.

Atero, thanks for pointing out that I don't need the effect lists. Also, I made the flame brighter, added a blur, and intruduced a simplistic particle "engine" to simulate flying embers. It's not really visible over the blur, though, so for the time I have only one particle set to be drawn. Just duplicate the N=1 effect list to see more, if you can make them out. Turn off the blur for a better look.

I tried your suggestion for the DM, but it seemed like it cheapened the effect, no offense. I modified it a bit to try to improve performance (I don't know if it even made a defference though), but your change seemed to make it flow strangly.

Anyway, thanks for the help Atero, and thanks for the support Kid! I'd like to see your remix, by the way. Meanwhile, I'll try to achieve a blue flame effect as well.


31st December 2002 05:41 UTC

*eyebrow* As I said, that code produces almost exactly (and I mean, EXACTLY) the same effect. The only difference is some round-offs. The same code, without rounding:

frame:
t=t+0.2;

pixel:
y=y+0.05+rand(256)*0.000390625+0.01*sin(t+x*10);
x=x*1.1+rand(256)*0.0001953125-0.025;

The only thing I did was get rid of unneeded calculations - t is only used once in pixel, and it's a linear incrementation, so t*0.2 isn't needed; just change the frame statement to t=t+0.2 instead. If I'm correct, the rand function prefers powers of 2, so I changed the two to rand(256). I adjusted the down-scaling accordingly so that the range is the same...so on and so forth. I just rounded those two numbers off because those last six digits weren't going to do much, and it takes another (minor) load off AVS's calculations. Don't tell me speedups ;)

And here's the problem with your embers: they're too small. Use cfp's convolution filter, or unconed's texer to texture them.


1st January 2003 08:30 UTC

Atero:
??


2nd January 2003 07:40 UTC

if you don't understand something, don't just go "??". it's really annoying, and it gets you nowhere.


2nd January 2003 07:44 UTC

This is all i have to say


3rd January 2003 15:36 UTC

I give you... ICED BLAZE.

Basicly, here are the differences between this and regular blaze:

-BG effect list removed.
-Blue unique effect.
-Much faster fire superscope. (Uses lines instead of dots.)
-Blue FyrewurX.
-3D "spiral base" superscope.
-Movement to give crystal effect.
-Two dynamic movements to create circular motion and zoom (one before "crystal" movement, one after)
-Buffer save and dynamic movement to create circular blur effect.

Enjoy!


3rd January 2003 16:59 UTC

Whoa!
this tripped me out lol
i like how its moving crazy!!
U impress me agaian!!!
lol
Very nice :up: :up: :up: :up:


3rd January 2003 22:42 UTC

ehh...i REALLY liked the original better :/


9th January 2003 21:30 UTC

The blaze <=== GOOD
The blaze2 <== BEST (like real... what else i can say)
The blaze remix <= Kid dont eaver try
The iced blaze <== good but still i dont like it - Too fast jumps on beat , too fast(i must run it on full scr.). I'd like it if it would look like real ice cube (it tryed to make ssc like this but i failed....looks like goob job for UnConeD).


9th January 2003 22:19 UTC

see now im usually an easy going guy..
i can handle tips and stuff like atero gives me
but honestly?!
dont even try Shut The Fuck up you faggot
i will try if i fucking want so fuck off
you could have at least have fucking said try harder or some shit
and i barely changed it i put in a new unique colour u idoit


10th January 2003 00:10 UTC

yeah, that was really rude...even i don't stoop that low :hang:
but that does not justify calling him a faggot, kid...i'm not bitching about the fact that you called him a faggot, but that you find it insulting.


10th January 2003 06:56 UTC

Awsome job Shock Value.

I like the first on the best ... the Ice blaze is very very ... umm I find it very interesting I like the way it moves and the ice offset part on top of the flame.
It's probably one of the best uses of the firewurkz plugin I've seen .... it looks like smashing bits of Ice. It should be called Icewurkz. All I can say to improve it, is to either slow or less sensitive the way it moves and have it as a part rather than a whole preset. Thats just it though isn't it is just a development.

Very impressed over all ... Have you been AVS'ng long ?? If not I have to say that Shock Value will be a great upand comming AVS'er.. I like your style.

Hey Kid, Sssssscool man I like your version. I can definatly see what your going for I noticed it lookd better when the music was not close to peaking.. mabey turn down the audio spectrum detection..

Jack, do you call your self the King because you dis fellow AVSers :hang: ?

Viz:igor:ual:igor:z:igor:Gone:igor:Abs:igor:tracT


10th January 2003 08:03 UTC

Here's my version of a different SSC that I played around with for about 30 mins check it out. Like to think it kind grows and lasts like a fire. Different code a bit simpler,less particles tho its a fire shaped getosc function.


Viz
:igor:
AG


10th January 2003 21:36 UTC

Thank you for the tips....
And nice AVS i thought of giving up AVS'ing but then i thot
Jack is a Basterd:igor:
So now i will make them just to piss him off
sorry for the recent swearing.
bad days i geuss.....
Well over all beutiful AVS

:up:
Keep it up


10th January 2003 21:54 UTC

You like snow too

looks like your not the only one

http://www.somethingawful.com/goldmi.../MC_Dookie.jpg

good on ya kid, stick to it. I'm sure bearboy here will get up again

:eek: I might stop with the pic's I've posted a few today :eek:


10th January 2003 21:56 UTC

LOL!!!!!!
The pictures are funny lol
i will aklways keep at it.
damn we have alot of snow in ontario now :D
yay!!!


10th January 2003 22:46 UTC

blaze1: Pretty decent. Fire is tricky, no? :)
blaze2: Better than the first... I think it looks more realistic.
iced blaze: That's pretty nifty! I love the "crystal-y" effect.
Kid's remix: I don't know what Jack's got against you... <_< But the orangey colour still comes through sometimes (I suppose it's because of that "bug" in the original that captures a little rectangle and makes it move to the front of the screen... can't be helped, I assume?). I can't praise you for it, since all you did was change the colour... :p
campfire: Hehehe, that's cool, Viz...

I didn't try out Atero's code yet... I'll have to see if it makes THAT much of a difference like Shock says. Overall, great work! Keep it up! :D

And you and your snow can go to hell, Kid! I live in Thunder Bay and all we have is -25 windchill! Bastard! :)


11th January 2003 01:16 UTC

once again, IT DOESN'T. It creates the exact same damn effect, whether you like it or not...


12th January 2003 19:02 UTC

SOORY... :(

Sorry kid. When i was writing this one i was havind my worst week of my life (I allmost failed in my russian, put i was lucky) and i was really angry (i allmost bet my brother up). OK man i take my insult back... Sorry again.

:winamp: avs winamp is love :winamp:
NB! Dont U ever call me a faggot again.


12th January 2003 19:10 UTC

Deam i can try but still there is someting wrong: :weird:

:winamp: avs winamp is love :winamp:
must be
:winamp: avs is LOVE :winamp:


12th January 2003 20:27 UTC

I take mine back too...
i understand what it's like man


12th January 2003 20:38 UTC

:)
Everyone make mistakes (like i did)...
I learn from my mistakes...
Thnx, I respect Ur kind people...
:)


12th January 2003 22:14 UTC

I really respect some1 that can appologise for their mistakes.. Sorry 2 hear about your bad week Jack, the best of us hav'em.

! ! ! Welcome ! ! ! to AVS, when shit gets you down Go hard at braining out AVS code and when things are really Good, do it too. For me it's the times of the middle ground that leave me blank. Meloncoly (spelling?) is my worst enemy. Take your time tho, it wont happen over-night but it will happen, just persist and search the forums for previous help threads. Post when you cant find things in there first.

And kid :0 you are a dude !


12th January 2003 22:23 UTC

Tnx...
Right no im thinkig myself brayndead (how do **** can i make 3D ssc cube [with a single ssc and clear lines]);


12th January 2003 22:45 UTC

To make a single SSC cube - (I'm assuming that you know how to use 3-D, if not search forums and look at Atero's primer).
Figure out coordinates for cube. Trace edges of cube(you will have to repeat some edges).
Your pixel editbox will be something like the following:
pt=pt+1; (don't forget to set pt to 0 in frame editbox)

x=if(equal(pt,1),<Insert coord>,x);
y=if(equal(pt,1),<Insert coord>,y);
z=if(equal(pt,1),<Insert coord>,z);

x=if(equal(pt,2),<Insert coord>,x);
...


13th January 2003 05:03 UTC

I have a supersope you can pick apart that will do a cube if you want. (and one that does just a cube)


13th January 2003 12:53 UTC

Anubis this what u sayd to me was bit 2 much (i gess i cant sleep 2 days now).
I gess i must learn more obout 3D ssc - ing.
I get the method (spellind) of doing 3D ssc (shadow and the wall. U take random 3D object, U show light on it and here u go there is the kind 3D object on 2D wall, simple isnt it [heh dream on], its all i know but i dont figure out math how to do it in ssc).
Ill check ur link out...


13th January 2003 15:00 UTC

Jack, Check out Atero's primer and search the forums. There are many places that will tell you how to project into 3-D.


13th January 2003 15:10 UTC

As soon as i have time.
I must go to training...


14th January 2003 06:26 UTC

jack the king: i said this in another thread, but i'll say it again here: USE THE DAMN EDIT BUTTON. Don't do double-posts like that, just use the edit button (right under the post) and change the post instead of making a new one.


14th January 2003 06:56 UTC

He's right you know...


17th January 2003 15:17 UTC

Originally posted by Jack the king
Anubis this what u sayd to me was bit 2 much (i gess i cant sleep 2 days now).
I gess i must learn more obout 3D ssc - ing.
I get the method (spellind) of doing 3D ssc (shadow and the wall. U take random 3D object, U show light on it and here u go there is the kind 3D object on 2D wall, simple isnt it [heh dream on], its all i know but i dont figure out math how to do it in ssc).
Ill check ur link out...
3d=easy

:

x2d=x3d/(cameradistance + scalefactor*z3d);
y2d=y3d/(cameradistance + scalefactor*z3d);

or, optimised:

buffer=1/(cameradistance + scalefactor*z3d);
x2d=x3d*buffer;
y2d=y3d*buffer;


obviously in avs x2d and y2d ar x and y. i just named the variables in a way that would allow me to explain it all without typing too much :p

17th January 2003 15:40 UTC

Ok, ok.
That was kinda easy one and i get this part now.
But now im in deem s**t with the 3D rotation.
:p
:rolleyes:
:hang:


17th January 2003 15:56 UTC

x2=x1*crz-y1*srz;
y2=x1*srz+y1*crz;
z2=z1;

x3=x2*cry+z2*sry;
y3=y2;
z3=-x2*sry+z2*cry;

x1=x3;
y1=y3*crx-z3*srx;
z1=y3*srx+z3*crx;


i can't be bothered to explain it... download one of my presets to see how it works.

EDIT: I explained this before and forgot about it :p

Go here: http://forums.winamp.com/showthread....hreadid=108222

There I explained 3d in much better detail than I have here.

There is another good discussion of 3d here too: http://forums.winamp.com/showthread....n&pagenumber=2


17th January 2003 16:00 UTC

for an explanation look here and read unconed's explanation.


17th January 2003 17:06 UTC

Atero, just wondering why you care so much that people do double posts? its not that big a deal.


17th January 2003 17:14 UTC

It causes posts like this to go onto 2 or more pages and can be really annoying when you have to see their avatar, signature and other stuff. Editing the post makes it much easier to read it.


18th January 2003 19:48 UTC

effectively the same reason i get pissed about people asking pointless questions that they could answer themselves in ten minutes or less.


20th January 2003 04:22 UTC

And den !