|
|
"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'
|
|