POV-Ray : Newsgroups : povray.beta-test.binaries : Marble + Turbulence + Isosurfaces Server Time
29 Apr 2024 08:01:48 EDT (-0400)
  Marble + Turbulence + Isosurfaces (Message 1 to 1 of 1)  
From: Gabriel
Subject: Marble + Turbulence + Isosurfaces
Date: 29 Nov 2001 10:47:36
Message: <3c065898@news.povray.org>
Make I something wrong or is this bug?
-------------------------------------------------

#version 3.5;

#include "colors.inc"

global_settings {
  assumed_gamma 1.5
}

// ----------------------------------------

camera {
  location  <-1.0, 3.5, -4.0>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.0, 0.0,  0.0>
}


light_source {
  <1, 7.5, -8>
  color rgb <1, 1, 1>
}

// ----------------------------------------

plane {
  y, -1.5
  texture {
    pigment {
      marble
      color_map {

        [0.0  color rgb < 1,   1,   1   > ]
        [0.33 color rgb < 0,   0.5, 1   > ]
        [0.67 color rgb < 0,   1,   0.5 > ]
        [1.0  color rgb < 1,   1,   1   > ]
      }
      turbulence 0.3
      scale 4
    }
    finish { ambient 0.5 specular 0.6 }
  }
}

#declare f3 = function {
                  pigment{
                     crackle
                     turbulence 0
                     color_map { [0 rgb 1] [1 rgb 0] }
                  }
              }

isosurface {
 function { abs( - z - f3(x,y,z).gray*0.0 ) - 0.01 }
 // see also
 // function { z }
 // function { abs(y)-0.01 }
 threshold 0
 max_gradient 2
 contained_by {box {<-1.2,-1.2,-1.2>, < 1.2, 1.2, 1.2>}}
 texture {
          pigment { color rgbt <1,0,0,0.8> }
   finish {ambient 1 diffuse 0.6}
 }
}


Gabriel
--------
Kon### [at] GGnatowskide


Post a reply to this message


Attachments:
Download 'test2.bmp.dat' (226 KB)

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