x_ite 8.6.5 → 8.6.7

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.
Files changed (80) hide show
  1. package/Makefile +1 -0
  2. package/dist/assets/components/Annotation.js +13 -13
  3. package/dist/assets/components/Annotation.min.js +1 -1
  4. package/dist/assets/components/CADGeometry.js +13 -13
  5. package/dist/assets/components/CADGeometry.min.js +1 -1
  6. package/dist/assets/components/CubeMapTexturing.js +26 -26
  7. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  8. package/dist/assets/components/DIS.js +13 -13
  9. package/dist/assets/components/DIS.min.js +1 -1
  10. package/dist/assets/components/EventUtilities.js +9 -9
  11. package/dist/assets/components/EventUtilities.min.js +1 -1
  12. package/dist/assets/components/Geometry2D.js +19 -19
  13. package/dist/assets/components/Geometry2D.min.js +1 -1
  14. package/dist/assets/components/Geospatial.js +33 -33
  15. package/dist/assets/components/Geospatial.min.js +1 -1
  16. package/dist/assets/components/HAnim.js +18 -18
  17. package/dist/assets/components/HAnim.min.js +1 -1
  18. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  19. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  20. package/dist/assets/components/Layout.js +27 -27
  21. package/dist/assets/components/Layout.min.js +1 -1
  22. package/dist/assets/components/NURBS.js +24 -24
  23. package/dist/assets/components/NURBS.min.js +1 -1
  24. package/dist/assets/components/ParticleSystems.js +23 -23
  25. package/dist/assets/components/ParticleSystems.min.js +1 -1
  26. package/dist/assets/components/Picking.js +19 -19
  27. package/dist/assets/components/Picking.min.js +1 -1
  28. package/dist/assets/components/RigidBodyPhysics.js +18 -18
  29. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  30. package/dist/assets/components/Scripting.js +28 -28
  31. package/dist/assets/components/Scripting.min.js +1 -1
  32. package/dist/assets/components/Text.js +24 -24
  33. package/dist/assets/components/Text.min.js +1 -1
  34. package/dist/assets/components/TextureProjector.js +14 -14
  35. package/dist/assets/components/TextureProjector.min.js +1 -1
  36. package/dist/assets/components/Texturing3D.js +34 -34
  37. package/dist/assets/components/Texturing3D.min.js +1 -1
  38. package/dist/assets/components/VolumeRendering.js +19 -19
  39. package/dist/assets/components/VolumeRendering.min.js +1 -1
  40. package/dist/assets/components/X_ITE.js +9 -9
  41. package/dist/assets/components/X_ITE.min.js +1 -1
  42. package/dist/assets/lib/draco_decoder_gltf.js +29 -0
  43. package/dist/x_ite.css +1 -1
  44. package/dist/x_ite.js +2693 -2428
  45. package/dist/x_ite.min.js +1 -1
  46. package/dist/x_ite.zip +0 -0
  47. package/docs/_config.yml +1 -1
  48. package/docs/_posts/components/Navigation/NavigationInfo.md +8 -3
  49. package/docs/_posts/laboratory/x3d-file-converter.md +5 -0
  50. package/docs/_tabs/laboratory.md +2 -2
  51. package/docs/laboratory/gltf-sample-viewer.html +72 -3
  52. package/package.json +2 -2
  53. package/src/assets/lib/draco_decoder_gltf.js +29 -0
  54. package/src/assets/shaders/webgl1/include/Particle.glsl.js +7 -0
  55. package/src/assets/shaders/webgl1/include/Vertex.glsl.js +3 -2
  56. package/src/assets/shaders/webgl2/include/Particle.glsl.js +18 -5
  57. package/src/standard/Utility/ObjectCache.js +9 -10
  58. package/src/x_ite/Base/Events.js +10 -23
  59. package/src/x_ite/Base/X3DObject.js +29 -16
  60. package/src/x_ite/Browser/Networking/URLs.js +4 -0
  61. package/src/x_ite/Browser/Picking/X3DPickingContext.js +1 -1
  62. package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +1 -1
  63. package/src/x_ite/Browser/Shaders/Shaders.js +2 -0
  64. package/src/x_ite/Browser/VERSION.js +1 -1
  65. package/src/x_ite/Browser/X3DBrowser.js +7 -0
  66. package/src/x_ite/Browser/X3DBrowserContext.js +3 -3
  67. package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +1 -1
  68. package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +6 -7
  69. package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -3
  70. package/src/x_ite/Components/Navigation/OrthoViewpoint.js +1 -1
  71. package/src/x_ite/Components/Shape/Material.js +25 -26
  72. package/src/x_ite/Components/Shape/PhysicalMaterial.js +2 -3
  73. package/src/x_ite/Components/Shape/UnlitMaterial.js +2 -3
  74. package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +10 -12
  75. package/src/x_ite/Components/Texturing/ImageTexture.js +7 -17
  76. package/src/x_ite/Components/Texturing/MovieTexture.js +4 -5
  77. package/src/x_ite/Parser/GLTF2Parser.js +194 -36
  78. package/src/x_ite/Parser/SVGParser.js +341 -252
  79. package/src/x_ite/Rendering/X3DRenderObject.js +3 -4
  80. package/webpack.config.js +2 -0
package/dist/x_ite.zip CHANGED
Binary file
package/docs/_config.yml CHANGED
@@ -20,7 +20,7 @@ timezone:
20
20
  # ↓ --------------------------
21
21
 
22
22
  title: X_ITE X3D Browser # the main title
23
- version: 8.6.5 # x_ite latest version
23
+ version: 8.6.7 # x_ite latest version
24
24
  size: 288 # size in kb
25
25
  x3d_latest_version: 4.0 # x3d latest version
26
26
 
@@ -36,13 +36,18 @@ Metadata are not part of the X3D world and not interpreted by the X3D browser, b
36
36
 
37
37
  Setting set_bind true makes this node active setting set_bind false makes this node inactive. Thus setting set_bind true/false will pop/push (enable/disable) this node.
38
38
 
39
- ### MFString [in, out] **type** [ "EXAMINE", "ANY" ] <small>["EXAMINE","WALK","FLY","LOOKAT","EXPLORE","ANY","NONE"]</small>
39
+ ### MFString [in, out] **type** [ "EXAMINE", "ANY" ] <small>["EXAMINE","WALK","FLY","PLANE_create3000.github.io","LOOKAT","EXPLORE","ANY","NONE"]</small>
40
40
 
41
- Enter one or more quoted SFString values: "EXAMINE" "WALK" "FLY" "LOOKAT" "EXPLORE" "ANY" "NONE".
41
+ Enter one or more quoted SFString values: "EXAMINE" "WALK" "FLY" "PLANE_create3000.github.io" "LOOKAT" "EXPLORE" "ANY" "NONE".
42
+
43
+ The PLANE viewer is primarily designed to use with OrthoViewpoint and 2D scenes. You can zoom, which will change the viewport size (center of zoom is mouse pointer), and you can move the scene along the viewport plane.
42
44
 
43
45
  #### Hints
44
46
 
45
- - For inspection of simple objects, usability often improves with type="EXAMINE" "ANY". Types WALK and FLY force strict camera-to-object collision detection. See Collision node for further details on camera-to-object collision detection. MFString arrays can have multiple values, so separate each individual string by quote marks "https://www.web3d.org" "https://www.web3d.org/about" "etc." ] Interchange profile hint: this field may be ignored, applying the default value regardless.
47
+ - For inspection of simple objects, usability often improves with type="EXAMINE" "ANY".
48
+ - Types WALK and FLY force strict camera-to-object collision detection.
49
+ - See Collision node for further details on camera-to-object collision detection.
50
+ - MFString arrays can have multiple values, so separate each individual string by quote marks "https://www.web3d.org" "https://www.web3d.org/about" "etc." ]
46
51
 
47
52
  ### MFFloat [in, out] **avatarSize** [ 0.25, 1.6, 0.75 ] <small>[0,∞)</small>
48
53
 
@@ -114,9 +114,14 @@ $(() =>
114
114
  url = URL .createObjectURL (file);
115
115
 
116
116
  Browser .endUpdate ();
117
+ Browser .setBrowserOption ("PrimitiveQuality", "HIGH");
118
+ Browser .setBrowserOption ("TextureQuality", "HIGH");
117
119
 
118
120
  await Browser .loadURL (new X3D .MFString (url));
119
121
 
122
+ Browser .currentScene .setMetaData ("converter", `${Browser .name} V${Browser .version}, ${Browser .providerUrl}`);
123
+ Browser .currentScene .setMetaData ("converted", new Date () .toUTCString ());
124
+
120
125
  link (mimeType, file .name .replace (/\.[^.]+$/, "") + extension, Browser .currentScene [toString] ());
121
126
  }
122
127
  catch (error)
@@ -41,12 +41,12 @@ table.examples td {
41
41
  </tr>
42
42
  </table>
43
43
 
44
- Also have a look at the [Online X3D File Format Converter](x3d-file-converter).
45
-
46
44
  ## X3D-Tidy
47
45
 
48
46
  [x3d-tidy](https://www.npmjs.com/package/x3d-tidy){:target="_blank"} is a command line X3D file format converter, compressor and beautifier and available on NPM.
49
47
 
48
+ Also have a look at the [Online X3D File Format Converter](x3d-file-converter) powered by X_ITE.
49
+
50
50
  ## D3-X3D
51
51
 
52
52
  [D3-X3D](https://github.com/jamesleesaunders/d3-x3d#d3-x3d){:target="_blank"} is an external JavaScript library that combines the power of **D3.js** with X3D and can be found on GitHub.
@@ -264,6 +264,73 @@ const glb = [
264
264
 
265
265
  glb .server = "https://github.khronos.org/glTF-Sample-Viewer-Release/assets/models/2.0/";
266
266
 
267
+ /* find . -type f -name "*.gltf" | grep "/glTF-Draco/" | sort */
268
+ const draco = [
269
+ "2CylinderEngine/glTF-Draco/2CylinderEngine.gltf",
270
+ "Avocado/glTF-Draco/Avocado.gltf",
271
+ "BarramundiFish/glTF-Draco/BarramundiFish.gltf",
272
+ "BoomBox/glTF-Draco/BoomBox.gltf",
273
+ "Box/glTF-Draco/Box.gltf",
274
+ "BrainStem/glTF-Draco/BrainStem.gltf",
275
+ "Buggy/glTF-Draco/Buggy.gltf",
276
+ "CesiumMan/glTF-Draco/CesiumMan.gltf",
277
+ "CesiumMilkTruck/glTF-Draco/CesiumMilkTruck.gltf",
278
+ "Corset/glTF-Draco/Corset.gltf",
279
+ "Duck/glTF-Draco/Duck.gltf",
280
+ "GearboxAssy/glTF-Draco/GearboxAssy.gltf",
281
+ "Lantern/glTF-Draco/Lantern.gltf",
282
+ "MorphPrimitivesTest/glTF-Draco/MorphPrimitivesTest.gltf",
283
+ "ReciprocatingSaw/glTF-Draco/ReciprocatingSaw.gltf",
284
+ "RiggedFigure/glTF-Draco/RiggedFigure.gltf",
285
+ "RiggedSimple/glTF-Draco/RiggedSimple.gltf",
286
+ "VC/glTF-Draco/VC.gltf",
287
+ "WaterBottle/glTF-Draco/WaterBottle.gltf",
288
+ ];
289
+
290
+ draco .server = "https://github.khronos.org/glTF-Sample-Viewer-Release/assets/models/2.0/";
291
+
292
+ /* find . -type f -name "*.gltf" | grep "/glTF-Embedded//" | sort */
293
+ const embedded = [
294
+ "2CylinderEngine/glTF-Embedded/2CylinderEngine.gltf",
295
+ "AlphaBlendModeTest/glTF-Embedded/AlphaBlendModeTest.gltf",
296
+ "AnimatedTriangle/glTF-Embedded/AnimatedTriangle.gltf",
297
+ "Box/glTF-Embedded/Box.gltf",
298
+ "BoxAnimated/glTF-Embedded/BoxAnimated.gltf",
299
+ "BoxInterleaved/glTF-Embedded/BoxInterleaved.gltf",
300
+ "BoxTextured/glTF-Embedded/BoxTextured.gltf",
301
+ "BoxTexturedNonPowerOfTwo/glTF-Embedded/BoxTexturedNonPowerOfTwo.gltf",
302
+ "BoxVertexColors/glTF-Embedded/BoxVertexColors.gltf",
303
+ "BrainStem/glTF-Embedded/BrainStem.gltf",
304
+ "Buggy/glTF-Embedded/Buggy.gltf",
305
+ "Cameras/glTF-Embedded/Cameras.gltf",
306
+ "CesiumMan/glTF-Embedded/CesiumMan.gltf",
307
+ "CesiumMilkTruck/glTF-Embedded/CesiumMilkTruck.gltf",
308
+ "DamagedHelmet/glTF-Embedded/DamagedHelmet.gltf",
309
+ "Duck/glTF-Embedded/Duck.gltf",
310
+ "GearboxAssy/glTF-Embedded/GearboxAssy.gltf",
311
+ "MetalRoughSpheres/glTF-Embedded/MetalRoughSpheres.gltf",
312
+ "MultiUVTest/glTF-Embedded/MultiUVTest.gltf",
313
+ "MultipleScenes/glTF-Embedded/MultipleScenes.gltf",
314
+ "NormalTangentMirrorTest/glTF-Embedded/NormalTangentMirrorTest.gltf",
315
+ "NormalTangentTest/glTF-Embedded/NormalTangentTest.gltf",
316
+ "OrientationTest/glTF-Embedded/OrientationTest.gltf",
317
+ "ReciprocatingSaw/glTF-Embedded/ReciprocatingSaw.gltf",
318
+ "RiggedFigure/glTF-Embedded/RiggedFigure.gltf",
319
+ "RiggedSimple/glTF-Embedded/RiggedSimple.gltf",
320
+ "SimpleMeshes/glTF-Embedded/SimpleMeshes.gltf",
321
+ "SimpleMorph/glTF-Embedded/SimpleMorph.gltf",
322
+ "SimpleSkin/glTF-Embedded/SimpleSkin.gltf",
323
+ "SimpleSparseAccessor/glTF-Embedded/SimpleSparseAccessor.gltf",
324
+ "TextureCoordinateTest/glTF-Embedded/TextureCoordinateTest.gltf",
325
+ "TextureSettingsTest/glTF-Embedded/TextureSettingsTest.gltf",
326
+ "Triangle/glTF-Embedded/Triangle.gltf",
327
+ "TriangleWithoutIndices/glTF-Embedded/TriangleWithoutIndices.gltf",
328
+ "VC/glTF-Embedded/VC.gltf",
329
+ "VertexColorTest/glTF-Embedded/VertexColorTest.gltf",
330
+ ];
331
+
332
+ embedded .server = "https://github.khronos.org/glTF-Sample-Viewer-Release/assets/models/2.0/";
333
+
267
334
  function createList (description, array)
268
335
  {
269
336
  const column = $(".viewer-column2");
@@ -309,7 +376,9 @@ async function loadURL (filename, server, event)
309
376
  Browser .viewAll ();
310
377
  }
311
378
 
312
- createList ("glTF Random Models", models);
313
- createList ("glTF Sample Models", glTF);
314
- createList ("glb Sample Models", glb);
379
+ createList ("glTF Random Models", models);
380
+ createList ("glTF Sample Models", glTF);
381
+ createList ("glb Sample Models", glb);
382
+ createList ("glTF Draco Sample Models", draco);
383
+ createList ("glTF Embedded Sample Models", embedded);
315
384
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x_ite",
3
- "version": "8.6.5",
3
+ "version": "8.6.7",
4
4
  "description": "X_ITE X3D Browser, view and manipulate X3D and VRML scenes in HTML.",
5
5
  "homepage": "https://create3000.github.io/x_ite/",
6
6
  "author": "Holger Seelig <holger.seelig@gmail.com>",
@@ -57,7 +57,7 @@
57
57
  "ammojs": "^0.0.2",
58
58
  "CharLS.js": "^2.0.1",
59
59
  "css-element-queries": "^1.2.3",
60
- "dicom-parser": "^1.8.20",
60
+ "dicom-parser": "^1.8.21",
61
61
  "jpeg-js": "^0.4.4",
62
62
  "jpeg-lossless-decoder-js": "^2.0.4",
63
63
  "jquery": "^3.6.3",