-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathindex-eac.html
46 lines (39 loc) · 1.95 KB
/
index-eac.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Three.js 起飞系列 - lesson04 - eac</title>
<link rel='stylesheet' href='https://naver.github.io/egjs-view360/common/css/demo.css'>
<link rel='stylesheet' href='https://naver.github.io/egjs-view360/common/css/PanoControls.css'>
</head>
<body>
<script src='https://naver.github.io/egjs-view360/common/js/jquery-2.2.4.js'></script>
<script src='https://naver.github.io/egjs-view360/common/js/qrcode.js'></script>
<script src='https://naver.github.io/egjs-view360/common/js/screenfull.min.js'></script>
<script src='https://naver.github.io/egjs-view360/common/js/PieView.js'></script>
<script src='https://naver.github.io/egjs-view360/release/latest/dist/view360.pkgd.js'></script>
<script src='https://naver.github.io/egjs-view360/common/js/PanoControls.js'></script>
<script src='https://cdn.jsdelivr.net/npm/sweetalert2@9.7.2/dist/sweetalert2.all.min.js'></script>
<script src='https://cdn.jsdelivr.net/npm/webxr-polyfill@2.0.1/build/webxr-polyfill.min.js'></script>
<script src='https://naver.github.io/egjs-view360/common/js/initXR.js'></script>
<div class="viewer" id="myPanoViewer">
</div>
<script>
var PanoViewer = eg.view360.PanoViewer;
var container = document.getElementById("myPanoViewer");
var panoViewer = new PanoViewer(container, {
image: "./images/eac/example-eac.jpg",
projectionType: "cubestrip",
cubemapConfig: {
order: "BLFDRU",
tileConfig: [{ rotation: 0 }, { rotation: 0 }, { rotation: 0 }, { rotation: 0 }, { rotation: -90 }, { rotation: 180 }],
trim: 3
}
});
PanoControls.init(container, panoViewer);
PanoControls.showLoading();
</script>
</body>
</html>