POV-Ray : Newsgroups : povray.general : Overlaping objects with different ior values : Re: Overlaping objects with different ior values Server Time
5 Aug 2024 22:17:36 EDT (-0400)
  Re: Overlaping objects with different ior values  
From: Rafal 'Raf256' Maj
Date: 21 Jul 2002 13:00:33
Message: <Xns9252C0CB37C84raf256com@204.213.191.226>
Micha Riser <mri### [at] gmxnet> wrote in news:3d3ae686@news.povray.org

> Rafal 'Raf256' Maj wrote:
> 
>> Micha Riser <mri### [at] gmxnet> wrote in news:3d3a6e8b@news.povray.org
>> 
>>> sphere{<-1,0,0>,2 pigment{rgbt 0.8} finish{ior 1.5}}
>>> sphere{<1,0,0>,2 pigment{rgbt 0.8} finish{ior 1.2}}
>>> How does POV-Ray handle this? In the intersection of the spheres
>>> there are two ior values defined. Which one does POV use?
>> 
>> If You have i.e. big box (A) and small (B) placed like :
>> 
>> aaaaa
>> abbba
>> abbba
>> abbba
>> aaaaa
> 
> This case is clear as B is compleatly inside A. But what happens if A
> and B only partly overlap?

They should not overlap. At least - they can overlap in some not-connected 
points, like sphere { y*0 1 } sphere { y*2 1 }. Point <0,1,0> is inside A 
_OR_ inside B, the result is quite random - it deppends on implementation, 
but if this is 1 separate pint - this artfact probably will not be visible.

If the overlap area is bigger, like
cone { y*0 1 y*1 1 }
cone { y*1 1 y*2 1 }

then area with shape of cone { y*1 1 y*1 1 }will have random artefacts (it 
can be i.e. black pixels)

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

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