POV-Ray : Newsgroups : povray.text.scene-files : My own stone wall - source Server Time
26 Dec 2024 13:05:13 EST (-0500)
  My own stone wall - source (Message 1 to 1 of 1)  
From: The Crazy Mule
Subject: My own stone wall - source
Date: 23 Feb 1999 04:58:22
Message: <36D27AFC.E7BB3EA6@paradise.net.nz>
Well here is the source for my wall

-* begin source *-
#include "colors.inc"

camera {
        location <1.5,1,1.5>
        location <0,0,1.5>
        look_at <0,0,0>
}
light_source {<1,2,1>*2000 color White}

#declare hf = height_field {
        tga "C:\Program Files\POVRay 3.1\images\stonewallhmap"
        smooth
        scale <1,0.01,1>
        translate <-0.5,0,-0.5>
        scale 3
        pigment {Gray}
        finish {roughness 0.003 specular 0.5}
}

object {hf rotate x*90}
-* end source *-

And the code used to make the hf map:

-* begin source *-
global_settings {
        hf_gray_16
}
#include "colors.inc"

plane {
        y,0
        finish {ambient 1 diffuse 0}
        pigment {
                average
                pigment_map {
                        [0.9 crackle scale 3
                                turbulence 0.3 omega 0.5 lambda 1.5
                                pigment_map {
                                        [0 color Black]
                                        [0.1 color White*0.4]
                                        [0.3 color White*0.8]
                                        [1 color White]
                                }
                        ]
                        [0.1 bozo scale 0.01]
                }
        }
}
camera {        
        right x*4
        up y*4        
        location y*10
        look_at 0
        orthographic
}
-* end source *-

It'd be a fairly simple operation to make it a texture, but i don't have any
need ;)
-- 
Sam
    mailto:smi### [at] paradisenetnz
    http://www.geocities.com/SiliconValley/Horizon/4152/

"Someday we'll look back on this moment and plow into a parked car." 
  -- Evan Davis


Post a reply to this message

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