POV-Ray : Newsgroups : povray.binaries.images : Glaze texture : Re: Glaze texture Server Time
14 Aug 2024 22:18:23 EDT (-0400)
  Re: Glaze texture  
From: R  Suzuki
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.