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 Done #485

Open
wants to merge 85 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
34c2b8d
Add files via upload
Manasa-01 Sep 12, 2022
e003fa7
Add files via upload
Manasa-01 Sep 12, 2022
35a4b73
Add files via upload
Manasa-01 Sep 20, 2022
5e3fbd5
Delete index.html
Manasa-01 Sep 20, 2022
95dd270
Delete index.html
Manasa-01 Sep 20, 2022
cb90aa5
Add files via upload
Manasa-01 Sep 20, 2022
6c997f3
Add files via upload
Manasa-01 Sep 20, 2022
06b221e
Delete index.html
Manasa-01 Sep 27, 2022
9299cd6
Add files via upload
Manasa-01 Sep 27, 2022
6252714
Delete index.html
Manasa-01 Sep 27, 2022
21136bd
Add files via upload
Manasa-01 Sep 27, 2022
4645990
Merge branch 'bostongfx:main' into main
Manasa-01 Sep 27, 2022
7e3e41b
Add files via upload
Manasa-01 Sep 27, 2022
4ba1a57
Delete index.html
Manasa-01 Oct 11, 2022
be9212e
Add files via upload
Manasa-01 Oct 11, 2022
03f89e1
Delete index.html
Manasa-01 Oct 11, 2022
6cb005b
Delete README.md
Manasa-01 Oct 11, 2022
f20b280
Merge branch 'bostongfx:main' into main
Manasa-01 Oct 11, 2022
907527a
Add files via upload
Manasa-01 Oct 11, 2022
4c53853
Revert "Delete README.md"
Manasa-01 Oct 11, 2022
160924c
Add files via upload
Manasa-01 Oct 11, 2022
679f344
Merge branch 'bostongfx:main' into main
Manasa-01 Oct 18, 2022
3b45aeb
Delete index.html
Manasa-01 Oct 18, 2022
fe6c5e6
Add files via upload
Manasa-01 Oct 18, 2022
b517135
Add files via upload
Manasa-01 Oct 18, 2022
7a246d0
Delete index.html
Manasa-01 Oct 27, 2022
b8e1b27
Add files via upload
Manasa-01 Oct 27, 2022
e31fad9
Delete index.html
Manasa-01 Oct 27, 2022
4d8676b
Add files via upload
Manasa-01 Oct 27, 2022
1d31799
Merge branch 'bostongfx:main' into main
Manasa-01 Nov 8, 2022
841c107
Delete board.jpg
Manasa-01 Nov 8, 2022
60d38f5
Delete index.html
Manasa-01 Nov 8, 2022
86bdb98
Delete robot.js
Manasa-01 Nov 8, 2022
9551134
Delete sky.jpg
Manasa-01 Nov 8, 2022
c331810
Add files via upload
Manasa-01 Nov 8, 2022
bd4460a
Add files via upload
Manasa-01 Nov 8, 2022
cc45b54
Add files via upload
Manasa-01 Nov 8, 2022
9ebf153
Add files via upload
Manasa-01 Nov 8, 2022
3a3d21e
Delete CS460_Assignment_07_.pdf
Manasa-01 Nov 8, 2022
37344be
Add files via upload
Manasa-01 Nov 8, 2022
5db4ee2
Delete Dance_Monkey.mp3
Manasa-01 Nov 22, 2022
01c45ab
Delete grass.jpg
Manasa-01 Nov 22, 2022
98ea9ad
Delete helper.js
Manasa-01 Nov 22, 2022
3fa8205
Delete index.html
Manasa-01 Nov 22, 2022
531ab1c
Delete manasa.mp4
Manasa-01 Nov 22, 2022
f627221
Delete robot.js
Manasa-01 Nov 22, 2022
c58f772
Delete tree.jpg
Manasa-01 Nov 22, 2022
e3bd3b3
Add files via upload
Manasa-01 Nov 22, 2022
cc611cc
Add files via upload
Manasa-01 Nov 22, 2022
c97fba1
Merge branch 'bostongfx:main' into main
Manasa-01 Nov 29, 2022
230d18d
Delete index.html
Manasa-01 Nov 29, 2022
178c008
Add files via upload
Manasa-01 Nov 29, 2022
781e33e
Add files via upload
Manasa-01 Nov 29, 2022
34b70c7
Add files via upload
Manasa-01 Nov 29, 2022
fbc31d2
Add files via upload
Manasa-01 Nov 29, 2022
d73d454
Merge branch 'bostongfx:main' into main
Manasa-01 Dec 9, 2022
f0fe138
Delete gltf.py
Manasa-01 Dec 9, 2022
99e9c2f
Add files via upload
Manasa-01 Dec 9, 2022
524c486
Add files via upload
Manasa-01 Dec 9, 2022
aeb45d1
Add files via upload
Manasa-01 Dec 9, 2022
c0e38e8
Delete index.html
Manasa-01 Dec 9, 2022
36909ae
Delete armadillo.ply
Manasa-01 Dec 9, 2022
9509a72
Add files via upload
Manasa-01 Dec 9, 2022
03dd9a1
Delete CS460_Assignment_10.pdf
Manasa-01 Dec 9, 2022
568cd2d
Add files via upload
Manasa-01 Dec 9, 2022
0c6cd1d
Add files via upload
Manasa-01 Dec 21, 2022
63b8f34
Add files via upload
Manasa-01 Dec 21, 2022
179f688
upload
Manasa-01 Dec 21, 2022
a043b71
Delete FinalProject directory
Manasa-01 Dec 21, 2022
9dde9d1
upload
Manasa-01 Dec 21, 2022
1ae13a9
Delete FinalProject directory
Manasa-01 Dec 21, 2022
98eda88
Add files via upload
Manasa-01 Dec 21, 2022
2213fa0
upload
Manasa-01 Dec 21, 2022
b558716
upload
Manasa-01 Dec 21, 2022
081bfa9
upload
Manasa-01 Dec 21, 2022
9e3e6b7
Delete Idle.fbx
Manasa-01 Dec 21, 2022
ca6848c
Delete dance.fbx
Manasa-01 Dec 21, 2022
9b74c41
Delete manasa.fbx
Manasa-01 Dec 21, 2022
1b4a2b0
Delete run.fbx
Manasa-01 Dec 21, 2022
627da85
Delete walk.fbx
Manasa-01 Dec 21, 2022
8026d0f
Delete CS460_Final_Project_Report.pdf
Manasa-01 Dec 21, 2022
9e46594
Add files via upload
Manasa-01 Dec 21, 2022
010cc76
Delete CS460_Final_Project_Report.pdf
Manasa-01 Dec 21, 2022
1ab73f5
Add files via upload
Manasa-01 Dec 21, 2022
ba9350a
Created using Colaboratory
Manasa-01 Apr 20, 2023
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/CS460_Assignment_02 (1).pdf
Binary file not shown.
193 changes: 193 additions & 0 deletions 02/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<title>CS460 Assignment 2</title>
<style>
body {
background-color: black;
color: white; /* font color */
font-family: sans-serif;
margin: 5px;
padding: 0;
height: 100%;
overflow: hidden !important;

}

#logo {
position: absolute;
right: 10px;
top: 10px;
}
#position{
position: absolute;
right: 5000px;
top: 5000px;
}
</style>



<script type="text/javascript" src="https://get.goXTK.com/xtk_edge.js"></script>

<script type="text/javascript">

window.onload = function() {

// this gets called when the site is ready

// create a new scene and renderer
r = new X.renderer3D();
r.init();

for (i=1; i<8; i++){
for(j=3;j<7;j++)
{

c = new X.cube();
c.color=[0.5,0,0.5];
c.center = [25*i, 25*j,0];
r.add(c);
}
}

// bottom line of 5 pixels
for (i=2; i<7; i++){

if(j=2) {
c = new X.cube();
c.color=[0.5,0,0.5];
c.center = [25*i, 25*j,0];
r.add(c);
}
}
//topleft of horn
for(i=1;i<3;i++){
if(j=7){
c = new X.cube();
c.color=[0.8,0.3,0];
c.center = [25*i, 25*j,0];
r.add(c);
}
}
// top right of horn
for(i=6;i<8;i++){
if(j=7){
c = new X.cube();
c.color=[0.8,0.3,0];
c.center = [25*i, 25*j,0];
r.add(c);
}
}

for(i=1;i<2;i++){
if(j=8){
c = new X.cube();
c.color=[0.8,0.3,0];
c.center = [25*i, 25*j,0];
r.add(c);
}
}

for(i=7;i<8;i++){
if(j=8){
c = new X.cube();
c.color=[0.8,0.3,0];
c.center = [25*i, 25*j,0];
r.add(c);
}
}

// bottom line of 3 pixels
for (i=3; i<6; i++){

if(j=1) {
c = new X.cube();
c.color=[0.5,0,0.5];
c.center = [25*i, 25*j,0];
r.add(c);
}
}
// mouth
c = new X.cube();
c.color = [0, 0.5, 0.5]
c.center = [100,50, 0];
r.add(c);



//blinking foxeyes
let foxeyeblink=true;
setInterval
(
function()
{
if(foxeyeblink)
{
for(i=5;i<7;i++){
if(j=5){
c = new X.cube();
c.color=[1.5, 0,0];
c.center = [25*i, 25*j,0];
r.add(c);
r.render();
}
}
for(i=2;i<4;i++){
if(j=5){
c = new X.cube();
c.color=[1.5, 0, 0];
c.center = [25*i, 25*j,0];
r.add(c);
r.render();
}
}
foxeyeblink=false;
}
else
{
for(i=5;i<7;i++){
if(j=5){
c = new X.cube();
c.color=[0, 0,0];
c.center = [25*i, 25*j,0];
r.add(c);
r.render();
}
}
for(i=2;i<4;i++){
if(j=5){
c = new X.cube();
c.color=[0, 0, 0];
c.center = [25*i, 25*j,0];
r.add(c);
r.render();
}
}
foxeyeblink=true;
}

},1000 );

// set camera further away!
r.camera.position = [0, 0, 1000];

// render everything!
r.render();

};

</script>
</head>
<body>
<h1>CS460 Assignment 2</h1>
<div id="logo"><img style="height:60px" src="https://drive.google.com/uc?export=view&id=170VhrY1iJ1i7Ca0Qm7Pj0hUp5THjNvJC"></div>
<div class="position">
<p>MANASA KONE
</p>
<div class="position">
<p>ID 02010014
</p>
</body>
</html>
Binary file added 03/CS460_Assignment_03_.pdf
Binary file not shown.
156 changes: 156 additions & 0 deletions 03/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
<html>
<head>
<meta charset="UTF-8" />
<style>
html, body {
background-color:#000;
margin: 0;
padding: 0;
height: 100%;
overflow: hidden !important;
}
</style>
<script src="https://threejs.org/build/three.min.js" type="text/javascript"></script>
<script src="https://threejs.org/examples/js/controls/TrackballControls.js" type="text/javascript"></script>
<script>
window.onload = function() {

scene = new THREE.Scene();

fov = 75;
ratio = window.innerWidth / window.innerHeight;
zNear = 1;
zFar = 10000;
// console.log(ratio);
camera = new THREE.PerspectiveCamera(fov, ratio, zNear, zFar);
camera.position.set( 0, 0, 100);

renderer = new THREE.WebGLRenderer();
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );

ambientLight = new THREE.AmbientLight();
scene.add( ambientLight );

light = new THREE.DirectionalLight( 0xffffff, 5.0 );
light.position.set( 10, 100, 10 );
scene.add( light );


//
// The invisible plane
//
geometry = new THREE.PlaneBufferGeometry( 10000, 10000 );
material = new THREE.MeshBasicMaterial( {
visible: false
});

invisible_plane = new THREE.Mesh( geometry, material );

scene.add( invisible_plane );
//
//
//



controls = new THREE.TrackballControls(camera,renderer.domElement );

animate();


//
// ACTION!
//
totalObjects = 0;
renderer.domElement.onmousemove = function(e) {

if (!e.shiftKey) {
e.preventDefault();
return false;
}

console.log('yes! you clicked!');

pixel_coords = new THREE.Vector2( e.clientX, e.clientY );

console.log('Pixel coordinates', pixel_coords);

vp_coords = new THREE.Vector2( ( pixel_coords.x / window.innerWidth ) * 2 - 1,
-( pixel_coords.y / window.innerHeight ) * 2 + 1);

console.log('Viewport coordinates', vp_coords);

vp_coords_near = new THREE.Vector3( vp_coords.x, vp_coords.y, 0);

raycaster = new THREE.Raycaster();
raycaster.setFromCamera(vp_coords_near, camera);
intersects = raycaster.intersectObject(invisible_plane);


// choose random color
colors = ['violet', 'ash', 'blue', 'green', 'red'];
random_color = colors[Math.floor((Math.random() * colors.length))];



// choose random geometry
random_click= Math.floor((Math.random() * 6));
if(random_click==1){
geometry = new THREE.BoxGeometry( 20, 20, 20 );
material = new THREE.MeshStandardMaterial({ color: random_color });
mesh = new THREE.Mesh( geometry, material );

}
else if(random_click==2){
geometry = new THREE.ConeGeometry( 10, 19 );
material = new THREE.MeshStandardMaterial({ color: random_color });
mesh = new THREE.Mesh( geometry, material );
}
else if (random_click==3){
geometry = new THREE.RingGeometry( 15, 10, 12 );
material = new THREE.MeshStandardMaterial({ color: random_color });
mesh = new THREE.Mesh( geometry, material );
}
else if(random_click==4)
{
geometry = new THREE.TorusKnotGeometry( 11, 3, 10, 16 );
material = new THREE.MeshStandardMaterial({ color: random_color });
mesh = new THREE.Mesh( geometry, material );
}
else if(random_click==5){
geometry = new THREE.SphereGeometry( 15, 28, 18 );
material = new THREE.MeshStandardMaterial({ color: random_color });
mesh = new THREE.Mesh( geometry, material );
}
else if(random_click==6){
geometry = new THREE.OctahedronGeometry( 30 );
material = new THREE.MeshStandardMaterial({ color: random_color });
mesh = new THREE.Mesh( geometry, material );
}
scene.add( mesh );

mesh.position.set(intersects[0].point.x, intersects[0].point.y,intersects[0].point.z)
totalObjects += 1;
console.log('Total objects', totalObjects);

};




};

function animate() {

requestAnimationFrame( animate );

controls.update();
renderer.render( scene, camera );

};

</script>
</head>
<body></body>
</html>
Binary file added 04/CS460_Assignment_04_.pdf
Binary file not shown.
Loading