POV-Ray : Newsgroups : povray.binaries.images : random-colored BRICKS : Re: random-colored BRICKS Server Time
25 Apr 2024 15:59:06 EDT (-0400)
  Re: random-colored BRICKS  
From: Kenneth
Date: 17 Apr 2018 15:25:01
Message: <web.5ad648c395b142bda47873e10@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:

>
> Try applying the code to the distant z-plane first, to see its random
> appearance.

Oops, I forgot to include the first code!

//------------------
#version 3.71;
global_settings {assumed_gamma 1.0}

camera {
  perspective
  location  <0, 0, -7>
  look_at   <.55, 0.3,  0>
  right     x*image_width/image_height
  angle 46
}

light_source {
  0*x
  color rgb .9
  translate <20, 50, -10>
}

// background
plane{z,60
no_shadow
  pigment{bozo
          scale 3*<4,1,1>
          color_map{
                  [.2 rgb .6]
                  [.3 rgb .8]
                  [.35 rgb 1]
                  [.40 rgb 1]
                  [.58 rgb <.5,.7,1>]
                  }
                  scale .5
                  warp{turbulence .3 omega .7}
                  scale 1/.5
          }
  }

//plane{z,0
// OR...
union{
difference{
box{0,<9.52,9.66,10.48>}
box{<-.1,-.1,-.16>,<3.84,7.94,6.64> translate 2*z}          }
box{0,<5,4.98,6> translate <2.9,0,-5.7>}
    texture{
    pigment{brick
        pigment{ // the MORTAR
        bumps scale .3 color_map{[0 rgb 0][1 rgb 1]}}
        pigment{cells // the BRICKS
           color_map{
           blend_mode 2
           blend_gamma 2.2
           [0 rgb .1*<1,.28,.24>]
           [1 rgb .85*<1,.28,.24>]
                    }
           warp{repeat y offset <400.5,0,400.5>}
           translate .5*z
           scale <8,3,8> // needs to be the same as brick_size
               }
           brick_size <8,3,8> // the default brick-size is <8,3,4.5>
           mortar .5 // can take only a single float value,
           // not a 3-value vector. (.5 is the default.)
              }
           scale .12 // FINAL scale
           translate -196.9*y
           translate -.0001*y
           finish{ambient .1 diffuse .9}
           }
    translate -5
    rotate -50*y
    rotate 15*x
    translate 20*z
    }


Post a reply to this message

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