POV-Ray : Newsgroups : povray.general : Intersecting material kills interior color : Re: Intersecting material kills interior color Server Time
30 Mar 2025 23:04:58 EDT (-0400)
  Re: Intersecting material kills interior color  
From: Bald Eagle
Date: 24 Mar 2025 13:50:00
Message: <web.67e19ab5a029623a5a6be6925979125@news.povray.org>
Cousin Ricky <ric### [at] yahoocom> wrote:

> The obvious solution, especially if we're creating a macro that can vary
> the wine's pour level, is to intersect the top of the wine with a
> material that has the normal; but for some reason, this kills the
> interior color.  The result is at the lower left.
>
> It turns out that I can get the desired result by applying a naked
> texture to the intersecting plane.  This is shown in the object at the
> lower right.  But I am still puzzled why using a material failed.

Best I can figure is that your sphere is just a regular thing, and has a default
ior of 1.  But your material has a different ior, and so you might get some sort
of interface where Snell's law applies, and depending on your viewing angle, you
might hit that critical angle.
Not to mention that the quilted normal probably gives you lens-like effects.

Your successful experiment applies the ior to the whole intersection result.

Try it with a different normal, different viewing angle, and try one experiment
where the sphere is given an interior ior as well before intersecting.

Maybe there's a solution in there somewhere. . .

- BW


Post a reply to this message

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