forked from troffmo5/OculusStreetView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
135 lines (131 loc) · 6.29 KB
/
index.html
File metadata and controls
135 lines (131 loc) · 6.29 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Oculus Google Street Viewer</title>
<link rel="stylesheet" href="css/jquery-ui.css" type="text/css">
<link rel="stylesheet" href="css/buttons.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="css/osv.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery.base64.min.js"></script>
<script type="text/javascript" src="js/zpipe.min.js"></script>-->
<script type="text/javascript" src="js/GSVPano_o.js"></script>
<script type="text/javascript" src="js/GSVPanoDepth.js"></script>
<script type="text/javascript" src="js/three.min.js"></script>
<script type="text/javascript" src="js/OculusRiftEffect.js"></script>
<script type="text/javascript" src="js/RequestAnimationFrame.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="js/vr.js"></script>
<script type="text/javascript" src="js/osv.js"></script>
</head>
<body>
<div id="viewer" ></div>
<div class="ui" id="ui-left">
<ul>
<li><a href="#mapcontainer-left">Map</a></li>
<li><a href="#settings-left">Settings</a></li>
<li><a href="#help-left">Help</a></li>
<li><a href="#credits-left">Credits</a></li>
</ul>
<div class="mapcontainer" id="mapcontainer-left">
<div class="map" id="map-left"></div>
<input class="mapsearch" id="mapsearch-left" placeholder="Search" type="text"/>
<div class="mapprogress"></div>
</div>
<div class="settings" id="settings-left">
<h2>Settings</h2>
<ul>
<li>External tracker <input id="extt-left" type="checkbox" checked="false"/></li>
<li>Web Socket <input id="wsock-left" type="text" value="ws://127.0.0.1:1981"/></li>
<li>Depth (Alt Key) <input id="depth-left" type="checkbox" checked="true"/></li>
</ul>
</div>
<div class="help" id="help-left">
<ul>
<li>Rotation with arrow keys or gamepad stick</li>
<li>Move to the adjacent location: doubleclick or double-press ctrl or gampad button</li>
<li>Click on the minimap to change location</li>
<li>Double-press space to toggle dialogs</li>
<li>Websocket expects a quaternion as array of 4 elements representing the camera rotation. (e.g. [0.1,0,0,0.9])</li>
<li>You can use URL parameters:
<ul>
<li>lat,lng :latitude and longitude</li>
<li>sock : websocket + tracker active</li>
<li>q : image quality [1-4]</li>
<li>s : show settings [true/false]</li>
<li><a href="http://oculusstreetview.eu.pn/index.html?lat=-23.442896&lng=151.906584&q=4&s=false&sock=127.0.0.1%3A1981">example</a></li>
</ul>
</li>
</ul>
</div>
<div class="credits" id="credits-left">
<div>Author: <a href="mailto:lsiciliano@web.de?subject=Oculus JS Demo&body=Your demo is cool!">Luca Siciliano (troffmo5)</a></div>
<div style="margin-top:10pt">Special thanks to:
<ul>
<li> mrdoob for <a href="http://threejs.org/">threejs</a></li>
<li> Jaume Sanchez Elias for <a href="https://github.com/spite/GSVPano.js">GSVPano</a></li>
<li> Ben Vanik for <a href="https://github.com/benvanik/vr.js">vr.js</a></li>
<li> proog128 for <a href="https://github.com/proog128/GSVPanoDepth.js">GSVPanoDepth</a></li>
<li> lazydodo for his <a href="RiftServer_0_3.zip">websocket server</a></li>
<li> <a href="http://www.oculusvr.com">Oculus VR</a> for the Rift</li>
<li> <a href="http://www.google.com">Google</a> for the wonderful Streetview project</li>
</ul>
</div>
</div>
</div>
<div class="ui" id="ui-right">
<ul>
<li><a href="#mapcontainer-right">Map</a></li>
<li><a href="#settings-right">Settings</a></li>
<li><a href="#help-right">Help</a></li>
<li><a href="#credits-right">Credits</a></li>
</ul>
<div class="mapcontainer" id="mapcontainer-right">
<div class="map" id="map-right"></div>
<input class="mapsearch" id="mapsearch-right" placeholder="Search" type="text"/>
<div class="mapprogress"></div>
</div>
<div class="settings" id="settings-right">
<h2>Settings</h2>
<ul>
<li>External tracker <input id="extt-right" type="checkbox" checked="false"/></li>
<li>Web Socket <input id="wsock-right" type="text" value="ws://127.0.0.1:1981"/></li>
<li>Depth (Alt Key) <input id="depth-right" type="checkbox" checked="true"/></li>
</ul>
</div>
<div class="help" id="help-right">
<ul>
<li>Rotation with arrow keys or gamepad stick</li>
<li>Move to the adjacent location: doubleclick or double-press ctrl or gampad button</li>
<li>Click on the minimap to change location</li>
<li>Double-press space to toggle dialogs</li>
<li>Websocket expects a quaternion as array of 4 elements representing the camera rotation. (e.g. [0.1,0,0,0.9])</li>
<li>You can use URL parameters:
<ul>
<li>lat,lng :latitude and longitude</li>
<li>sock : websocket + tracker active</li>
<li>q : image quality [1-4]</li>
<li>s : show settings [true/false]</li>
<li><a href="http://oculusstreetview.eu.pn/index.html?lat=-23.442896&lng=151.906584&q=4&s=false&sock=127.0.0.1%3A1981">example</a></li>
</ul>
</li>
</ul>
</div>
<div class="credits" id="credits-right">
<div>Author: <a href="mailto:lsiciliano@web.de?subject=Oculus JS Demo&body=Your demo is cool!">Luca Siciliano (troffmo5)</a></div>
<div style="margin-top:10pt">Special thanks to:
<ul>
<li> mrdoob for <a href="http://threejs.org/">threejs</a></li>
<li> Jaume Sanchez Elias for <a href="https://github.com/spite/GSVPano.js">GSVPano</a></li>
<li> Ben Vanik for <a href="https://github.com/benvanik/vr.js">vr.js</a></li>
<li> proog128 for <a href="https://github.com/proog128/GSVPanoDepth.js">GSVPanoDepth</a></li>
<li> lazydodo for his <a href="RiftServer_0_3.zip">websocket server</a></li>
<li> <a href="http://www.oculusvr.com">Oculus VR</a> for the Rift</li>
<li> <a href="http://www.google.com">Google</a> for the wonderful Streetview project</li>
</ul>
</div>
</div>
</div>
</body>
</html>