POV-Ray : Newsgroups : povray.newusers : Height_field clipped_by a box : Re: Height_field clipped_by a box Server Time
2 Jun 2024 12:14:57 EDT (-0400)
  Re: Height_field clipped_by a box  
From: Alain
Date: 2 Sep 2012 14:23:09
Message: <5043a40d$1@news.povray.org>

> 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

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