POV-Ray : Newsgroups : povray.advanced-users : Procedural Height Fields : Re: Procedural Height Fields Server Time
30 Jul 2024 04:22:27 EDT (-0400)
  Re: Procedural Height Fields  
From: TonyB
Date: 6 Apr 2000 10:03:26
Message: <38ec992e@news.povray.org>
Here's an example of how I do it:

#version unofficial megapov 0.4; // only for reset_children

global_settings { hf_gray_16 }

camera {up y right x location y*10 look_at 0}

plane
{
 y,0
 pigment
 {
  cylindrical scale 3.25 turbulence 1
  pigment_map
  {
   [0 rgb 0]
   [.1 granite color_map {[0 rgb .03][1 rgb .06]} scale .1]
   [.2 granite color_map {[0 rgb .03][1 rgb .10]} scale .1]
   [.3 rgb .1]
   [1 granite scale 3]
  }
  warp {reset_children}
 }
 finish {ambient 1.5 diffuse 0} // should actually be
                                            // 1, but I used 1.5
                                            // to raise everything
                                            // a bit more
}


Post a reply to this message

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