This repository was archived by the owner on Oct 30, 2025. It is now read-only.
forked from ubernaut/spaceSim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (68 loc) · 2.94 KB
/
Copy pathindex.html
File metadata and controls
80 lines (68 loc) · 2.94 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 lang="en">
<head>
<title>Into The Void!</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" type="text/css" href="/app/styles/app.css"/>
<script src="/app/lib/gpu.min.js"></script>
</head>
<body>
<div id="info">
<a href="https://github.com/ubernaut/spaceSim" target="_blank" rel="noopener">On GitHub</a>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<div id="help" >
<h3 onclick="$('#controls').toggle();">(click here to toggle help)</h3>
<pre id="controls">
<h3>General Info:</h3>
This is a nbody Gravity simulation using GPU.js and
THREE.js. The physics is being computed on the GPU
and there is still a lot of room for improvment.
To change the number of bodies in the simulation,
change the "bodyCount" url parameter thusly:
<a class="brightText" href="http://thedagda.co:9000?bodyCount=1000">http://thedagda.co:9000?bodyCount=1000</a>
you can also disable stars by setting "nostars=true":
<a class="brightText" href="http://thedagda.co:9000?bodyCount=1000&nostars=true">http://thedagda.co:9000?bodyCount=1000&nostars=true</a>
<h3>Controls:</h3>
wasd (as is tradition)
q,e to roll
r,f for up and down
Click and drag the mouse to rotate your view.
spacebar shoots stuff (try holding it down)
Mousewheel zooms
--------------------
You can zoom out very far with the
logarithmic Depth Buffer.
your ship is 20 meters across & the planets
and star are to scale
if you zoom way out you will see a number of large spheres.
The Gray sphere is the size of
our solar system (oort cloud)
Past that you'll see the stars moving
they're spread out around an area
roughly equal the to milky way.
The white sphere is the size of
the milky way.
The red sphere is the size of the
observable universe.
----------------------
This is multiplayer
you may see other ships,
you may shoot them with the colored balls
----------------------
</pre>
</div>
<div id="root"></div>
<script src="app/lib/gpu.js"></script>
<script src="/app/lib/three/three.js"></script>
<script src="/app/lib/three/loaders/DDSLoader.js"></script>
<script src="/app/lib/three/loaders/MTLLoader.js"></script>
<script src="/app/lib/three/loaders/OBJLoader.js"></script>
<script src="/app/lib/three/controls/FlyControls.js"></script>
<script src="/app/lib/three/controls/DeviceOrientationControls.js"></script>
<script src="/app/lib/three/oimo.js"></script>
<script src="/app/lib/three/Detector.js"></script>
<script src="/app/lib/three/libs/stats.min.js"></script>
<script type="text/javascript" src="/dist/vendor-8a3826cdbd698e76.js"></script><script type="text/javascript" src="/dist/bundle-8a3826cdbd698e76.js"></script></body>
</html>