POV-Ray : Newsgroups : povray.binaries.images : Glaze texture Server Time
14 Aug 2024 20:24:00 EDT (-0400)
  Glaze texture (Message 1 to 6 of 6)  
From: R  Suzuki
Subject: Glaze texture
Date: 3 Sep 2002 06:27:43
Message: <3d748e9f@news.povray.org>
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


 

From: R  Suzuki
Subject: Re: Glaze texture
Date: 3 Sep 2002 10:46:22
Message: <3d74cb3e@news.povray.org>
This is another image made with an image_pattern.
The image file is also attached.

R. Suzuki


Post a reply to this message


Attachments:
Download 'pov-ray2.jpg' (7 KB) Download '020903_pov-ray.jpg' (54 KB)

Preview of image 'pov-ray2.jpg'
pov-ray2.jpg

Preview of image '020903_pov-ray.jpg'
020903_pov-ray.jpg


 

From: hughes b
Subject: Re: Glaze texture
Date: 3 Sep 2002 14:55:04
Message: <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. 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

From: R  Suzuki
Subject: Re: Glaze texture
Date: 4 Sep 2002 06:16:57
Message: <3d75dd99$1@news.povray.org>
Thanks for the comments.

"hughes b" <omn### [at] charternet> 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

From: hughes b
Subject: Re: Glaze texture
Date: 4 Sep 2002 15:09:05
Message: <3d765a51@news.povray.org>
"R. Suzuki" <r-s### [at] aistgojp> wrote in message
news:3d75dd99$1@news.povray.org...
>
> "hughes b" <omn### [at] charternet> 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

From: R  Suzuki
Subject: Re: Glaze texture
Date: 7 Sep 2002 11:30:03
Message: <3d7a1b7b$1@news.povray.org>
"hughes b" <omn### [at] charternet> 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

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