POV-Ray : Newsgroups : povray.general : Texturing the inside of a hollow hemisphere : Re: Texturing the inside of a hollow hemisphere Server Time
26 Sep 2024 17:44:09 EDT (-0400)
  Re: Texturing the inside of a hollow hemisphere  
From: Kenneth
Date: 10 Sep 2010 16:20:01
Message: <web.4c8a9236e8b7098e196b08580@news.povray.org>
"Kenneth" <kdw### [at] earthlinknet> wrote:

Oops, I made a dumb mistake there. The macro textures should be like this...

#macro dome(position, rayon, insideTexture, outsideTexture)
     difference{
       difference{
           sphere{position, rayon*1.11 texture{outsideTexture}}
           sphere{position, rayon
                texture{pigment{rgb .5}} // any color at all, for the 'outside'
                                         // of this dome shape
                interior_texture{insideTexture}
                 }
         box{position-<rayon*1.11,0,rayon*1.11>,
 position+<rayon*1.11,rayon*1.11,rayon*1.11>}
     }
 #end


Post a reply to this message

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