1
General coding questions / Re: Improving the basic fire effect
« on: November 16, 2012 »I found a good tutorial by HugoElias.
Many times i did fire effect, but never used "Cooling map". I think it is a very good idea.
BTW: i prefer this palette:
Code: [Select]
for (c=0;c<=25;c++) { // black to red
r[c]=(c*10);
g[c]=0;
b[c]=0;
}
for (c=26;c<=85;c++) { // red to yellow
r[c]=255;
g[c]=((c-25)*420) / 100;
b[c]=0;
}
for (c=86;c<=141;c++) { // yellow to white
r[c]=255;
g[c]=255;
b[c]=((c-86)*451) / 100;
}
for (c=142;c<255;c++) { // and then white only
r[c]=255;
g[c]=255;
b[c]=255;
}
