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.
- package/Makefile +1 -0
- 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 +26 -26
- 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 +18 -18
- 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 +19 -19
- 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 +28 -28
- 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 +34 -34
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- 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/assets/lib/draco_decoder_gltf.js +29 -0
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +2693 -2428
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/docs/_posts/components/Navigation/NavigationInfo.md +8 -3
- package/docs/_posts/laboratory/x3d-file-converter.md +5 -0
- package/docs/_tabs/laboratory.md +2 -2
- package/docs/laboratory/gltf-sample-viewer.html +72 -3
- package/package.json +2 -2
- package/src/assets/lib/draco_decoder_gltf.js +29 -0
- package/src/assets/shaders/webgl1/include/Particle.glsl.js +7 -0
- package/src/assets/shaders/webgl1/include/Vertex.glsl.js +3 -2
- package/src/assets/shaders/webgl2/include/Particle.glsl.js +18 -5
- package/src/standard/Utility/ObjectCache.js +9 -10
- package/src/x_ite/Base/Events.js +10 -23
- package/src/x_ite/Base/X3DObject.js +29 -16
- package/src/x_ite/Browser/Networking/URLs.js +4 -0
- package/src/x_ite/Browser/Picking/X3DPickingContext.js +1 -1
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +1 -1
- package/src/x_ite/Browser/Shaders/Shaders.js +2 -0
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +7 -0
- package/src/x_ite/Browser/X3DBrowserContext.js +3 -3
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +1 -1
- package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +6 -7
- package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -3
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +1 -1
- package/src/x_ite/Components/Shape/Material.js +25 -26
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +2 -3
- package/src/x_ite/Components/Shape/UnlitMaterial.js +2 -3
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +10 -12
- package/src/x_ite/Components/Texturing/ImageTexture.js +7 -17
- package/src/x_ite/Components/Texturing/MovieTexture.js +4 -5
- package/src/x_ite/Parser/GLTF2Parser.js +194 -36
- package/src/x_ite/Parser/SVGParser.js +341 -252
- package/src/x_ite/Rendering/X3DRenderObject.js +3 -4
- package/webpack.config.js +2 -0
package/dist/x_ite.zip
CHANGED
|
Binary file
|
package/docs/_config.yml
CHANGED
|
@@ -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".
|
|
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)
|
package/docs/_tabs/laboratory.md
CHANGED
|
@@ -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",
|
|
313
|
-
createList ("glTF Sample Models",
|
|
314
|
-
createList ("glb Sample Models",
|
|
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.
|
|
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.
|
|
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",
|