Updated Gallery (All straight from Mathmap with no Gimp processing):
Attachment:
2.gif [ 1.31 MiB | Viewed 3244 times ]
Was toying with the idea of rendering moons/planets using mathematical constructs.
This is as far as I've got - still very much a work in progress.
Code attached so you can have fun making planets, moons, suns and black holes, working on enhancements so any comments welcome.
Attachment:
planetX.rar [411 Bytes]
Downloaded 213 times
filter planetX(
image in, float dx:-10-10 (0),
float dy:-10-10 (0),
color Colour,
float radius:0-10 (0.8),
bool clip(1),
bool grain(1),
float grainL:0-1 (0.4),
float grainH:0-1 (0.8),
bool shadow(1),
float shadowF:-1-1.2 (0.33),
float shadowL:0-1 (0),
float shadowH:0-1 (1),
bool highlight(0),
float light_hi:0-1 (0.4),
float light_lo:0-1 (0.8)
)
rr = sqrt((x-dx)^2+(y-dy)^2);
rx = scale(x,dx-radius,dx+radius,0,1);
rz = scale(rr,0,radius,0,1);
final = Colour * rgba:[1,1,1,1];
if grain then
final = final * rand(grainL,grainH); end;
if shadow then
sx = scale(x+(shadowF*2),dx-radius,dx+radius,shadowL,shadowH);
final = final * sx;
end;
if highlight then
hx = scale(rz,0,1,light_hi,light_lo);
final = final * hx;
end;
out = final;
if clip && (rr>radius) then out = in(xy); end;
out end