|
 |
"Bald Eagle" <cre### [at] netscape net> wrote:
> "And" <49341109@ntnu.edu.tw> wrote:
> > When I tried to combine function to form a wood bumps pattern, I create a
> > interesting picture. With concentric circles.
>
> This would probably look _really_ cool as a height field!
Why? I don't imagine it so clear.
This pattern here: --------------------------
// basic functions -----
#declare f_theta =
function(x, y) {
select(y, 2*pi - acos(x/sqrt(x*x + y*y)) , acos(x/sqrt(x*x + y*y)))
}
#declare f_r =
function(x, y) {
sqrt(x*x + y*y)
}
#declare f_noise3d = function { internal(76) }
// theme -----
#declare f_rising_noise =
function (x, y) {
f_r(x, y) * f_noise3d(x*5, y*5, 0)
}
#declare f_bumps =
function {f_noise3d(x, y, z)}
#declare radial_growth_speed = 0.1; // m/year
#declare f_time_mockup =
function(x, y, z) {
f_r(x, y)/radial_growth_speed
}
#declare feather_extent = 2.3;
#declare f_t_noise_apply =
function(var_t, change_value) {
f_noise3d(var_t*feather_extent, change_value*50, 200)
}
#declare f_result =
function (x,y) {
f_t_noise_apply(
f_time_mockup(x, y, 0),
f_bumps(f_rising_noise(x, y)*2, 0, 0) // change value
)
}
// ---------------------------------------
Then it can show on a x - y plane. range -5 < x < 5, -5 < y < 5
Post a reply to this message
|
 |