|
|
> Hi,
>
> Me again..
> Sorry if I post a lot..
>
> I wanted to clip a height_field by a box using clipped_by but it doesn't work
>
> height_field {
> png
> "IN\dem.png"
> smooth
> texture{
>
> pigment {
> White
> }
>
> finish {
> ambient 0.1
> diffuse 0.55
> } }
>
> clipped_by { box { <0,0,0>,<10,10,10 > }}
>
> translate <-0.5,0,-0.48>
> scale <14,4,14>
> }
>
> However, intersection works. Intersection isn't the best, I think, for that
> purpose? clipped_by or bounding-by seems more convenient.
>
>
>
> Mat
>
>
>
>
You clip your hight_field by a box that is 10 times to big.
You need to:
1 - make the box buch smaller.
OR
2 - Use your actual box AFTER you scale the hight_field, but before you
move it. Also, adjust the translate by your scale.
scale <14,4,14>
clipped_by { box { <0,0,0>,<10,10,10 > }}
translate <-0.5,0,-0.48>*14
Post a reply to this message
|
|