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

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