|
|
Here is an example of the "odd" behavior I find. (Odd to me anyway..)
#version 3.0
global_settings {assumed_gamma 2.2}
light_source {<-100, 100, -500> color White * 1.0}
background {Blue}
camera {
location <0, 0, -3>
look_at <0, 0, 0>
}
#declare RedSheet =
object {
height_field {
tga "AnyFile.tga"
hierarchy off
pigment {Red}
translate <-0.5, -0.5, -0.5>
}
rotate <90,0,180>
scale <1, 1, 0.005>
}
#declare RedSheetHole =
object {
difference {
object {RedSheet}
torus {0.24, 0.14 pigment {Green} rotate x * 90}
}
}
object {RedSheetHole scale 2}
Although I have declared the "RedSheetHole" to be a DIFFERENCE between
the heightfield and the torus, the end result is a union rather than
difference. I am confused since the syntax I have used "seems" correct to
me. Please advise...
"Patrick Dugan" <pat### [at] usticom> wrote in message
news:3872213e@news.povray.org...
> I have trying (somewhat successfully) to "chop" heightfields. I first
used
> a bounded_by statement to make the heightfield round (to cut of the
corners)
> but then trying to remove a "chunk" from the inside is difficult. When I
> tried using the difference statement it never works and whatever the
object
> is (cube for example) ends up showing up regardless of using difference or
> union. I finally tried using a difference with a cube (with a clear
> pigment) which seems to work but according to the Povray docs I shouldn't
be
> trying a "difference" with a heightfield. I guess my question is are
there
> any "easy" ways to remove material from a hieghtfield without going to
> convoluted methods??
>
>
Post a reply to this message
|
|