POV-Ray : Newsgroups : povray.general : Not a bug, I must have incorrect expectations : Not a bug, I must have incorrect expectations Server Time
29 Jul 2024 14:14:19 EDT (-0400)
  Not a bug, I must have incorrect expectations  
From: bittramp
Date: 23 Feb 2011 17:25:00
Message: <web.4d658891666c9b25f9c9f2a80@news.povray.org>
Hello,
I am pretty sure this is not a bug and I just have some incorrect expectations
of the materials but I would like to have someone kindly explain this
phenomenon.

I started making an object and have a cube and wanted to position glass boxes
around it's sides.  But I get that static like distortion inside the glass you
normally see when two planes overlap.  I've included the very short code below.
There is a line to rotate the object 1 degree about the y axis.  If you take
that one line out and run again, the distortion is gone.

As a bonus, the distortion only appears in the glassSide object that is rotated
270 degrees.

Am I doing/thinking about something wrong and this is the correct behavior?

Thanks,
BBB


#include "colors.inc"
#include "stones.inc"
#include "glass.inc"
#include "math.inc"
#include "textures.inc"

camera{ location <-2, 2, -3> look_at <0, 0, 0>}

light_source { <0, 20, -20> color White }

#declare glassSide = box { <-1.5, -.5, -1>
        <-1, .5, 1>
}

#declare glassBorder =
union
{
        object { glassSide }
        object { glassSide rotate <0, 270, 0> }
}

union
{
        box { <-1, -1, -1>
                <1, 1, 1>
                pigment { color rgb<0, 0, 1> }
        }
        object
        {
                glassBorder
                pigment { color rgbf<1, 1, 1, 1> } interior {I_Glass} finish{
phong 0.9 phong_size 40 reflection 0.1 }
        }
        scale 1.3
        rotate <0,1,0> /* comment out this line */
}


Post a reply to this message

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