Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final Project #254

Open
wants to merge 41 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
b542473
Milestone 2
PercyDeng Sep 14, 2019
8d39da1
Milestone 3
PercyDeng Sep 14, 2019
557a993
whole block
PercyDeng Sep 14, 2019
a95be1b
wholeblock
PercyDeng Sep 14, 2019
2c2bf73
Milk
PercyDeng Sep 14, 2019
18fcaa6
Assignment 2 Finished.
PercyDeng Sep 14, 2019
9aba8d3
Merge branch 'master' of https://github.com/bostongfx/cs460student
PercyDeng Oct 1, 2019
91402f2
Assignment 4 Not Finished.
PercyDeng Oct 1, 2019
b611715
Assignment 4 Not Finished..
PercyDeng Oct 1, 2019
afa001e
Assignment 2 finished.
PercyDeng Oct 1, 2019
b3dd209
Merge branch 'master' of https://github.com/bostongfx/cs460student
PercyDeng Oct 12, 2019
b5fc910
Assignment 5
PercyDeng Oct 12, 2019
3d2057a
Assignment 5
PercyDeng Oct 12, 2019
1c470c6
Assignment 5
PercyDeng Oct 12, 2019
cd22e21
Assignment 5
PercyDeng Oct 12, 2019
6da9ccc
Assignment 5
PercyDeng Oct 12, 2019
f5214a2
Assignment 5
PercyDeng Oct 12, 2019
eba114d
Assignment 5
PercyDeng Oct 12, 2019
67a704b
Merge branch 'master' of https://github.com/bostongfx/cs460student
PercyDeng Oct 28, 2019
e84ca1a
Assignment 6
PercyDeng Oct 29, 2019
3947e0e
Assignment 6
PercyDeng Oct 29, 2019
fb15845
Merge branch 'master' of https://github.com/bostongfx/cs460student
PercyDeng Nov 8, 2019
89794fc
assignment 7
PercyDeng Nov 11, 2019
6ea8907
assignment 7
PercyDeng Nov 11, 2019
bac0600
Assignment 8
PercyDeng Nov 15, 2019
9ea44bc
assignment 8
PercyDeng Nov 15, 2019
314a2e9
Merge branch 'master' of https://github.com/bostongfx/cs460student
PercyDeng Nov 25, 2019
c60eeac
Merge branch 'master' of https://github.com/bostongfx/cs460student
PercyDeng Nov 25, 2019
921538a
Assignment 8
PercyDeng Nov 28, 2019
914c537
Merge branch 'master' of https://github.com/bostongfx/cs460student
PercyDeng Nov 29, 2019
940d754
Assignment 9
PercyDeng Dec 1, 2019
c4c409e
Assignment 10
PercyDeng Dec 3, 2019
0d0cf6b
Assignment 10.
PercyDeng Dec 3, 2019
83934ce
Merge branch 'master' of github.com:PercyDeng/cs460student
PercyDeng Dec 3, 2019
4c80156
Final Project
PercyDeng Dec 21, 2019
70df213
Final Project
PercyDeng Dec 21, 2019
cb09a8a
Assignment 2
PercyDeng Dec 21, 2019
86c01f3
Assignment 4
PercyDeng Dec 21, 2019
3991c7d
Assignment 5
PercyDeng Dec 21, 2019
677f473
Assignment 8
PercyDeng Dec 21, 2019
4141df3
Assignment 9
PercyDeng Dec 21, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 02/gfx/Assignment2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 02/gfx/Thumbs.db
Binary file not shown.
Binary file added 02/gfx/wholeblock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
141 changes: 141 additions & 0 deletions 02/index(no Gap) - Copy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<html>
<head>
<style>
body {
background-color: black;
color: white; //font color
font-family: sans-serif;
padding = 0;
height: 100%;
overflow: hidden !important;
}
#logo {
position: absolute;
right: 10px;
top: 10px;
}

</style>
<script type="text/javascript" src="http://get.goXTK.com/xtk_edge.js"></script>
<script type= "text/javascript">
window.onload = function() { //This will get executed,
// when the page completely
// loads
var pos = 25;
// new XTK renderer
r = new X.renderer3D();
r.init(); //initialize the renderer
r.camera.position = [0,0,300];

c = new X.cube(); // create a new cube
c.lengthX = 70;
c.lengthY = 145;
//c.color = [0, 0, 1];
r.add(c); // add the cube to the renderer


c1 = new X.cube(); // create a new cube
c1.center = [40,40,0];
r.add(c1); // add the cube to the renderer

c2 = new X.cube(); // create a new cube
c2.center = [20,40,0];
r.add(c2); // add the cube to the renderer

c3 = new X.cube(); // create a new cube
c3.center = [-40,40,0];
r.add(c3); // add the cube to the renderer

c4 = new X.cube(); // create a new cube
c4.center = [-20,40,0];
r.add(c4); // add the cube to the renderer

c5 = new X.cube(); // create a new cube
c5.center = [0,-40,0];
c5.color = [1,0,0];
r.add(c5); // add the cube to the renderer


Left1 = new X.cube();
Left1.center = [-45,20,0];
Left1.lengthY = 145;
r.add(Left1);

Left2 = new X.cube();
Left2.center = [-65,40,0];
Left2.lengthY = 145;
r.add(Left2);

Right1 = new X.cube();
Right1.center = [45,20,0];
Right1.lengthY = 145;
r.add(Right1);

Right2 = new X.cube();
Right2.center = [65,40,0];
Right2.lengthY = 145;
r.add(Right2);


//Up(2,1); Up(3,2); Up(-2,1); Up(-3,2);
//Down(0,5); Down(3,1); Down(-3,1);
//Left(3,0); Left(3,-2); Left(3,-3); Left(2,-4); Left(1,-5);
//Right(3,-3); Right(3,-2); Right(3,0); Right(2,-4); Right(1,-5);
r.render(); // start rendering

var i = 0;
setInterval(function()
{

if (i==0) {
lightB(c1); lightB(c2); lightB(c3); lightB(c4);
i = 1;
}
else if (i==1) {
White(c1); White(c2); White(c3); White(c4);
i = 0;
}
}, 1000);


function Left(x,y){
for(var i = 0; i <= x; i++) {
var temp = new X.cube();
temp.center = [-pos*i,pos*y,0]; // [x, y, z]
r.add(temp);
}
}
function Right(x,y){
for(var i = 0; i <= x; i++) {
var temp = new X.cube();
temp.center = [pos*i,pos*y,0]; // [x, y, z]
r.add(temp);
}
}
function Up(x,y){
for(var i = 1; i <= y; i++) {
var temp = new X.cube();
temp.center = [pos*x,pos*i,0]; // [x, y, z]
r.add(temp);
}
}
function Down(x,y){
for(var i = 1; i <= y; i++) {
var temp = new X.cube();
temp.center = [pos*x,-pos*i,0]; // [x, y, z]
if(i==4) temp.color = [1,0,0]; //Special case for the mouth
r.add(temp);
}
}
function lightB(x) { x.color = [0, 5, 5]; }
function White(x) { x.color = [252, 252, 252]; }
};
</script>
</head>
<body>
<h1> CS460 Assignment 2 </h1>
<div id ="logo">
<img style = "height:60px" src = "gfx/cs460.png">
</div>
</body>
</html>
141 changes: 141 additions & 0 deletions 02/index(no Gap).html
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<html>
<head>
<style>
body {
background-color: black;
color: white; //font color
font-family: sans-serif;
padding = 0;
height: 100%;
overflow: hidden !important;
}
#logo {
position: absolute;
right: 10px;
top: 10px;
}

</style>
<script type="text/javascript" src="http://get.goXTK.com/xtk_edge.js"></script>
<script type= "text/javascript">
window.onload = function() { //This will get executed,
// when the page completely
// loads
var pos = 25;
// new XTK renderer
r = new X.renderer3D();
r.init(); //initialize the renderer
r.camera.position = [0,0,300];

c = new X.cube(); // create a new cube
c.lengthX = 70;
c.lengthY = 145;
//c.color = [0, 0, 1];
r.add(c); // add the cube to the renderer


c1 = new X.cube(); // create a new cube
c1.center = [40,40,0];
r.add(c1); // add the cube to the renderer

c2 = new X.cube(); // create a new cube
c2.center = [20,40,0];
r.add(c2); // add the cube to the renderer

c3 = new X.cube(); // create a new cube
c3.center = [-40,40,0];
r.add(c3); // add the cube to the renderer

c4 = new X.cube(); // create a new cube
c4.center = [-20,40,0];
r.add(c4); // add the cube to the renderer

c5 = new X.cube(); // create a new cube
c5.center = [0,-40,0];
c5.color = [1,0,0];
r.add(c5); // add the cube to the renderer


Left1 = new X.cube();
Left1.center = [-45,20,0];
Left1.lengthY = 145;
r.add(Left1);

Left2 = new X.cube();
Left2.center = [-65,40,0];
Left2.lengthY = 145;
r.add(Left2);

Right1 = new X.cube();
Right1.center = [45,20,0];
Right1.lengthY = 145;
r.add(Right1);

Right2 = new X.cube();
Right2.center = [65,40,0];
Right2.lengthY = 145;
r.add(Right2);


//Up(2,1); Up(3,2); Up(-2,1); Up(-3,2);
//Down(0,5); Down(3,1); Down(-3,1);
//Left(3,0); Left(3,-2); Left(3,-3); Left(2,-4); Left(1,-5);
//Right(3,-3); Right(3,-2); Right(3,0); Right(2,-4); Right(1,-5);
r.render(); // start rendering

var i = 0;
setInterval(function()
{

if (i==0) {
lightB(c1); lightB(c2); lightB(c3); lightB(c4);
i = 1;
}
else if (i==1) {
White(c1); White(c2); White(c3); White(c4);
i = 0;
}
}, 1000);


function Left(x,y){
for(var i = 0; i <= x; i++) {
var temp = new X.cube();
temp.center = [-pos*i,pos*y,0]; // [x, y, z]
r.add(temp);
}
}
function Right(x,y){
for(var i = 0; i <= x; i++) {
var temp = new X.cube();
temp.center = [pos*i,pos*y,0]; // [x, y, z]
r.add(temp);
}
}
function Up(x,y){
for(var i = 1; i <= y; i++) {
var temp = new X.cube();
temp.center = [pos*x,pos*i,0]; // [x, y, z]
r.add(temp);
}
}
function Down(x,y){
for(var i = 1; i <= y; i++) {
var temp = new X.cube();
temp.center = [pos*x,-pos*i,0]; // [x, y, z]
if(i==4) temp.color = [1,0,0]; //Special case for the mouth
r.add(temp);
}
}
function lightB(x) { x.color = [0, 5, 5]; }
function White(x) { x.color = [252, 252, 252]; }
};
</script>
</head>
<body>
<h1> CS460 Assignment 2 </h1>
<div id ="logo">
<img style = "height:60px" src = "gfx/cs460.png">
</div>
</body>
</html>
Loading