forked from hornep/ComputerGraphicsTermProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTermProject.html
More file actions
80 lines (76 loc) · 3.35 KB
/
TermProject.html
File metadata and controls
80 lines (76 loc) · 3.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Babylon.js sample code</title>
<!-- Babylon.js -->
<!--Website that explains the code https://github.com/BabylonJS/Babylon.js/wiki/07-Animation-->
<script src="http://www.babylonjs.com/hand.minified-1.2.js"></script>
<script src="http://www.babylonjs.com/cannon.js"></script>
<script src="http://www.babylonjs.com/oimo.js"></script>
<script src="http://www.babylonjs.com/babylon.js"></script>
<script src="js/hand.minified-1.2.js"></script>
<script src="js/cannon.js"></script>
<script src="js/oimo.js"></script>
<script src="js/babylon.d.js"></script>
<script src="js/jquery-2.1.4.min.js"></script>
<script src="TermProject.js"></script>
<style>
html, body {
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#renderCanvas {
width: 100%;
height: 100%;
touch-action: none;
}
</style>
</head>
<body>
<table style="width:100%">
<tr>
<td>
<canvas id="renderCanvas"></canvas>
<tr>
<td>
<table style="width:100%">
<tr style="width:100%">
<td style="width:200px">
<select name="bodypart" id="bodypart" >
<option value="lamont">Robot</option>
<option value="head">Head</option>
<option value="chest">Chest</option>
<option value="rightshoulder">Right Shoulder</option>
<option value="rightelbow">Right Elbow</option>
<option value="rightwrist">Right Wrist</option>
<option value="leftshoulder">Left Shoulder</option>
<option value="leftelbow">Left Elbow</option>
<option value="leftwrist">Left Wrist</option>
<option value="waist">Waist</option>
<option value="righthip">Right Hip</option>
<option value="rightknee">Right Knee</option>
<option value="rightankle">Right Ankle</option>
<option value="lefthip">Left Hip</option>
<option value="leftknee">Left Knee</option>
<option value="leftankle">Left Ankle</option>
</select><br>
Rot X: <input name="rotX" orien="x" type="range" value="0" max="360" min="1"
oninput="handleScroll(this);"></input><br>
Rot Y: <input name="rotY" orien="y" type="range" value="0" max="360" min="1"
oninput="handleScroll(this);"></input><br>
Rot Z: <input name="rotZ" orien="z" type="range" value="0" max="360" min="1"
oninput="handleScroll(this);"></input><br><br>
<button value="Animate" name="animButton">Animate</button>
<button value="Animate" name="stopAnimButton">Stop Animate</button>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>