It looks like you're new here. If you want to get involved, click one of these buttons!
Does anyone have anything (shader or code) to make fire? I mean with animation. I'm also talking about very simple fire, like the one on this rocket right here. Thanks in advance.
https://goo.gl/images/n9Bzfa
Comments
Another solution would be to animate the flame in asesprite or photoshop and use the resulting spritesheet to play the whole animation in a loop. To make an animation from a spritesheet you can use one of the scripts from this discussion: https://codea.io/talk/discussion/5673/confused-about-sprite-animation-in-codea
The third solution involves making your own particle engine. John did a generic one here: https://codea.io/talk/discussion/634/particle-system-example
Here's one I made that offloads all the heavy lifting into a shader:
https://codea.io/talk/discussion/2516/particle-effect-in-a-shader
@spacemonkey I have a lot of different particle engines, I don't know how to make them look good for what I am aiming for
@se24vad I was gonna approach it the same way you did, except I can't find any good images and I can get vertices to work on my mesh, can anybody share som code, it would really be appreciated. Thanks!
I found this, i cannot remember who wrote it.....
If you try to go route (2) I described, you can use my Procreate-To-Codea-Animation-Tool mentioned here: https://codea.io/talk/discussion/7267/procreate-animation-player
And here are two tweets showing the process..
As you can tell, it doesn't matter if you can draw or not, you just need at least two frames of animation for it to work. (I did three)
@se24vad that looks really good, but also really difficult.
@piinthesky i think I might use that one, I have made one of my own, now I have to decide which one is better.
Thank you both!
Here is some fire I found on the internet and ported in. Alpha blending doesn't seem to work so I hard push it down to black, probably just something I'm rusty on.
From here: http://clockworkchilli.com/blog/8_a_fire_shader_in_glsl_for_your_webgl_games
You'll need this image to load in the setup:
https://s3-us-west-2.amazonaws.com/ccblogdemos/fire/flame.png
@spacemonkey Wow! This is amazing! You gotta teach me how you make your shaders, they are really great! Thank you so much!
I can't take credit, my process is:
1. google for something cool
2. copy it into Codea
3. poke it randomly till it works
;-)