• September 21, 2021, 03:33:24 AM

Fish Sticks
Previous Image | Next Image
Description: Trying to capture the flavor of Vector Zen by  Chris_M_Thomasson.

Image is rendered twice, for 'cross-eyed' 3D viewing.
Sit as far back from the screen as you can bear.
Slightly cross your eyes so that there is a third image in the middle.
Relax your gaze, and concentrate only on that middle image, which is in 3D.

control.isteps = 4
control.cx = 5.360
control.cy = 1.000
control.cz = 4.000
control.cw = 0.130

float smin(float a, float b, float k ) {
float h = clamp( 0.5+0.5*(b-a)/k, 0.0, 1.0 );
return mix( b, a, h ) - k*h*(1.0-h);
}

float4 rotateXZ(float4 pos, float angle) {
float ss = sin(angle);
float cc = cos(angle);
float qt = pos.x;
pos.x = pos.x * cc - pos.z * ss;
pos.z =    qt * ss + pos.z * cc;
return pos;
}

float DE(float3 pos, device Control &control, thread float4 &orbitTrap) {
float aa = smoothstep(0.,1.,clamp(cos(control.cy - pos.y * 0.4)*1.5,0.,1.)) * PI;
float4 p = float4(pos,1);
float3 ot;

p.y -= control.cy * 0.25;
p.y = abs(3. - fract((p.y - control.cy) / 2));

for (int i=0; i < control.isteps; i++) {
p.xyz = abs(p.xyz) - float3(.0,control.cx,.0);
p = p * 2./clamp(dot(p.xyz,p.xyz),.3,1.) - float4(0.5,1.5,0.5,0.);

p = rotateXZ(p,aa * control.cz);

ot = p.xyz;
orbitTrap = min(orbitTrap, float4(abs(ot), dot(ot,ot)));
}

float fl = pos.y-3.7 - length(sin(pos.xz * 60))*.01;
float fr = max(abs(p.z/p.w)-.01,length(p.zx)/p.w-.002);
float bl = max(abs(p.x/p.w)-.01,length(p.zy)/p.w-.0005);
fr = smin(bl,fr,.02);
fr *= 0.9;
fl -= (length(p.xz)*.005+length(sin(pos * 3. + control.cy * 5.)) * control.cw);
fl *=.9;

return abs(smin(fl,fr,.7));
}

Stats:
Views: 41
Total Favorities: 0 View Who Favorited
Filesize: 4.62MB
Height: 1328 Width: 2778
Keywords: stereo
Posted by: kosalos June 03, 2021, 11:39:32 PM

Rating: by 2 members.
Total Likes: 2