POV-Ray : Newsgroups : povray.general : Mapping Textures on irregular shapes : Re: Mapping Textures on irregular shapes Server Time
18 May 2024 22:30:26 EDT (-0400)
  Re: Mapping Textures on irregular shapes  
From: Josh
Date: 30 Apr 2020 20:15:00
Message: <web.5eab68e472e01857dc1270cd0@news.povray.org>
"Josh" <nomail@nomail> wrote:
> 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

Just to clarify, I've tried adding f_noise3d, subtracting it, nothing seems to
allow me to perturb the surface of my df3 shape like I can if my function is
just a simple sphere...

Josh


Post a reply to this message

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