|
![](/i/fill.gif) |
Here is an image created with a function pattern.
The source of the texture is following. FN is a cyclic
function in this case (0<=FN(x,y,z)<1).
texture{
pigment{ function {FN(x,y,z)+abs(f_noise3d(x*12,y*12,z*12)-0.5)*0.8}
color_map{
[0 color <0,0.3,0.5>*.35] [.25 color <1,1,1>*.4]
[.5 color <1,0.8,0.6>*.6] [.75 color <0.6,1,0.8>*.8]
[1 color <0.5,0.3,0.7>*.75]
}
}
normal{ function {FN(x,y,z)}
slope_map{
[0, <0,1>] [0.5, <1,-1>] [1, <0,1>]
}
}
finish{phong 0.60 phong_size 90}
}
R. Suzuki
Post a reply to this message
Attachments:
Download '020901dftest6.jpg' (56 KB)
Preview of image '020901dftest6.jpg'
![020901dftest6.jpg](/povray.binaries.images/attachment/%3C3d748e9f%40news.povray.org%3E/020901dftest6.jpg?preview=1)
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
Interesting look to it, don't know if I'd have ever thought of the first
object as being glazed without you saying that. Has a grilled chicken look
to my eyes. This second one probably wouldn't have needed it said. Could use
a repeatable tiling for it.
I thought the open cube object had odd blank places, like maybe the function
was doing something wrong. I figured out it must be the highlighting
instead. Being a glazed texture it could use a little reflection but that
would require texture mapping for the variously smooth and rough parts.
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thanks for the comments.
"hughes b" <omn### [at] charter net> wrote in message
news:3d750588$1@news.povray.org...
> Interesting look to it, don't know if I'd have ever thought of the first
> object as being glazed without you saying that. Has a grilled chicken look
> to my eyes. This second one probably wouldn't have needed it said. Could use
> a repeatable tiling for it.
>
> I thought the open cube object had odd blank places, like maybe the function
> was doing something wrong. I figured out it must be the highlighting
> instead.
It could be due to the image size (or camera position).
I uploaded a large image (1280x960) at
http://staff.aist.go.jp/r-suzuki/j/povray/pic/020901dftest.jpg
R. Suzuki
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
"R. Suzuki" <r-s### [at] aist go jp> wrote in message
news:3d75dd99$1@news.povray.org...
>
> "hughes b" <omn### [at] charter net> wrote in message
> news:3d750588$1@news.povray.org...
> >
> > I thought the open cube object had odd blank places, like maybe the
function
> > was doing something wrong. I figured out it must be the highlighting
> > instead.
>
> It could be due to the image size (or camera position).
> I uploaded a large image (1280x960) at
> http://staff.aist.go.jp/r-suzuki/j/povray/pic/020901dftest.jpg
Yes, it is the phong highlights. My screen resolution being 1400x1050 made
the image small enough that the highlights were sharp-edged. The larger
image shows them as being from the light source.
As to that texture... intriguing how it appears as multiple patterns from
one texture "function". When I guess at how you did it I get a recursive
error. Are you going to let us in on the secret of how FN is defined?
Post a reply to this message
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
"hughes b" <omn### [at] charter net> wrote in message
news:3d765a51@news.povray.org...
> As to that texture... intriguing how it appears as multiple patterns from
> one texture "function". When I guess at how you did it I get a recursive
> error. Are you going to let us in on the secret of how FN is defined?
FN of the first image is a density_file function.
It is the same function as DATA3D2(x,y,z) in the below page.
http://staff.aist.go.jp/r-suzuki/e/povray/iso/df_body.htm
FN of the second image is as following.
#declare FNi= function{pigment {
image_pattern {
jpeg "pov-ray2.jpg" interpolate 2
}
color_map{ [0 color 0] [1 color 1] }
}}
#declare FN=function{FNi(-atan2(x,z)/pi*3,y/5,0).gray*0.85}
R. Suzuki
Post a reply to this message
|
![](/i/fill.gif) |