Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
KhiewJianBin committed Sep 23, 2022
1 parent 548efe1 commit 437edaf
Show file tree
Hide file tree
Showing 1,804 changed files with 116,702 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Function Rendeirng Examples/3dheart.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
mode 1
definition "return (x^2+9/4*y^2+z^2-1)^3 - x^2*z^3 - 9/80*y^2*z^4;"
bboxSize 3 2 3
bboxCenter 0 0 0
bboxResolution 200 200 200
diffuseColor 1 1 1
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 1
Timecycle 1
Timerange 0 1
12 changes: 12 additions & 0 deletions Function Rendeirng Examples/Batman.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
mode 0
definition "x = 0.1*(abs(u)/u * (0.3*abs(u) + 0.2 * abs(abs(u)-1) + 2.2 * abs(abs(u)-2) - 2.7 * abs(abs(u)-3) - 3*abs(abs(u)-5) + 3*abs(abs(u)-7) + 5*sin(pi/4*(abs(abs(u)-3)-abs(abs(u)-4)+1)) + (5/4) * (abs(abs(u)-4)-abs(abs(u)-5)-1)^3 - 5.3*cos((pi/2+asin(47/53)) * (abs(abs(u)-7)-abs(abs(u)-8)-1)/2)+2.8)) ;
y = 0.1*(3/2 * abs(abs(u)-1) - 3/2*abs(abs(u)-2) - 29/4*abs(abs(u)-4) +29/4*abs(abs(u)-5)+7/16*(abs(abs(u)-2)-abs(abs(u)-3)-1)^4+4.5*sin(pi/4*(abs(abs(u)-3)-abs(abs(u)-4)-1)) -3*sqrt(2)/5 * abs(abs(abs(u)-5)-abs(abs(u)-7))^(5/2) + 6.4*sin((pi/2+asin(47/53)) * (abs(abs(u)-7)-abs(abs(u)-8)+1/2) +asin(56/64)) + 4.95) ;
z = 0;"
parameters -8 8
resolution 200 200 200
diffuseColor 1 1 1
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 1
Timecycle 1
Timerange 0 1
24 changes: 24 additions & 0 deletions Function Rendeirng Examples/Robot.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
mode 1
definition "body=min(min(min(min(min(min(min(min(min(min(x+0.6,0.6-x),y+1),0.8-y),z+0.6),0.6-z),-min(min(min(min(min(y+1,-0.8-y),x+0.6),0.6-x),0.6-z),z-0.3)),-min(min(min(min(min(y+1,-0.8-y),x+0.6),0.6-x),-0.3-z),z+0.6)),-min(min(0.1-x,x+0.1),-0.8-y)),-min(-0.8-y,x-0.4)),-min(-0.8-y,-0.4-x));
arm=max(max(0.2^2-(x-0.8)^2-(y-0.2)^2-z^2,0.2^2-(x+0.8)^2-(y-0.2)^2-z^2),min(min(0.3^2-(y-0.2)^2-z^2,x+0.8),0.8-x));
midSection=max(body,arm);
topConnector=min(min(0.5^2-x^2-z^2,y-0.8),0.9-y);
head=min(min(min(min(min(x+0.5,0.5-x),y-0.9),1.6-y),z+0.5),0.5-z);
lefteye=min(min(0.2^2-(y-1.3)^2-(x-0.25)^2,0.6-z),z-0.5);
righteye=min(min(0.2^2-(y-1.3)^2-(x+0.25)^2,0.6-z),z-0.5);
topSection=max(max(max(head,lefteye),righteye),topConnector);
leftleg=min(min(min(min(min(-0.5+z-y,-0.5-z-y),-1-y),y+1.2),x-0.1),0.5-x);
rightleg=min(min(min(min(min(-0.5+z-y,-0.5-z-y),-1-y),y+1.2),-0.1-x),x+0.5);
lowerSection=max(leftleg,rightleg);
final=max(max(midSection,topSection),lowerSection);

return final;"
bboxSize 4 4 4
bboxCenter 0 0 0
bboxResolution 100 100 100
diffuseColor 1 1 1
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 1
Timecycle 1
Timerange 0 1
13 changes: 13 additions & 0 deletions Function Rendeirng Examples/boxcutoutsphere.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
mode 1
definition "box = min(1-x,x+1,1-y,y+1,1-z,z+1);
sphere = 1.25^2-x^2-y^2-z^2;
return min(box,-sphere);"
bboxSize 3 3 3
bboxCenter 0 0 0
bboxResolution 200 200 200
diffuseColor 1 1 1
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 1
Timecycle 1
Timerange 0 1
13 changes: 13 additions & 0 deletions Function Rendeirng Examples/figure8klien.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
mode 0
definition "r = 3;
x=(r + cos(u/2) * sin(v) - sin(u/2)*sin(2*v))*cos(u);
y=(r + cos(u/2) * sin(v) - sin(u/2)*sin(2*v))*sin(u);
z=sin(u/2)*sin(v)+cos(u/2)*sin(2*v);"
parameters 0 6.2831 0 6.2831 0 1
resolution 30 30 30
diffuseColor 1 1 1
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 1
Timecycle 1
Timerange 0 1
12 changes: 12 additions & 0 deletions Function Rendeirng Examples/heart.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
mode 0
definition "a = 2*pi*u;
x = 16*sin(a)^3;
y = 13*cos(a) - 5*cos(2*a) - 2*cos(3*a) - cos(4*a);"
parameters 0 1
resolution 100
diffuseColor 1 1 1
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 1
Timecycle 1
Timerange 0 1
12 changes: 12 additions & 0 deletions Function Rendeirng Examples/implicitcube.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
mode 1
definition "box = min(1-x,x+1,1-y,y+1,1-z,z+1);
return box;"
bboxSize 3 7 5
bboxCenter 0 0 1
bboxResolution 100 100 100
diffuseColor 1 1 1
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 1
Timecycle 1
Timerange 0 1
11 changes: 11 additions & 0 deletions Function Rendeirng Examples/implicitklein.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
mode 1
definition "return (x^2+y^2+z^2+2*y-1) * ((x^2+y^2+z^2-2*y-1)^2-8*z^2) + 16*x*z*(x^2+y^2+z^2-2*y-1);"
bboxSize 10 10 10
bboxCenter 0 0 0
bboxResolution 100 100 100
diffuseColor 1 1 1
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 1
Timecycle 1
Timerange 0 1
18 changes: 18 additions & 0 deletions Function Rendeirng Examples/morphing11to15.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
mode 0
definition "x1=2.5*(2*v*pi)/(1+(2*v*pi)^3);
y1=2.5*cos(2*u*pi)*(2*v*pi)^2/(1+(2*v*pi)^3);
z1=2.5*sin(2*u*pi)*(2*v*pi)^2/(1+(2*v*pi)^3);
x2=0.15*(4*cos(v*8*pi/4)-cos(v*8*pi));
y2=y2=0.15*cos(u*2*pi)*(6+4*sin(v*8*pi/4)-sin(v*8*pi));
z2=z2=0.15*sin(u*2*pi)*(6+4*sin(v*8*pi/4)-sin(v*8*pi));
x = x1+(x2-x1)*t;
y = y1+(y2-y1)*t;
z = z1+(z2-z1)*t;"
parameters 0 1 0 1 0 1
resolution 30 30 30
diffuseColor 1 1 1
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 1
Timecycle 4
Timerange 0 1
12 changes: 12 additions & 0 deletions Function Rendeirng Examples/morphingtorus.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
mode 0
definition "x = (5 + v*cos(u*2*pi)) * sin(0.1+(2-0.1)*t*w*pi);
y = v*sin(u*2*pi);
z = (5 + v*cos(u*2*pi)) * cos(0.1+(2-0.1)*t*w*pi);"
parameters 0 1 0 1 0 1
resolution 30 30 30
diffuseColor 1 1 1
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 1
Timecycle 2
Timerange 0 1
12 changes: 12 additions & 0 deletions Function Rendeirng Examples/redcurve.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
mode 0
definition "z=u/500*cos(u*pi/50);
x=u/500*sin(u*pi/50);
y=u/500;"
parameters 0 500
resolution 500
diffuseColor 1 0 0
SpecularColor 1 0 0
Transparency 0
Shininess 1
Timecycle 1
Timerange 0 1
12 changes: 12 additions & 0 deletions Function Rendeirng Examples/shell.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
mode 0
definition "x=((0.2+0.8*v)*cos(u*2*pi)+v)*sin(v*12*pi)+2;
y=(0.2+0.8*v)*sin(u*2*pi)+3*(v)+0.5;
z=((0.2+0.8*v)*cos(u*2*pi)+v)*cos(v*12*pi)+2;"
parameters 0 1 0 1
resolution 300 300
diffuseColor 1 0.8 0.6
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 0.6
Timecycle 1
Timerange 0 1
13 changes: 13 additions & 0 deletions Function Rendeirng Examples/spheretocubeimplicit.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
mode 1
definition "cube = min(5-x,5+x,5-y,5+y,5-z,5+z);
return min((5*t)^2-x^2-y^2-z^2,cube*t);
"
bboxSize 11 11 11
bboxCenter 0 0 0
bboxResolution 30 30 30
diffuseColor 1 1 1
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 1
Timecycle 4
Timerange 0 4
12 changes: 12 additions & 0 deletions Function Rendeirng Examples/spiral.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
mode 0
definition "x=(5+w/3*(1-5) + v*cos(u*2*pi+pi/4)) * sin(w*pi);
y=v*sin(u*2*pi+pi/4);
z=(5+w/3*(1-5) + v*cos(u*2*pi+pi/4)) * cos(w*pi);"
parameters 0 1 0 1 0 3
resolution 4 75 75
diffuseColor 0.2 0.2 1
SpecularColor 1 1 1
Transparency 0
Shininess 1
Timecycle 1
Timerange 0 1
12 changes: 12 additions & 0 deletions Function Rendeirng Examples/torus.Func
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
mode 0
definition "x = (5 + v*cos(u*2*pi)) * sin(w*pi);
y = v*sin(u*2*pi);
z = (5 + v*cos(u*2*pi)) * cos(w*pi);"
parameters 0 1 0 1 0 1
resolution 100 100 100
diffuseColor 1 1 1
SpecularColor 0.4 0.1 0.3
Transparency 0
Shininess 1
Timecycle 1
Timerange 0 1
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions Function Rendering Web/Server/Build/Web2.asm.loader.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file added Function Rendering Web/Server/Build/Web2.data.gz
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 437edaf

Please sign in to comment.