POV-Ray : Newsgroups : povray.advanced-users : Square roots of negative numbers in isosurfaces? : Re: Square roots of negative numbers in isosurfaces? Server Time
30 Jul 2024 12:24:17 EDT (-0400)
  Re: Square roots of negative numbers in isosurfaces?  
From: David Fontaine
Date: 15 Jan 2000 22:45:49
Message: <38813C69.D04DBC9F@faricy.net>
> That might be possible when using the function as an isosurface, but
> such a function can also be used as a pattern for a pigment or normal.
> When a function has no solution in a region of space you could ignore it
> if you're using that function to define a surface, but what could you do
> if there's a point where the surface exists but the pigment and/or
> normal doesn't. E.g.
>
> sphere {0,1
>         pigment {
>             function {noise3d(x^0.5/K, y/K, z/K)}
>             colour_map{[0 rgb <1,0,0>][1 rgb <1,1,0>]}
>             }
>         normal {
>             function {noise3d(x^0.5/K, y/K, z/K)}
>             }
>        }

Well it's up to the user to make a function that doesn't do that. It could issue
a warning and replace it with zero or something.

--
Homepage: http://www.faricy.net/~davidf/
___     ______________________________
 | \     |_       <dav### [at] faricynet>
 |_/avid |ontaine      <ICQ 55354965>


Post a reply to this message

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