POV-Ray : Newsgroups : povray.general : Mapping Textures on irregular shapes : Re: Mapping Textures on irregular shapes Server Time
26 May 2024 05:09:20 EDT (-0400)
  Re: Mapping Textures on irregular shapes  
From: Josh
Date: 30 Apr 2020 19:50:01
Message: <web.5eab640472e01857dc1270cd0@news.povray.org>
I've found a way to create and use a df3 file as an isosurface. Works well. I'm
trying now to add noise to it and it makes the shape disappear. Any ideas? The
shape shows up fine without the +f_noise3d(x,y,z)*2 statement... Does anyone
know what is happening?

#include "functions.inc"
#declare Fnct00 = function {
    pattern { density_file df3 "aster1.df3" interpolate 0
    }
}
#declare Fnct01 = function (x,y,z) {
    0.025-Fnct00(x,y,z)
}
#declare BaryteGreen = srgb <0.6157,0.7686,0.3725>;
#declare Iso00 = isosurface {
    function { Fnct01(x,y,z) + f_noise3d(x,y,z)*2}
    contained_by { box { -5,5 } }
    threshold 0
    accuracy 0.0005
    max_gradient 6
    all_intersections
    texture {
      pigment { color BaryteGreen }
      finish { ambient <0.03,0.02,0.0> diffuse 0.8,0.4 phong 0.7 }
    }
}

Josh


Post a reply to this message

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