forked from vvj-rares/renderfarm.js-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
77 lines (66 loc) · 3.53 KB
/
demo.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
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
<!DOCTYPE html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7 ]> <html class="ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]> <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if IE 9 ]> <html class="lt-ie10" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>renderfarm.js - demo</title>
<meta name="robots" content="noindex, nofollow">
<meta name="googlebot" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script
src="https://code.jquery.com/jquery-3.2.1.js"
integrity="sha256-DZAnKJ/6XZ9si04Hgrsxu/8s717jcIzLy3oi35EouyE="
crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/three.js/91/three.js"></script>
<script type="text/javascript" src="https://threejs.org/examples/js/controls/OrbitControls.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="js/jquery.event.move.js"></script>
<script src="js/jquery.twentytwenty.js"></script>
<link href="css/foundation.css" rel="stylesheet" type="text/css" />
<link href="css/twentytwenty.css" rel="stylesheet" type="text/css" />
<link href="css/main.css" rel="stylesheet" type="text/css" />
<script src="js/rfarm_client.js"></script>
</head>
<body onload="initScene()" onbeforeunload="closeSession(demo.sessionGuid)" >
<div class="canvas-wrapper">
<div class="toolbar">
<button id="btnRender" onclick="renderScene(demo.scene, demo.camera)">Render</button>
<button id="btnUpdateCam" onclick="updateCamera(demo.camera)">Update Camera</button>
<div id="renderStatus" class="status"></div>
</div>
</div>
<div class="twentytwenty-container" style="width: 640px;">
<canvas id="viewport"></canvas>
<img id="vray" src="img/vray.png" />
</div>
<div class="canvas-wrapper">
<div class="toolbar">
<button id="btnSaveJson" onclick="saveJson(demo.scene, 'scene.json')">save JSON</button>
</div>
</div>
<script>
$(function(){
$(".twentytwenty-container[data-orientation!='vertical']").twentytwenty({default_offset_pct: 0.7});
$(".twentytwenty-handle").each(function(i, el) {
el.addEventListener("mouseenter", function(e) {
demo.controls.enabled = false;
});
el.addEventListener("mouseleave", function(e) {
demo.controls.enabled = true;
});
});
});
</script>
<script>
module = {};
</script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/eligrey/FileSaver.js@cf70d125b048349fb084d8c8395ee790b83c685c/src/FileSaver.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lz-string/1.4.4/lz-string.min.js"></script>
<script src="js/demo.js"></script>
</body>
</html>