This repository has been archived by the owner on Oct 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (42 loc) · 2.01 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
50
<!DOCTYPE html>
<!-- (C) 2019 David J. Kalbfleisch -->
<html lang="en">
<head>
<title>Just-In-Time Geometry</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="description" content="Move around a city while geometry is fetched and loaded just-in-time. No pre-downloading is necessary!">
<meta name="keywords" content="geometry, visibility, game, 3d, city, just-in-time">
<link rel="stylesheet" type="text/css" href="visibility.css">
<link rel="icon" href="icon.svg" type="image/svg+xml" sizes="any">
<link rel="apple-touch-icon" href="icon.svg" type="image/svg+xml" sizes="any">
<!-- TODO - When this becomes a module, import it instead. -->
<script src="three.js/examples/js/WebGL.js"></script>
</head>
<body>
<ul>
<li>S - strafe left</li>
<li>F - strafe right</li>
<li>E - forward</li>
<li>D - backward</li>
<li>J - turn left</li>
<li>L - turn right</li>
<li>I - look up</li>
<li>K - look down</li>
</ul>
<div id="first_person" class="container"><noscript>JavaScript is required.</noscript></div>
<button type="button"><a href="https://github.com/kalbfled/jit-geometry">Learn More</a></button>
<div id="third_person" class="container"><noscript>JavaScript is required.</noscript></div>
<p>Click, drag, mouse scroll, and use the arrow keys to control the third person view. Note the missing geometry that is not obviously missing in the first person view.</p>
<script type="module">
import { init, animate } from "./visibility_demo.js"
if (!WEBGL.isWebGLAvailable())
window.alert(WEBGL.getWebGLErrorMessage());
else
{
if (init())
animate();
}
</script>
</body>
</html>