POV-Ray : Newsgroups : povray.binaries.images : Re: Brick wall and paving stones macros (~80kb) : Re: Brick wall and paving stones macros (~80kb) Server Time
28 Jul 2024 16:29:34 EDT (-0400)
  Re: Brick wall and paving stones macros (~80kb)  
From: Ron Parker
Date: 19 Jan 2000 10:15:35
Message: <slrn88bl9b.v8.ron.parker@ron.gwmicro.com>
On Tue, 18 Jan 2000 14:45:06 +0100, Sander wrote:
>Now re-reading my post it seems very unclear to me too!
>What I am after is a floor with long rows of stones having equal widths but
>lengths differing slightly and randomly. Like:
>-------------------------------------------------------
>   |        |          |      |           |       |
>-------------------------------------------------------
>      |      |        |          |            |       |
>-------------------------------------------------------
>This would result in rows of stones that are all different from each
>other....

Note: this requires the superpatch or megapov for the planar and
reset_children warps.  Followups set to povray.text.scene-files.  

---------- code begins here ------------
#macro Irregular_Bricks( Brick, Mortar, MortarThick, Vary )
  gradient z
  pigment_map {
    [MortarThick Mortar]
    [MortarThick gradient x
      pigment_map {[MortarThick Mortar][MortarThick Brick]}
      translate 1000*x
      warp {turbulence Vary octaves 1}
      warp {planar z 0}  
      warp {reset_children}
    ]
  }
  warp {repeat z offset 97.5*x}
#end
                                 
camera {location 5*y sky z look_at 0}
light_source {5*y rgb 1}

plane {y,0
  texture {
    pigment {
      Irregular_Bricks( 
        pigment {bozo color_map {[0 rgb .5][1 rgb .8]} scale <.1,.1,.2>},
        pigment {bozo color_map {[0 rgb .9][1 rgb 1]} scale <.05,.05,.1>},
        .1,
        .5
      )
      scale <1,1,.5>
    }
  }
}  
---------- code ends here ------------

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

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