|
|
(linux beta 16)
When trying to height_fielding some functions it seems that the hf does
not take values from
<0, 0, 0> to <1, 1, 0>
but from
<0, dy, 0> <1, 1+dy, 0>
// ----- Scene -----
#include "colors.inc"
#include "functions.inc"
camera {
location <-2, 1.2, 1>
look_at <0, 0.5, 0.5>
angle 45
//rotate 30*y
}
light_source { <-100, 100, 100> White }
#declare res = 5;
#declare H_Boden=
height_field {
function res, res {f_gradientY(x,y,z)}
pigment { Cyan }
finish {ambient .1 diffuse 1.1 specular 1 roughness 0.005}
}
object {H_Boden translate 0*y}
// To compare the HF with
union {
box { 0, 1 translate <1, 0, 0> }
box { 0, 1 translate <0, 0, 1> }
texture {
pigment {checker Red,Yellow}
finish {ambient .5 diffuse 1}
scale .125
}
}
// Just ground
plane {
y, 0
texture {
pigment {checker Black, White}
finish {diffuse 1.2 specular 1 roughness 0.005}
}
}
// ----- Scene end -----
Post a reply to this message
Attachments:
Download 'grounds.png' (45 KB)
Preview of image 'grounds.png'
|
|