POV-Ray : Newsgroups : povray.general : Glass in glass Server Time
6 Nov 2024 00:28:59 EST (-0500)
  Glass in glass (Message 1 to 5 of 5)  
From: Jan Danielsson
Subject: Glass in glass
Date: 10 Jun 1998 08:09:20
Message: <wnaqnavryffbasnyhaznvygryvnpbz.eucibk0.pminews@news.povray.org>
Hello!

Yesterday I got an idea I wanted to try in povray. A glass bowl containing
some blue liquid.

I made the bowl easily:

difference {
   sphere <0, 0, 0>, 1
   sphere <0, 0, 0>, 0.98
  ...and a plane to cut the top off...
  texture { T_Glass3 }
}

and then I made the 'liquid' in a similar way (one sphere with radius 0.98
and cut the top off with a plane).

However.. When looking at this 'bowl' I see the grayish color I set the bowl
to have, but eventhough it is transparent, I cannot see the 'blue liquid
object' through it.

It I remark the 'bowl' and only render the 'liquid' object, it looks great.

When I look at the object from 'above' it looks as it should.


Am I missing something?

Dan Farmer has made glass truely transparent in his Wg6.pov, Why can't I?
(The answer being pretty obvious :-)

Any ideas?


(Btw, using povray3)



 /j


Post a reply to this message

From: Johannes Hubert
Subject: Re: Glass in glass
Date: 10 Jun 1998 07:59:56
Message: <6llsfj$lol$1@oz.aussie.org>
A problem of coinciding surfaces?

Try making your "liquid" sphere a bit smaller than 0.98 (like 0.979)

Just a guess,
Johannes.


Post a reply to this message

From: Nieminen Mika
Subject: Re: Glass in glass
Date: 10 Jun 1998 10:30:55
Message: <6lm5av$m24$1@oz.aussie.org>
Jan Danielsson <Jan### [at] falunmailteliacom> wrote:
: However.. When looking at this 'bowl' I see the grayish color I set the bowl
: to have, but eventhough it is transparent, I cannot see the 'blue liquid
: object' through it.

  The coinciding surfaces -problem. Leave a 0.00001 sized space between
the glass and the liquid.

-- 
                                                              - Warp. -


Post a reply to this message

From: Thomas Willhalm
Subject: Re: Glass in glass
Date: 10 Jun 1998 10:47:18
Message: <qqmbts1s495.fsf@goldach.informatik.uni-konstanz.de>
"Jan Danielsson" <Jan### [at] falunmailteliacom> writes:

> Hello!
> 
> Yesterday I got an idea I wanted to try in povray. A glass bowl containing
> some blue liquid.
> 
> I made the bowl easily:
> 
> difference {
>    sphere <0, 0, 0>, 1
>    sphere <0, 0, 0>, 0.98
>   ...and a plane to cut the top off...
>   texture { T_Glass3 }
> }
> 
> and then I made the 'liquid' in a similar way (one sphere with radius 0.98
> and cut the top off with a plane).
> 
> However.. When looking at this 'bowl' I see the grayish color I set the bowl
> to have, but eventhough it is transparent, I cannot see the 'blue liquid
> object' through it.
> 
> It I remark the 'bowl' and only render the 'liquid' object, it looks great.
> 
> When I look at the object from 'above' it looks as it should.

IMO this is not the 'coincing surfaces problem' (but you should avoid them
anyway). I suppose you have to change the max_trace_level. See section 7.8.6
of the docs. The default value is five and therefore too small: four 
intersections with the glass object and two more with the liquid.

I hope this helps

ThW

-- 
Tho### [at] uni-konstanzde
http://www.informatik.uni-konstanz.de/~willhalm/
Tschieses lavs ju


Post a reply to this message

From: Kenneth L Tyler
Subject: Re: Glass in glass
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.