• July 30, 2021, 01:22:26 PM

Login with username, password and session length

 


Desert SandsCave DwellerMetal eggshells
Cave Dweller
Previous Image | Next Image
Description: Another contorted Apollonian

CPU --------------------------------------

control.isteps = 5
control.cy = 1.8107461
control.cz = 1.9760209
control.cw = 0.03
control.dy = 1.5964174
control.dz = -2.9310386
control.fx = 0.32099965
 
GPU -------------------------------------

float DE(float3 pos,thread Control &control) {
    float t = control.cz + 0.25 * cos(control.cw * PI * control.cx * (pos.z - pos.x));
    float k, hk, scale = 1;
    float3 old;
    bool part2 = false;
   
    for(int i=0; i< control.isteps; ++i) {
        old = pos;
       
        if(!part2) {
            pos = -control.dz/2 + control.dz * fract(pos/control.dz + control.dz);
            pos -= sign(pos) * control.cy / control.dy;

            hk = dot(pos,pos);
            if(hk < control.fx) hk *= control.dx;

            k = t / hk;
        }
        else {
            pos = control.dz * clamp(pos, -control.dz, control.dz) - pos;
         
            k = max(control.cy/dot(pos,pos), 1.0);
        }
       
        pos *= k;
        scale *= k;
        if(length(old-pos) < control.fx) part2 = true;
    }

    float d1 = sqrt(min(min(dot(pos.xy,pos.xy), dot(pos.yz,pos.yz)), dot(pos.zx,pos.zx))) - 0.02;
    float dmi = min(d1, abs(pos.y));
    return 0.5 * dmi / scale;
}

Stats:
Views: 66
Total Favorities: 0 View Who Favorited
Filesize: 4.5MB
Height: 1258 Width: 2200
Keywords: stereo 
Posted by: kosalos March 05, 2021, 07:31:42 AM

Rating: ***** by 1 members.
Total Likes: 1

Image Linking Codes
BB Code
BB Thumbnail Image Code
BB Medium Image Code
0 Members and 1 Guest are viewing this picture.

Comments (0)


Return to Gallery


Powered by SMF Gallery Pro