x_ite 8.9.0 → 8.9.1
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.9.
|
|
1
|
+
/* X_ITE v8.9.1 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,25 +39,25 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Components");
|
|
43
43
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
44
44
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
45
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
48
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
48
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
49
49
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
51
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
51
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
52
52
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
53
53
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometricPropertyNode\")"
|
|
54
|
-
const X3DGeometricPropertyNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
54
|
+
const X3DGeometricPropertyNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Components/Rendering/X3DGeometricPropertyNode");
|
|
55
55
|
var X3DGeometricPropertyNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometricPropertyNode_namespaceObject);
|
|
56
56
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
57
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
57
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Base/X3DConstants");
|
|
58
58
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
59
59
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
60
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
60
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Namespace");
|
|
61
61
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimDisplacer.js
|
|
63
63
|
/*******************************************************************************
|
|
@@ -166,29 +166,31 @@ const __default__ = HAnimDisplacer;
|
|
|
166
166
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimDisplacer", __default__);
|
|
167
167
|
/* harmony default export */ const HAnim_HAnimDisplacer = (__default__);
|
|
168
168
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
169
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
169
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
170
170
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
171
171
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Group\")"
|
|
172
|
-
const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
172
|
+
const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Components/Grouping/Group");
|
|
173
173
|
var Group_default = /*#__PURE__*/__webpack_require__.n(Group_namespaceObject);
|
|
174
174
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Transform\")"
|
|
175
|
-
const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
175
|
+
const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Components/Grouping/Transform");
|
|
176
176
|
var Transform_default = /*#__PURE__*/__webpack_require__.n(Transform_namespaceObject);
|
|
177
177
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
|
|
178
|
-
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
178
|
+
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
|
|
179
179
|
var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
|
|
180
180
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
181
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
181
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Rendering/TraverseType");
|
|
182
182
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
183
183
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
184
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
184
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Base/X3DCast");
|
|
185
185
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
186
|
-
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
187
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.0")] .require ("standard/Math/Numbers/Matrix4");
|
|
188
|
-
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
189
186
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
190
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
187
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("standard/Math/Numbers/Vector3");
|
|
191
188
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
189
|
+
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
190
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("standard/Math/Numbers/Rotation4");
|
|
191
|
+
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
192
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("standard/Math/Numbers/Matrix4");
|
|
193
|
+
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
192
194
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimHumanoid.js
|
|
193
195
|
/*******************************************************************************
|
|
194
196
|
*
|
|
@@ -250,6 +252,7 @@ var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject
|
|
|
250
252
|
|
|
251
253
|
|
|
252
254
|
|
|
255
|
+
|
|
253
256
|
function HAnimHumanoid (executionContext)
|
|
254
257
|
{
|
|
255
258
|
X3DChildNode_default().call (this, executionContext);
|
|
@@ -262,16 +265,17 @@ function HAnimHumanoid (executionContext)
|
|
|
262
265
|
this ._bboxSize .setUnit ("length");
|
|
263
266
|
this ._bboxCenter .setUnit ("length");
|
|
264
267
|
|
|
265
|
-
this .skeletonNode
|
|
266
|
-
this .viewpointsNode
|
|
267
|
-
this .skinNode
|
|
268
|
-
this .transformNode
|
|
269
|
-
this .jointNodes
|
|
270
|
-
this .
|
|
271
|
-
this .
|
|
272
|
-
this .
|
|
273
|
-
this .
|
|
274
|
-
this .
|
|
268
|
+
this .skeletonNode = new (Group_default()) (executionContext);
|
|
269
|
+
this .viewpointsNode = new (Group_default()) (executionContext);
|
|
270
|
+
this .skinNode = new (Group_default()) (executionContext);
|
|
271
|
+
this .transformNode = new (Transform_default()) (executionContext);
|
|
272
|
+
this .jointNodes = [ ];
|
|
273
|
+
this .jointBindingMatrices = [ ];
|
|
274
|
+
this .skinBindingNormal = null;
|
|
275
|
+
this .skinBindingCoord = null;
|
|
276
|
+
this .skinNormalNode = null;
|
|
277
|
+
this .skinCoordNode = null;
|
|
278
|
+
this .changed = false;
|
|
275
279
|
}
|
|
276
280
|
|
|
277
281
|
Object .assign (Object .setPrototypeOf (HAnimHumanoid .prototype, (X3DChildNode_default()).prototype),
|
|
@@ -337,13 +341,18 @@ Object .assign (Object .setPrototypeOf (HAnimHumanoid .prototype, (X3DChildNode_
|
|
|
337
341
|
|
|
338
342
|
// Skinning
|
|
339
343
|
|
|
340
|
-
this ._joints
|
|
341
|
-
this .
|
|
342
|
-
this .
|
|
344
|
+
this ._joints .addInterest ("set_joints__", this);
|
|
345
|
+
this ._jointBindingPositions .addInterest ("set_joints__", this);
|
|
346
|
+
this ._jointBindingRotations .addInterest ("set_joints__", this);
|
|
347
|
+
this ._jointBindingScales .addInterest ("set_joints__", this);
|
|
348
|
+
this ._skinBindingNormal .addInterest ("set_skinBindingNormal__", this);
|
|
349
|
+
this ._skinBindingCoord .addInterest ("set_skinBindingCoord__", this);
|
|
350
|
+
this ._skinNormal .addInterest ("set_skinNormal__", this);
|
|
351
|
+
this ._skinCoord .addInterest ("set_skinCoord__", this);
|
|
343
352
|
|
|
344
353
|
this .set_joints__ ();
|
|
345
|
-
this .
|
|
346
|
-
this .
|
|
354
|
+
this .set_skinBindingNormal__ ();
|
|
355
|
+
this .set_skinBindingCoord__ ();
|
|
347
356
|
},
|
|
348
357
|
getBBox (bbox, shadows)
|
|
349
358
|
{
|
|
@@ -351,19 +360,39 @@ Object .assign (Object .setPrototypeOf (HAnimHumanoid .prototype, (X3DChildNode_
|
|
|
351
360
|
},
|
|
352
361
|
set_joints__ ()
|
|
353
362
|
{
|
|
354
|
-
const
|
|
363
|
+
const
|
|
364
|
+
jointNodes = this .jointNodes,
|
|
365
|
+
jointBindingMatrices = this .jointBindingMatrices,
|
|
366
|
+
jointBindingPositions = this ._jointBindingPositions,
|
|
367
|
+
jointBindingRotations = this ._jointBindingRotations,
|
|
368
|
+
jointBindingScales = this ._jointBindingScales;
|
|
355
369
|
|
|
356
370
|
for (const jointNode of jointNodes)
|
|
357
371
|
jointNode .removeInterest ("set_joint__", this);
|
|
358
372
|
|
|
359
|
-
jointNodes
|
|
373
|
+
jointNodes .length = 0;
|
|
374
|
+
jointBindingMatrices .length = 0;
|
|
360
375
|
|
|
361
|
-
for (const node of this ._joints)
|
|
376
|
+
for (const [i, node] of this ._joints .entries ())
|
|
362
377
|
{
|
|
363
378
|
const jointNode = X3DCast_default() ((X3DConstants_default()).HAnimJoint, node);
|
|
364
379
|
|
|
365
380
|
if (jointNode)
|
|
366
|
-
|
|
381
|
+
{
|
|
382
|
+
const jointBindingMatrix = new (Matrix4_default()) ();
|
|
383
|
+
|
|
384
|
+
if (jointBindingPositions .length)
|
|
385
|
+
jointBindingMatrix .translate (jointBindingPositions [Math .min (i, jointBindingPositions .length - 1)] .getValue ());
|
|
386
|
+
|
|
387
|
+
if (jointBindingRotations .length)
|
|
388
|
+
jointBindingMatrix .rotate (jointBindingRotations [Math .min (i, jointBindingRotations .length - 1)] .getValue ());
|
|
389
|
+
|
|
390
|
+
if (jointBindingScales .length)
|
|
391
|
+
jointBindingMatrix .scale (jointBindingScales [Math .min (i, jointBindingScales .length - 1)] .getValue ());
|
|
392
|
+
|
|
393
|
+
jointNodes .push (jointNode);
|
|
394
|
+
jointBindingMatrices .push (jointBindingMatrix);
|
|
395
|
+
}
|
|
367
396
|
}
|
|
368
397
|
|
|
369
398
|
for (const jointNode of jointNodes)
|
|
@@ -375,33 +404,38 @@ Object .assign (Object .setPrototypeOf (HAnimHumanoid .prototype, (X3DChildNode_
|
|
|
375
404
|
{
|
|
376
405
|
this .changed = true;
|
|
377
406
|
},
|
|
378
|
-
|
|
407
|
+
set_skinBindingNormal__ ()
|
|
408
|
+
{
|
|
409
|
+
this .skinBindingNormal = X3DCast_default() ((X3DConstants_default()).X3DNormalNode, this ._skinBindingNormal);
|
|
410
|
+
|
|
411
|
+
this .set_skinNormal__ ();
|
|
412
|
+
},
|
|
413
|
+
set_skinBindingCoord__ ()
|
|
379
414
|
{
|
|
380
|
-
this .
|
|
415
|
+
this .skinBindingCoord = X3DCast_default() ((X3DConstants_default()).X3DCoordinateNode, this ._skinBindingCoord);
|
|
381
416
|
|
|
417
|
+
this .set_skinCoord__ ();
|
|
418
|
+
},
|
|
419
|
+
set_skinNormal__ ()
|
|
420
|
+
{
|
|
382
421
|
this .skinNormalNode = X3DCast_default() ((X3DConstants_default()).X3DNormalNode, this ._skinNormal);
|
|
383
422
|
|
|
384
|
-
if (this .skinNormalNode)
|
|
385
|
-
this .
|
|
423
|
+
if (!this .skinBindingNormal && this .skinNormalNode)
|
|
424
|
+
this .skinBindingNormal = this .skinNormalNode .copy ();
|
|
386
425
|
|
|
387
426
|
this .changed = true;
|
|
388
427
|
},
|
|
389
428
|
set_skinCoord__ ()
|
|
390
429
|
{
|
|
391
|
-
this .restCoordNode = null;
|
|
392
|
-
|
|
393
430
|
this .skinCoordNode = X3DCast_default() ((X3DConstants_default()).X3DCoordinateNode, this ._skinCoord);
|
|
394
431
|
|
|
395
|
-
if (this .skinCoordNode)
|
|
396
|
-
|
|
397
|
-
this .restCoordNode = this .skinCoordNode .copy ();
|
|
432
|
+
if (!this .skinBindingCoord && this .skinCoordNode)
|
|
433
|
+
this .skinBindingCoord = this .skinCoordNode .copy ();
|
|
398
434
|
|
|
435
|
+
if (this .skinCoordNode)
|
|
399
436
|
delete this .skinning;
|
|
400
|
-
}
|
|
401
437
|
else
|
|
402
|
-
{
|
|
403
438
|
this .skinning = Function .prototype
|
|
404
|
-
}
|
|
405
439
|
|
|
406
440
|
this .changed = true;
|
|
407
441
|
},
|
|
@@ -415,9 +449,9 @@ Object .assign (Object .setPrototypeOf (HAnimHumanoid .prototype, (X3DChildNode_
|
|
|
415
449
|
{
|
|
416
450
|
const
|
|
417
451
|
invModelMatrix = new (Matrix4_default()) (),
|
|
418
|
-
vector = new (Vector3_default()) (0, 0, 0),
|
|
419
452
|
rest = new (Vector3_default()) (0, 0, 0),
|
|
420
453
|
skin = new (Vector3_default()) (0, 0, 0),
|
|
454
|
+
vector = new (Vector3_default()) (0, 0, 0),
|
|
421
455
|
point = new (Vector3_default()) (0, 0, 0);
|
|
422
456
|
|
|
423
457
|
return function (type, renderObject)
|
|
@@ -431,31 +465,36 @@ Object .assign (Object .setPrototypeOf (HAnimHumanoid .prototype, (X3DChildNode_
|
|
|
431
465
|
this .changed = false;
|
|
432
466
|
|
|
433
467
|
const
|
|
434
|
-
jointNodes
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
468
|
+
jointNodes = this .jointNodes,
|
|
469
|
+
jointNodesLength = jointNodes .length,
|
|
470
|
+
jointBindingMatrices = this .jointBindingMatrices,
|
|
471
|
+
skinBindingNormal = this .skinBindingNormal,
|
|
472
|
+
skinBindingCoord = this .skinBindingCoord,
|
|
473
|
+
skinNormalNode = this .skinNormalNode,
|
|
474
|
+
skinCoordNode = this .skinCoordNode;
|
|
439
475
|
|
|
440
476
|
// Reset skin normals and coords.
|
|
441
477
|
|
|
442
478
|
if (skinNormalNode)
|
|
443
|
-
skinNormalNode ._vector .assign (
|
|
479
|
+
skinNormalNode ._vector .assign (skinBindingNormal ._vector);
|
|
444
480
|
|
|
445
|
-
skinCoordNode ._point .assign (
|
|
481
|
+
skinCoordNode ._point .assign (skinBindingCoord ._point);
|
|
446
482
|
|
|
447
483
|
// Determine inverse model matrix of humanoid.
|
|
448
484
|
|
|
449
|
-
invModelMatrix .assign (this .transformNode .getMatrix ())
|
|
485
|
+
invModelMatrix .assign (this .transformNode .getMatrix ())
|
|
486
|
+
.multRight (renderObject .getModelViewMatrix () .get ()) .inverse ();
|
|
450
487
|
|
|
451
488
|
// Apply joint transformations.
|
|
452
489
|
|
|
453
|
-
for (
|
|
490
|
+
for (let i = 0; i < jointNodesLength; ++ i)
|
|
454
491
|
{
|
|
455
492
|
const
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
493
|
+
jointNode = jointNodes [i],
|
|
494
|
+
jointBindingMatrix = jointBindingMatrices [i],
|
|
495
|
+
jointMatrix = jointNode .getModelMatrix () .multRight (invModelMatrix) .multLeft (jointBindingMatrix),
|
|
496
|
+
displacerNodes = jointNode .getDisplacers (),
|
|
497
|
+
skinCoordIndexLength = jointNode ._skinCoordIndex .length;
|
|
459
498
|
|
|
460
499
|
for (const displacerNode of displacerNodes)
|
|
461
500
|
{
|
|
@@ -493,15 +532,15 @@ Object .assign (Object .setPrototypeOf (HAnimHumanoid .prototype, (X3DChildNode_
|
|
|
493
532
|
|
|
494
533
|
if (skinNormalNode)
|
|
495
534
|
{
|
|
496
|
-
rest .assign (
|
|
535
|
+
rest .assign (skinBindingNormal .get1Vector (index, vector));
|
|
497
536
|
skinNormalNode .get1Vector (index, skin);
|
|
498
537
|
normalMatrix .multVecMatrix (vector) .subtract (rest) .multiply (weight) .add (skin);
|
|
499
538
|
skinNormalNode .set1Vector (index, vector);
|
|
500
|
-
//
|
|
539
|
+
// Let the shader normalize the normals.
|
|
501
540
|
}
|
|
502
541
|
|
|
503
542
|
//skin += (rest * J - rest) * weight
|
|
504
|
-
rest .assign (
|
|
543
|
+
rest .assign (skinBindingCoord .get1Point (index, point));
|
|
505
544
|
skinCoordNode .get1Point (index, skin);
|
|
506
545
|
jointMatrix .multVecMatrix (point) .subtract (rest) .multiply (weight) .add (skin);
|
|
507
546
|
skinCoordNode .set1Point (index, point);
|
|
@@ -511,31 +550,31 @@ Object .assign (Object .setPrototypeOf (HAnimHumanoid .prototype, (X3DChildNode_
|
|
|
511
550
|
})(),
|
|
512
551
|
toVRMLStream (generator)
|
|
513
552
|
{
|
|
514
|
-
if (this .skinCoordNode)
|
|
515
|
-
this .skinCoordNode ._point = this .restCoordNode ._point;
|
|
516
|
-
|
|
517
553
|
if (this .skinNormalNode)
|
|
518
|
-
this .skinNormalNode ._vector = this .
|
|
554
|
+
this .skinNormalNode ._vector = this .skinBindingNormal ._vector;
|
|
555
|
+
|
|
556
|
+
if (this .skinCoordNode)
|
|
557
|
+
this .skinCoordNode ._point = this .skinBindingCoord ._point;
|
|
519
558
|
|
|
520
559
|
X3DChildNode_default().prototype .toVRMLStream .call (this, generator);
|
|
521
560
|
},
|
|
522
561
|
toXMLStream (generator)
|
|
523
562
|
{
|
|
524
|
-
if (this .skinCoordNode)
|
|
525
|
-
this .skinCoordNode ._point = this .restCoordNode ._point;
|
|
526
|
-
|
|
527
563
|
if (this .skinNormalNode)
|
|
528
|
-
this .skinNormalNode ._vector = this .
|
|
564
|
+
this .skinNormalNode ._vector = this .skinBindingNormal ._vector;
|
|
565
|
+
|
|
566
|
+
if (this .skinCoordNode)
|
|
567
|
+
this .skinCoordNode ._point = this .skinBindingCoord ._point;
|
|
529
568
|
|
|
530
569
|
X3DChildNode_default().prototype .toXMLStream .call (this, generator);
|
|
531
570
|
},
|
|
532
571
|
toJSONStream (generator)
|
|
533
572
|
{
|
|
534
|
-
if (this .skinCoordNode)
|
|
535
|
-
this .skinCoordNode ._point = this .restCoordNode ._point;
|
|
536
|
-
|
|
537
573
|
if (this .skinNormalNode)
|
|
538
|
-
this .skinNormalNode ._vector = this .
|
|
574
|
+
this .skinNormalNode ._vector = this .skinBindingNormal ._vector;
|
|
575
|
+
|
|
576
|
+
if (this .skinCoordNode)
|
|
577
|
+
this .skinCoordNode ._point = this .skinBindingCoord ._point;
|
|
539
578
|
|
|
540
579
|
X3DChildNode_default().prototype .toJSONStream .call (this, generator);
|
|
541
580
|
},
|
|
@@ -572,31 +611,31 @@ Object .defineProperties (HAnimHumanoid,
|
|
|
572
611
|
{
|
|
573
612
|
value: new (FieldDefinitionArray_default()) ([
|
|
574
613
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
|
614
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "version", new (Fields_default()).SFString ()),
|
|
575
615
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
|
|
576
616
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "name", new (Fields_default()).SFString ()),
|
|
577
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "version", new (Fields_default()).SFString ()),
|
|
578
617
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "info", new (Fields_default()).MFString ()),
|
|
579
618
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "translation", new (Fields_default()).SFVec3f ()),
|
|
580
619
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "rotation", new (Fields_default()).SFRotation ()),
|
|
581
620
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "scale", new (Fields_default()).SFVec3f (1, 1, 1)),
|
|
582
621
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "scaleOrientation", new (Fields_default()).SFRotation ()),
|
|
583
622
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "center", new (Fields_default()).SFVec3f ()),
|
|
584
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "jointBindingPositions", new (Fields_default()).MFVec3f ()),
|
|
585
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "jointBindingRotations", new (Fields_default()).MFRotation ()),
|
|
586
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "jointBindingScales", new (Fields_default()).MFVec3f ()),
|
|
587
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motionsEnabled", new (Fields_default()).MFBool ()),
|
|
588
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "loa", new (Fields_default()).SFInt32 (-1)),
|
|
589
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "skeletalConfiguration", new (Fields_default()).SFString ("BASIC")),
|
|
590
623
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
|
|
591
624
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "bboxDisplay", new (Fields_default()).SFBool ()),
|
|
592
625
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxSize", new (Fields_default()).SFVec3f (-1, -1, -1)),
|
|
593
626
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "bboxCenter", new (Fields_default()).SFVec3f ()),
|
|
627
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "loa", new (Fields_default()).SFInt32 (-1)),
|
|
628
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "skeletalConfiguration", new (Fields_default()).SFString ("BASIC")),
|
|
594
629
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "skeleton", new (Fields_default()).MFNode ()),
|
|
595
630
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "viewpoints", new (Fields_default()).MFNode ()),
|
|
596
631
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "sites", new (Fields_default()).MFNode ()),
|
|
597
632
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "segments", new (Fields_default()).MFNode ()),
|
|
598
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "
|
|
633
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motionsEnabled", new (Fields_default()).MFBool ()),
|
|
599
634
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "motions", new (Fields_default()).MFNode ()),
|
|
635
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "jointBindingPositions", new (Fields_default()).MFVec3f ()),
|
|
636
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "jointBindingRotations", new (Fields_default()).MFRotation ()),
|
|
637
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "jointBindingScales", new (Fields_default()).MFVec3f ()),
|
|
638
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "joints", new (Fields_default()).MFNode ()),
|
|
600
639
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "skinBindingNormal", new (Fields_default()).SFNode ()),
|
|
601
640
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "skinBindingCoord", new (Fields_default()).SFNode ()),
|
|
602
641
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "skinNormal", new (Fields_default()).SFNode ()),
|
|
@@ -613,7 +652,7 @@ const HAnimHumanoid_default_ = HAnimHumanoid;
|
|
|
613
652
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimHumanoid", HAnimHumanoid_default_);
|
|
614
653
|
/* harmony default export */ const HAnim_HAnimHumanoid = (HAnimHumanoid_default_);
|
|
615
654
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DTransformNode\")"
|
|
616
|
-
const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
655
|
+
const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Components/Grouping/X3DTransformNode");
|
|
617
656
|
var X3DTransformNode_default = /*#__PURE__*/__webpack_require__.n(X3DTransformNode_namespaceObject);
|
|
618
657
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimJoint.js
|
|
619
658
|
/*******************************************************************************
|
|
@@ -905,16 +944,16 @@ Object .defineProperties (HAnimMotion,
|
|
|
905
944
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
|
906
945
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOnly, "next", new (Fields_default()).SFBool ()),
|
|
907
946
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOnly, "previous", new (Fields_default()).SFBool ()),
|
|
947
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "startFrame", new (Fields_default()).SFInt32 ()),
|
|
948
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "endFrame", new (Fields_default()).SFInt32 ()),
|
|
908
949
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "frameDuration", new (Fields_default()).SFTime (0.1)),
|
|
909
950
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "frameIncrement", new (Fields_default()).SFInt32 (1)),
|
|
910
951
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "frameIndex", new (Fields_default()).SFInt32 (0)),
|
|
911
952
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "loop", new (Fields_default()).SFBool ()),
|
|
912
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "channels", new (Fields_default()).SFString ()),
|
|
913
953
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "channelsEnabled", new (Fields_default()).MFBool ()),
|
|
954
|
+
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "channels", new (Fields_default()).SFString ()),
|
|
914
955
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "joints", new (Fields_default()).SFString ()),
|
|
915
956
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "loa", new (Fields_default()).SFInt32 (-1)),
|
|
916
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "startFrame", new (Fields_default()).SFInt32 ()),
|
|
917
|
-
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "endFrame", new (Fields_default()).SFInt32 ()),
|
|
918
957
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "values", new (Fields_default()).MFFloat ()),
|
|
919
958
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "cycleTime", new (Fields_default()).SFTime ()),
|
|
920
959
|
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "elapsedTime", new (Fields_default()).SFTime ()),
|
|
@@ -930,7 +969,7 @@ const HAnimMotion_default_ = HAnimMotion;
|
|
|
930
969
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimMotion", HAnimMotion_default_);
|
|
931
970
|
/* harmony default export */ const HAnim_HAnimMotion = (HAnimMotion_default_);
|
|
932
971
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
|
|
933
|
-
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
972
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
|
|
934
973
|
var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
|
|
935
974
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimSegment.js
|
|
936
975
|
/*******************************************************************************
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.9.0 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Fields");var o=e.n(i);const s=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/FieldDefinitionArray");var u=e.n(a);const l=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var d=e.n(l);const p=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/X3DConstants");var w=e.n(p);const c=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Namespace");var m=e.n(c);function h(e){d().call(this,e),this.addType(w().HAnimDisplacer),this._displacements.setUnit("length")}Object.setPrototypeOf(h.prototype,d().prototype),Object.defineProperties(h,{typeName:{value:"HAnimDisplacer",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"displacers",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"weight",new(o().SFFloat)),new(r())(w().inputOutput,"displacements",new(o().MFVec3f))]),enumerable:!0}});const _=h;m().set("x_ite/Components/HAnim/HAnimDisplacer",_);const N=_,O=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Core/X3DChildNode");var b=e.n(O);const f=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/Group");var F=e.n(f);const S=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/Transform");var g=e.n(S);const y=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/X3DBoundedObject");var v=e.n(y);const C=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Rendering/TraverseType");var x=e.n(C);const k=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Base/X3DCast");var I=e.n(k);const M=window[Symbol.for("X_ITE.X3D-8.9.0")].require("standard/Math/Numbers/Matrix4");var j=e.n(M);const A=window[Symbol.for("X_ITE.X3D-8.9.0")].require("standard/Math/Numbers/Vector3");var D=e.n(A);function X(e){b().call(this,e),v().call(this,e),this.addType(w().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(F())(e),this.viewpointsNode=new(F())(e),this.skinNode=new(F())(e),this.transformNode=new(g())(e),this.jointNodes=[],this.skinNormalNode=null,this.skinCoordNode=null,this.restNormalNode=null,this.restCoordNode=null,this.changed=!1}Object.assign(Object.setPrototypeOf(X.prototype,b().prototype),v().prototype,{initialize(){b().prototype.initialize.call(this),v().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(w().HAnimJoint,w().HAnimSite),this.viewpointsNode.setAllowedTypes(w().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._visible.addFieldInterest(this.transformNode._visible),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._visible=this._visible,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject()),this._joints.addInterest("set_joints__",this),this._skinNormal.addInterest("set_skinNormal__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_joints__(),this.set_skinNormal__(),this.set_skinCoord__()},getBBox(e,t){return this.transformNode.getBBox(e,t)},set_joints__(){const e=this.jointNodes;for(const t of e)t.removeInterest("set_joint__",this);e.length=0;for(const t of this._joints){const n=I()(w().HAnimJoint,t);n&&e.push(n)}for(const t of e)t.addInterest("set_joint__",this);this.set_joint__()},set_joint__(){this.changed=!0},set_skinNormal__(){this.restNormalNode=null,this.skinNormalNode=I()(w().X3DNormalNode,this._skinNormal),this.skinNormalNode&&(this.restNormalNode=this.skinNormalNode.copy()),this.changed=!0},set_skinCoord__(){this.restCoordNode=null,this.skinCoordNode=I()(w().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(this.restCoordNode=this.skinCoordNode.copy(),delete this.skinning):this.skinning=Function.prototype,this.changed=!0},traverse(e,t){this.transformNode.traverse(e,t),this.skinning(e,t)},skinning:(()=>{const e=new(j()),t=new(D())(0,0,0),n=new(D())(0,0,0),i=new(D())(0,0,0),o=new(D())(0,0,0);return function(s,r){if(s!==x().CAMERA)return;if(!this.changed)return;this.changed=!1;const a=this.jointNodes,u=this.skinNormalNode,l=this.skinCoordNode,d=this.restNormalNode,p=this.restCoordNode;u&&u._vector.assign(d._vector),l._point.assign(p._point),e.assign(this.transformNode.getMatrix()).multRight(r.getModelViewMatrix().get()).inverse();for(const s of a){const r=s._skinCoordIndex.length,a=s.getModelMatrix().multRight(e),w=s.getDisplacers();for(const e of w){const t=e._coordIndex.getValue(),n=e._coordIndex.length,s=e._weight.getValue(),r=e._displacements.getValue(),u=e._displacements.length;for(let e=0;e<n;++e){const n=3*e,d=t[e],p=e<u?o.set(r[n],r[n+1],r[n+2]):o.assign(D().Zero);l.get1Point(d,i),a.multDirMatrix(p).multiply(s).add(i),l.set1Point(d,p)}}const c=u?a.submatrix.transpose().inverse():null,m=s._skinCoordIndex.getValue(),h=s._skinCoordWeight.getValue(),_=s._skinCoordWeight.length;for(let e=0;e<r;++e){const s=m[e],r=e<_?h[e]:1;u&&(n.assign(d.get1Vector(s,t)),u.get1Vector(s,i),c.multVecMatrix(t).subtract(n).multiply(r).add(i),u.set1Vector(s,t)),n.assign(p.get1Point(s,o)),l.get1Point(s,i),a.multVecMatrix(o).subtract(n).multiply(r).add(i),l.set1Point(s,o)}}}})(),toVRMLStream(e){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),b().prototype.toVRMLStream.call(this,e)},toXMLStream(e){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),b().prototype.toXMLStream.call(this,e)},toJSONStream(e){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),b().prototype.toJSONStream.call(this,e)},dispose(){v().prototype.dispose.call(this),b().prototype.dispose.call(this)}}),Object.defineProperties(X,{typeName:{value:"HAnimHumanoid",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"version",new(o().SFString)),new(r())(w().inputOutput,"info",new(o().MFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(w().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(w().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(w().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOutput,"skeleton",new(o().MFNode)),new(r())(w().inputOutput,"viewpoints",new(o().MFNode)),new(r())(w().inputOutput,"sites",new(o().MFNode)),new(r())(w().inputOutput,"segments",new(o().MFNode)),new(r())(w().inputOutput,"joints",new(o().MFNode)),new(r())(w().inputOutput,"motions",new(o().MFNode)),new(r())(w().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(w().inputOutput,"skinNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinCoord",new(o().SFNode)),new(r())(w().inputOutput,"skin",new(o().MFNode))]),enumerable:!0}});const H=X;m().set("x_ite/Components/HAnim/HAnimHumanoid",H);const T=H,V=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/X3DTransformNode");var z=e.n(V);function B(e){z().call(this,e),this.addType(w().HAnimJoint),this.setAllowedTypes(w().HAnimJoint,w().HAnimSegment,w().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(j())}Object.assign(Object.setPrototypeOf(B.prototype,z().prototype),{initialize(){z().prototype.initialize.call(this),this._skinCoordIndex.addInterest("set_skinCoordIndex__",this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject(e){z().prototype.setCameraObject.call(this,e||!!this._skinCoordIndex.length)},getModelMatrix(){return this.modelMatrix},getDisplacers(){return this.displacerNodes},set_skinCoordIndex__(){this.set_cameraObjects__()},set_displacers__(){const e=this.displacerNodes;e.length=0;for(const t of this._displacers){const n=I()(w().HAnimDisplacer,t);n&&e.push(n)}},traverse(e,t){e===x().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(this.getMatrix()).multRight(t.getModelViewMatrix().get()),z().prototype.traverse.call(this,e,t)},groupTraverse(e,t){e===x().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(t.getModelViewMatrix().get()),z().prototype.groupTraverse.call(this,e,t)}}),Object.defineProperties(B,{typeName:{value:"HAnimJoint",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"llimit",new(o().MFFloat)),new(r())(w().inputOutput,"ulimit",new(o().MFFloat)),new(r())(w().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(w().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const P=B;m().set("x_ite/Components/HAnim/HAnimJoint",P);const R=P;function E(e){b().call(this,e),this.addType(w().HAnimMotion)}Object.assign(Object.setPrototypeOf(E.prototype,b().prototype),{initialize(){b().prototype.initialize.call(this)}}),Object.defineProperties(E,{typeName:{value:"HAnimMotion",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["4.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(w().inputOnly,"next",new(o().SFBool)),new(r())(w().inputOnly,"previous",new(o().SFBool)),new(r())(w().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(w().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(w().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(w().inputOutput,"loop",new(o().SFBool)),new(r())(w().inputOutput,"channels",new(o().SFString)),new(r())(w().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"joints",new(o().SFString)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"startFrame",new(o().SFInt32)),new(r())(w().inputOutput,"endFrame",new(o().SFInt32)),new(r())(w().inputOutput,"values",new(o().MFFloat)),new(r())(w().outputOnly,"cycleTime",new(o().SFTime)),new(r())(w().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(w().outputOnly,"frameCount",new(o().SFInt32))]),enumerable:!0}});const q=E;m().set("x_ite/Components/HAnim/HAnimMotion",q);const G=q,J=window[Symbol.for("X_ITE.X3D-8.9.0")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=e.n(J);function L(e){U().call(this,e),this.addType(w().HAnimSegment),this._mass.setUnit("mass")}Object.setPrototypeOf(L.prototype,U().prototype),Object.defineProperties(L,{typeName:{value:"HAnimSegment",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"mass",new(o().SFFloat)),new(r())(w().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(w().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"coord",new(o().SFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const W=L;m().set("x_ite/Components/HAnim/HAnimSegment",W);const Z=W;function K(e){z().call(this,e),this.addType(w().HAnimSite)}Object.setPrototypeOf(K.prototype,z().prototype),Object.defineProperties(K,{typeName:{value:"HAnimSite",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const Q=K;m().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().add({name:"HAnim",concreteNodes:[N,T,R,G,Z,Y],abstractNodes:[]});const $=void 0;m().set("assets/components/HAnim",$)})();
|
|
1
|
+
/* X_ITE v8.9.1 */(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components");var n=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Fields");var o=e.n(i);const s=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Base/FieldDefinitionArray");var d=e.n(a);const u=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var l=e.n(u);const p=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Base/X3DConstants");var w=e.n(p);const h=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Namespace");var m=e.n(h);function c(e){l().call(this,e),this.addType(w().HAnimDisplacer),this._displacements.setUnit("length")}Object.setPrototypeOf(c.prototype,l().prototype),Object.defineProperties(c,{typeName:{value:"HAnimDisplacer",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"displacers",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"weight",new(o().SFFloat)),new(r())(w().inputOutput,"displacements",new(o().MFVec3f))]),enumerable:!0}});const _=c;m().set("x_ite/Components/HAnim/HAnimDisplacer",_);const N=_,O=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Core/X3DChildNode");var b=e.n(O);const g=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/Group");var f=e.n(g);const F=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/Transform");var S=e.n(F);const y=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/X3DBoundedObject");var k=e.n(y);const v=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Rendering/TraverseType");var C=e.n(v);const x=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Base/X3DCast");var I=e.n(x);const M=window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Numbers/Vector3");var j=e.n(M);window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Numbers/Rotation4");const B=window[Symbol.for("X_ITE.X3D-8.9.1")].require("standard/Math/Numbers/Matrix4");var D=e.n(B);function A(e){b().call(this,e),k().call(this,e),this.addType(w().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(f())(e),this.viewpointsNode=new(f())(e),this.skinNode=new(f())(e),this.transformNode=new(S())(e),this.jointNodes=[],this.jointBindingMatrices=[],this.skinBindingNormal=null,this.skinBindingCoord=null,this.skinNormalNode=null,this.skinCoordNode=null,this.changed=!1}Object.assign(Object.setPrototypeOf(A.prototype,b().prototype),k().prototype,{initialize(){b().prototype.initialize.call(this),k().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(w().HAnimJoint,w().HAnimSite),this.viewpointsNode.setAllowedTypes(w().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._visible.addFieldInterest(this.transformNode._visible),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._visible=this._visible,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject()),this._joints.addInterest("set_joints__",this),this._jointBindingPositions.addInterest("set_joints__",this),this._jointBindingRotations.addInterest("set_joints__",this),this._jointBindingScales.addInterest("set_joints__",this),this._skinBindingNormal.addInterest("set_skinBindingNormal__",this),this._skinBindingCoord.addInterest("set_skinBindingCoord__",this),this._skinNormal.addInterest("set_skinNormal__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_joints__(),this.set_skinBindingNormal__(),this.set_skinBindingCoord__()},getBBox(e,t){return this.transformNode.getBBox(e,t)},set_joints__(){const e=this.jointNodes,t=this.jointBindingMatrices,n=this._jointBindingPositions,i=this._jointBindingRotations,o=this._jointBindingScales;for(const t of e)t.removeInterest("set_joint__",this);e.length=0,t.length=0;for(const[s,r]of this._joints.entries()){const a=I()(w().HAnimJoint,r);if(a){const r=new(D());n.length&&r.translate(n[Math.min(s,n.length-1)].getValue()),i.length&&r.rotate(i[Math.min(s,i.length-1)].getValue()),o.length&&r.scale(o[Math.min(s,o.length-1)].getValue()),e.push(a),t.push(r)}}for(const t of e)t.addInterest("set_joint__",this);this.set_joint__()},set_joint__(){this.changed=!0},set_skinBindingNormal__(){this.skinBindingNormal=I()(w().X3DNormalNode,this._skinBindingNormal),this.set_skinNormal__()},set_skinBindingCoord__(){this.skinBindingCoord=I()(w().X3DCoordinateNode,this._skinBindingCoord),this.set_skinCoord__()},set_skinNormal__(){this.skinNormalNode=I()(w().X3DNormalNode,this._skinNormal),!this.skinBindingNormal&&this.skinNormalNode&&(this.skinBindingNormal=this.skinNormalNode.copy()),this.changed=!0},set_skinCoord__(){this.skinCoordNode=I()(w().X3DCoordinateNode,this._skinCoord),!this.skinBindingCoord&&this.skinCoordNode&&(this.skinBindingCoord=this.skinCoordNode.copy()),this.skinCoordNode?delete this.skinning:this.skinning=Function.prototype,this.changed=!0},traverse(e,t){this.transformNode.traverse(e,t),this.skinning(e,t)},skinning:(()=>{const e=new(D()),t=new(j())(0,0,0),n=new(j())(0,0,0),i=new(j())(0,0,0),o=new(j())(0,0,0);return function(s,r){if(s!==C().CAMERA)return;if(!this.changed)return;this.changed=!1;const a=this.jointNodes,d=a.length,u=this.jointBindingMatrices,l=this.skinBindingNormal,p=this.skinBindingCoord,w=this.skinNormalNode,h=this.skinCoordNode;w&&w._vector.assign(l._vector),h._point.assign(p._point),e.assign(this.transformNode.getMatrix()).multRight(r.getModelViewMatrix().get()).inverse();for(let s=0;s<d;++s){const r=a[s],d=u[s],m=r.getModelMatrix().multRight(e).multLeft(d),c=r.getDisplacers(),_=r._skinCoordIndex.length;for(const e of c){const t=e._coordIndex.getValue(),i=e._coordIndex.length,s=e._weight.getValue(),r=e._displacements.getValue(),a=e._displacements.length;for(let e=0;e<i;++e){const i=3*e,d=t[e],u=e<a?o.set(r[i],r[i+1],r[i+2]):o.assign(j().Zero);h.get1Point(d,n),m.multDirMatrix(u).multiply(s).add(n),h.set1Point(d,u)}}const N=w?m.submatrix.transpose().inverse():null,O=r._skinCoordIndex.getValue(),b=r._skinCoordWeight.getValue(),g=r._skinCoordWeight.length;for(let e=0;e<_;++e){const s=O[e],r=e<g?b[e]:1;w&&(t.assign(l.get1Vector(s,i)),w.get1Vector(s,n),N.multVecMatrix(i).subtract(t).multiply(r).add(n),w.set1Vector(s,i)),t.assign(p.get1Point(s,o)),h.get1Point(s,n),m.multVecMatrix(o).subtract(t).multiply(r).add(n),h.set1Point(s,o)}}}})(),toVRMLStream(e){this.skinNormalNode&&(this.skinNormalNode._vector=this.skinBindingNormal._vector),this.skinCoordNode&&(this.skinCoordNode._point=this.skinBindingCoord._point),b().prototype.toVRMLStream.call(this,e)},toXMLStream(e){this.skinNormalNode&&(this.skinNormalNode._vector=this.skinBindingNormal._vector),this.skinCoordNode&&(this.skinCoordNode._point=this.skinBindingCoord._point),b().prototype.toXMLStream.call(this,e)},toJSONStream(e){this.skinNormalNode&&(this.skinNormalNode._vector=this.skinBindingNormal._vector),this.skinCoordNode&&(this.skinCoordNode._point=this.skinBindingCoord._point),b().prototype.toJSONStream.call(this,e)},dispose(){k().prototype.dispose.call(this),b().prototype.dispose.call(this)}}),Object.defineProperties(A,{typeName:{value:"HAnimHumanoid",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"version",new(o().SFString)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"info",new(o().MFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(w().inputOutput,"skeleton",new(o().MFNode)),new(r())(w().inputOutput,"viewpoints",new(o().MFNode)),new(r())(w().inputOutput,"sites",new(o().MFNode)),new(r())(w().inputOutput,"segments",new(o().MFNode)),new(r())(w().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"motions",new(o().MFNode)),new(r())(w().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(w().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(w().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(w().inputOutput,"joints",new(o().MFNode)),new(r())(w().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(w().inputOutput,"skinNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinCoord",new(o().SFNode)),new(r())(w().inputOutput,"skin",new(o().MFNode))]),enumerable:!0}});const X=A;m().set("x_ite/Components/HAnim/HAnimHumanoid",X);const H=X,V=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/X3DTransformNode");var T=e.n(V);function z(e){T().call(this,e),this.addType(w().HAnimJoint),this.setAllowedTypes(w().HAnimJoint,w().HAnimSegment,w().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(D())}Object.assign(Object.setPrototypeOf(z.prototype,T().prototype),{initialize(){T().prototype.initialize.call(this),this._skinCoordIndex.addInterest("set_skinCoordIndex__",this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject(e){T().prototype.setCameraObject.call(this,e||!!this._skinCoordIndex.length)},getModelMatrix(){return this.modelMatrix},getDisplacers(){return this.displacerNodes},set_skinCoordIndex__(){this.set_cameraObjects__()},set_displacers__(){const e=this.displacerNodes;e.length=0;for(const t of this._displacers){const n=I()(w().HAnimDisplacer,t);n&&e.push(n)}},traverse(e,t){e===C().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(this.getMatrix()).multRight(t.getModelViewMatrix().get()),T().prototype.traverse.call(this,e,t)},groupTraverse(e,t){e===C().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(t.getModelViewMatrix().get()),T().prototype.groupTraverse.call(this,e,t)}}),Object.defineProperties(z,{typeName:{value:"HAnimJoint",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"llimit",new(o().MFFloat)),new(r())(w().inputOutput,"ulimit",new(o().MFFloat)),new(r())(w().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(w().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const P=z;m().set("x_ite/Components/HAnim/HAnimJoint",P);const R=P;function E(e){b().call(this,e),this.addType(w().HAnimMotion)}Object.assign(Object.setPrototypeOf(E.prototype,b().prototype),{initialize(){b().prototype.initialize.call(this)}}),Object.defineProperties(E,{typeName:{value:"HAnimMotion",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["4.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(w().inputOnly,"next",new(o().SFBool)),new(r())(w().inputOnly,"previous",new(o().SFBool)),new(r())(w().inputOutput,"startFrame",new(o().SFInt32)),new(r())(w().inputOutput,"endFrame",new(o().SFInt32)),new(r())(w().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(w().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(w().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(w().inputOutput,"loop",new(o().SFBool)),new(r())(w().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"channels",new(o().SFString)),new(r())(w().inputOutput,"joints",new(o().SFString)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"values",new(o().MFFloat)),new(r())(w().outputOnly,"cycleTime",new(o().SFTime)),new(r())(w().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(w().outputOnly,"frameCount",new(o().SFInt32))]),enumerable:!0}});const q=E;m().set("x_ite/Components/HAnim/HAnimMotion",q);const G=q,J=window[Symbol.for("X_ITE.X3D-8.9.1")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=e.n(J);function L(e){U().call(this,e),this.addType(w().HAnimSegment),this._mass.setUnit("mass")}Object.setPrototypeOf(L.prototype,U().prototype),Object.defineProperties(L,{typeName:{value:"HAnimSegment",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"mass",new(o().SFFloat)),new(r())(w().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(w().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"coord",new(o().SFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const W=L;m().set("x_ite/Components/HAnim/HAnimSegment",W);const Z=W;function K(e){T().call(this,e),this.addType(w().HAnimSite)}Object.setPrototypeOf(K.prototype,T().prototype),Object.defineProperties(K,{typeName:{value:"HAnimSite",enumerable:!0},componentName:{value:"HAnim",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(d())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const Q=K;m().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().add({name:"HAnim",concreteNodes:[N,H,R,G,Z,Y],abstractNodes:[]});const $=void 0;m().set("assets/components/HAnim",$)})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.9.
|
|
1
|
+
/* X_ITE v8.9.1 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,13 +39,13 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Components");
|
|
43
43
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
44
44
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
45
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
48
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
48
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Namespace");
|
|
49
49
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js
|
|
51
51
|
/*******************************************************************************
|
|
@@ -150,16 +150,16 @@ const __default__ = X3DKeyDeviceSensorContext;
|
|
|
150
150
|
Namespace_default().set ("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext", __default__);
|
|
151
151
|
/* harmony default export */ const KeyDeviceSensor_X3DKeyDeviceSensorContext = (__default__);
|
|
152
152
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
153
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
153
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
154
154
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
155
155
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
156
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
156
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
157
157
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
158
158
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
|
|
159
|
-
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
159
|
+
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Components/Core/X3DSensorNode");
|
|
160
160
|
var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
|
|
161
161
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
162
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.
|
|
162
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.9.1")] .require ("x_ite/Base/X3DConstants");
|
|
163
163
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
164
164
|
;// CONCATENATED MODULE: ./src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js
|
|
165
165
|
/*******************************************************************************
|