POV-Ray : Newsgroups : povray.general : Glass in glass : Re: Glass in glass Server Time
13 Aug 2024 21:27:44 EDT (-0400)
  Re: Glass in glass  
From: Kenneth L Tyler
Date: 20 Jun 1998 06:54:12
Message: <358B94D4.6CE9BA03@pacbell.net>
Jan Danielsson wrote:

> Hello!
> Yesterday I got an idea I wanted to try in povray. A glass bowl containing
> some blue liquid.
> Any ideas?
> (Btw, using povray3)

  Not wanting to beat a dead horse too many more times But! With the rich
programing language and amazing diversity of PovRay there are always different
ways of getting from here to there.
For example:

  merge{
  difference{
  sphere{y*0,50}
  sphere{y*0,49.99 inverse}clipped_by{plane{y,5}}
  texture{Glass pigment{Yellow filter 1}finish{ambient .6}}}
  sphere{y*0,49.999 clipped_by{plane{y,-10}}
  texture{Glass pigment{Orange filter 1}finish{ambient .6}}}}

  plane{y,-50 pigment{rgb 1}}
  plane{y, 50 pigment{rgb 1}}
  light_source{<0,0,0>color White}
  camera{location -290*z look_at y*0}

 Instead of reducing the size of your "liquid" object try over sizing it just a
scunch and use the often overlooked merge CSG function. What with spherical
abhorration and the physical characteristics of
refraction I believe you'll never detect the slight demarcation line produced by
minimal over sizing.


Post a reply to this message

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