x_ite 8.9.1 → 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/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 +19 -19
- 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 +65 -65
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/package.json +1 -1
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Parser/GLTF2Parser.js +7 -7
package/dist/x_ite.zip
CHANGED
|
Binary file
|
package/docs/_config.yml
CHANGED
package/package.json
CHANGED
|
@@ -85,13 +85,13 @@ function GLTF2Parser (scene)
|
|
|
85
85
|
this .samplers = [ ];
|
|
86
86
|
this .materials = [ ];
|
|
87
87
|
this .textureTransformNodes = [ ];
|
|
88
|
+
this .meshes = [ ];
|
|
88
89
|
this .cameras = [ ];
|
|
89
90
|
this .viewpoints = 0;
|
|
90
91
|
this .nodes = [ ];
|
|
91
92
|
this .skins = [ ];
|
|
92
93
|
this .joints = new Set ();
|
|
93
94
|
this .skeletons = new Set ();
|
|
94
|
-
this .inverseBindMatrices = new Map ();
|
|
95
95
|
this .animations = 0;
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -1486,9 +1486,9 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, X3DParser .proto
|
|
|
1486
1486
|
if (skeletonNode)
|
|
1487
1487
|
humanoidNode ._skeleton .push (skeletonNode);
|
|
1488
1488
|
|
|
1489
|
-
for (const joint of skin .joints)
|
|
1489
|
+
for (const [i, joint] of skin .joints .entries ())
|
|
1490
1490
|
{
|
|
1491
|
-
const inverseBindMatrix =
|
|
1491
|
+
const inverseBindMatrix = skin .inverseBindMatrices [i] ?? Matrix4 .Identity;
|
|
1492
1492
|
|
|
1493
1493
|
inverseBindMatrix .get (translation, rotation, scale);
|
|
1494
1494
|
|
|
@@ -1577,7 +1577,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, X3DParser .proto
|
|
|
1577
1577
|
|
|
1578
1578
|
this .skeletons .add (skin .skeleton);
|
|
1579
1579
|
|
|
1580
|
-
this .inverseBindMatricesAccessors (this .accessors [skin .inverseBindMatrices]
|
|
1580
|
+
skin .inverseBindMatrices = this .inverseBindMatricesAccessors (this .accessors [skin .inverseBindMatrices]);
|
|
1581
1581
|
},
|
|
1582
1582
|
jointsArray: function (joints)
|
|
1583
1583
|
{
|
|
@@ -1598,10 +1598,10 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, X3DParser .proto
|
|
|
1598
1598
|
|
|
1599
1599
|
return joints .filter (index => !children .has (index)) [0];
|
|
1600
1600
|
},
|
|
1601
|
-
inverseBindMatricesAccessors: function (inverseBindMatrices
|
|
1601
|
+
inverseBindMatricesAccessors: function (inverseBindMatrices)
|
|
1602
1602
|
{
|
|
1603
1603
|
if (!inverseBindMatrices)
|
|
1604
|
-
return;
|
|
1604
|
+
return [ ];
|
|
1605
1605
|
|
|
1606
1606
|
const
|
|
1607
1607
|
array = inverseBindMatrices .array,
|
|
@@ -1611,7 +1611,7 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, X3DParser .proto
|
|
|
1611
1611
|
for (let i = 0; i < length; i += 16)
|
|
1612
1612
|
matrices .push (new Matrix4 (... array .subarray (i, i + 16)));
|
|
1613
1613
|
|
|
1614
|
-
matrices
|
|
1614
|
+
return matrices;
|
|
1615
1615
|
},
|
|
1616
1616
|
scenesArray (scenes, sceneNumber)
|
|
1617
1617
|
{
|