POV-Ray : Newsgroups : povray.text.scene-files : Fun with height_fields Server Time
30 Jun 2024 04:10:13 EDT (-0400)
  Fun with height_fields (Message 1 to 1 of 1)  
From: Dave Blandston
Subject: Fun with height_fields
Date: 30 Oct 2002 04:51:11
Message: <3dbfab8f@news.povray.org>
Here's the source for creating a cratered terrain using pigments only. I'll
also post an improved version next...
--
-David
-----------------------------------------
#include "colors.inc"

global_settings {
   hf_gray_16
} //global_settings

camera {
   location <0, 0, -20>
   look_at 0
} //camera

light_source {<0, 20, -100> color White * 1.2}

#local Terrain = object {
   plane {
      z, 0
      texture {
         pigment {
            bumps //Start out with gentle hills
            color_map {
               [0 Black]
               [1 White * 1.2]
            } //color_map
         } //pigment
         scale 5
      } //texture
      texture {
         pigment {
            granite //Roughen up the terrain
            color_map {
               [0 rgbt <0, 0, 0, .9>]
               [1 rgbt <1, 1, 1, .7>]
            } //color_map
         } //pigment
         scale 6
      } //texture
      texture {
         pigment {
            bumps //Add some craters
            color_map {
               [0 rgbt <0, 0, 0, .2>]
               [.25 rgbt <1, 1, 1, .4>]
               [.5 rgbt <0, 0, 0, .8>]
               [.7 rgbt <0, 0, 0, 1>]
               [1 rgbt <0, 0, 0, 1>]
            } //color_map
         } //pigment
         scale 3
      } //texture
   } //plane
} //object

object {Terrain}
-----------------------------------------


Post a reply to this message

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