POV-Ray : Newsgroups : povray.text.scene-files : Ball Ornaments for Christmas Server Time
31 Oct 2024 14:11:34 EDT (-0400)
  Ball Ornaments for Christmas (Message 1 to 1 of 1)  
From: omniVERSE
Subject: Ball Ornaments for Christmas
Date: 29 Nov 1999 10:02:52
Message: <3842959c@news.povray.org>
// rendered image can be found at p.b.i. with similar subject name

// Persistence of Vision Ray Tracer Scene Description File
// File: ornaments.pov
// Vers: 3.1
// Desc: Christmas Ornament Balls
// Date: 99.9
// Auth: Bob Hughes
// Mail: inv### [at] aolcom?Subject=PoV-Scene

global_settings {
        assumed_gamma 2.5
        ambient_light <1.05,1.1,1.2>
}

camera {location <0,3,-9> up y right 2.5*x angle 55 look_at y/1.5}
light_source {<-10,12.5,-10>,<.75,.75,.75> fade_distance 25 fade_power 1}
light_source {<5,7.5,-15>,<.75,.5,.25>*.75 fade_distance 15 fade_power 2}
light_source {<-10,-2.5,-10>,<.25,.75,.5>*.75 fade_distance 15 fade_power 2}
light_source {<0,-1,-15>,<.25,.5,.75>*.75 fade_distance 15 fade_power 2}

height_field {gif "snowground" smooth // any undulating grayscale image will
do okay
 texture {
          pigment {gradient y frequency -1 turbulence .3 color_map {
                        [0 rgb 1]
                        [.25 rgb <.975,.98,.99>]
                        [.5 rgb <.95,.975,.99>]
                        [1 rgb<.9,.95,1>]
          } scale 2.2 translate -y }
          normal {spherical .2 frequency 18 turbulence .6 sine_wave}
           finish {ambient <.25,.3,.4> diffuse .75 specular .15 roughness
.01 phong .15 phong_size 1 metallic .25 brilliance 1}
 }
  translate <-.5,0,-.5> scale <200,1.5,200> translate <0,-6.67,75>
}

disc {0,y,1 pigment {rgb .05} normal {crackle .25} finish {diffuse .8 phong
.1 phong_size 10} scale <75,1,27.5> translate <0,-6,-20>}

#declare OrnTex_R=
 texture {
          pigment {color red 1.5}
           finish {diffuse .33 specular .9 roughness .002 phong .2
phong_size 9 metallic .7 brilliance 3 reflection <.6,.3,.4>*1}
         }
 texture {
          pigment {gradient y turbulence .2 color_map {
                        [0 rgb 1 filter .2]
                        [.25 rgb 1.25 filter .4]
                        [.5 blue 1.25 filter .97]
                        [1 blue 1.25 filter .97]
          } scale 2.2 translate -y }
          normal {spherical .02 frequency 18 turbulence .6 sine_wave}
           finish {ambient .5 diffuse .133 specular .6 roughness .004 phong
.15 phong_size 1 metallic .7 brilliance -.3 reflection <.6,.3,.4>*.5}
         }

#declare OrnTex_G=
 texture {
          pigment {color green 1.5}
           finish {diffuse .33 specular .9 roughness .002 phong .2
phong_size 9 metallic .7 brilliance 3 reflection <.3,.6,.4>*1}
         }
 texture {
          pigment {gradient y turbulence .2 color_map {
                        [0 rgb 1 filter .2]
                        [.25 rgb 1.25 filter .4]
                        [.5 blue 1.25 filter .97]
                        [1 blue 1.25 filter .97]
          } scale 2.2 translate -y }
           normal {spherical .02 frequency 18 turbulence .6 sine_wave}
           finish {ambient .5 diffuse .133 specular .6 roughness .004 phong
.15 phong_size 1 metallic .7 brilliance -.3 reflection <.3,.6,.4>*.5}
         }

#declare OrnTex_B=
 texture {
          pigment {color blue 1.5}
           finish {diffuse .33 specular .9 roughness .002 phong .2
phong_size 9 metallic .7 brilliance 3 reflection <.3,.4,.6>*1}
         }
 texture {
          pigment {gradient y turbulence .2 color_map {
                        [0 rgb 1 filter .2]
                        [.25 rgb 1.25 filter .4]
                        [.5 red 1.25 filter .97]
                        [1 red 1.25 filter .97]
          } scale 2.2 translate -y }
           normal {spherical .02 frequency 18 turbulence .6 sine_wave}
           finish {ambient .5 diffuse .133 specular .6 roughness .004 phong
.15 phong_size 1 metallic .7 brilliance -.3 reflection <.3,.4,.6>*.5}
         }

#declare OrnTex_Y=
 texture {
          pigment {color rgb <1.5,1.5,0>}
           finish {diffuse .33 specular .9 roughness .002 phong .2
phong_size 9 metallic .7 brilliance 3 reflection <.6,.6,.3>*1}
         }
 texture {
          pigment {gradient y turbulence .2 color_map {
                        [0 rgb 1 filter .2]
                        [.25 rgb 1.25 filter .4]
                        [.5 green 1.25 filter .97]
                        [1 green 1.25 filter .97]
          } scale 2.2 translate -y }
           normal {spherical .02 frequency 18 turbulence .6 sine_wave}
           finish {ambient .5 diffuse .133 specular .6 roughness .004 phong
.15 phong_size 1 metallic .7 brilliance -.3 reflection <.6,.6,.3>*.5}
         }


#declare Hook=
union {
 // collar
 cylinder {0,y,1 clipped_by {cylinder {-y,y,1 scale <.5,1.1,.5> inverse}}
        pigment {rgb 1.5} normal {radial .15 frequency 30 scallop_wave}
         finish {diffuse .33 specular .9 roughness .02 metallic .5
brilliance 1 reflection .4}
        scale <.25,.2,.25> translate 1.125*y
 }
 // hook
union {
        cylinder {-y*3.33,.25*y,.075 translate x}
        torus {1,.075 rotate 90*x clipped_by {box {-1.33,1.33 rotate 15*z
translate y}}}
        torus {.75,.075 scale <.75,1,.75> rotate 90*x
                 clipped_by {box {-1.133,1.133 rotate 195*z translate -y}}
                  rotate -22.5*z translate <.45,-3.33,0>}
        cylinder {0,2.5*y,.075 rotate <2,0,-33> translate <-.1,-3.1,0>}
 // hook latch
        torus {.75,.075 scale <.75,1,.75> rotate 90*x
                 clipped_by {box {-1.133,1.133 translate y}}
                  rotate <0,30,-22.5> translate <.5,-4.3,0>}
  pigment {rgb 1}
   scale <.175,.2,.175> rotate -7.5*z translate 2.175*y
 }
}

#declare OrnRed =
union {
 union {
 // ball
sphere {0,1}
 // neck
torus {.35,.2 scale <1,1.25,1> clipped_by {sphere {0,1 scale <.35,.15,.35>
translate -.025*y}}
 scale <1.25,1,1.25> translate 1.125*y}
  texture {OrnTex_R}
 }
object {Hook}
}

#declare OrnGreen =
union {
 union {
 // ball
sphere {0,1}
 // neck
torus {.35,.2 scale <1,1.25,1> clipped_by {sphere {0,1 scale <.35,.15,.35>
translate -.025*y}}
 scale <1.25,1,1.25> translate 1.125*y}
  texture {OrnTex_G}
 }
object {Hook}
}

#declare OrnBlue =
union {
 union {
 // ball
sphere {0,1}
 // neck
torus {.35,.2 scale <1,1.25,1> clipped_by {sphere {0,1 scale <.35,.15,.35>
translate -.025*y}}
 scale <1.25,1,1.25> translate 1.125*y}
  texture {OrnTex_B}
 }
object {Hook}
}

#declare OrnYellow =
union {
 union {
 // ball
sphere {0,1}
 // neck
torus {.35,.2 scale <1,1.25,1> clipped_by {sphere {0,1 scale <.35,.15,.35>
translate -.025*y}}
 scale <1.25,1,1.25> translate 1.125*y}
  texture {OrnTex_Y}
 }
object {Hook}
}

object {OrnRed rotate <3,30,-9> translate <-3.3,0,1>}

object {OrnGreen rotate <-3,-125,9> translate <-1.1,0,1>}

object {OrnBlue rotate <3,45,-9> translate <1.1,0,1>}

object {OrnYellow rotate <-3,-115,9> translate <3.3,0,1>}


// omniVERSE
// http://users.aol.com/inversez/


Post a reply to this message

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