|
|
"yesbird" <nomail@nomail> wrote:
> Yet another mystery. In following example 50 is resolution, but how to set range
> for x,z ? Only small part of surface is visible.
>
> height_field
> {
> function 50, 50 { sin (sqrt (x*x + y*y)) / (sqrt (x*x + y*y)) }
> smooth
> scale <1, 0.3, 1>
> pigment { green 0.8 }
> }
That's because the sine waves are too 'large' to see in the 1X1 height_field.
Try this function 'scaling' trick for an interesting-- if odd-looking -- result.
(I changed your light_source position to <10,4,10> to make it easier to see, and
gave the function a higher resolution):
function 200, 200 { sin (sqrt (x*x + y*y)*20) / (sqrt (x*x + y*y)*20)}
As you can see, playing around with function values can be quite fun!
Post a reply to this message
|
|