POV-Ray : Newsgroups : povray.text.scene-files : Code inspired by PLC Server Time
28 Jul 2024 12:26:37 EDT (-0400)
  Code inspired by PLC (Message 1 to 1 of 1)  
From: Adam Coffman
Subject: Code inspired by PLC
Date: 6 May 2000 12:21:44
Message: <39144697.D81B4173@ipfw.edu>
This is the code for the CSG object I posted yesterday in
binaries.images.

Adam C.

..........................................................

// Image inspired by the logo competition
// Adam Coffman, 5-5-00

camera {
    location  <-3, 2.9, -2.4>
    look_at   <0, 0, 0>    
       }
 
  plane { <1,0,0>, 2.5 pigment{checker color rgb<1,1,1> color
rgb<0.8,0.8,0.8>}}
  plane { <0,0,1>, 2.5 pigment{checker color rgb<1,1,1> color
rgb<0.8,0.8,0.8>}}
  plane { <0,1,0>, -2.5 pigment{checker color rgb<1,1,1> color
rgb<0.8,0.8,0.8>}}
                 
  difference{
                 
  quartic { <
             0, 0, 0, 0, 0, 0, 0, 1, -2, 1, 0, 0, 0, 0, 0, 
             0, 0, 0, 0, 0, 1, 0, 0, 1, 0, -1, 0, 0, 0, 0, 
             0, 0, 0, 0, 0> sturm
   pigment {rgb <0,1,0.5>}
   finish { ambient 0.2  phong 0.6  phong_size 70}    
          }
  
  union{
  cylinder { <-1,0,0> <1,0,0>, 0.4
             pigment { rgb<0,0.5,1> }
             finish { ambient 0.3}
           } 
  box { <0,-0.4,1>,<1,-1,-1>
             pigment { rgb<0,0.5,1> }
             finish { ambient 0.3}
           }          
  prism {
         linear_sweep
         linear_spline
         -2, 2, 4, <0,0>, <0.55,1.01>, <0,1.01>, <0,0>
         pigment { rgb<0,0.5,1> }
         finish { ambient 0.3}
  }
       }            
   bounded_by { box { <-1,-1,-1>, <1,1,1> } }
   clipped_by { bounded_by }        
 }
   
  light_source{<0,40,0> color rgb<1,1,1>} 
  light_source{<-40,0,0>color rgb<1,1,1>}
  light_source{<0,0,-40>color rgb<1,1,1>}


Post a reply to this message

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