POV-Ray : Newsgroups : povray.text.scene-files : Acrylics Server Time
1 Nov 2024 03:15:21 EDT (-0400)
  Acrylics (Message 1 to 2 of 2)  
From: Aaron Gillies
Subject: Acrylics
Date: 27 Aug 2002 21:05:24
Message: <3d6c21d4$1@news.povray.org>
// 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

From: Aaron Gillies
Subject: Re: Acrylics
Date: 27 Aug 2002 21:07:25
Message: <3d6c224d$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.