POV-Ray : Newsgroups : povray.binaries.images : Isosurface from magnitude of complex function with domain coloring : Re: Isosurface from magnitude of complex function with domain coloring Server Time
26 Apr 2024 19:23:49 EDT (-0400)
  Re: Isosurface from magnitude of complex function with domain coloring  
From: Tor Olav Kristensen
Date: 25 Dec 2021 19:10:00
Message: <web.61c7b24d6041c670bbb338f289db30a9@news.povray.org>
"BayashiPascal" <bai### [at] gmailcom> wrote:
>...
> Very nice.
>
> The "multi-layered" aspect of the result is intriguing me. Does it come from a
> property of the function you've choosen, or from the way you choose to visualise
> it ?

Thank you Pascal

The layered appearance is just a result from the coloring.
Here's how I did it:

#declare H_Fn =
    function(re, im) {
        degrees(mod(2*pi + ArgumentFn(re, im), 2*pi))
    }
;
#declare S = 1.0;
#declare A = 0.6; // 0 < A < 1
#declare L_Fn =
    function(re, im) {
        mod(10*(1 - pow(A, MagnitudeFn(re, im))), 1)/2
    }
;
isosurface {
    function { y - MagnitudeFn(x, z) }

    ...

    FunctionsPigmentRGB(
        function { Rd_Fn(H_Fn(x, z), S, L_Fn(x, z)) },
        function { Gn_Fn(H_Fn(x, z), S, L_Fn(x, z)) },
        function { Bu_Fn(H_Fn(x, z), S, L_Fn(x, z)) }
    )
}

In the attached image L_Fn() was changed to this:

#declare A = 0.2; // 0 < A < 1
#declare L_Fn =
    function(re, im) {
        (1 - pow(A, MagnitudeFn(re, im)))
    }
;

--
Tor Olav
http://subcube.com
https://github.com/t-o-k


Post a reply to this message


Attachments:
Download 'fivepoles_isosurface_otherlightness.png' (202 KB)

Preview of image 'fivepoles_isosurface_otherlightness.png'
fivepoles_isosurface_otherlightness.png


 

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