POV-Ray : Newsgroups : povray.beta-test : Bug with CSG Server Time
29 Jul 2024 06:17:22 EDT (-0400)
  Bug with CSG (Message 1 to 2 of 2)  
From: Warp
Subject: Bug with CSG
Date: 17 Apr 2005 21:11:49
Message: <42630955@news.povray.org>
There's a bug in CSG rendering. This scene demonstrates it clearly
(compare it to 3.6.1):

camera { location -z*10 look_at 0 angle 35 }
light_source { <100,200,-300>, 1 }

difference
{ box { <-1, -1, 0>, <1, 1, .1> }
  union
  { cylinder { <0, .5, -.1>, <0, .5, .2>, .75 }
    cylinder { <0, -.5, -.1>, <0, -.5, .2>, .75 }
    inverse
  }
  pigment { rgb 1 }
}


-- 
                                                          - Warp


Post a reply to this message

From: Lance Birch
Subject: Re: Bug with CSG
Date: 18 Apr 2005 04:27:50
Message: <42636f86@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message news:42630955@news.povray.org...
>   There's a bug in CSG rendering. This scene demonstrates it clearly
> (compare it to 3.6.1):
>
> camera { location -z*10 look_at 0 angle 35 }
> light_source { <100,200,-300>, 1 }
>
> difference
> { box { <-1, -1, 0>, <1, 1, .1> }
>   union
>   { cylinder { <0, .5, -.1>, <0, .5, .2>, .75 }
>     cylinder { <0, -.5, -.1>, <0, -.5, .2>, .75 }
>     inverse
>   }
>   pigment { rgb 1 }
> }

Here's another (I don't think this is the same problem exactly, but it's
probably related):

camera {location <0.5,1.5,-3> look_at <0,0,0>}
light_source {<-5,5,-5> 2}
difference {
        box {<-1,-1,-1> <1,1,1>}
        union {
                sphere {<1,1,-1> 1}
                sphere {<1,-1,-1> 1}
        }
        pigment {rgb 1}
}

As you can see, nothing is removed from the box - the front left corners should
be cut out.  Removing the union shows the correct result.

Lance.

thezone - thezone.firewave.com.au


Post a reply to this message

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