home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / EXPLODE.ZIP / EX_EXP1.POV next >
Encoding:
Text File  |  1997-03-10  |  1.1 KB  |  33 lines

  1. // OBJECT EXPLODER: SAMPLE FILE 1
  2. // ******************************
  3. // This scene illustrates how adding turbulence to an explosion via the
  4. // "exp_turb" variable affects the Object Exploder output.
  5.  
  6. // CAMERA AND LIGHTS
  7.    camera {location <5, 10, -15> look_at <0, 0, 0> angle 50}
  8.    light_source {<-10, 0, -50> rgb 1}
  9.    light_source {<20, 40, 10> rgb 1}
  10.  
  11. // EXPLOSION PARAMETERS
  12.    #declare explode_object = sphere {<0, 0, 0>, 1
  13.       pigment {bozo color_map {[0 rgb <1, 0, 0>] [1 rgb <1, 1, 0>]}}
  14.       finish {phong .3 phong_size 35}}
  15.  
  16.    #declare particle_texture = texture {
  17.       pigment {bozo color_map {[0 rgb <.5, .2, .2>] [1 rgb <.5, .5, .2>]}}
  18.       finish {phong .2 phong_size 25}}
  19.  
  20.    #declare explode_clock = .1
  21.    #declare object_hollow = false
  22.  
  23. // FIRST OBJECT: NO TURBULENCE
  24.    object {#include "Explode.inc" translate <-5, 0, 0>}
  25.  
  26. // SECOND OBJECT: LOW TURBULENCE
  27.    #declare exp_turb = .1
  28.    object {#include "Explode.inc"}
  29.  
  30. // THIRD OBJECT: HIGH TURBULENCE
  31.    #declare exp_turb = 1
  32.    object {#include "Explode.inc" translate <5, 0, 0>}
  33.