POV-Ray : Newsgroups : povray.binaries.images : Turbulent Isosurface box? : Re: Turbulent Isosurface box? Server Time
16 Aug 2024 10:28:38 EDT (-0400)
  Re: Turbulent Isosurface box?  
From: Bill DeWitt
Date: 23 Mar 2002 17:57:34
Message: <3c9d085e$1@news.povray.org>
I probably should have mentioned that he would want to use a different
pigment to get a different rock... here is wood, which makes a good stone...

////////////// Camera //////////////////////
camera {                                  //
        right      <  1.333, 0.0, 0.0 >   //
        up         <  0.0, 1.0, 0.0 >    //
        direction  <  0.0, 0.0, 1.0 >     //
        location   <  3.0, 3.0, 3.0 >
        look_at    <  0.0, 0.0, 0.0 >     //
       }                                  //
////////////// end Camera //////////////////

///////////////  Light  ////////////////
light_source { < 1000.0, 1000.0, 1000.0 >
color rgb < 1.0, 1.0, 1.0 > }

#declare Rock=function{
                 pigment{
                         wood
                         turbulence 0.125
                         color_map { [0 rgb 1] [1 rgb 0] }
                         scale < 0.5, 0.25, 0.5 >
                        }
                      }

#declare Wall = function { max((x*x-1),(y*y-1),(z*z-1)) }

#declare RockWall =

isosurface {
              function {
                         Wall(x,y,z)
                        +Rock(x,y,z).x
                        *0.125
                       }
              contained_by { box {
                                  <-1.5,-1.5,-1.5 >,
                                  < 1.5, 1.5, 1.5 >
                                 }
                           }
              accuracy 0.0001
              max_gradient 20
              pigment { rgb 1 }
              finish  { ambient 0.0625 }
              translate < 0.0, 0.0, 0.0 >
            }

 object { RockWall }


Post a reply to this message


Attachments:
Download 'RockWall03.jpg' (17 KB)

Preview of image 'RockWall03.jpg'
RockWall03.jpg


 

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