POV-Ray : Newsgroups : povray.binaries.images : Different Results Between Versions Server Time
14 Nov 2024 08:23:06 EST (-0500)
  Different Results Between Versions (Message 1 to 6 of 6)  
From: Dave Blandston
Subject: Different Results Between Versions
Date: 7 Aug 2009 09:00:01
Message: <web.4a7c246da399eaf3df22a6900@news.povray.org>
Hello everyone,

Maybe this is already a documented issue, but if not here are two images
rendered from the exact same scene file, one rendered with v3.6.1a and the
other rendered with 3.6.2.

Regards,
Dave Blandston


Post a reply to this message


Attachments:
Download 'temp.png' (22 KB)

Preview of image 'temp.png'
temp.png


 

From: clipka
Subject: Re: Different Results Between Versions
Date: 7 Aug 2009 09:32:45
Message: <4a7c2cfd$1@news.povray.org>
Dave Blandston schrieb:
> Hello everyone,
> 
> Maybe this is already a documented issue, but if not here are two images
> rendered from the exact same scene file, one rendered with v3.6.1a and the
> other rendered with 3.6.2.

It *might* be helpful if you also disclosed the scene source code :P


Post a reply to this message

From: Alain
Subject: Re: Different Results Between Versions
Date: 7 Aug 2009 15:26:18
Message: <4a7c7fda$1@news.povray.org>

> Hello everyone,
> 
> Maybe this is already a documented issue, but if not here are two images
> rendered from the exact same scene file, one rendered with v3.6.1a and the
> other rendered with 3.6.2.
> 
> Regards,
> Dave Blandston
> 
> 
> ------------------------------------------------------------------------
> 
Where is the source scene file?


Alain


Post a reply to this message

From: Dave Blandston
Subject: Re: Different Results Between Versions
Date: 7 Aug 2009 16:15:00
Message: <web.4a7c8b382bb66eecdf22a6900@news.povray.org>
Alain <aze### [at] qwertyorg> wrote:
> Where is the source scene file?
>
>
> Alain

I'll post the source in POV-Ray Text Files - scene-files.

Regards,
Dave Blandston


Post a reply to this message

From: clipka
Subject: Re: Different Results Between Versions
Date: 7 Aug 2009 18:47:01
Message: <4a7caee5$1@news.povray.org>
Dave Blandston schrieb:
> Alain <aze### [at] qwertyorg> wrote:
>> Where is the source scene file?
>>
>>
>> Alain
> 
> I'll post the source in POV-Ray Text Files - scene-files.

After having boiled down the scene to about 60 lines, I found that the 
only fault of POV-Ray 3.6.2 and 3.7 (but probably also of POV-Ray 3.6.1) 
is that they don't warn you about pathological cylinders (and similarly 
pathological tori) you're building in the BeveledCylinder macro; try the 
following change:


#macro BeveledCylinder (Top, Bottom, Radius, EdgeRadius)

    union {
       cylinder {<Top.x, Top.y, Top.z + EdgeRadius>, Bottom, Radius}
->    #if (Radius > EdgeRadius)
          cylinder {Top, Bottom, Radius - EdgeRadius}
          torus {
             Radius - EdgeRadius, EdgeRadius
             rotate 90 * x
             translate <Top.x, Top.y, Top.z + EdgeRadius>
             sturm
          } //torus
->    #else
->       sphere {<Top.x, Top.y, Top.z + EdgeRadius>, EdgeRadius}
->    #end
    } //union

#end //#macro BeveledCylinder


POV-Ray 3.6.2 and 3.7 do indeed behave strange in such a case 
(apparently creating an object which, when intersected with another one, 
gets *bigger*), but what do you expect when working with infinitely thin 
cylinders ;-)


Post a reply to this message

From: Dave Blandston
Subject: Re: Different Results Between Versions
Date: 10 Aug 2009 09:10:01
Message: <web.4a801c242bb66eecdf22a6900@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> After having boiled down the scene to about 60 lines, I found that the
> only fault of POV-Ray 3.6.2 and 3.7 (but probably also of POV-Ray 3.6.1)
> is that they don't warn you about pathological cylinders (and similarly
> pathological tori) you're building in the BeveledCylinder macro; try the
> following change:
>
>
> #macro BeveledCylinder (Top, Bottom, Radius, EdgeRadius)
>
>     union {
>        cylinder {<Top.x, Top.y, Top.z + EdgeRadius>, Bottom, Radius}
> ->    #if (Radius > EdgeRadius)
>           cylinder {Top, Bottom, Radius - EdgeRadius}
>           torus {
>              Radius - EdgeRadius, EdgeRadius
>              rotate 90 * x
>              translate <Top.x, Top.y, Top.z + EdgeRadius>
>              sturm
>           } //torus
> ->    #else
> ->       sphere {<Top.x, Top.y, Top.z + EdgeRadius>, EdgeRadius}
> ->    #end
>     } //union
>
> #end //#macro BeveledCylinder
>
>
> POV-Ray 3.6.2 and 3.7 do indeed behave strange in such a case
> (apparently creating an object which, when intersected with another one,
> gets *bigger*), but what do you expect when working with infinitely thin
> cylinders ;-)

Yes, that was the problem - thanks! That's a very interesting situation.

Regards,
Dave Blandston


Post a reply to this message

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