POV-Ray : Newsgroups : povray.binaries.images : stirred chocolate : Re: stirred chocolate Server Time
7 Aug 2024 11:20:19 EDT (-0400)
  Re: stirred chocolate  
From: Trevor G Quayle
Date: 29 Mar 2006 14:45:01
Message: <web.442ae2cdd9149816c4803960@news.povray.org>
"Kenneth" <kdw### [at] earthlinknet> wrote:
> I was playing around with isosurfaces, and this turned out so delicious that
> I just *had* to share it.
>

Same function as a heightfield using function image:
(the outcome is different as the pigment values are evaluated on the x-y
plane rather than 3-space)


intersection{
  height_field {
    function 500,500 {
      pattern {waves
        triangle_wave
        rotate -x*90
        scale .15
        warp{turbulence .5 lambda .1}
        scale 1/3
        translate <1/2,1/2,0>
      }
    }
    smooth
    translate <-1/2,-1/2,-1/2>
    scale <3,-1/3,3>
    inverse
  }
  box{<-1,-0.5,-1><1,1,1>}
  texture{
    pigment{color rgb <.75,.4,.28>*1.1}
    finish{
      ambient .15
      diffuse .35
      phong .35
      phong_size 14
      specular .9
      roughness .004
    }
  }
}



-tgq


Post a reply to this message


Attachments:
Download 'choco2.jpg' (57 KB)

Preview of image 'choco2.jpg'
choco2.jpg


 

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