forked from BabylonJS/Website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
308 lines (302 loc) · 16.8 KB
/
index.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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
<!DOCTYPE html>
<html>
<head>
<title>Babylon.js</title>
<script>
function writeViewPort() {
var ua = navigator.userAgent;
if (ua.indexOf("Android") >= 0 && ua.indexOf("AppleWebKit") >= 0) {
var webkitVersion = parseFloat(ua.slice(ua.indexOf("AppleWebKit") + 12));
// targets android browser, not chrome browser (http://jimbergman.net/webkit-version-in-android-version/)
if (webkitVersion < 535) {
document.write('<meta name="viewport" content="initial-scale=1" />');
}
}
}
writeViewPort();
</script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-41767310-1', 'babylonjs.com');
ga('send', 'pageview');
</script>
<link href="index.css" rel="stylesheet" />
<script src="hand.minified-1.2.js"></script>
<script src="poly2tri.js"></script>
<script src="cannon.js"></script>
<script src="Oimo.js"></script>
<script src="babylon.js"></script>
<script src="Scenes/Customs/test.js"></script>
<script src="Scenes/Customs/lights_test.js"></script>
<script src="Scenes/Customs/bump_test.js"></script>
<script src="Scenes/Customs/fog_test.js"></script>
<script src="Scenes/Customs/multimat.js"></script>
<script src="Scenes/Customs/heightMap_test.js"></script>
<script src="Scenes/Customs/shadows.js"></script>
<script src="Scenes/Customs/charting.js"></script>
<script src="Scenes/Customs/octree.js"></script>
<script src="Scenes/Customs/bones.js"></script>
<script src="Scenes/Customs/postprocessBloom.js"></script>
<script src="Scenes/Customs/postprocessRefraction.js"></script>
<script src="Scenes/Customs/lensFlares.js"></script>
<script src="Scenes/Customs/physics.js"></script>
<script src="Scenes/Customs/cellShading.js"></script>
<script src="Scenes/Customs/csg.js"></script>
<script src="Scenes/Customs/postprocessConvolution.js"></script>
<script src="Scenes/Customs/actions.js"></script>
<script src="Scenes/Customs/instances.js"></script>
<script src="Scenes/Customs/particles.js"></script>
<script src="Scenes/Customs/particles2.js"></script>
<script src="Scenes/Customs/lines.js"></script>
<script src="Scenes/Customs/dragdrop.js"></script>
<script src="Scenes/Customs/displacementMap.js"></script>
<script src="Scenes/Customs/fresnel.js"></script>
<script src="Scenes/Customs/customRenderTarget.js"></script>
<script src="Scenes/Customs/lod.js"></script>
<script src="Scenes/Customs/bones2.js"></script>
<script src="Scenes/Customs/polygon.js"></script>
<script src="Scenes/Customs/ssao.js"></script>
<script src="Scenes/Customs/volumetricLightScattering.js"></script>
<script src="Scenes/Customs/proceduralTexture.js"></script>
<script src="Scenes/Customs/advancedShadows.js"></script>
<script src="Scenes/Customs/softShadows.js"></script>
<script src="Scenes/Customs/decals.js"></script>
<script src="Scenes/Customs/ribbons.js"></script>
<script src="Scenes/Customs/dof.js"></script>
<script src="index.js"></script>
</head>
<body>
<div id="description">
<h1>About babylon.js</h1>
Babylon.js is a 3D engine based on <b>webgl</b> and <b>JavaScript</b>.
It supports tons of cool features and it is available for free under Apache licence.
It is built with simplicity and performance in mind.
</div>
<div id="rootDiv">
<div id="screen1">
<div id="menuPanel">
<br />
<div id="itemsContainer">
<div class="header">
DEMOS
</div>
<div id="items"></div>
<div class="header">
<br />
FEATURES TESTS
</div>
<div id="testItems"></div>
<div class="header">
<br />
THIRD-PARTY
</div>
<div id="3rdItems"></div>
</div>
</div>
<img id="back" src="Assets/FondBandeau.png" />
<img id="mainTitle" src="Assets/Logo.png" />
<div id="gradient"></div>
<img id="motto" src="Assets/Accroche.png" />
<div id="downloadText">DOWNLOAD</div>
<a href="https://github.com/BabylonJS/Babylon.js">
<img id="downloadLink" src="Assets/IcoDownload.png" class="button" />
</a>
<div id="tryItText">TRY IT!</div>
<a href="http://www.babylonjs.com/playground">
<img id="tryItLink" src="Assets/IcoFAQ.PNG" class="button" />
</a>
<div id="aboutPanel">
<div id="aboutParagraph">
<h1>Babylon.js team</h1>
<p>
<i>Lead developer:</i> David <b>CATUHE</b> (<a href="http://www.twitter.com/@deltakosh">@deltakosh</a>)<br />
<i>Developer:</i> David <b>ROUSSET</b> (<a href="http://www.twitter.com/@davrous">@davrous</a>)<br />
<i>Developer:</i> Pierre <b>LAGARDE</b> (<a href="http://www.twitter.com/@pierlag">@pierlag</a>)<br />
<i>3D Artist:</i> Michel <b>ROUSSEAU</b> (<a href="http://www.twitter.com/@rousseau_michel">@rousseau_michel</a>)<br />
<br />
<i>Hill Valley scene:</i> Camille <b>JOLY</b> and <a href="http://www.enozone.com/">Enozone</a><br />
<i>Train scene:</i> Romuald <b>ROUHIER</b> and <a href="http://www.progiss.com/">Progiss</a><br />
</p>
</div>
<div id="aboutParagraph">
<h1>About babylon.js</h1>
Babylon.js is a 3D engine based on <b>webgl</b> and <b>javascript</b>.
It supports the following features:
</div>
<div id="features">
<div id="engineFeatures">
<ul>
<li>Complete scene graph with lights, cameras, materials and meshes</li>
<li><b>Collisions engine</b></li>
<li><b>Physics engine (thanks to cannon.js)</b></li>
<li>Scene picking</li>
<li>Antialiasing</li>
<li><b>Animations engine</b></li>
<li><b>Particles Systems</b></li>
<li>Sprites and 2D layers</li>
<li>
Optimizations engines:
<ul>
<li>Frustum clipping</li>
<li>Sub-meshes clipping</li>
<li>Hardware scaling</li>
<li>Selection octrees</li>
<li>Offline mode (Assets are saved locally to prevent reloading them)</li>
<li>Incremental loading</li>
<li>Binary compressed format</li>
<li><b>Hardware accelerated instances</b></li>
</ul>
</li>
<li>
Standard material is a <b>per pixel</b> material that supports:
<ul>
<li>Diffuse lightning and texture</li>
<li>Ambient lightning and texture</li>
<li>Specular lightning</li>
<li>Opacity texture</li>
<li>Reflection texture (Spheric, planar, cubic and projection)</li>
<li><b>Mirror texture</b></li>
<li><b>Emissive texture</b></li>
<li><b>Specular texture</b></li>
<li><b>Bump texture</b></li>
<li>Up to 4 lights (points, directionals, spots, hemispherics)</li>
<li>Custom materials</li>
<li>Skybox</li>
<li>Vertex color</li>
<li>4 bones per vertex</li>
<li>Fresnel term for diffuse, opacity, emissive and reflection</li>
</ul>
</li>
<li>
Special FX
<ul>
<li>Fog</li>
<li>Alpha blending</li>
<li>Alpha testing</li>
<li>Billboarding</li>
<li>Fullscreen mode</li>
<li>Shadow Maps and Variance Shadow Maps</li>
<li>Rendering layers</li>
<li><b>Post-processes (blur, refraction, black'n'white, fxaa, customs...)</b></li>
<li><b>Lens flares</b></li>
<li><b>Multi-views</b></li>
</ul>
</li>
<li>
Textures:
<ul>
<li>Render target textures</li>
<li>Dynamic textures (canvas)</li>
<li>Video textures</li>
<li>Compressed (DDS) textures</li>
</ul>
</li>
<li>
Cameras:
<ul>
<li>Arc rotate camera</li>
<li>Free camera</li>
<li>Touch camera</li>
<li>Virtual Joysticks camera</li>
<li><b>Gamepad camera</b></li>
<li><b>VR Device Oriention camera</b></li>
<li><b>WebVR camera</b></li>
<li><b>Follow camera</b></li>
</ul>
</li>
<li>
Meshes:
<ul>
<li>Mesh cloning</li>
<li>Dynamic meshes</li>
<li><b>Height maps</b></li>
<li>Bones</li>
<li>Constructive solid geometries</li>
</ul>
</li>
<li>
Import:
<ul>
<li>Babylon scene file can be converted from <i>.OBJ</i>, <i>.FBX</i>, <i>.MXB</i></li>
<li>Exporter for Blender</li>
<li>Exporter for Cheetah3d</li>
<li><b>Exporter for 3ds max</b></li>
<li>Support for drag'n'drop</li>
<li>Assets manager</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<div id="footer">
<a class="footerLink" id="aboutLink">about</a>
<a class="footerLink" href="http://www.babylonjs.com/sandbox">sandbox</a>
<a class="footerLink" href="http://www.babylonjs.com/cyos">CYOS</a>
<a class="footerLink" href="http://materialeditor.raananweber.com/">material editor</a>
<a class="footerLink" href="http://www.html5gamedevs.com/forum/16-babylonjs/">forum</a>
<a class="footerLink" href="https://github.com/BabylonJS/Babylon.js">github</a>
<a class="footerLink" href="http://doc.babylonjs.com">documentation</a>
<a class="footerLink" href="http://babylonjs.uservoice.com">uservoice</a>
</div>
</div>
<div id="renderZone" class="movedRight">
<canvas id="renderCanvas"></canvas>
<div id="fps"></div>
<div id="stats"></div>
<div id="status"></div>
<div id="controlPanel">
<div id="controlsZone">
<p>
<button id="enableDebug">Debug layer</button>
</p>
<p>
<button id="fullscreen">Fullscreen</button>
</p>
</div>
<div class="tag">Control panel</div>
<div class="tag" id="clickableTag"></div>
</div>
<div id="cameraPanel">
<div id="cameraControlsZone">
Active camera:<br>
<select id="camerasList"></select>
<p>
Change control method:
<button class="buttonControlPanel" id="touchCamera">
<img src="Assets/CamTouchOff.png" class="buttonImg" />Touch camera
</button>
<button class="buttonControlPanel" id="deviceOrientationCamera">
<img src="Assets/CamDeviceOff.png" class="buttonImg" />VR Device orientation camera
</button>
<button class="buttonControlPanel" id="gamepadCamera">
<img src="Assets/CamGamepadJoy.png" class="buttonImg" />Gamepad camera
</button>
<button class="buttonControlPanel" id="virtualJoysticksCamera">
<img src="Assets/CamVirtualJoy.png" class="buttonImg" />Virtual joysticks camera
</button>
<button class="buttonControlPanel" id="anaglyphCamera">
<img src="Assets/CamAnaGly.png" class="buttonImg" />Anaglyph camera
</button>
</p>
<p>
Post-processes:
<button class="smallButtonControlPanel" id="toggleFxaa">Toggle FXAA (antialiasing)</button>
<button class="smallButtonControlPanel" id="toggleFsaa4">Toggle FSAA 4X (antialiasing)</button>
<button class="smallButtonControlPanel" id="toggleBandW">Toggle Black and white</button>
<button class="smallButtonControlPanel" id="toggleSepia">Toggle Sepia</button>
</p>
</div>
<div class="cameraTag"><img src="Assets/camera.png" /></div>
<div class="cameraTag" id="cameraClickableTag"></div>
</div>
</div>
<div id="notSupported" class="hidden">Sorry but your browser does not support WebGL...</div>
</div>
</body>
</html>