POV-Ray : Newsgroups : povray.binaries.images : A special texture with circle Server Time
28 Mar 2024 18:02:43 EDT (-0400)
  A special texture with circle (Message 5 to 14 of 24)  
<<< Previous 4 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: And
Subject: Re: A special texture with circle
Date: 16 May 2022 03:30:00
Message: <web.6281fc961ed36ddd2153b25aa81652d@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> "Bald Eagle" <cre### [at] netscapenet> 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

From: And
Subject: Re: A special texture with circle
Date: 16 May 2022 03:40:00
Message: <web.6281feb41ed36ddd2153b25aa81652d@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> 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

From: And
Subject: Re: A special texture with circle
Date: 16 May 2022 03:45:00
Message: <web.628200da1ed36ddd2153b25aa81652d@news.povray.org>
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

From: And
Subject: Re: A special texture with circle
Date: 16 May 2022 03:50:00
Message: <web.628201121ed36ddd2153b25aa81652d@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> 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

From: jr
Subject: Re: A special texture with circle
Date: 16 May 2022 07:05:00
Message: <web.62822eca1ed36dd879e196a6cde94f1@news.povray.org>
hi,

"And" <49341109@ntnu.edu.tw> wrote:
> "jr" <cre### [at] gmailcom> 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

From: And
Subject: Re: A special texture with circle
Date: 17 May 2022 11:45:00
Message: <web.6283c24e1ed36ddd2153b25aa81652d@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> "And" <49341109@ntnu.edu.tw> wrote:
> > "jr" <cre### [at] gmailcom> 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

From: Thomas de Groot
Subject: Re: A special texture with circle
Date: 17 May 2022 11:57:40
Message: <6283c5f4@news.povray.org>
Op 16-5-2022 om 09:36 schreef And:
> "Bald Eagle" <cre### [at] netscapenet> 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'
hf_image_map_test.png


 

From: And
Subject: Re: A special texture with circle
Date: 17 May 2022 13:30:00
Message: <web.6283db211ed36ddd2153b25aa81652d@news.povray.org>
Thomas de Groot <tho### [at] degrootorg> wrote:
> Op 16-5-2022 om 09:36 schreef And:
> > "Bald Eagle" <cre### [at] netscapenet> 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

From: And
Subject: Re: A special texture with circle
Date: 23 May 2022 22:05:00
Message: <web.628c3c601ed36dd213813f7aa81652d@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> 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

From: MichaelJF
Subject: Re: A special texture with circle
Date: 24 May 2022 12:57:00
Message: <628d0e5c@news.povray.org>
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'
andscircle.png


 

<<< Previous 4 Messages Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.