POV-Ray : Newsgroups : povray.advanced-users : special effect: glass-sphere with alpha-background : Re: special effect: glass-sphere with alpha-background Server Time
28 Jul 2024 14:24:45 EDT (-0400)
  Re: special effect: glass-sphere with alpha-background  
From: Mike Williams
Date: 27 Jan 2005 20:41:51
Message: <feLEoDAoeZ+BFwcK@econym.demon.co.uk>
Wasn't it Kaeru Gaman who wrote:
>> Then you can make all the other objects in the scene be no_image, so
>> they won't be seen directly but will be seen in the refracted
>> reflection.
>
>i dint discover the no_image command yet.
>
>will it also work for only refracted rays? that would made it possible, to
>just not chenge the scene, only add the no_image flag to the background
>objects...

No. Objects with no_image are not visible when refracted, only when
reflected.


#declare MIRROR=1;      // toggles the mirror
camera {location  <0,0,-10> look_at <0,0,0> angle 30}
light_source {<-30, 100, -30> color rgb 1}
background{rgb 1}
// glass ball
sphere {0,1 
  pigment {rgbt <1,1,1,0.9>}
  interior {ior 1.2}
}
#if (MIRROR)            // add the mirror
  disc{0,-z,1 finish{reflection 1}}
#end
// a background object
text {ttf "crystal.ttf","POV-Ray",0.1,0
  pigment {rgb x}
  translate <-1.5,-0.1,4>
  #if (MIRROR)
    scale <1,1,-1>      // reposition it
    no_image            // make invisible
  #end
}


-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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