-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (41 loc) · 1.12 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HMI's 3D Renderer</title>
<style>
canvas {
width: 80vw;
height: 80vh;
margin: auto;
position: fixed;
top: 10vh;
left: 10vw;
border: 1px solid black;
box-shadow: 3px 3px lightgray;
background-color: #eee;
background-image:
linear-gradient(45deg, lightgray 25%, transparent 25%, transparent 75%, lightgray 75%, lightgray),
linear-gradient(45deg, lightgray 25%, transparent 25%, transparent 75%, lightgray 75%, lightgray);
background-size: 40px 40px;
background-position: 0 0, 20px 20px
}
</style>
</head>
<body>
<canvas id="main">
</canvas>
<script src="./build/h3r.js">
</script>
<script src="./examples/vendor/jquery-3.3.1.min.js">
</script>
<script>
$(function() {
clip = new h3r.Clip(document.getElementById("main"));
// clip.appendGLTF("data/gltf/cube/cube-1.glb");
// clip.appendH3R("./data/cman.h3r");
clip.appendH3R("./examples/data/dance.h3r");
})
</script>
</body>
</html>