 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
When I tried to combine function to form a wood bumps pattern, I create a
interesting picture. With concentric circles.
Post a reply to this message
Attachments:
Download '2d function with special.png' (2377 KB)
Preview of image '2d function with special.png'

|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"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!
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"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'

|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
MichaelJF <fri### [at] t-online de> wrote:
> 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.
Now that's pretty cool - it almost looks like one of those sci-fi "city-planets"
kinda like "Dark City" or something like that.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Op 24/05/2022 om 18:56 schreef MichaelJF:
> 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.
>
LOL! Yes, even better!
--
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
hi,
MichaelJF <fri### [at] t-online de> wrote:
> ... So,
> I thought a sphere would look better than a box as container.
it is beautiful, thanks.
regards, jr.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
MichaelJF <fri### [at] t-online de> wrote:
> 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
This looks still planar mapping.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Am 26.05.2022 um 11:27 schrieb And:
> MichaelJF <fri### [at] t-online de> wrote:
>> 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
>
> This looks still planar mapping.
>
Sorry, but I have no idea, what "planar mapping" could mean.
Best regards
Michael
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
MichaelJF <fri### [at] t-online de> wrote:
> Am 26.05.2022 um 11:27 schrieb And:
> > MichaelJF <fri### [at] t-online de> wrote:
> >> 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
> >
> > This looks still planar mapping.
> >
> Sorry, but I have no idea, what "planar mapping" could mean.
>
> Best regards
> Michael
I mean it is not a spherical wrapping
Post a reply to this message
Attachments:
Download 'andscircle.png' (510 KB)
Preview of image 'andscircle.png'

|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Am 27.05.2022 um 07:48 schrieb And:
> MichaelJF <fri### [at] t-online de> wrote:
>> Am 26.05.2022 um 11:27 schrieb And:
>>> MichaelJF <fri### [at] t-online de> wrote:
>>>> 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
>>>
>>> This looks still planar mapping.
>>>
>> Sorry, but I have no idea, what "planar mapping" could mean.
>>
>> Best regards
>> Michael
>
>
> I mean it is not a spherical wrapping
>
I can not understand your complaints. I put your two dimensional setting
into an (three dimensional) isosurface, only. Nothing more. Where is the
problem?
Best regards,
Michael
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Op 27/05/2022 om 19:32 schreef MichaelJF:
> Am 27.05.2022 um 07:48 schrieb And:
>> MichaelJF <fri### [at] t-online de> wrote:
>>> Am 26.05.2022 um 11:27 schrieb And:
>>>> MichaelJF <fri### [at] t-online de> wrote:
>>>>> 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
>>>>
>>>> This looks still planar mapping.
>>>>
>>> Sorry, but I have no idea, what "planar mapping" could mean.
>>>
>>> Best regards
>>> Michael
>>
>>
>> I mean it is not a spherical wrapping
>>
> I can not understand your complaints. I put your two dimensional setting
> into an (three dimensional) isosurface, only. Nothing more. Where is the
> problem?
>
> Best regards,
> Michael
I think And means that the pattern remains oriented to the y-axis (his
"planar napping") instead of conforming to the surface of the sphere
(spherical mapping?).
--
Thomas
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
MichaelJF <fri### [at] t-online de> wrote:
> Am 27.05.2022 um 07:48 schrieb And:
> > MichaelJF <fri### [at] t-online de> wrote:
> >> Am 26.05.2022 um 11:27 schrieb And:
> >>> MichaelJF <fri### [at] t-online de> wrote:
> >>>> 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
> >>>
> >>> This looks still planar mapping.
> >>>
> >> Sorry, but I have no idea, what "planar mapping" could mean.
> >>
> >> Best regards
> >> Michael
> >
> >
> > I mean it is not a spherical wrapping
> >
> I can not understand your complaints. I put your two dimensional setting
> into an (three dimensional) isosurface, only. Nothing more. Where is the
> problem?
>
> Best regards,
> Michael
Oh, it's no problem.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thomas de Groot <tho### [at] degroot org> wrote:
> Op 27/05/2022 om 19:32 schreef MichaelJF:
> > Am 27.05.2022 um 07:48 schrieb And:
> >> MichaelJF <fri### [at] t-online de> wrote:
> >>> Am 26.05.2022 um 11:27 schrieb And:
> >>>> MichaelJF <fri### [at] t-online de> wrote:
> >>>>> 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
> >>>>
> >>>> This looks still planar mapping.
> >>>>
> >>> Sorry, but I have no idea, what "planar mapping" could mean.
> >>>
> >>> Best regards
> >>> Michael
> >>
> >>
> >> I mean it is not a spherical wrapping
> >>
> > I can not understand your complaints. I put your two dimensional setting
> > into an (three dimensional) isosurface, only. Nothing more. Where is the
> > problem?
> >
> > Best regards,
> > Michael
>
> I think And means that the pattern remains oriented to the y-axis (his
> "planar napping") instead of conforming to the surface of the sphere
> (spherical mapping?).
>
> --
> Thomas
Oh, that is just an idea of mine.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|
 |