POV-Ray : Newsgroups : povray.advanced-users : cutaway_textures when not using the default texture : Re: cutaway_textures when not using the default texture Server Time
6 Oct 2024 12:53:50 EDT (-0400)
  Re: cutaway_textures when not using the default texture  
From: Jim Charter
Date: 3 Jan 2007 23:40:54
Message: <459c8556$1@news.povray.org>
Jim Charter wrote:

e.g.


#macro T(P)
   texture {
           finish{ambient .5}
           pigment { rgb P }
   }
#end

#macro DefT()
   texture {
           finish{ambient .5}
           pigment { rgb 1 }
   }
#end

union {
   difference {
     union {
       object{box {-1, 1 DefT()} T(x)}
       object{box {<-2,-1,-1><-3, 1, 1> DefT() } T(x+y)}
       object{box {<-3,-1,-1><-4, 1, 1> DefT() }}
     }
     object{box {0,<-5,2,2>}}
     cutaway_textures
   }

   object{box {<-1,-1,-1><-2, 1, 1> DefT()}}
   object{box {<-4,-1,-1><-5, 1, 1> DefT()} T(z)}

}

light_source {
   0*x
   color rgb <1,1,1>
   translate <0.0, 2.0,  15.0>
}
camera {
   location  <3.0, 6.0,  15.0>
   look_at   <0.0, 0.0,  0.0>
   right     x*image_width/image_height
}


Post a reply to this message

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