History: POVRay Explosions
Source of version: 5 (current)
Copy to clipboard
A little pov-ray script to generate explosion effects and similar plasma things for use as textures on billboards.
Replace in the following pov script:
* __TURBULENCE__ by a float of how turbulent the effect should be, maybe 0.2 + 0.6 * frand()
* __TURBSTART__ by a float to be used as seed for the effect maybe 100 * frand() (can be animated when stepping with stepsize < 1.0 or so)
* __EMISSION__ by a float how bright the effect should be, maybe 0.6 + 0.5 * frand()
* __COLORMAP__ by a colormap, like this:
{CODE(wrap="1",colors="povray")}[ 0.000 0.270 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
[ 0.270 0.280 color rgb <.5,.5,.4> color rgb <.8,.8,.4> ]
[ 0.280 0.470 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
[ 0.470 0.480 color rgb <.4,.4,.5> color rgb <.4,.4,.8> ]
[ 0.480 0.680 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
[ 0.680 0.690 color rgb <.5,.4,.4> color rgb <.8,.4,.4> ]
[ 0.690 0.880 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]
[ 0.880 0.890 color rgb <.5,.5,.5> color rgb < 1, 1, 1> ]
[ 0.890 1.000 color rgb < 0, 0, 0> color rgb < 0, 0, 0> ]{CODE}
Here is the .pov file :
{CODE(wrap="1",colors="povray")}// Persistence of Vision Raytracer Version 3.5 Scene Description File
//
//*******************************************
global_settings {
//max_trace_level 5
}
#include "colors.inc"
camera {
location <0,0,-2.3>
//angle 90
right <1,0,0> up <0,1,0>
// clock
}
background { color rgb <0,0,0> }
sphere { < 0, 0, 0>, 4
// pigment { rgbt 1 } // surface of sphere is transparent
pigment { rgbt 1 } // surface of sphere is transparent
interior {
media {
emission __EMISSION__
intervals 1
samples 33
method 3
density {
spherical
ramp_wave
translate (__TURBSTART__ + clock*1.0)*y // replace 1.0 = t by time for animation
warp { turbulence __TURBULENCE__ }
translate -(__TURBSTART__ + clock*1.0)*y // replace -1.0 = -t by time for animation
color_map {
[0.0 color rgb <0, 0, 0>]
__COLORMAP__
}
}
scale 0.7
}
}
//translate 25*y
hollow
}{CODE}
I also made a php script to generate lots of random explosions over night,
so I can pick out the good ones later, for that and a few more notes on povray see
[http://ghoulsblade.schattenkind.net/wiki/index.php/Povray] samples:
||{IMG(src="img/wiki_up/Gb_plasma03.jpg",thumb="y",button="y",rel="box[g]")}{IMG}|{IMG(src="img/wiki_up/Gb_plasma02.jpg",thumb="y",button="y",rel="box[g]")}{IMG}|{IMG(src="img/wiki_up/Gb_plasma01.jpg",thumb="y",button="y",rel="box[g]")}{IMG}||
I generated a few thousands of those, they can be downloaded (including source/breed .pov files) under
[http://ghoulsblade.schattenkind.net/files/pov/povray_exploder/]
(feel free to use what you like, they are under public domain). They can also be generated to create nice spacy skyboxes.