|
|
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
|
|
|
|
"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
|
|