The dragon eye nebulaOysterBedpineforest
OysterBed
Previous Image | Next Image
Description: Rendition of DarkBeams' SurfBox
http://www.fractalforums.com/amazing-box-amazing-surf-and-variations/httpwww-shaperich-comproshred-elite-review/

control.naxSteps = 20
control.juliaboxMode = true
control.julia = float3(3.0799994, 3.7200108, -5.3799987)
control.power = 2.399999
control.cx = 1.3999952
control.cz = 2.2500002
control.cw = 0.5
control.dx = 4.3978653

float surfBoxFold(float v, float fold, float foldModX) {
    float sg = sign(v);
    float folder = sg * v - fold; // fold is Tglad's
    folder += abs(folder);
    folder = min(folder, foldModX); // and Y,Z,W
    v -= sg * folder;
   
    return v;
}

float DE(float3 pos, device Control &control, thread float4 &orbitTrap) {
    float3 c = control.juliaboxMode ? control.julia : pos;
    float r2,dr = control.power;
    float fR2 = control.cz * control.cz;
    float mR2 = control.cw * control.cw;

    for(int i = 0; i < control.maxSteps; ++i) {
        pos.x = surfBoxFold(pos.x,control.cx,control.dx);
        pos.y = surfBoxFold(pos.y,control.cx,control.dx);
        pos.z = surfBoxFold(pos.z,control.cx,control.dx);
       
        r2 = pos.x*pos.x + pos.y*pos.y + pos.z*pos.z;
       
        if(r2 < mR2) {
            float temp = fR2 / mR2;
            pos *= temp;
            dr *= temp;
        }
        else if(r2 < fR2) {
            float temp = fR2 / r2;
            pos *= temp;
            dr *= temp;
        }
       
        pos = pos * control.power + c;
        dr *= control.power;
       
        orbitTrap = min(orbitTrap, float4(abs(pos), dot(pos,pos)));
    }
   
    return length(pos)/abs(dr);
}

Stats:
Views: 30
Total Favorities: 0 View Who Favorited
Filesize: 4.25MB
Height: 1021 Width: 2100
Keywords: stereo 
Posted by: kosalos October 13, 2020, 01:12:35 AM

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

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

Comments (0) rss


Return to Gallery


Powered by SMF Gallery Pro