POV-Ray : Newsgroups : povray.advanced-users : Height_field fading.... : Re: Height_field fading.... Server Time
29 Jul 2024 12:22:32 EDT (-0400)
  Re: Height_field fading....  
From: bob h
Date: 30 Apr 2002 18:14:19
Message: <3ccf173b@news.povray.org>
Maybe similar to this?

#declare P0=function{pattern{spherical sine_wave frequency -1 scale .825
translate <.5,.5,0>}}
#declare P1=function{pattern{spherical turbulence 0.3 scale 0.1}}
#declare P2=function{pattern{bumps turbulence 0.3 scale 0.5}}

difference {
box {0,1 scale 0.9999}
height_field{function 300,300{(P1(x,y,z)*0.3+P2(x,y,z))*P0(x,y,z)}
inverse
}
  translate <-0.5,0,-0.5>
  scale <4.0, 1.0, 4.0>
  texture {pigment {rgb 0.5}}
  rotate x*90
 }


bob h


Post a reply to this message

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