POV-Ray : Newsgroups : povray.general : Contour map -- plane vs. isosurface : Re: Contour map -- plane vs. isosurface Server Time
30 Jul 2024 20:24:54 EDT (-0400)
  Re: Contour map -- plane vs. isosurface  
From: Mike Williams
Date: 27 Jun 2008 16:19:34
Message: <IX0pHdAxsUZIFwT9@econym.demon.co.uk>
Wasn't it How Camp who wrote:
>Mike Williams <nos### [at] econymdemoncouk> wrote:
>>
>> Are you trying to do anything remotely like this?
>> http://www.econym.demon.co.uk/isotut/isobars.htm
>
>
>Yeah, sort-of.  How would I take this pigment and 'drape' it over the top of an
>isosurface generated with the same noise3d function?  The end result would be
>an isosurface with the same contours as the plane, such that both pigments
>match up together.

#version 3.5;
#include "functions.inc"

camera {
  location  <0,3,-5>
  look_at   <0,1,0>
}

light_source {<-100,0,-100> colour rgb 1}

#declare F=function{f_noise3d(x,y,z)}

#declare P =   pigment { function{F(x,0,z)}
    colour_map {
     [0.2 rgb 4][0.2 rgb 0][0.204 rgb 0][0.204 rgb 4]
     [0.3 rgb 4][0.3 rgb 0][0.304 rgb 0][0.304 rgb 4]
     [0.4 rgb 4][0.4 rgb 0][0.404 rgb 0][0.404 rgb 4]
     [0.5 rgb 4][0.5 rgb 0][0.504 rgb 0][0.504 rgb 4]
     [0.6 rgb 4][0.6 rgb 0][0.604 rgb 0][0.604 rgb 4]
     [0.7 rgb 4][0.7 rgb 0][0.704 rgb 0][0.704 rgb 4]
     }
  }

isosurface {
  function {y-F(x,0,z)*2}
  max_gradient 5
  contained_by {box {-5,5}}
  pigment {P}
}


-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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