• May 18, 2021, 03:13:26 PM

Login with username, password and session length

 


Whipped EggSalad SpinnerSpudsville butterflies
Salad Spinner
Previous Image | Next Image
Description: Spudsville variation

control.isteps = 9
Q1 = 2.840
Q2 = 12.560
Q3 = -1.820
Q4 = -1.880
Q5 = 2.120
Q6 = 6.940
Q7 = -0.190
Q8 = 2.080
Q9 = 2.180

float3 spudsBoxFold(float3 pos, float fold, float mult) {
    return clamp(pos, -fold, fold) * mult - pos;
}

float DE(float3 pos,device Control &control,thread float4 &orbitTrap) {
    int n = 0;
    float dz = 1.0;
    float temp,r2,r = length(pos);
   
    float3 ot,trap = control.otFixed;
    if(control.orbitStyle == 2) trap -= pos;
   
    while(n < control.isteps) {
        if (n <= control.isteps/2) {
            pos = spudsBoxFold(pos,Q3,Q9);
           
            r2 = dot(pos,pos);
            if (r2 < Q1) {
                temp = (Q2 / Q1);
                pos *= temp;
                dz *= temp;
            } else if (r2 < Q2) {
                temp = Q2 /r2;
                pos *= temp;
                dz *= temp;
            }

            pos *= Q7;
            dz *= abs(Q7);
        } else {
            pos = spudsBoxFold(pos,Q4,Q9);
            r = length(pos);
           
            float zo0 = asin(pos.z / r);
            float zi0 = atan2(pos.y, pos.x);
            float zr = pow(r, Q5 - 1.0);
            float zo = zo0 * Q5;
            float zi = zi0 * Q5;
            dz = zr * dz * Q5 * abs(length(float3(1.0,1.0,Q6)/sqrt(3.0))) + 1.0;
            zr *= r;
            pos = zr * float3(cos(zo)*cos(zi), cos(zo)*sin(zi), Q6 * sin(zo));

            pos = Q8 * pos;
            dz *= abs(Q8);
        }
       
        r = length(pos);

        ot = pos;
        if(control.orbitStyle > 0) ot -= trap;
        orbitTrap = min(orbitTrap, float4(abs(ot), dot(ot,ot)));
       
        n++;
    }
   
    return r * log(r) / dz;
}


Stats:
Views: 28
Total Favorities: 0 View Who Favorited
Filesize: 4.39MB
Height: 1004 Width: 2100
Keywords: stereo 
Posted by: kosalos May 02, 2021, 06:04:32 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