x_ite 8.9.0 → 8.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -7
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +25 -25
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +129 -90
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +27 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +24 -24
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -23
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +18 -18
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +18 -18
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +37 -37
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +14 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +18 -18
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +415 -130
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +2 -2
- package/docs/_posts/components/HAnim/HAnimDisplacer.md +1 -1
- package/docs/_posts/components/HAnim/HAnimHumanoid.md +75 -75
- package/docs/_posts/components/HAnim/HAnimJoint.md +2 -2
- package/docs/_posts/components/HAnim/HAnimMotion.md +22 -22
- package/docs/_posts/components/HAnim/HAnimSegment.md +1 -1
- package/docs/_posts/components/HAnim/HAnimSite.md +1 -1
- package/docs/_posts/getting-started.md +3 -7
- package/docs/laboratory/gltf-sample-viewer.html +52 -4
- package/package.json +2 -1
- package/src/standard/Math/Geometry/Box2.js +12 -2
- package/src/standard/Math/Geometry/Box3.js +12 -2
- package/src/x_ite/Base/X3DObjectArrayField.js +3 -2
- package/src/x_ite/Base/X3DTypedArrayField.js +3 -2
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +105 -68
- package/src/x_ite/Components/HAnim/HAnimMotion.js +3 -3
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +1 -1
- package/src/x_ite/Fields/ArrayFields.js +9 -7
- package/src/x_ite/Parser/GLTF2Parser.js +316 -55
- package/src/x_ite/Parser/SVGParser.js +1 -1
package/dist/x_ite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.9.
|
|
1
|
+
/* X_ITE v8.9.2 */(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
3
|
module.exports = factory();
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/
|
|
14
|
+
/***/ 838:
|
|
15
15
|
/***/ (function(module, exports, __webpack_require__) {
|
|
16
16
|
|
|
17
17
|
"use strict";
|
|
18
|
-
/* provided dependency */ var jQuery = __webpack_require__(
|
|
18
|
+
/* provided dependency */ var jQuery = __webpack_require__(200);
|
|
19
19
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -387,10 +387,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
|
|
387
387
|
|
|
388
388
|
/***/ }),
|
|
389
389
|
|
|
390
|
-
/***/
|
|
390
|
+
/***/ 60:
|
|
391
391
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
392
392
|
|
|
393
|
-
/* provided dependency */ var jQuery = __webpack_require__(
|
|
393
|
+
/* provided dependency */ var jQuery = __webpack_require__(200);
|
|
394
394
|
/**
|
|
395
395
|
* @preserve jquery.fullscreen 1.1.5
|
|
396
396
|
* https://github.com/code-lts/jquery-fullscreen-plugin
|
|
@@ -586,7 +586,7 @@ installFullScreenHandlers();
|
|
|
586
586
|
|
|
587
587
|
/***/ }),
|
|
588
588
|
|
|
589
|
-
/***/
|
|
589
|
+
/***/ 323:
|
|
590
590
|
/***/ ((module, exports, __webpack_require__) => {
|
|
591
591
|
|
|
592
592
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -600,7 +600,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
600
600
|
(function (factory) {
|
|
601
601
|
if ( true ) {
|
|
602
602
|
// AMD. Register as an anonymous module.
|
|
603
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(
|
|
603
|
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(200)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
604
604
|
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
605
605
|
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
606
606
|
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
@@ -811,7 +811,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
811
811
|
|
|
812
812
|
/***/ }),
|
|
813
813
|
|
|
814
|
-
/***/
|
|
814
|
+
/***/ 200:
|
|
815
815
|
/***/ (function(module, exports) {
|
|
816
816
|
|
|
817
817
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -11523,7 +11523,7 @@ return jQuery;
|
|
|
11523
11523
|
|
|
11524
11524
|
/***/ }),
|
|
11525
11525
|
|
|
11526
|
-
/***/
|
|
11526
|
+
/***/ 430:
|
|
11527
11527
|
/***/ ((module) => {
|
|
11528
11528
|
|
|
11529
11529
|
/**
|
|
@@ -16302,7 +16302,7 @@ if (true) {
|
|
|
16302
16302
|
|
|
16303
16303
|
/***/ }),
|
|
16304
16304
|
|
|
16305
|
-
/***/
|
|
16305
|
+
/***/ 489:
|
|
16306
16306
|
/***/ (function(__unused_webpack_module, exports) {
|
|
16307
16307
|
|
|
16308
16308
|
|
|
@@ -19547,7 +19547,7 @@ if (true) {
|
|
|
19547
19547
|
|
|
19548
19548
|
/***/ }),
|
|
19549
19549
|
|
|
19550
|
-
/***/
|
|
19550
|
+
/***/ 650:
|
|
19551
19551
|
/***/ (function(module, exports) {
|
|
19552
19552
|
|
|
19553
19553
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
|
|
@@ -31080,7 +31080,7 @@ const X3DObjectArrayField_handler =
|
|
|
31080
31080
|
},
|
|
31081
31081
|
};
|
|
31082
31082
|
|
|
31083
|
-
function X3DObjectArrayField (
|
|
31083
|
+
function X3DObjectArrayField (values)
|
|
31084
31084
|
{
|
|
31085
31085
|
const proxy = new Proxy (this, X3DObjectArrayField_handler);
|
|
31086
31086
|
|
|
@@ -31089,7 +31089,8 @@ function X3DObjectArrayField (value)
|
|
|
31089
31089
|
this [X3DObjectArrayField_target] = this;
|
|
31090
31090
|
this [X3DObjectArrayField_proxy] = proxy;
|
|
31091
31091
|
|
|
31092
|
-
|
|
31092
|
+
for (const value of values)
|
|
31093
|
+
this .push (value);
|
|
31093
31094
|
|
|
31094
31095
|
return proxy;
|
|
31095
31096
|
}
|
|
@@ -31663,7 +31664,7 @@ const X3DTypedArrayField_handler =
|
|
|
31663
31664
|
},
|
|
31664
31665
|
};
|
|
31665
31666
|
|
|
31666
|
-
function X3DTypedArrayField (
|
|
31667
|
+
function X3DTypedArrayField (values)
|
|
31667
31668
|
{
|
|
31668
31669
|
const proxy = new Proxy (this, X3DTypedArrayField_handler);
|
|
31669
31670
|
|
|
@@ -31678,7 +31679,8 @@ function X3DTypedArrayField (args)
|
|
|
31678
31679
|
this [_tmp] = [ ]; // Array with components size.
|
|
31679
31680
|
}
|
|
31680
31681
|
|
|
31681
|
-
|
|
31682
|
+
for (const value of values)
|
|
31683
|
+
this .push (value);
|
|
31682
31684
|
|
|
31683
31685
|
return proxy;
|
|
31684
31686
|
}
|
|
@@ -32629,9 +32631,10 @@ Object .assign (Object .setPrototypeOf (MFNode .prototype, Base_X3DObjectArrayFi
|
|
|
32629
32631
|
{
|
|
32630
32632
|
const
|
|
32631
32633
|
target = this .getTarget (),
|
|
32632
|
-
array = target .getValue ()
|
|
32634
|
+
array = target .getValue (),
|
|
32635
|
+
length = array .length;
|
|
32633
32636
|
|
|
32634
|
-
switch (
|
|
32637
|
+
switch (length)
|
|
32635
32638
|
{
|
|
32636
32639
|
case 0:
|
|
32637
32640
|
{
|
|
@@ -32657,11 +32660,11 @@ Object .assign (Object .setPrototypeOf (MFNode .prototype, Base_X3DObjectArrayFi
|
|
|
32657
32660
|
generator .string += generator .TidyBreak ();
|
|
32658
32661
|
generator .IncIndent ();
|
|
32659
32662
|
|
|
32660
|
-
for (let i = 0
|
|
32663
|
+
for (let i = 0; i < length; ++ i)
|
|
32661
32664
|
{
|
|
32662
32665
|
generator .string += generator .Indent ();
|
|
32663
32666
|
array [i] .toStream (generator);
|
|
32664
|
-
generator .string += generator .Break ();
|
|
32667
|
+
generator .string += generator .string .at (-1) === "}" ? generator .TidyBreak () : generator .Break ();
|
|
32665
32668
|
}
|
|
32666
32669
|
|
|
32667
32670
|
generator .DecIndent ();
|
|
@@ -32677,9 +32680,10 @@ Object .assign (Object .setPrototypeOf (MFNode .prototype, Base_X3DObjectArrayFi
|
|
|
32677
32680
|
{
|
|
32678
32681
|
const
|
|
32679
32682
|
target = this .getTarget (),
|
|
32680
|
-
array = target .getValue ()
|
|
32683
|
+
array = target .getValue (),
|
|
32684
|
+
length = array .length;
|
|
32681
32685
|
|
|
32682
|
-
switch (
|
|
32686
|
+
switch (length)
|
|
32683
32687
|
{
|
|
32684
32688
|
case 0:
|
|
32685
32689
|
{
|
|
@@ -32709,7 +32713,7 @@ Object .assign (Object .setPrototypeOf (MFNode .prototype, Base_X3DObjectArrayFi
|
|
|
32709
32713
|
{
|
|
32710
32714
|
generator .string += generator .Indent ();
|
|
32711
32715
|
element .toVRMLStream (generator);
|
|
32712
|
-
generator .string += generator .Break ();
|
|
32716
|
+
generator .string += generator .string .at (-1) === "}" ? generator .TidyBreak () : generator .Break ();
|
|
32713
32717
|
}
|
|
32714
32718
|
|
|
32715
32719
|
generator .DecIndent ();
|
|
@@ -34234,7 +34238,7 @@ x_ite_Namespace .set ("x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
|
|
|
34234
34238
|
*
|
|
34235
34239
|
******************************************************************************/
|
|
34236
34240
|
|
|
34237
|
-
const VERSION_default_ = "8.9.
|
|
34241
|
+
const VERSION_default_ = "8.9.2";
|
|
34238
34242
|
;
|
|
34239
34243
|
|
|
34240
34244
|
x_ite_Namespace .set ("x_ite/Browser/VERSION", VERSION_default_);
|
|
@@ -38519,7 +38523,7 @@ const X3DUrlObject_default_ = X3DUrlObject;
|
|
|
38519
38523
|
x_ite_Namespace .set ("x_ite/Components/Networking/X3DUrlObject", X3DUrlObject_default_);
|
|
38520
38524
|
/* harmony default export */ const Networking_X3DUrlObject = (X3DUrlObject_default_);
|
|
38521
38525
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
|
|
38522
|
-
/* provided dependency */ var $ = __webpack_require__(
|
|
38526
|
+
/* provided dependency */ var $ = __webpack_require__(200);
|
|
38523
38527
|
/*******************************************************************************
|
|
38524
38528
|
*
|
|
38525
38529
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -38767,7 +38771,7 @@ const Expressions_default_ = Expressions;
|
|
|
38767
38771
|
x_ite_Namespace .set ("x_ite/Parser/Expressions", Expressions_default_);
|
|
38768
38772
|
/* harmony default export */ const Parser_Expressions = (Expressions_default_);
|
|
38769
38773
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
|
|
38770
|
-
/* provided dependency */ var VRMLParser_$ = __webpack_require__(
|
|
38774
|
+
/* provided dependency */ var VRMLParser_$ = __webpack_require__(200);
|
|
38771
38775
|
/*******************************************************************************
|
|
38772
38776
|
*
|
|
38773
38777
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -41319,7 +41323,7 @@ const VRMLParser_default_ = VRMLParser;
|
|
|
41319
41323
|
x_ite_Namespace .set ("x_ite/Parser/VRMLParser", VRMLParser_default_);
|
|
41320
41324
|
/* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
|
|
41321
41325
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
|
|
41322
|
-
/* provided dependency */ var XMLParser_$ = __webpack_require__(
|
|
41326
|
+
/* provided dependency */ var XMLParser_$ = __webpack_require__(200);
|
|
41323
41327
|
/*******************************************************************************
|
|
41324
41328
|
*
|
|
41325
41329
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -43291,7 +43295,7 @@ const URLs_default_ = URLs;
|
|
|
43291
43295
|
x_ite_Namespace .set ("x_ite/Browser/Networking/URLs", URLs_default_);
|
|
43292
43296
|
/* harmony default export */ const Networking_URLs = (URLs_default_);
|
|
43293
43297
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
|
|
43294
|
-
/* provided dependency */ var GLTF2Parser_$ = __webpack_require__(
|
|
43298
|
+
/* provided dependency */ var GLTF2Parser_$ = __webpack_require__(200);
|
|
43295
43299
|
/*******************************************************************************
|
|
43296
43300
|
*
|
|
43297
43301
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -43379,9 +43383,13 @@ function GLTF2Parser (scene)
|
|
|
43379
43383
|
this .samplers = [ ];
|
|
43380
43384
|
this .materials = [ ];
|
|
43381
43385
|
this .textureTransformNodes = [ ];
|
|
43386
|
+
this .meshes = [ ];
|
|
43382
43387
|
this .cameras = [ ];
|
|
43383
43388
|
this .viewpoints = 0;
|
|
43384
43389
|
this .nodes = [ ];
|
|
43390
|
+
this .skins = [ ];
|
|
43391
|
+
this .joints = new Set ();
|
|
43392
|
+
this .skeletons = new Set ();
|
|
43385
43393
|
this .animations = 0;
|
|
43386
43394
|
}
|
|
43387
43395
|
|
|
@@ -43424,10 +43432,10 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
43424
43432
|
"meshes",
|
|
43425
43433
|
"cameras",
|
|
43426
43434
|
"nodes",
|
|
43435
|
+
"skins",
|
|
43427
43436
|
"scenes",
|
|
43428
43437
|
"scene",
|
|
43429
43438
|
"animations",
|
|
43430
|
-
"skins",
|
|
43431
43439
|
]);
|
|
43432
43440
|
|
|
43433
43441
|
return function ()
|
|
@@ -43470,6 +43478,9 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
43470
43478
|
scene .setEncoding ("GLTF");
|
|
43471
43479
|
scene .setProfile (browser .getProfile ("Interchange"));
|
|
43472
43480
|
|
|
43481
|
+
if (glTF .skins)
|
|
43482
|
+
scene .addComponent (browser .getComponent ("HAnim"));
|
|
43483
|
+
|
|
43473
43484
|
// Parse root objects.
|
|
43474
43485
|
|
|
43475
43486
|
this .assetObject (glTF .asset);
|
|
@@ -43494,9 +43505,9 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
43494
43505
|
this .meshesArray (glTF .meshes);
|
|
43495
43506
|
this .camerasArray (glTF .cameras);
|
|
43496
43507
|
this .nodesArray (glTF .nodes);
|
|
43508
|
+
this .skinsArray (glTF .skins);
|
|
43497
43509
|
this .scenesArray (glTF .scenes, glTF .scene);
|
|
43498
43510
|
this .animationsArray (glTF .animations);
|
|
43499
|
-
this .skinsArray (glTF .skins);
|
|
43500
43511
|
|
|
43501
43512
|
//this .optimizeSceneGraph (this .getExecutionContext () .getRootNodes ());
|
|
43502
43513
|
|
|
@@ -44025,8 +44036,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44025
44036
|
|
|
44026
44037
|
const texCoordIndices = this .texCoordIndices ("", material);
|
|
44027
44038
|
|
|
44028
|
-
this .texCoordIndex
|
|
44029
|
-
|
|
44039
|
+
this .texCoordIndex = [... texCoordIndices] .reduce (Math .max, -1);
|
|
44030
44040
|
this .textureTransformNodes = [ ];
|
|
44031
44041
|
this .texCoordMappings = new Map ();
|
|
44032
44042
|
material .texCoordMappings = this .texCoordMappings;
|
|
@@ -44322,7 +44332,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44322
44332
|
|
|
44323
44333
|
this .meshes = meshes;
|
|
44324
44334
|
},
|
|
44325
|
-
meshObject (mesh)
|
|
44335
|
+
meshObject (mesh, skin)
|
|
44326
44336
|
{
|
|
44327
44337
|
if (!(mesh instanceof Object))
|
|
44328
44338
|
return;
|
|
@@ -44330,7 +44340,16 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44330
44340
|
if (mesh .shapeNodes)
|
|
44331
44341
|
return mesh .shapeNodes;
|
|
44332
44342
|
|
|
44333
|
-
|
|
44343
|
+
if (skin instanceof Object)
|
|
44344
|
+
{
|
|
44345
|
+
const scene = this .getScene ();
|
|
44346
|
+
|
|
44347
|
+
skin .textureCoordinateNode = scene .createNode ("TextureCoordinate", false);
|
|
44348
|
+
skin .normalNode = scene .createNode ("Normal", false);
|
|
44349
|
+
skin .coordinateNode = scene .createNode ("Coordinate", false);
|
|
44350
|
+
}
|
|
44351
|
+
|
|
44352
|
+
const shapeNodes = this .primitivesArray (mesh .primitives, skin);
|
|
44334
44353
|
|
|
44335
44354
|
// Name Shape nodes.
|
|
44336
44355
|
|
|
@@ -44347,9 +44366,16 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44347
44366
|
}
|
|
44348
44367
|
}
|
|
44349
44368
|
|
|
44369
|
+
if (skin instanceof Object)
|
|
44370
|
+
{
|
|
44371
|
+
skin .textureCoordinateNode .setup ();
|
|
44372
|
+
skin .normalNode .setup ();
|
|
44373
|
+
skin .coordinateNode .setup ();
|
|
44374
|
+
}
|
|
44375
|
+
|
|
44350
44376
|
return mesh .shapeNodes = shapeNodes;
|
|
44351
44377
|
},
|
|
44352
|
-
primitivesArray (primitives)
|
|
44378
|
+
primitivesArray (primitives, skin)
|
|
44353
44379
|
{
|
|
44354
44380
|
if (!(primitives instanceof Array))
|
|
44355
44381
|
return [ ];
|
|
@@ -44357,11 +44383,11 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44357
44383
|
const shapeNodes = [ ];
|
|
44358
44384
|
|
|
44359
44385
|
for (const primitive of primitives)
|
|
44360
|
-
this .primitiveObject (primitive, shapeNodes);
|
|
44386
|
+
this .primitiveObject (primitive, skin, shapeNodes);
|
|
44361
44387
|
|
|
44362
44388
|
return shapeNodes;
|
|
44363
44389
|
},
|
|
44364
|
-
primitiveObject (primitive, shapeNodes)
|
|
44390
|
+
primitiveObject (primitive, skin, shapeNodes)
|
|
44365
44391
|
{
|
|
44366
44392
|
if (!(primitive instanceof Object))
|
|
44367
44393
|
return;
|
|
@@ -44374,7 +44400,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44374
44400
|
|
|
44375
44401
|
this .primitiveExtensionsObject (primitive .extensions, primitive)
|
|
44376
44402
|
|
|
44377
|
-
shapeNodes .push (this .createShape (primitive));
|
|
44403
|
+
shapeNodes .push (this .createShape (primitive, skin));
|
|
44378
44404
|
},
|
|
44379
44405
|
attributesObject (attributes)
|
|
44380
44406
|
{
|
|
@@ -44659,7 +44685,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44659
44685
|
|
|
44660
44686
|
this .nodes = nodes;
|
|
44661
44687
|
},
|
|
44662
|
-
nodeObject (node)
|
|
44688
|
+
nodeObject (node, index)
|
|
44663
44689
|
{
|
|
44664
44690
|
if (!(node instanceof Object))
|
|
44665
44691
|
return;
|
|
@@ -44671,7 +44697,8 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44671
44697
|
|
|
44672
44698
|
const
|
|
44673
44699
|
scene = this .getExecutionContext (),
|
|
44674
|
-
|
|
44700
|
+
typeName = this .joints .has (index) ? "HAnimJoint" : "Transform",
|
|
44701
|
+
transformNode = scene .createNode (typeName, false),
|
|
44675
44702
|
name = this .sanitizeName (node .name);
|
|
44676
44703
|
|
|
44677
44704
|
// Name
|
|
@@ -44680,6 +44707,9 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44680
44707
|
{
|
|
44681
44708
|
scene .addNamedNode (scene .getUniqueName (name), transformNode);
|
|
44682
44709
|
scene .addExportedNode (scene .getUniqueExportName (name), transformNode);
|
|
44710
|
+
|
|
44711
|
+
if (typeName === "HAnimJoint")
|
|
44712
|
+
transformNode ._name = node .name;
|
|
44683
44713
|
}
|
|
44684
44714
|
|
|
44685
44715
|
// Set transformation matrix.
|
|
@@ -44729,7 +44759,52 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44729
44759
|
const mesh = this .meshes [node .mesh];
|
|
44730
44760
|
|
|
44731
44761
|
if (mesh)
|
|
44732
|
-
|
|
44762
|
+
{
|
|
44763
|
+
const
|
|
44764
|
+
skin = this .skins [node .skin],
|
|
44765
|
+
shapeNodes = this .meshObject (mesh, skin);
|
|
44766
|
+
|
|
44767
|
+
transformNode ._children .push (... shapeNodes);
|
|
44768
|
+
|
|
44769
|
+
if (skin && shapeNodes .length)
|
|
44770
|
+
{
|
|
44771
|
+
var humanoidNode = scene .createNode ("HAnimHumanoid", false);
|
|
44772
|
+
|
|
44773
|
+
const name = this .sanitizeName (skin .name);
|
|
44774
|
+
|
|
44775
|
+
if (name)
|
|
44776
|
+
scene .addNamedNode (scene .getUniqueName (name), humanoidNode);
|
|
44777
|
+
|
|
44778
|
+
humanoidNode ._name = skin .name;
|
|
44779
|
+
humanoidNode ._version = "2.0";
|
|
44780
|
+
humanoidNode ._skeletalConfiguration = "NONE";
|
|
44781
|
+
|
|
44782
|
+
const skeletonNode = this .nodeObject (this .nodes [skin .skeleton], skin .skeleton);
|
|
44783
|
+
|
|
44784
|
+
if (skeletonNode)
|
|
44785
|
+
humanoidNode ._skeleton .push (skeletonNode);
|
|
44786
|
+
|
|
44787
|
+
for (const [i, joint] of skin .joints .entries ())
|
|
44788
|
+
{
|
|
44789
|
+
const inverseBindMatrix = skin .inverseBindMatrices [i] ?? Numbers_Matrix4 .Identity;
|
|
44790
|
+
|
|
44791
|
+
inverseBindMatrix .get (translation, rotation, scale);
|
|
44792
|
+
|
|
44793
|
+
humanoidNode ._joints .push (this .nodeObject (this .nodes [joint], joint));
|
|
44794
|
+
humanoidNode ._jointBindingPositions .push (translation);
|
|
44795
|
+
humanoidNode ._jointBindingRotations .push (rotation);
|
|
44796
|
+
humanoidNode ._jointBindingScales .push (scale);
|
|
44797
|
+
}
|
|
44798
|
+
|
|
44799
|
+
humanoidNode ._skinBindingNormal = shapeNodes [0] ._geometry .normal ?.getValue () ?.copy ();
|
|
44800
|
+
humanoidNode ._skinBindingCoord = shapeNodes [0] ._geometry .coord ?.getValue () ?.copy ();
|
|
44801
|
+
humanoidNode ._skinNormal = shapeNodes [0] ._geometry .normal;
|
|
44802
|
+
humanoidNode ._skinCoord = shapeNodes [0] ._geometry .coord;
|
|
44803
|
+
humanoidNode ._skin .push (transformNode);
|
|
44804
|
+
|
|
44805
|
+
humanoidNode .setup ();
|
|
44806
|
+
}
|
|
44807
|
+
}
|
|
44733
44808
|
|
|
44734
44809
|
// Get children.
|
|
44735
44810
|
|
|
@@ -44739,10 +44814,13 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44739
44814
|
|
|
44740
44815
|
transformNode .setup ();
|
|
44741
44816
|
|
|
44742
|
-
if (
|
|
44743
|
-
|
|
44817
|
+
if (typeName === "Transform")
|
|
44818
|
+
{
|
|
44819
|
+
if (!transformNode ._children .length)
|
|
44820
|
+
return node .childNode = null;
|
|
44821
|
+
}
|
|
44744
44822
|
|
|
44745
|
-
return node .childNode = transformNode;
|
|
44823
|
+
return node .childNode = humanoidNode ?? transformNode;
|
|
44746
44824
|
},
|
|
44747
44825
|
nodeExtensions (extensions, transformNode)
|
|
44748
44826
|
{
|
|
@@ -44771,9 +44849,68 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44771
44849
|
return [ ];
|
|
44772
44850
|
|
|
44773
44851
|
return children
|
|
44852
|
+
.filter (index => !this .skeletons .has (index))
|
|
44774
44853
|
.map (index => this .nodeObject (this .nodes [index], index))
|
|
44775
44854
|
.filter (node => node);
|
|
44776
44855
|
},
|
|
44856
|
+
skinsArray (skins)
|
|
44857
|
+
{
|
|
44858
|
+
if (!(skins instanceof Array))
|
|
44859
|
+
return;
|
|
44860
|
+
|
|
44861
|
+
this .skins = skins;
|
|
44862
|
+
|
|
44863
|
+
for (const skin of skins)
|
|
44864
|
+
this .skinObject (skin);
|
|
44865
|
+
},
|
|
44866
|
+
skinObject: function (skin)
|
|
44867
|
+
{
|
|
44868
|
+
if (!(skin instanceof Object))
|
|
44869
|
+
return;
|
|
44870
|
+
|
|
44871
|
+
skin .joints = this .jointsArray (skin .joints);
|
|
44872
|
+
|
|
44873
|
+
if (skin .skeleton === undefined)
|
|
44874
|
+
skin .skeleton = this .skeleton (skin .joints);
|
|
44875
|
+
|
|
44876
|
+
this .skeletons .add (skin .skeleton);
|
|
44877
|
+
|
|
44878
|
+
skin .inverseBindMatrices = this .inverseBindMatricesAccessors (this .accessors [skin .inverseBindMatrices]);
|
|
44879
|
+
},
|
|
44880
|
+
jointsArray: function (joints)
|
|
44881
|
+
{
|
|
44882
|
+
if (!(joints instanceof Array))
|
|
44883
|
+
return [ ];
|
|
44884
|
+
|
|
44885
|
+
joints .forEach (index => this .joints .add (index));
|
|
44886
|
+
|
|
44887
|
+
return joints;
|
|
44888
|
+
},
|
|
44889
|
+
skeleton: function (joints)
|
|
44890
|
+
{
|
|
44891
|
+
const children = new Set (joints
|
|
44892
|
+
.map (index => this .nodes [index])
|
|
44893
|
+
.filter (node => node instanceof Object)
|
|
44894
|
+
.filter (node => node .children instanceof Array)
|
|
44895
|
+
.flatMap (node => node .children));
|
|
44896
|
+
|
|
44897
|
+
return joints .filter (index => !children .has (index)) [0];
|
|
44898
|
+
},
|
|
44899
|
+
inverseBindMatricesAccessors: function (inverseBindMatrices)
|
|
44900
|
+
{
|
|
44901
|
+
if (!inverseBindMatrices)
|
|
44902
|
+
return [ ];
|
|
44903
|
+
|
|
44904
|
+
const
|
|
44905
|
+
array = inverseBindMatrices .array,
|
|
44906
|
+
length = array .length,
|
|
44907
|
+
matrices = [ ];
|
|
44908
|
+
|
|
44909
|
+
for (let i = 0; i < length; i += 16)
|
|
44910
|
+
matrices .push (new Numbers_Matrix4 (... array .subarray (i, i + 16)));
|
|
44911
|
+
|
|
44912
|
+
return matrices;
|
|
44913
|
+
},
|
|
44777
44914
|
scenesArray (scenes, sceneNumber)
|
|
44778
44915
|
{
|
|
44779
44916
|
if (!(scenes instanceof Array))
|
|
@@ -44935,7 +45072,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44935
45072
|
|
|
44936
45073
|
const cycleInterval = samplers
|
|
44937
45074
|
.map (sampler => this .accessors [sampler .input])
|
|
44938
|
-
.filter (input => input
|
|
45075
|
+
.filter (input => input ?.array .length)
|
|
44939
45076
|
.reduce ((value, input) => Math .max (value, input .array .at (-1)), 0);
|
|
44940
45077
|
|
|
44941
45078
|
timeSensorNode ._loop = DEVELOPMENT;
|
|
@@ -44955,7 +45092,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44955
45092
|
if (!(target instanceof Object))
|
|
44956
45093
|
return null;
|
|
44957
45094
|
|
|
44958
|
-
const node = this .nodeObject (this .nodes [target .node]);
|
|
45095
|
+
const node = this .nodeObject (this .nodes [target .node], target .node);
|
|
44959
45096
|
|
|
44960
45097
|
if (!node)
|
|
44961
45098
|
return null;
|
|
@@ -44993,11 +45130,6 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
44993
45130
|
|
|
44994
45131
|
return interpolatorNode;
|
|
44995
45132
|
},
|
|
44996
|
-
skinsArray (skins)
|
|
44997
|
-
{
|
|
44998
|
-
if (!(skins instanceof Array))
|
|
44999
|
-
return;
|
|
45000
|
-
},
|
|
45001
45133
|
createNavigationInfo ()
|
|
45002
45134
|
{
|
|
45003
45135
|
const
|
|
@@ -45010,13 +45142,13 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45010
45142
|
|
|
45011
45143
|
return navigationInfoNode;
|
|
45012
45144
|
},
|
|
45013
|
-
createShape (primitive)
|
|
45145
|
+
createShape (primitive, skin)
|
|
45014
45146
|
{
|
|
45015
45147
|
const
|
|
45016
45148
|
scene = this .getExecutionContext (),
|
|
45017
45149
|
shapeNode = scene .createNode ("Shape", false),
|
|
45018
45150
|
appearanceNode = this .materialObject (primitive .material),
|
|
45019
|
-
geometryNode = this .createGeometry (primitive);
|
|
45151
|
+
geometryNode = this .createGeometry (primitive, skin);
|
|
45020
45152
|
|
|
45021
45153
|
shapeNode ._appearance = appearanceNode;
|
|
45022
45154
|
shapeNode ._geometry = geometryNode;
|
|
@@ -45089,54 +45221,54 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45089
45221
|
}
|
|
45090
45222
|
}
|
|
45091
45223
|
},
|
|
45092
|
-
createGeometry (primitive)
|
|
45224
|
+
createGeometry (primitive, skin)
|
|
45093
45225
|
{
|
|
45094
45226
|
switch (primitive .mode)
|
|
45095
45227
|
{
|
|
45096
45228
|
case 0: // POINTS
|
|
45097
45229
|
{
|
|
45098
|
-
return this .createPointSet (primitive);
|
|
45230
|
+
return this .createPointSet (primitive, skin);
|
|
45099
45231
|
}
|
|
45100
45232
|
case 1: // LINES
|
|
45101
45233
|
{
|
|
45102
45234
|
if (primitive .indices)
|
|
45103
|
-
return this .createIndexedLineSet (primitive, 1);
|
|
45235
|
+
return this .createIndexedLineSet (primitive, skin, 1);
|
|
45104
45236
|
|
|
45105
|
-
return this .createLineSet (primitive);
|
|
45237
|
+
return this .createLineSet (primitive, skin);
|
|
45106
45238
|
}
|
|
45107
45239
|
case 2: // LINE_LOOP
|
|
45108
45240
|
{
|
|
45109
|
-
return this .createIndexedLineSet (primitive, 2);
|
|
45241
|
+
return this .createIndexedLineSet (primitive, skin, 2);
|
|
45110
45242
|
}
|
|
45111
45243
|
case 3: // LINE_STRIP
|
|
45112
45244
|
{
|
|
45113
|
-
return this .createIndexedLineSet (primitive, 3);
|
|
45245
|
+
return this .createIndexedLineSet (primitive, skin, 3);
|
|
45114
45246
|
}
|
|
45115
45247
|
default:
|
|
45116
45248
|
case 4: // TRIANGLES
|
|
45117
45249
|
{
|
|
45118
45250
|
if (primitive .indices)
|
|
45119
|
-
return this .createIndexedTriangleSet (primitive);
|
|
45251
|
+
return this .createIndexedTriangleSet (primitive, skin);
|
|
45120
45252
|
|
|
45121
|
-
return this .createTriangleSet (primitive);
|
|
45253
|
+
return this .createTriangleSet (primitive, skin);
|
|
45122
45254
|
}
|
|
45123
45255
|
case 5: // TRIANGLE_STRIP
|
|
45124
45256
|
{
|
|
45125
45257
|
if (primitive .indices)
|
|
45126
|
-
return this .createIndexedTriangleStripSet (primitive);
|
|
45258
|
+
return this .createIndexedTriangleStripSet (primitive, skin);
|
|
45127
45259
|
|
|
45128
|
-
return this .createTriangleStripSet (primitive);
|
|
45260
|
+
return this .createTriangleStripSet (primitive, skin);
|
|
45129
45261
|
}
|
|
45130
45262
|
case 6: // TRIANGLE_FAN
|
|
45131
45263
|
{
|
|
45132
45264
|
if (primitive .indices)
|
|
45133
|
-
return this .createIndexedTriangleFanSet (primitive);
|
|
45265
|
+
return this .createIndexedTriangleFanSet (primitive, skin);
|
|
45134
45266
|
|
|
45135
|
-
return this .createTriangleFanSet (primitive);
|
|
45267
|
+
return this .createTriangleFanSet (primitive, skin);
|
|
45136
45268
|
}
|
|
45137
45269
|
}
|
|
45138
45270
|
},
|
|
45139
|
-
createPointSet ({ attributes, material })
|
|
45271
|
+
createPointSet ({ attributes, material }, skin)
|
|
45140
45272
|
{
|
|
45141
45273
|
const
|
|
45142
45274
|
scene = this .getExecutionContext (),
|
|
@@ -45146,11 +45278,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45146
45278
|
geometryNode ._normal = this .createNormal (attributes .NORMAL);
|
|
45147
45279
|
geometryNode ._coord = this .createCoordinate (attributes .POSITION);
|
|
45148
45280
|
|
|
45281
|
+
this .attributesJointsArray (skin, attributes .JOINTS, attributes .WEIGHTS);
|
|
45282
|
+
this .skinGeometry (skin, geometryNode);
|
|
45283
|
+
|
|
45149
45284
|
geometryNode .setup ();
|
|
45150
45285
|
|
|
45151
45286
|
return geometryNode;
|
|
45152
45287
|
},
|
|
45153
|
-
createIndexedLineSet ({ attributes, indices, material }, mode)
|
|
45288
|
+
createIndexedLineSet ({ attributes, indices, material }, skin, mode)
|
|
45154
45289
|
{
|
|
45155
45290
|
const
|
|
45156
45291
|
scene = this .getExecutionContext (),
|
|
@@ -45172,7 +45307,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45172
45307
|
for (let i = 0; i < length; i += 2)
|
|
45173
45308
|
coordIndex .push (array [i], array [i + 1], -1);
|
|
45174
45309
|
|
|
45175
|
-
break
|
|
45310
|
+
break;
|
|
45176
45311
|
}
|
|
45177
45312
|
case 2: // LINE_LOOP
|
|
45178
45313
|
{
|
|
@@ -45180,7 +45315,8 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45180
45315
|
|
|
45181
45316
|
if (indices)
|
|
45182
45317
|
{
|
|
45183
|
-
|
|
45318
|
+
for (const i of indices .array)
|
|
45319
|
+
coordIndex .push (i);
|
|
45184
45320
|
|
|
45185
45321
|
if (coordIndex .length)
|
|
45186
45322
|
coordIndex .push (coordIndex [0], -1);
|
|
@@ -45189,10 +45325,16 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45189
45325
|
{
|
|
45190
45326
|
const coord = geometryNode ._coord;
|
|
45191
45327
|
|
|
45192
|
-
if (coord
|
|
45193
|
-
|
|
45328
|
+
if (coord ?.point .length)
|
|
45329
|
+
{
|
|
45330
|
+
for (const i of coord .point .keys ())
|
|
45331
|
+
coordIndex .push (i);
|
|
45332
|
+
|
|
45333
|
+
coordIndex .push (0, -1);
|
|
45334
|
+
}
|
|
45194
45335
|
}
|
|
45195
|
-
|
|
45336
|
+
|
|
45337
|
+
break;
|
|
45196
45338
|
}
|
|
45197
45339
|
case 3: // LINE_STRIP
|
|
45198
45340
|
{
|
|
@@ -45200,7 +45342,8 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45200
45342
|
|
|
45201
45343
|
if (indices)
|
|
45202
45344
|
{
|
|
45203
|
-
|
|
45345
|
+
for (const i of indices .array)
|
|
45346
|
+
coordIndex .push (i);
|
|
45204
45347
|
|
|
45205
45348
|
if (coordIndex .length)
|
|
45206
45349
|
coordIndex .push (-1);
|
|
@@ -45209,19 +45352,27 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45209
45352
|
{
|
|
45210
45353
|
const coord = geometryNode ._coord;
|
|
45211
45354
|
|
|
45212
|
-
if (coord
|
|
45213
|
-
|
|
45355
|
+
if (coord ?.point .length)
|
|
45356
|
+
{
|
|
45357
|
+
for (const i of coord .point .keys ())
|
|
45358
|
+
coordIndex .push (i);
|
|
45359
|
+
|
|
45360
|
+
coordIndex .push (-1);
|
|
45361
|
+
}
|
|
45214
45362
|
}
|
|
45215
45363
|
|
|
45216
|
-
break
|
|
45364
|
+
break;
|
|
45217
45365
|
}
|
|
45218
45366
|
}
|
|
45219
45367
|
|
|
45368
|
+
this .attributesJointsArray (skin, attributes .JOINTS, attributes .WEIGHTS);
|
|
45369
|
+
this .skinGeometry (skin, geometryNode);
|
|
45370
|
+
|
|
45220
45371
|
geometryNode .setup ();
|
|
45221
45372
|
|
|
45222
45373
|
return geometryNode;
|
|
45223
45374
|
},
|
|
45224
|
-
createLineSet ({ attributes, material })
|
|
45375
|
+
createLineSet ({ attributes, material }, skin)
|
|
45225
45376
|
{
|
|
45226
45377
|
const
|
|
45227
45378
|
scene = this .getExecutionContext (),
|
|
@@ -45231,11 +45382,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45231
45382
|
geometryNode ._normal = this .createNormal (attributes .NORMAL);
|
|
45232
45383
|
geometryNode ._coord = this .createCoordinate (attributes .POSITION);
|
|
45233
45384
|
|
|
45385
|
+
this .attributesJointsArray (skin, attributes .JOINTS, attributes .WEIGHTS);
|
|
45386
|
+
this .skinGeometry (skin, geometryNode);
|
|
45387
|
+
|
|
45234
45388
|
geometryNode .setup ();
|
|
45235
45389
|
|
|
45236
45390
|
return geometryNode;
|
|
45237
45391
|
},
|
|
45238
|
-
createIndexedTriangleSet ({ attributes, indices, material })
|
|
45392
|
+
createIndexedTriangleSet ({ attributes, indices, material }, skin)
|
|
45239
45393
|
{
|
|
45240
45394
|
const
|
|
45241
45395
|
scene = this .getExecutionContext (),
|
|
@@ -45249,11 +45403,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45249
45403
|
geometryNode ._coord = this .createCoordinate (attributes .POSITION);
|
|
45250
45404
|
geometryNode ._normalPerVertex = !! geometryNode ._normal;
|
|
45251
45405
|
|
|
45406
|
+
this .attributesJointsArray (skin, attributes .JOINTS, attributes .WEIGHTS);
|
|
45407
|
+
this .skinGeometry (skin, geometryNode);
|
|
45408
|
+
|
|
45252
45409
|
geometryNode .setup ();
|
|
45253
45410
|
|
|
45254
45411
|
return geometryNode;
|
|
45255
45412
|
},
|
|
45256
|
-
createTriangleSet ({ attributes, material })
|
|
45413
|
+
createTriangleSet ({ attributes, material }, skin)
|
|
45257
45414
|
{
|
|
45258
45415
|
const
|
|
45259
45416
|
scene = this .getExecutionContext (),
|
|
@@ -45266,11 +45423,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45266
45423
|
geometryNode ._coord = this .createCoordinate (attributes .POSITION);
|
|
45267
45424
|
geometryNode ._normalPerVertex = !! geometryNode ._normal;
|
|
45268
45425
|
|
|
45426
|
+
this .attributesJointsArray (skin, attributes .JOINTS, attributes .WEIGHTS);
|
|
45427
|
+
this .skinGeometry (skin, geometryNode);
|
|
45428
|
+
|
|
45269
45429
|
geometryNode .setup ();
|
|
45270
45430
|
|
|
45271
45431
|
return geometryNode;
|
|
45272
45432
|
},
|
|
45273
|
-
createIndexedTriangleStripSet ({ attributes, indices, material })
|
|
45433
|
+
createIndexedTriangleStripSet ({ attributes, indices, material }, skin)
|
|
45274
45434
|
{
|
|
45275
45435
|
const
|
|
45276
45436
|
scene = this .getExecutionContext (),
|
|
@@ -45284,11 +45444,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45284
45444
|
geometryNode ._coord = this .createCoordinate (attributes .POSITION);
|
|
45285
45445
|
geometryNode ._normalPerVertex = !! geometryNode ._normal;
|
|
45286
45446
|
|
|
45447
|
+
this .attributesJointsArray (skin, attributes .JOINTS, attributes .WEIGHTS);
|
|
45448
|
+
this .skinGeometry (skin, geometryNode);
|
|
45449
|
+
|
|
45287
45450
|
geometryNode .setup ();
|
|
45288
45451
|
|
|
45289
45452
|
return geometryNode;
|
|
45290
45453
|
},
|
|
45291
|
-
createTriangleStripSet ({ attributes, material })
|
|
45454
|
+
createTriangleStripSet ({ attributes, material }, skin)
|
|
45292
45455
|
{
|
|
45293
45456
|
const
|
|
45294
45457
|
scene = this .getExecutionContext (),
|
|
@@ -45309,11 +45472,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45309
45472
|
geometryNode ._stripCount = [coord .point .length];
|
|
45310
45473
|
}
|
|
45311
45474
|
|
|
45475
|
+
this .attributesJointsArray (skin, attributes .JOINTS, attributes .WEIGHTS);
|
|
45476
|
+
this .skinGeometry (skin, geometryNode);
|
|
45477
|
+
|
|
45312
45478
|
geometryNode .setup ();
|
|
45313
45479
|
|
|
45314
45480
|
return geometryNode;
|
|
45315
45481
|
},
|
|
45316
|
-
createIndexedTriangleFanSet ({ attributes, indices, material })
|
|
45482
|
+
createIndexedTriangleFanSet ({ attributes, indices, material }, skin)
|
|
45317
45483
|
{
|
|
45318
45484
|
const
|
|
45319
45485
|
scene = this .getExecutionContext (),
|
|
@@ -45327,11 +45493,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45327
45493
|
geometryNode ._coord = this .createCoordinate (attributes .POSITION);
|
|
45328
45494
|
geometryNode ._normalPerVertex = !! geometryNode ._normal;
|
|
45329
45495
|
|
|
45496
|
+
this .attributesJointsArray (skin, attributes .JOINTS, attributes .WEIGHTS);
|
|
45497
|
+
this .skinGeometry (skin, geometryNode);
|
|
45498
|
+
|
|
45330
45499
|
geometryNode .setup ();
|
|
45331
45500
|
|
|
45332
45501
|
return geometryNode;
|
|
45333
45502
|
},
|
|
45334
|
-
createTriangleFanSet ({ attributes, material })
|
|
45503
|
+
createTriangleFanSet ({ attributes, material }, skin)
|
|
45335
45504
|
{
|
|
45336
45505
|
const
|
|
45337
45506
|
scene = this .getExecutionContext (),
|
|
@@ -45352,6 +45521,9 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45352
45521
|
geometryNode ._fanCount = [coord .point .length];
|
|
45353
45522
|
}
|
|
45354
45523
|
|
|
45524
|
+
this .attributesJointsArray (skin, attributes .JOINTS, attributes .WEIGHTS);
|
|
45525
|
+
this .skinGeometry (skin, geometryNode);
|
|
45526
|
+
|
|
45355
45527
|
geometryNode .setup ();
|
|
45356
45528
|
|
|
45357
45529
|
return geometryNode;
|
|
@@ -45498,6 +45670,99 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45498
45670
|
|
|
45499
45671
|
return position .coordinateNode = coordinateNode;
|
|
45500
45672
|
},
|
|
45673
|
+
attributesJointsArray: function (skin, joints, weights)
|
|
45674
|
+
{
|
|
45675
|
+
if (!(skin instanceof Object))
|
|
45676
|
+
return;
|
|
45677
|
+
|
|
45678
|
+
if (!(joints instanceof Array))
|
|
45679
|
+
return;
|
|
45680
|
+
|
|
45681
|
+
if (!(weights instanceof Array))
|
|
45682
|
+
return;
|
|
45683
|
+
|
|
45684
|
+
for (let i = 0, length = joints .length; i < length; ++ i)
|
|
45685
|
+
this .attributesJointsObject (skin, joints [i], weights [i]);
|
|
45686
|
+
},
|
|
45687
|
+
attributesJointsObject: function (skin, joints, weights)
|
|
45688
|
+
{
|
|
45689
|
+
if (!(joints instanceof Object))
|
|
45690
|
+
return;
|
|
45691
|
+
|
|
45692
|
+
if (!(weights instanceof Object))
|
|
45693
|
+
return;
|
|
45694
|
+
|
|
45695
|
+
if (joints .type !== "VEC4")
|
|
45696
|
+
return;
|
|
45697
|
+
|
|
45698
|
+
if (weights .type !== "VEC4")
|
|
45699
|
+
return;
|
|
45700
|
+
|
|
45701
|
+
const
|
|
45702
|
+
start = skin .coordinateNode ._point .length,
|
|
45703
|
+
jointsArray = joints .array,
|
|
45704
|
+
weightsArray = weights .array,
|
|
45705
|
+
numVertices = jointsArray .length / 4;
|
|
45706
|
+
|
|
45707
|
+
for (let v = 0; v < numVertices; ++ v)
|
|
45708
|
+
{
|
|
45709
|
+
for (let i = 0; i < 4; ++ i)
|
|
45710
|
+
{
|
|
45711
|
+
const w = weightsArray [v * 4 + i];
|
|
45712
|
+
|
|
45713
|
+
if (w === 0)
|
|
45714
|
+
continue;
|
|
45715
|
+
|
|
45716
|
+
const
|
|
45717
|
+
index = skin .joints [jointsArray [v * 4 + i]],
|
|
45718
|
+
jointNode = this .nodeObject (this .nodes [index], index);
|
|
45719
|
+
|
|
45720
|
+
jointNode ._skinCoordIndex .push (v + start);
|
|
45721
|
+
jointNode ._skinCoordWeight .push (w);
|
|
45722
|
+
}
|
|
45723
|
+
}
|
|
45724
|
+
},
|
|
45725
|
+
skinGeometry: function (skin, geometryNode)
|
|
45726
|
+
{
|
|
45727
|
+
if (!(skin instanceof Object))
|
|
45728
|
+
return;
|
|
45729
|
+
|
|
45730
|
+
const
|
|
45731
|
+
skinTextureCoordinateNode = skin .textureCoordinateNode,
|
|
45732
|
+
skinNormalNode = skin .normalNode,
|
|
45733
|
+
skinCoordinateNode = skin .coordinateNode,
|
|
45734
|
+
start = skinCoordinateNode ._point .length,
|
|
45735
|
+
textureCoordinateNode = geometryNode ._texCoord ?.getValue (),
|
|
45736
|
+
normalNode = geometryNode ._normal ?.getValue (),
|
|
45737
|
+
coordinateNode = geometryNode ._coord ?.getValue ();
|
|
45738
|
+
|
|
45739
|
+
if (geometryNode ._coordIndex)
|
|
45740
|
+
geometryNode ._coordIndex = geometryNode ._coordIndex .map (index => index < 0 ? -1 : index + start);
|
|
45741
|
+
|
|
45742
|
+
if (geometryNode ._index)
|
|
45743
|
+
geometryNode ._index = geometryNode ._index .map (index => index < 0 ? -1 : index + start);
|
|
45744
|
+
|
|
45745
|
+
if (textureCoordinateNode)
|
|
45746
|
+
{
|
|
45747
|
+
const point = skinTextureCoordinateNode ._point;
|
|
45748
|
+
textureCoordinateNode ._point .forEach ((p, i) => point [i + start] = p);
|
|
45749
|
+
geometryNode ._texCoord = skinTextureCoordinateNode;
|
|
45750
|
+
}
|
|
45751
|
+
|
|
45752
|
+
if (normalNode)
|
|
45753
|
+
{
|
|
45754
|
+
const vector = skinNormalNode ._vector;
|
|
45755
|
+
normalNode ._vector .forEach ((v, i) => vector [i + start] = v);
|
|
45756
|
+
geometryNode ._normal = skinNormalNode;
|
|
45757
|
+
}
|
|
45758
|
+
|
|
45759
|
+
if (coordinateNode)
|
|
45760
|
+
{
|
|
45761
|
+
const point = skinCoordinateNode ._point;
|
|
45762
|
+
coordinateNode ._point .forEach ((p, i) => point [i + start] = p);
|
|
45763
|
+
geometryNode ._coord = skinCoordinateNode;
|
|
45764
|
+
}
|
|
45765
|
+
},
|
|
45501
45766
|
createInterpolator (path, interpolation, times, keyValues, cycleInterval)
|
|
45502
45767
|
{
|
|
45503
45768
|
const scene = this .getExecutionContext ();
|
|
@@ -45756,7 +46021,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
|
|
|
45756
46021
|
x_ite_Namespace .set ("x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
|
|
45757
46022
|
/* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
|
|
45758
46023
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
|
|
45759
|
-
/* provided dependency */ var GLB2Parser_$ = __webpack_require__(
|
|
46024
|
+
/* provided dependency */ var GLB2Parser_$ = __webpack_require__(200);
|
|
45760
46025
|
/*******************************************************************************
|
|
45761
46026
|
*
|
|
45762
46027
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -45908,7 +46173,7 @@ const GLB2Parser_default_ = GLB2Parser;
|
|
|
45908
46173
|
x_ite_Namespace .set ("x_ite/Parser/GLB2Parser", GLB2Parser_default_);
|
|
45909
46174
|
/* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
|
|
45910
46175
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
|
|
45911
|
-
/* provided dependency */ var OBJParser_$ = __webpack_require__(
|
|
46176
|
+
/* provided dependency */ var OBJParser_$ = __webpack_require__(200);
|
|
45912
46177
|
/*******************************************************************************
|
|
45913
46178
|
*
|
|
45914
46179
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -48856,9 +49121,19 @@ Object .assign (Box2,
|
|
|
48856
49121
|
{
|
|
48857
49122
|
return new Box2 () .setExtents (min, max);
|
|
48858
49123
|
},
|
|
48859
|
-
Points (
|
|
49124
|
+
Points (points)
|
|
48860
49125
|
{
|
|
48861
|
-
|
|
49126
|
+
const
|
|
49127
|
+
min = new Numbers_Vector2 (Number .POSITIVE_INFINITY, Number .POSITIVE_INFINITY),
|
|
49128
|
+
max = new Numbers_Vector2 (Number .NEGATIVE_INFINITY, Number .NEGATIVE_INFINITY);
|
|
49129
|
+
|
|
49130
|
+
for (const point of points)
|
|
49131
|
+
{
|
|
49132
|
+
min .min (point);
|
|
49133
|
+
max .max (point);
|
|
49134
|
+
}
|
|
49135
|
+
|
|
49136
|
+
return new Box2 () .setExtents (min, max);
|
|
48862
49137
|
},
|
|
48863
49138
|
});
|
|
48864
49139
|
|
|
@@ -49253,8 +49528,8 @@ const MatrixStack_default_ = MatrixStack;
|
|
|
49253
49528
|
x_ite_Namespace .set ("standard/Math/Utility/MatrixStack", MatrixStack_default_);
|
|
49254
49529
|
/* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
|
|
49255
49530
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
|
|
49256
|
-
/* provided dependency */ var SVGParser_$ = __webpack_require__(
|
|
49257
|
-
/* provided dependency */ var libtess = __webpack_require__(
|
|
49531
|
+
/* provided dependency */ var SVGParser_$ = __webpack_require__(200);
|
|
49532
|
+
/* provided dependency */ var libtess = __webpack_require__(430);
|
|
49258
49533
|
/*******************************************************************************
|
|
49259
49534
|
*
|
|
49260
49535
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -50174,7 +50449,7 @@ Object .assign (Object .setPrototypeOf (SVGParser .prototype, Parser_X3DParser .
|
|
|
50174
50449
|
bbox = new Geometry_Box2 ();
|
|
50175
50450
|
|
|
50176
50451
|
for (const points of contours)
|
|
50177
|
-
bbox .add (Geometry_Box2 .Points (
|
|
50452
|
+
bbox .add (Geometry_Box2 .Points (points));
|
|
50178
50453
|
|
|
50179
50454
|
this .groupNodes .push (transformNode);
|
|
50180
50455
|
|
|
@@ -52022,7 +52297,7 @@ const SVGParser_default_ = SVGParser;
|
|
|
52022
52297
|
x_ite_Namespace .set ("x_ite/Parser/SVGParser", SVGParser_default_);
|
|
52023
52298
|
/* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
|
|
52024
52299
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
|
|
52025
|
-
/* provided dependency */ var GoldenGate_$ = __webpack_require__(
|
|
52300
|
+
/* provided dependency */ var GoldenGate_$ = __webpack_require__(200);
|
|
52026
52301
|
/*******************************************************************************
|
|
52027
52302
|
*
|
|
52028
52303
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -52359,7 +52634,7 @@ const Plane3_default_ = Plane3;
|
|
|
52359
52634
|
x_ite_Namespace .set ("standard/Math/Geometry/Plane3", Plane3_default_);
|
|
52360
52635
|
/* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
|
|
52361
52636
|
;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
|
|
52362
|
-
/* provided dependency */ var Triangle3_libtess = __webpack_require__(
|
|
52637
|
+
/* provided dependency */ var Triangle3_libtess = __webpack_require__(430);
|
|
52363
52638
|
/*******************************************************************************
|
|
52364
52639
|
*
|
|
52365
52640
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -54215,9 +54490,19 @@ Object .assign (Box3,
|
|
|
54215
54490
|
{
|
|
54216
54491
|
return new Box3 () .setExtents (min, max);
|
|
54217
54492
|
},
|
|
54218
|
-
Points (
|
|
54493
|
+
Points (points)
|
|
54219
54494
|
{
|
|
54220
|
-
|
|
54495
|
+
const
|
|
54496
|
+
min = new Numbers_Vector3 (Number .POSITIVE_INFINITY, Number .POSITIVE_INFINITY, Number .POSITIVE_INFINITY),
|
|
54497
|
+
max = new Numbers_Vector3 (Number .NEGATIVE_INFINITY, Number .NEGATIVE_INFINITY, Number .NEGATIVE_INFINITY);
|
|
54498
|
+
|
|
54499
|
+
for (const point of points)
|
|
54500
|
+
{
|
|
54501
|
+
min .min (point);
|
|
54502
|
+
max .max (point);
|
|
54503
|
+
}
|
|
54504
|
+
|
|
54505
|
+
return new Box3 () .setExtents (min, max);
|
|
54221
54506
|
},
|
|
54222
54507
|
});
|
|
54223
54508
|
|
|
@@ -59754,7 +60039,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
|
|
|
59754
60039
|
x_ite_Namespace .set ("x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
|
|
59755
60040
|
/* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
|
|
59756
60041
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
|
|
59757
|
-
/* provided dependency */ var ImageTexture_$ = __webpack_require__(
|
|
60042
|
+
/* provided dependency */ var ImageTexture_$ = __webpack_require__(200);
|
|
59758
60043
|
/*******************************************************************************
|
|
59759
60044
|
*
|
|
59760
60045
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -64294,7 +64579,7 @@ const X3DWorld_default_ = X3DWorld;
|
|
|
64294
64579
|
x_ite_Namespace .set ("x_ite/Execution/X3DWorld", X3DWorld_default_);
|
|
64295
64580
|
/* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
|
|
64296
64581
|
;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
|
|
64297
|
-
/* provided dependency */ var FileLoader_$ = __webpack_require__(
|
|
64582
|
+
/* provided dependency */ var FileLoader_$ = __webpack_require__(200);
|
|
64298
64583
|
/*******************************************************************************
|
|
64299
64584
|
*
|
|
64300
64585
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -74158,7 +74443,7 @@ Object .assign (Object .setPrototypeOf (X3DComposedGeometryNode .prototype, Rend
|
|
|
74158
74443
|
|
|
74159
74444
|
// Set size to a multiple of verticesPerPolygon.
|
|
74160
74445
|
|
|
74161
|
-
polygonsSize -= polygonsSize
|
|
74446
|
+
polygonsSize -= polygonsSize % verticesPerPolygon;
|
|
74162
74447
|
trianglesSize -= trianglesSize % verticesPerFace;
|
|
74163
74448
|
|
|
74164
74449
|
const
|
|
@@ -87910,7 +88195,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
|
|
|
87910
88195
|
x_ite_Namespace .set ("x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
|
|
87911
88196
|
/* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
|
|
87912
88197
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
|
|
87913
|
-
/* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(
|
|
88198
|
+
/* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(200);
|
|
87914
88199
|
/*******************************************************************************
|
|
87915
88200
|
*
|
|
87916
88201
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -96633,7 +96918,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
|
|
|
96633
96918
|
x_ite_Namespace .set ("x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
|
|
96634
96919
|
/* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
|
|
96635
96920
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
|
|
96636
|
-
/* provided dependency */ var ShaderPart_$ = __webpack_require__(
|
|
96921
|
+
/* provided dependency */ var ShaderPart_$ = __webpack_require__(200);
|
|
96637
96922
|
/*******************************************************************************
|
|
96638
96923
|
*
|
|
96639
96924
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -97292,7 +97577,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
|
|
|
97292
97577
|
x_ite_Namespace .set ("x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
|
|
97293
97578
|
/* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
|
|
97294
97579
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
|
|
97295
|
-
/* provided dependency */ var Appearance_$ = __webpack_require__(
|
|
97580
|
+
/* provided dependency */ var Appearance_$ = __webpack_require__(200);
|
|
97296
97581
|
/*******************************************************************************
|
|
97297
97582
|
*
|
|
97298
97583
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -100987,7 +101272,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
|
|
|
100987
101272
|
x_ite_Namespace .set ("x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
|
|
100988
101273
|
/* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
|
|
100989
101274
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
|
|
100990
|
-
/* provided dependency */ var AudioClip_$ = __webpack_require__(
|
|
101275
|
+
/* provided dependency */ var AudioClip_$ = __webpack_require__(200);
|
|
100991
101276
|
/*******************************************************************************
|
|
100992
101277
|
*
|
|
100993
101278
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -104098,8 +104383,8 @@ const GIFMedia_default_ = GifMedia;
|
|
|
104098
104383
|
x_ite_Namespace .set ("x_ite/Browser/Texturing/GIFMedia", GIFMedia_default_);
|
|
104099
104384
|
/* harmony default export */ const GIFMedia = (GIFMedia_default_);
|
|
104100
104385
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
|
|
104101
|
-
/* provided dependency */ var MovieTexture_$ = __webpack_require__(
|
|
104102
|
-
/* provided dependency */ var SuperGif = __webpack_require__(
|
|
104386
|
+
/* provided dependency */ var MovieTexture_$ = __webpack_require__(200);
|
|
104387
|
+
/* provided dependency */ var SuperGif = __webpack_require__(650);
|
|
104103
104388
|
/*******************************************************************************
|
|
104104
104389
|
*
|
|
104105
104390
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -105264,7 +105549,7 @@ const MultiTextureTransform_default_ = MultiTextureTransform;
|
|
|
105264
105549
|
x_ite_Namespace .set ("x_ite/Components/Texturing/MultiTextureTransform", MultiTextureTransform_default_);
|
|
105265
105550
|
/* harmony default export */ const Texturing_MultiTextureTransform = (MultiTextureTransform_default_);
|
|
105266
105551
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/PixelTexture.js
|
|
105267
|
-
/* provided dependency */ var PixelTexture_$ = __webpack_require__(
|
|
105552
|
+
/* provided dependency */ var PixelTexture_$ = __webpack_require__(200);
|
|
105268
105553
|
/*******************************************************************************
|
|
105269
105554
|
*
|
|
105270
105555
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107445,7 +107730,7 @@ const gettext_default_ = gettext;
|
|
|
107445
107730
|
x_ite_Namespace .set ("locale/gettext", gettext_default_);
|
|
107446
107731
|
/* harmony default export */ const locale_gettext = (gettext_default_);
|
|
107447
107732
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
|
|
107448
|
-
/* provided dependency */ var BrowserTimings_$ = __webpack_require__(
|
|
107733
|
+
/* provided dependency */ var BrowserTimings_$ = __webpack_require__(200);
|
|
107449
107734
|
/*******************************************************************************
|
|
107450
107735
|
*
|
|
107451
107736
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107875,7 +108160,7 @@ const TextureQuality_default_ = TextureQuality;
|
|
|
107875
108160
|
x_ite_Namespace .set ("x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
|
|
107876
108161
|
/* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
|
|
107877
108162
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
|
|
107878
|
-
/* provided dependency */ var BrowserOptions_$ = __webpack_require__(
|
|
108163
|
+
/* provided dependency */ var BrowserOptions_$ = __webpack_require__(200);
|
|
107879
108164
|
/*******************************************************************************
|
|
107880
108165
|
*
|
|
107881
108166
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -108456,7 +108741,7 @@ const RenderingProperties_default_ = RenderingProperties;
|
|
|
108456
108741
|
x_ite_Namespace .set ("x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
|
|
108457
108742
|
/* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
|
|
108458
108743
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
|
|
108459
|
-
/* provided dependency */ var Notification_$ = __webpack_require__(
|
|
108744
|
+
/* provided dependency */ var Notification_$ = __webpack_require__(200);
|
|
108460
108745
|
/*******************************************************************************
|
|
108461
108746
|
*
|
|
108462
108747
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -108578,8 +108863,8 @@ const Notification_default_ = Notification;
|
|
|
108578
108863
|
x_ite_Namespace .set ("x_ite/Browser/Core/Notification", Notification_default_);
|
|
108579
108864
|
/* harmony default export */ const Core_Notification = (Notification_default_);
|
|
108580
108865
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
|
|
108581
|
-
/* provided dependency */ var jquery_fullscreen = __webpack_require__(
|
|
108582
|
-
/* provided dependency */ var ContextMenu_$ = __webpack_require__(
|
|
108866
|
+
/* provided dependency */ var jquery_fullscreen = __webpack_require__(60);
|
|
108867
|
+
/* provided dependency */ var ContextMenu_$ = __webpack_require__(200);
|
|
108583
108868
|
/*******************************************************************************
|
|
108584
108869
|
*
|
|
108585
108870
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -111297,7 +111582,7 @@ const DataStorage_default_ = DataStorage;
|
|
|
111297
111582
|
x_ite_Namespace .set ("standard/Utility/DataStorage", DataStorage_default_);
|
|
111298
111583
|
/* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
|
|
111299
111584
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
|
|
111300
|
-
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(
|
|
111585
|
+
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(200);
|
|
111301
111586
|
/*******************************************************************************
|
|
111302
111587
|
*
|
|
111303
111588
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -113332,8 +113617,8 @@ const X3DViewer_default_ = X3DViewer;
|
|
|
113332
113617
|
x_ite_Namespace .set ("x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
|
|
113333
113618
|
/* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
|
|
113334
113619
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
|
|
113335
|
-
/* provided dependency */ var jquery_mousewheel = __webpack_require__(
|
|
113336
|
-
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(
|
|
113620
|
+
/* provided dependency */ var jquery_mousewheel = __webpack_require__(323);
|
|
113621
|
+
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(200);
|
|
113337
113622
|
/*******************************************************************************
|
|
113338
113623
|
*
|
|
113339
113624
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -114205,8 +114490,8 @@ const ExamineViewer_default_ = ExamineViewer;
|
|
|
114205
114490
|
x_ite_Namespace .set ("x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
|
|
114206
114491
|
/* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
|
|
114207
114492
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
|
|
114208
|
-
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(
|
|
114209
|
-
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(
|
|
114493
|
+
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(323);
|
|
114494
|
+
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(200);
|
|
114210
114495
|
/*******************************************************************************
|
|
114211
114496
|
*
|
|
114212
114497
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -115176,8 +115461,8 @@ const FlyViewer_default_ = FlyViewer;
|
|
|
115176
115461
|
x_ite_Namespace .set ("x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
|
|
115177
115462
|
/* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
|
|
115178
115463
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
|
|
115179
|
-
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(
|
|
115180
|
-
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(
|
|
115464
|
+
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(323);
|
|
115465
|
+
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(200);
|
|
115181
115466
|
/*******************************************************************************
|
|
115182
115467
|
*
|
|
115183
115468
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -115508,8 +115793,8 @@ const NoneViewer_default_ = NoneViewer;
|
|
|
115508
115793
|
x_ite_Namespace .set ("x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
|
|
115509
115794
|
/* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
|
|
115510
115795
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
|
|
115511
|
-
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(
|
|
115512
|
-
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(
|
|
115796
|
+
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(323);
|
|
115797
|
+
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(200);
|
|
115513
115798
|
/*******************************************************************************
|
|
115514
115799
|
*
|
|
115515
115800
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -116646,8 +116931,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
|
|
|
116646
116931
|
x_ite_Namespace .set ("x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
|
|
116647
116932
|
/* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
|
|
116648
116933
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
|
|
116649
|
-
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(
|
|
116650
|
-
/* provided dependency */ var PointingDevice_$ = __webpack_require__(
|
|
116934
|
+
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(323);
|
|
116935
|
+
/* provided dependency */ var PointingDevice_$ = __webpack_require__(200);
|
|
116651
116936
|
/*******************************************************************************
|
|
116652
116937
|
*
|
|
116653
116938
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -117687,8 +117972,8 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
|
|
|
117687
117972
|
x_ite_Namespace .set ("x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
|
|
117688
117973
|
/* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
|
|
117689
117974
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
|
|
117690
|
-
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(
|
|
117691
|
-
/* provided dependency */ var ResizeSensor = __webpack_require__(
|
|
117975
|
+
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(200);
|
|
117976
|
+
/* provided dependency */ var ResizeSensor = __webpack_require__(838);
|
|
117692
117977
|
/*******************************************************************************
|
|
117693
117978
|
*
|
|
117694
117979
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -119913,7 +120198,7 @@ const Components_default_ = Components;
|
|
|
119913
120198
|
x_ite_Namespace .set ("x_ite/Components", Components_default_);
|
|
119914
120199
|
/* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
|
|
119915
120200
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
|
|
119916
|
-
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(
|
|
120201
|
+
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(200);
|
|
119917
120202
|
/*******************************************************************************
|
|
119918
120203
|
* MIT License
|
|
119919
120204
|
*
|
|
@@ -120319,7 +120604,7 @@ const DOMIntegration_default_ = DOMIntegration;
|
|
|
120319
120604
|
x_ite_Namespace .set ("x_ite/Browser/DOMIntegration", DOMIntegration_default_);
|
|
120320
120605
|
/* harmony default export */ const Browser_DOMIntegration = (DOMIntegration_default_);
|
|
120321
120606
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
|
|
120322
|
-
/* provided dependency */ var Legacy_$ = __webpack_require__(
|
|
120607
|
+
/* provided dependency */ var Legacy_$ = __webpack_require__(200);
|
|
120323
120608
|
/*******************************************************************************
|
|
120324
120609
|
*
|
|
120325
120610
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -121150,7 +121435,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
|
|
|
121150
121435
|
x_ite_Namespace .set ("x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
|
|
121151
121436
|
/* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
|
|
121152
121437
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
|
|
121153
|
-
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(
|
|
121438
|
+
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(200);
|
|
121154
121439
|
/*******************************************************************************
|
|
121155
121440
|
*
|
|
121156
121441
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -122274,8 +122559,8 @@ const MicroTime_default_ = undefined;
|
|
|
122274
122559
|
x_ite_Namespace .set ("standard/Time/MicroTime", MicroTime_default_);
|
|
122275
122560
|
/* harmony default export */ const MicroTime = ((/* unused pure expression or super */ null && (MicroTime_default_)));
|
|
122276
122561
|
;// CONCATENATED MODULE: ./src/lib/jquery.js
|
|
122277
|
-
/* provided dependency */ var jquery_$ = __webpack_require__(
|
|
122278
|
-
/* provided dependency */ var pako = __webpack_require__(
|
|
122562
|
+
/* provided dependency */ var jquery_$ = __webpack_require__(200);
|
|
122563
|
+
/* provided dependency */ var pako = __webpack_require__(489);
|
|
122279
122564
|
Object .assign (jquery_$,
|
|
122280
122565
|
{
|
|
122281
122566
|
decodeText (input)
|
|
@@ -122340,14 +122625,14 @@ const jquery_default_ = jquery_$;
|
|
|
122340
122625
|
x_ite_Namespace .set ("lib/jquery", jquery_default_);
|
|
122341
122626
|
/* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
|
|
122342
122627
|
;// CONCATENATED MODULE: ./src/lib/libtess.js
|
|
122343
|
-
/* provided dependency */ var libtess_libtess = __webpack_require__(
|
|
122628
|
+
/* provided dependency */ var libtess_libtess = __webpack_require__(430);
|
|
122344
122629
|
const libtess_default_ = libtess_libtess;
|
|
122345
122630
|
;
|
|
122346
122631
|
|
|
122347
122632
|
x_ite_Namespace .set ("lib/libtess", libtess_default_);
|
|
122348
122633
|
/* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
|
|
122349
122634
|
;// CONCATENATED MODULE: ./src/x_ite/X3D.js
|
|
122350
|
-
/* provided dependency */ var X3D_$ = __webpack_require__(
|
|
122635
|
+
/* provided dependency */ var X3D_$ = __webpack_require__(200);
|
|
122351
122636
|
/*******************************************************************************
|
|
122352
122637
|
*
|
|
122353
122638
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -122604,7 +122889,7 @@ const X3D_default_ = X3D;
|
|
|
122604
122889
|
x_ite_Namespace .set ("x_ite/X3D", X3D_default_);
|
|
122605
122890
|
/* harmony default export */ const x_ite_X3D = (X3D_default_);
|
|
122606
122891
|
;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
|
|
122607
|
-
/* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(
|
|
122892
|
+
/* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(200);
|
|
122608
122893
|
/*******************************************************************************
|
|
122609
122894
|
*
|
|
122610
122895
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -122873,7 +123158,7 @@ x_ite_Namespace .set ("shim", shim_default_);
|
|
|
122873
123158
|
|
|
122874
123159
|
// Assign X3D to global namespace.
|
|
122875
123160
|
|
|
122876
|
-
window [Symbol .for ("X_ITE.X3D-8.9.
|
|
123161
|
+
window [Symbol .for ("X_ITE.X3D-8.9.2")] = x_ite_X3D;
|
|
122877
123162
|
|
|
122878
123163
|
customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
|
|
122879
123164
|
|