News: Support us via Flattr FLATTR Link
 Welcome, Guest. Please login or register. August 17, 2022, 01:10:15 AM 1 Hour 1 Day 1 Week 1 Month Forever Login with username, password and session length

## The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!

Aliens dancing Sirtaki
Previous Image | Next Image

Real time rendering on GPU. Nvidia Titan used. All of this it's work of the shader:
double Formula(dvec3 pos)
{
vec4 p = vec4(pos, 1.0);

vec4 atr = vec4(0.5, 0.247390, 0.443633, 0.197286);

float scale = 1.0 + (0.704593 - 0.5)*0.2;
float l = length(pos.xyz - camera.xyz);
if (l > 6.0)
return 1;
float r2;
p0 = vec4(0);
for (int i = 0; i<7; i++)
{
if (i == 3)
{
AmazingSurf(p, atr.z*4.0, 2.0*atr.y, 0.2, r2);
p.x *= 0.94*2.0;
p.z+=sin(time*0.47+l)*0.05;

TBox(p.xzyw, 2.0, 2.0*0.6+sin(time+ l*10.0)*0.02, 0.5, r2);
}
p.xyz = clamp(p.xyz, -k, k)*2.0 - p.xyz;
r2 = dot(p.xyz, p.xyz);
if (i > 3)
r2 = pow(r2, 0.34*2.0);

float k = max(1.0 / r2, 1.0);
p *= k*scale;
p.z += 0.36 - 0.5;

if (i == 2)
AmazingSurf(p, 0.31*2.0, 1.0, 0.0, r2);
if (i == 4)
{
p.xzy *= rotationMatrix3(vec3(0.0, 0.0, 1.0), (time)*(1.0 - step(10.0, l)));
Poly_Fold(p.xzyw, 10);
}
if (i == 2)
p.xz += 1.0;
}
return 0.3*abs(p.y)*length(p.xz) / p.w + step(1.0 + (1.0 - smoothstep(1.0, 5.0, abs(pos.x - camera.x)))*0.5, pos.y);
}
Stats:
Total Favorities: 1 View Who Favorited
Filesize: 443.52kB
Height: 1080 Width: 1920
Discussion Topic: View Topic
Keywords: sirtaki gpu rendering glsl
Posted by: alexl May 23, 2015, 07:09:16 PM

Rating: by 26 members.