| 
|  |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  | // Global Settings
global_settings {
  ambient_light rgb 0
  }
// Camera
camera {
  location <0, 0, -600>
  look_at <0, 0, 0>
  rotate <45, 0, 0>
  }
// Light Source
light_source {
  <-1000, 1000, -1000>
  color rgb 2
  // area_light <50, 0, 0>, <0, 0, 50>, 5, 5
  // jitter
  }
// Textures
#declare my_purple =
  texture {
    pigment { color rgb <.5, .125, .5> }
    normal { bozo }
    finish { reflection { .05, .125 } }
    }
#declare my_yellow =
  texture {
    pigment { color rgb <1, .75, 0> }
    finish { specular 1 roughness .005 reflection { .125, .5 } }
    }
#declare my_red =
  texture {
    pigment { color rgb <.5, .125, 0> }
    finish { specular 1 roughness .005 reflection { .125, .5 } }
    }
#declare my_green =
  texture {
    pigment { color rgb <.125, .25, 0> }
    finish { specular 1 roughness .0025 reflection { .125, .5 } }
    }
// Shapes
#declare pepper =
blob {
  threshold .15
  #local Sections = 90;
  #local Deg = 90 / Sections;
  #while (Sections > 0)
    sphere {
      <0, 50, 0>
      20 + sin(Sections / 90) * 30
      1
      translate <0, 0, -100>
      rotate <0, Sections * Deg, 0>
      }
    #local Sections = Sections - 1;
  #end
  rotate <0, -40, 0>
  }
// Objects
plane { y, 0 texture { my_purple } }
object { pepper translate <0, 0, -25> texture { my_yellow } }
object { pepper translate <0, 0, -25> rotate <0, 120, 0> texture {
my_red } }
object { pepper translate <0, 0, -25> rotate <0, 240, 0> texture {
my_green } }
Post a reply to this message
 |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  |  
|  |  | Here's (hopefully) without line-wrap:
#include "shapes.inc"
// Global Settings
global_settings {
  ambient_light rgb 0
  }
// Camera
camera {
  location <0, 0, -600>
  look_at <0, 0, 0>
  rotate <45, 0, 0>
  }
// Light Source
light_source {
  <-1000, 1000, -1000>
  color rgb 2
  // area_light <50, 0, 0>, <0, 0, 50>, 5, 5
  // jitter
  }
// Textures
#declare my_purple =
  texture {
    pigment { color rgb <.5, .125, .5> }
    normal { bozo }
    finish { reflection { .05, .125 } }
    }
#declare my_yellow =
  texture {
    pigment { color rgb <1, .75, 0> }
    finish { specular 1 roughness .005 reflection { .125, .5 } }
    }
#declare my_red =
  texture {
    pigment { color rgb <.5, .125, 0> }
    finish { specular 1 roughness .005 reflection { .125, .5 } }
    }
#declare my_green =
  texture {
    pigment { color rgb <.125, .25, 0> }
    finish { specular 1 roughness .0025 reflection { .125, .5 } }
    }
// Shapes
#declare pepper =
blob {
  threshold .15
  #local Sections = 90;
  #local Deg = 90 / Sections;
  #while (Sections > 0)
    sphere {
      <0, 50, 0>
      20 + sin(Sections / 90) * 30
      1
      translate <0, 0, -100>
      rotate <0, Sections * Deg, 0>
      }
    #local Sections = Sections - 1;
  #end
  rotate <0, -40, 0>
  }
// Objects
plane { y, 0 texture { my_purple } }
object { pepper translate <0, 0, -25> texture { my_yellow } }
object { pepper translate <0, 0, -25> rotate <0, 120, 0> texture { my_red } }
object { pepper translate <0, 0, -25> rotate <0, 240, 0> texture { my_green } }
Post a reply to this message
 |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |