 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"jr" <cre### [at] gmail com> wrote:
> hi,
>
> "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.
>
> very nice indeed.
>
>
> > This would probably look _really_ cool as a height field!
>
> heh, I think it'd look cool printed on cloth or canvas, and hung on a wall; I
> keep thinking "tie-dyed".
>
>
> regards, jr.
Print on cloth, etc sounds like it has some (emotionally) meaning. In fact I
leave this picture(and code) for this reason.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
And the color:
// ------------------------------
texture{
pigment{
function{f_result(x,y)}
color_map{
[0 rgb<0.1,0.1,0.1>]
[0.4 rgb<0.2,0.2,0.2>]
[0.6 rgb<0.65,0.45,0.45>]
[1 rgb<1.0,0.35,0.3>]
}
}
finish{
ambient 1
diffuse 0
}
}
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thomas de Groot <tho### [at] degroot org> wrote:
> Op 15/05/2022 om 17:03 schreef And:
> > When I tried to combine function to form a wood bumps pattern, I create a
> > interesting picture. With concentric circles.
>
> This looks interesting indeed, and unexpected. Could this be used for
> palm wood, maybe? With less marked rings, it would come close I guess.
> And as a height_field, as Bald Eagle suggested.
>
> --
> Thomas
Ha ha... I don't know.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
"And" <49341109@ntnu.edu.tw> wrote:
> "jr" <cre### [at] gmail com> wrote:
> > ...
> > heh, I think it'd look cool printed on cloth or canvas, and hung on a wall; I
> > keep thinking "tie-dyed".
>
> Print on cloth, etc sounds like it has some (emotionally) meaning.
not sure about that, but I do have a distinct liking for decorative, woven
materials. if I saw a piece of fabric with such an unusual pattern/print in the
town's market, I'd be sorely tempted to buy. :-)
regards, jr.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"jr" <cre### [at] gmail com> wrote:
> hi,
>
> "And" <49341109@ntnu.edu.tw> wrote:
> > "jr" <cre### [at] gmail com> wrote:
> > > ...
> > > heh, I think it'd look cool printed on cloth or canvas, and hung on a wall; I
> > > keep thinking "tie-dyed".
> >
> > Print on cloth, etc sounds like it has some (emotionally) meaning.
>
> not sure about that, but I do have a distinct liking for decorative, woven
> materials. if I saw a piece of fabric with such an unusual pattern/print in the
> town's market, I'd be sorely tempted to buy. :-)
>
>
> regards, jr.
Wow
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Op 16-5-2022 om 09:36 schreef And:
> "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.
>
A rapid test here :-)
#declare F_HF_01 =
function {
pigment {
image_map {png "And_Concentric pattern.png" gamma 1.0
map_type 0
interpolate 2
}
scale 2
translate -0.5
}
}
height_field {
function 2000, 2000 {F_HF_01(x,y,z).hf}
pigment {gradient y pigment_map {[0.0 rgb <0,0.2,0>][1.0 rgb <1,1,0>]}}
finish {diffuse 0.8 specular 0.1 roughness 0.001}
scale <500, 50/7.5, 500>
translate <-500/2, 0, -500/2>
scale <1, 1, -1>
}
--
Thomas
Post a reply to this message
Attachments:
Download 'hf_image_map_test.png' (533 KB)
Preview of image 'hf_image_map_test.png'

|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thomas de Groot <tho### [at] degroot org> wrote:
> Op 16-5-2022 om 09:36 schreef And:
> > "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.
> >
>
> A rapid test here :-)
>
> #declare F_HF_01 =
> function {
> pigment {
> image_map {png "And_Concentric pattern.png" gamma 1.0
> map_type 0
> interpolate 2
> }
> scale 2
> translate -0.5
> }
> }
>
> height_field {
> function 2000, 2000 {F_HF_01(x,y,z).hf}
> pigment {gradient y pigment_map {[0.0 rgb <0,0.2,0>][1.0 rgb <1,1,0>]}}
> finish {diffuse 0.8 specular 0.1 roughness 0.001}
> scale <500, 50/7.5, 500>
> translate <-500/2, 0, -500/2>
> scale <1, 1, -1>
> }
>
>
> --
> Thomas
It is unexpected fun to me.
It is a bit like a (shrub)maze.
Not bad.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"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!
Good.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Simply, I could not resist;)
isosurface {
function { f_result2(x,y) }
contained_by { sphere { <0,0,0>,5 } }
threshold 0.75
max_gradient 1000
pigment { color Cyan }
rotate <60,0,0>
scale 5
}
Since the functions given by And are constant in direction z, with an
isosurface the container will limit the functions in this direction. So,
I thought a sphere would look better than a box as container.
Best regards
Michael
Post a reply to this message
Attachments:
Download 'andscircle.png' (541 KB)
Preview of image 'andscircle.png'

|
 |
|  |
|  |
|
 |
|
 |
|  |
|
 |