-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
136 lines (124 loc) · 5.96 KB
/
index.html
File metadata and controls
136 lines (124 loc) · 5.96 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
135
136
<!doctype html>
<html>
<head>
<title> 3d.io modifiers for 3d models and 3d.io furniture</title>
<meta name="charset" content="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="3d, aframe, webgl, webvr, archilogic, 3d.io, interior, 3d furniture, 3d modifier, 3d style">
<meta name="description" content="xxx">
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:200,400,700" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/themes/prism.min.css">
<link rel="stylesheet" href="style.css">
<script src="https://aframe.io/releases/0.6.1/aframe.min.js"></script>
<script src="https://3d.io/releases/3dio-js/1.x.x-beta/3dio.min.js"></script>
<script src="3d-io-extension.js"></script>
<script src="https://cdn.rawgit.com/tizzle/aframe-orbit-controls-component/v0.1.12/dist/aframe-orbit-controls-component.min.js"></script>
</head>
<body>
<section id="overview-panel">
<!-- left view -->
<div id="title">
<h3>3d.io</h3>
<h1>modify 3d data</h1>
</div>
<div id="settings">
<h2>Settings</h2>
<select id="modifier-id">
<option value="origami">Origami</option>
<option value="consolidate_face_sides">Recalculate face normals</option>
</select>
</div>
<div id="about">
<h2>About</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. </p>
</div>
</section>
<section id="input-panel">
<!-- original model | middle view -->
<div class="preview"></div>
<div id="furniture-dropdown">
<span> Choose a furniture ID: </span>
<input id="furniture-id" type="text" list="dropdown-list" value="" maxlength="36">
<datalist id="dropdown-list">
<option value="ef62bf88-97e9-4468-ad0e-a87ced83578d">Vitra: Lounge Chair</option>
<option value="943357e8-911f-4bb5-8b89-8281385ef08f">B&B Italia: Husk Chair</option>
</datalist>
</div>
<div class="code-aframe">
<p>Or input your <a href="https://aframe.io">A-Frame</a> code:
<pre><code id="input-snippet-aframe" class="language-markup"><html>
<head>
<script src="https://aframe.io/releases/0.6.1/aframe.min.js"></script>
<script src="https://3d.io/releases/3dio-js/1.x.x-beta/3dio.min.js"></script>
</head>
<body>
<a-scene antialias="true">
<a-entity io3d-furniture="id:bc8f1f66-6fd6-4907-9a3f-24f13d1eadf2" position="0 0 0"></a-entity>
</a-scene>
</body>
</html></code></pre>
</p>
</div>
</section>
<section id="output-panel">
<!-- modified model | right view -->
<div class="preview">
<a-scene embedded antialias="true">
<a-entity id="input-model"
io3d-furniture="id:bc8f1f66-6fd6-4907-9a3f-24f13d1eadf2"
position="-1 0 0"
shadow="receive: false; cast:true"
></a-entity>
<a-entity id="output-model"
io3d-data3d="key:/535e624259ee6b0200000484/170818-1308-zq7z2o/victim.gz.data3d.buffer"
position="1 0 0"
shadow="receive: false; cast:true"
></a-entity>
<a-sky color="#ececec"></a-sky>
<a-entity geometry="primitive: circle; radius: 2"
material="color: #999;"
position="0 0 0"
rotation="-90 0 0"
shadow="receive: true; cast:false"
></a-entity>
<a-entity light="type:directional; castShadow:true;" position="1 1 1"></a-entity>
<a-entity id="camera-target"
position="0 0.5 0"
></a-entity>
<a-entity camera="fov: 55;"
position="1.7 0.8 0"
orbit-controls="target:#camera-target; autoRotate: true;"
></a-entity>
</a-scene>
<!--<div id="preview-loading-overlay">LOADING ...</div> -->
</div>
<div class="place-holder"></div>
<div class="code-aframe">
<p>Use the following snippet with <a href="https://aframe.io">A-Frame</a>:
<pre><code id="output-snippet-aframe" class="language-markup"><html>
<head>
<script src="https://aframe.io/releases/0.6.1/aframe.min.js"></script>
<script src="https://3d.io/releases/3dio-js/1.x.x-beta/3dio.min.js"></script>
</head>
<body>
<a-scene antialias="true">
<a-entity io3d-data3d="key:/535e624259ee6b0200000484/170818-1308-zq7z2o/victim.gz.data3d.buffer" position="0 0 0"></a-entity>
</a-scene>
</body>
</html></code></pre>
</p>
</div>
<!-- <p style="padding-bottom: 1em;">
<span style="float:right;">
<a href="https://3d.io/docs/api/1/" target="_blank">Docs</a> |
<a href="https://github.com/archilogic-com/3dio-modify-app" target="_blank">Github</a> |
<a href="https://stackoverflow.com/questions/tagged/3d.io%20or%20archilogic" target="_blank">Stack Overflow</a> |
<a href="https://3d.io" target="_blank">3d.io</a>
</span>
</p>
-->
</section>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.6.0/prism.min.js"></script>
<script src="app.js"></script>
</body>
</html>