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

  1. // OBJECT EXPLODER: SAMPLE FILE 2
  2. // ******************************
  3. // This scene illustrates how adjusting the particle resolution of an
  4. // explosion via the "particle_res" variable affects the Object Exploder
  5. // 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, .5, 0>] [1 rgb <1, 1, 0>]}}
  15.       finish {phong .3 phong_size 35}}
  16.  
  17.    #declare particle_texture = texture {
  18.       pigment {bozo color_map {[0 rgb <.2, .4, .2>] [1 rgb <.5, .5, .2>]}}
  19.       finish {phong .2 phong_size 25}}
  20.  
  21.    #declare explode_clock = .1
  22.    #declare object_hollow = false
  23.  
  24. // DEFAULT PARTICLE RESOLUTION <3, 3, 3>
  25.    object {#include "Explode.inc" translate <-5, 0, 0>}
  26.  
  27. // PARTICLE RESOLUTION EXAMPLE 2
  28.    #declare particle_res = <6, 1, 6>
  29.    object {#include "Explode.inc"}
  30.  
  31. // PARTICLE RESOLUTION EXAMPLE 3
  32.    #declare particle_res = <2, 12, 2>
  33.    object {#include "Explode.inc" translate <5, 0, 0>}
  34.