POV-Ray : Newsgroups : povray.newusers : Trace with pigments : Re: Trace with pigments Server Time
28 Jul 2024 16:30:07 EDT (-0400)
  Re: Trace with pigments  
From: Chris B
Date: 5 Jul 2008 10:35:04
Message: <486f8698$1@news.povray.org>
"Chris B" <nom### [at] nomailcom> wrote in message 
news:486f850b@news.povray.org...
> The downside to this hack is that your camera ends up technically 'inside' 
> the object which will mess up interior features like media if you want to 
> use them in the same scene.

Actually I just realised that the following small change should remove or 
minimalise the impact of that downside:

Regards,
Chris B.


camera {location <0,0,-4> look_at 0 }
light_source {<-1,0 ,-4>, rgb 3}

#declare MyObject = intersection {
  box {-1,1 pigment {agate scale 2} }
  sphere {0,1.25 pigment {agate scale 2}}
}

#declare MyObjectWithSpheres = difference {
  object {MyObject inverse}
  sphere {<0,-0.3,-1.04>,0.04}
  sphere {<0.5,0.5,-1.04>,0.04}
  cutaway_textures
}

intersection {
  sphere {0,1.33 pigment {rgbt 1}}
  object {MyObjectWithSpheres}
}


Post a reply to this message

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