POV-Ray : Newsgroups : povray.advanced-users : Waterdrops on Glass... How? Server Time
29 Jul 2024 10:31:22 EDT (-0400)
  Waterdrops on Glass... How? (Message 15 to 24 of 34)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Tim Nikias
Subject: Re: Waterdrops on Glass... How?
Date: 14 Jan 2003 16:34:46
Message: <3e248276@news.povray.org>
As mentioned to Florian Brucker, here's a link to a better
and more handsome PDF-Version:
http://www.eml.hiroshima-u.ac.jp/member/staff/kin/publications/CA93/wdroplet
.pdf

If you actually do it, remember to comment it the SDL heavily,
so that others might learn from it. I know, you're french, and would
probably comment in french, but I'm german and still try to stick to
english when naming parameters and such, so that most Users might
learn something and understand it very easily...

And from your posts it doesn't look like you're not skilled enough for
english commentary! :-)

Regards,
Tim

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

From: Gilles Tran
Subject: Re: Waterdrops on Glass... How?
Date: 14 Jan 2003 16:55:58
Message: <3e24876e$1@news.povray.org>

3e248276@news.povray.org...

> If you actually do it, remember to comment it the SDL heavily,
> so that others might learn from it.

Oh well, some people here are so good at maths that they could probably
implement this in a evening or so [hint, hint ;-)] ...

My only advantage is that Nobel Prize Pierre-Gilles de Gennes (who is cited
a in the paper) works a couple of streets away so I could perhaps kidnap him
and ask for functional, working code...

> probably comment in french, but I'm german and still try to stick to
> english when naming parameters and such, so that most Users might
> learn something and understand it very easily...

I know, I know, even the scenes I don't plan to release are commented in
English now, just in case I have to cut and paste some code in these
groups... Not that I like it but it's better than renaming the variables at
the last minute.

G.

--

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Christopher James Huff
Subject: Re: Waterdrops on Glass... How?
Date: 14 Jan 2003 17:07:02
Message: <cjameshuff-CABB66.17064414012003@netplex.aussie.org>
In article <3e23a9eb@news.povray.org>, "KalleK" <kal### [at] gmxde> wrote:

> Maybe, you can tinker with clipped_by, to clip the surface of the drop which
> would contact the window. I don't know wether the ray remembers the ior of
> the object it currently is in or not. But if it's so, the ray would go from
> 1.33 straight into 1.45. which should be right...

Don't. This will not work properly: the ray will never leave the object 
if it goes through an area that was clipped away, and won't enter the 
object properly from the glass side. The correct solution is simpler, 
just overlap the objects.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Christopher James Huff
Subject: Re: Waterdrops on Glass... How?
Date: 14 Jan 2003 17:16:49
Message: <cjameshuff-95B46C.17162714012003@netplex.aussie.org>
In article <3e23f9ed$1@news.povray.org>,
 "Tim Nikias" <tim### [at] gmxde> wrote:

> It "does things"? What does it do? Just curious.

Take a ray entering a droplet for example: it hits the droplet surface 
and gets refracted, and is now inside the droplet. The next surface it 
hits is the glass, so it gets refracted as it should when going from 
water to glass. It is now inside the glass and the droplet. When it hits 
the other droplet surface, *no refraction is done*, but it leaves the 
droplet. (I think it still computes the texture, I'm not sure it should 
though.)
Now the ray has gone through the droplet, been refracted going from 
air/water and water/glass, and is now in the glass, just as it should be.


> Though doing that with blobs is still kinda difficult...

No more so than for any other object. The difficulty is more determined 
by the object you are placing the blobs on.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Tim Nikias
Subject: Re: Waterdrops on Glass... How?
Date: 14 Jan 2003 19:56:42
Message: <3e24b1ca$1@news.povray.org>
Why don't you like it? I've heard several rumours about
french people and languages... They like to stick to theirs... ;-)

In some respect, germans are much the same. Some are
really against incorporating english words into the known german
vocabulary. And sometimes, things get messed up. For example,
cell-phones are called "Handy", but ask any american, they
wouldn't know what we're referring to, unless they're told.

About that math-stuff... I think, if I sit down, I could solve it,
though perhaps not strictly by the rules given in the paper. Especially
that modelling part about angles of the water-droplets and such would
be quite difficult, I think.

But right now, I'm not really in the mood to dig into that. There's a lot
of scientific papers floating on my harddrive, waiting to be implemented
in one way or the other... Next week perhaps... ;-)
No, seriously, I do like the idea of this, might be a very useful addition
to lots of realistic scenes. I've actually found some MPEG showing off
what the code is capable of:
http://www.eml.hiroshima-u.ac.jp/member/staff/kin/publications/JVCA
As I'm posting this, the page can't be accessed, don't know why. Perhaps
back online tomorrow.

We'll see who gets to implement this first. That wave-algorithm Rune
and then Christopher Hormann (if I'm not mistaken, was at least a
Christopher :-) implemented was something I wanted to do as well...

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde

>
> Oh well, some people here are so good at maths that they could probably
> implement this in a evening or so [hint, hint ;-)] ...
>
> My only advantage is that Nobel Prize Pierre-Gilles de Gennes (who is
cited
> a in the paper) works a couple of streets away so I could perhaps kidnap
him
> and ask for functional, working code...
>
>
> I know, I know, even the scenes I don't plan to release are commented in
> English now, just in case I have to cut and paste some code in these
> groups... Not that I like it but it's better than renaming the variables
at
> the last minute.
>


Post a reply to this message

From: Tim Nikias
Subject: Re: Waterdrops on Glass... How?
Date: 14 Jan 2003 20:01:20
Message: <3e24b2e0$1@news.povray.org>
> Take a ray entering a droplet for example: it hits the droplet surface
> and gets refracted, and is now inside the droplet. The next surface it
> hits is the glass, so it gets refracted as it should when going from
> water to glass. It is now inside the glass and the droplet. When it hits
> the other droplet surface, *no refraction is done*, but it leaves the

I guess you meant "When it hits the other glass surface", cause it makes
no sense if it doesn't refract when exiting the water and entering air.

> droplet. (I think it still computes the texture, I'm not sure it should
> though.)

I think it should compute the texture, since if an object is transparent and
has two sides, POV's rays will be affected by each surface. That's just
the way its implemented and IMHO how I would expect it to behave. If
we'd want 100% realism, we'd probably have to texture it completely
transparent, but add some interior color, like using fade_color and
fade_power or such.

> No more so than for any other object. The difficulty is more determined
> by the object you are placing the blobs on.

You're right about that. It works pretty well for a window made of a single
box, but I'm always thinking "general", to keep things flexible.

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde


Post a reply to this message

From: Christopher James Huff
Subject: Re: Waterdrops on Glass... How?
Date: 14 Jan 2003 23:08:49
Message: <cjameshuff-CCD54F.23083314012003@netplex.aussie.org>
In article <3e24b2e0$1@news.povray.org>,
 "Tim Nikias" <tim### [at] gmxde> wrote:

> > Take a ray entering a droplet for example: it hits the droplet surface
> > and gets refracted, and is now inside the droplet. The next surface it
> > hits is the glass, so it gets refracted as it should when going from
> > water to glass. It is now inside the glass and the droplet. When it hits
> > the other droplet surface, *no refraction is done*, but it leaves the
> 
> I guess you meant "When it hits the other glass surface", cause it makes
> no sense if it doesn't refract when exiting the water and entering air.

No, I meant the other water surface, I was ignoring the case where it 
exits directly into air. First the ray hits the drop and goes from air 
to water. Then it hits the glass and goes from water to glass, though it 
is still inside the drop object it is now travelling through glass. Then 
it hits the far side of the drop...they overlap, remember? Since it 
already did the refraction for water/glass, it ignores the refraction 
this time, and just removes the drop from the containing objects.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Tim Nikias
Subject: Re: Waterdrops on Glass... How?
Date: 15 Jan 2003 06:18:13
Message: <3e254375@news.povray.org>
Oh, now I get it. I was thinking of my special case
scenario, in which the rays travels through the glass
first and meets the droplets on the backside. Thus my
interpretation of air-glass to glass-water to water-air.

To make the point: the issue is, once its inside the first
medium and enters the next, it won't get refracted again
when exiting the first medium it was in, right?

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde
>
> > > Take a ray entering a droplet for example: it hits the droplet surface
> > > and gets refracted, and is now inside the droplet. The next surface it
> > > hits is the glass, so it gets refracted as it should when going from
> > > water to glass. It is now inside the glass and the droplet. When it
hits
> > > the other droplet surface, *no refraction is done*, but it leaves the
> >
> > I guess you meant "When it hits the other glass surface", cause it makes
> > no sense if it doesn't refract when exiting the water and entering air.
>
> No, I meant the other water surface, I was ignoring the case where it
> exits directly into air. First the ray hits the drop and goes from air
> to water. Then it hits the glass and goes from water to glass, though it
> is still inside the drop object it is now travelling through glass. Then
> it hits the far side of the drop...they overlap, remember? Since it
> already did the refraction for water/glass, it ignores the refraction
> this time, and just removes the drop from the containing objects.
>
> --
> Christopher James Huff <cja### [at] earthlinknet>
> http://home.earthlink.net/~cjameshuff/
> POV-Ray TAG: chr### [at] tagpovrayorg
> http://tag.povray.org/


Post a reply to this message

From: Florian Brucker
Subject: Re: Waterdrops on Glass... How?
Date: 15 Jan 2003 07:10:46
Message: <3e254fc6$1@news.povray.org>
hey tim

> It worked fine with Powerpoint for me. Perhaps you've
> got the wrong Version?

could be. anyhow, the pdf worked. thanks

greetings:florian


Post a reply to this message

From: Florian Brucker
Subject: Re: Waterdrops on Glass... How?
Date: 15 Jan 2003 07:15:11
Message: <3e2550cf@news.povray.org>
hey guys!

i think i'll give it at least a try, i just checked the maths stuff, looks
like the things we do in school these days.
it'll nevertheless take some time, cause i'm graduating this spring and
really should do some excercises ;-(

greetings:florian


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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