POV-Ray : Newsgroups : povray.newusers : A "realistic" plastic hemisphere. : Re: A "realistic" plastic hemisphere. Server Time
28 Jul 2024 22:24:07 EDT (-0400)
  Re: A "realistic" plastic hemisphere.  
From: Trevor G Quayle
Date: 4 Jul 2007 23:45:01
Message: <web.468c6935c3c45a2b5e73ab330@news.povray.org>
"triple_r" <rre### [at] hotmailcom> wrote:
> camera{location <1,3,3> look_at 0}
> light_source{<25,25,25> rgb 1}
> difference{
>  difference{
>   sphere{0,1}
>   sphere{0,.95}
>  }
>  cylinder{0,y*2,0.3}
>  plane{-z,0}
>  pigment{rgb 1}
> }
>

This works, but the extra difference is unnecessary, everything after the
first object in a difference is differenced from it:

difference{
  sphere{0,1}
  sphere{0,.95}
  cylinder{0,y*2,0.3}
  plane{-z,0}
  pigment{rgb 1}
}


Post a reply to this message

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