|
![](/i/fill.gif) |
Height_fields have depth, but only the "field" surface
is rendered... so you need to difference off a
slightly smaller box to give it edges...
difference {
height_field {
png "plasma3.png"
rotate x*-90
translate <-0.5,0,0>
scale <fw*2,fh,0.2>
}
box{<-0.49,0.01,0>,<0.49,0.99,-1> inverse scale <fw*2,fh,0.2>}
box{<0,-0.1,-2> <fl,4,2> rotate -fa*z translate <0,fh,0>}
box{<0,-0.1,-2> <fl,4,2> rotate -fa*z translate <0,fh,0> scale -x}
}
or alternately, treat it as just a surface of triangles,
and use clipped_by ...
height_field {
png "plasma3.png"
rotate x*-90
translate <-0.5,0,0>
scale <fw*2,fh,0.2>
clipped_by {
box{<0,-0.1,-2> <fl,4,2> inverse rotate -fa*z translate <0,fh,0>}
box{<0,-0.1,-2> <fl,4,2> inverse rotate -fa*z translate <0,fh,0>
scale -x}
}
}
Post a reply to this message
|
![](/i/fill.gif) |