x_ite 8.0.0 → 8.3.0
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/.github/workflows/pages-deploy.yml +64 -0
- package/.gitmodules +3 -0
- package/.vscode/settings.json +3 -2
- package/Makefile +9 -4
- package/README.md +6 -6
- package/build/bin/version.pl +3 -11
- package/dist/LICENSE.md +0 -2
- package/dist/assets/components/Annotation.js +55 -28
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +55 -28
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +197 -38
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +50 -26
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +61 -28
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +96 -48
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +186 -193
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +92 -53
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +35 -17
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +77 -45
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +209 -96
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +125 -62
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +105 -70
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/ProjectiveTextureMapping.js +69 -46
- package/dist/assets/components/ProjectiveTextureMapping.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +125 -63
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +56 -38
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +16857 -0
- package/dist/assets/components/Text.min.js +1 -0
- package/dist/assets/components/Texturing3D.js +114 -77
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +126 -60
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +21 -12
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +17800 -31195
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/Gemfile +11 -33
- package/docs/Gemfile.lock +53 -59
- package/docs/LICENSE +21 -0
- package/docs/README.md +46 -0
- package/docs/_config.yml +320 -127
- package/docs/_data/assets/cross_origin.yml +62 -0
- package/docs/_data/assets/self_host.yml +51 -0
- package/docs/_data/contact.yml +30 -0
- package/docs/_data/locales/bg-BG.yml +83 -0
- package/docs/_data/locales/de-DE.yml +82 -0
- package/docs/_data/locales/en.yml +93 -0
- package/docs/_data/locales/es-ES.yml +79 -0
- package/docs/_data/locales/fr-FR.yml +79 -0
- package/docs/_data/locales/hu-HU.yml +81 -0
- package/docs/_data/locales/id-ID.yml +79 -0
- package/docs/_data/locales/ko-KR.yml +86 -0
- package/docs/_data/locales/my-MM.yml +79 -0
- package/docs/_data/locales/pt-BR.yml +79 -0
- package/docs/_data/locales/ru-RU.yml +79 -0
- package/docs/_data/locales/tr-TR.yml +79 -0
- package/docs/_data/locales/uk-UA.yml +79 -0
- package/docs/_data/locales/vi-VN.yml +77 -0
- package/docs/_data/locales/zh-CN.yml +85 -0
- package/docs/_data/share.yml +27 -0
- package/docs/_includes/nav.html +19 -0
- package/docs/_includes/scripts.html +15 -0
- package/docs/_layouts/compress.html +11 -0
- package/docs/_layouts/redirect-page.html +6 -0
- package/docs/_layouts/wide.html +52 -0
- package/docs/_layouts/wrap.html +4 -0
- package/docs/_layouts/x_ite.html +8 -0
- package/docs/_plugins/no_date.rb +11 -0
- package/docs/_plugins/posts-lastmod-hook.rb +14 -0
- package/docs/{Accessing-the-External-Browser.md → _posts/accessing-the-external-browser.md} +26 -25
- package/docs/_posts/browser-support.md +53 -0
- package/docs/{Custom-Shaders.md → _posts/custom-shaders.md} +18 -14
- package/docs/{DOM-Integration.md → _posts/dom-integration.md} +29 -22
- package/docs/{Features.md → _posts/features.md} +11 -12
- package/docs/{index.md → _posts/getting-started.md} +203 -245
- package/docs/{Glossary.md → _posts/glossary.md} +5 -6
- package/docs/{How-To-Configure-Your-Web-Server.md → _posts/how-to-configure-your-web-server.md} +5 -6
- package/docs/{reference/Browser-Services.md → _posts/reference/browser-services.md} +8 -9
- package/docs/{reference/Constants-Services.md → _posts/reference/constants-services.md} +14 -15
- package/docs/{reference/ECMAScript-Object-and-Function-Definitions.md → _posts/reference/ecmascript-object-and-function-definitions.md} +14 -15
- package/docs/_posts/reference/field-services-and-objects.md +1127 -0
- package/docs/{reference/Prototype-Services.md → _posts/reference/prototype-services.md} +8 -14
- package/docs/{reference/Route-Services.md → _posts/reference/route-services.md} +6 -10
- package/docs/{reference/Scene-Services.md → _posts/reference/scene-services.md} +11 -21
- package/docs/{reference/Script-Node-Authoring-Interface.md → _posts/reference/script-node-authoring-interface.md} +10 -11
- package/docs/_posts/report-a-bug.md +15 -0
- package/docs/_posts/setup-a-localhost-server.md +42 -0
- package/docs/_posts/supported-nodes.md +377 -0
- package/docs/{tutorials/Adding-backgrounds.md → _posts/tutorials/adding-backgrounds.md} +13 -14
- package/docs/{tutorials/Adding-fog.md → _posts/tutorials/adding-fog.md} +6 -7
- package/docs/{tutorials/Adding-sound.md → _posts/tutorials/adding-sound.md} +27 -26
- package/docs/{tutorials/Animating-transforms.md → _posts/tutorials/animating-transforms.md} +36 -37
- package/docs/{tutorials/Basic-Nodes.md → _posts/tutorials/basic-nodes.md} +38 -49
- package/docs/{tutorials/Building-a-X3D-world.md → _posts/tutorials/building-a-x3d-world.md} +16 -16
- package/docs/{tutorials/Building-elevation-grids.md → _posts/tutorials/building-elevation-grids.md} +15 -14
- package/docs/{tutorials/Building-extruded-shapes.md → _posts/tutorials/building-extruded-shapes.md} +11 -12
- package/docs/{tutorials/Building-primitive-shapes.md → _posts/tutorials/building-primitive-shapes.md} +29 -28
- package/docs/{tutorials/Building-shapes-out-of-points,-lines,-and-faces.md → _posts/tutorials/building-shapes-out-of-points-lines-and-faces.md} +25 -27
- package/docs/{tutorials/Controlling-appearance-with-materials.md → _posts/tutorials/controlling-appearance-with-materials.md} +20 -19
- package/docs/{tutorials/Controlling-color-on-coordinate-based-geometry.md → _posts/tutorials/controlling-color-on-coordinate-based-geometry.md} +15 -16
- package/docs/{tutorials/Controlling-detail.md → _posts/tutorials/controlling-detail.md} +12 -11
- package/docs/{tutorials/Controlling-how-textures-are-mapped.md → _posts/tutorials/controlling-how-textures-are-mapped.md} +11 -12
- package/docs/{tutorials/Controlling-navigation.md → _posts/tutorials/controlling-navigation.md} +7 -8
- package/docs/{tutorials/Controlling-shading-on-coordinate-based-geometry.md → _posts/tutorials/controlling-shading-on-coordinate-based-geometry.md} +19 -20
- package/docs/{tutorials/Controlling-the-viewpoint.md → _posts/tutorials/controlling-the-viewpoint.md} +7 -8
- package/docs/{tutorials/Creating-new-node-types.md → _posts/tutorials/creating-new-node-types.md} +8 -9
- package/docs/{tutorials/Grouping-nodes.md → _posts/tutorials/grouping-nodes.md} +17 -18
- package/docs/{tutorials/Hello,-World!.md → _posts/tutorials/hello-world.md} +16 -28
- package/docs/{tutorials/Improving-Performance.md → _posts/tutorials/improving-performance.md} +7 -11
- package/docs/{tutorials/Increasing-Rendering-Speed.md → _posts/tutorials/increasing-rendering-speed.md} +5 -6
- package/docs/{tutorials/Introducing-animation.md → _posts/tutorials/introducing-animation.md} +14 -15
- package/docs/{tutorials/Introducing-script-use.md → _posts/tutorials/introducing-script-use.md} +7 -8
- package/docs/{tutorials/Introducing-X3D.md → _posts/tutorials/introducing-x3d.md} +7 -7
- package/docs/{tutorials/Lighting-your-world.md → _posts/tutorials/lighting-your-world.md} +8 -9
- package/docs/{tutorials/Mapping-textures.md → _posts/tutorials/mapping-textures.md} +11 -12
- package/docs/{tutorials/Naming-nodes.md → _posts/tutorials/naming-nodes.md} +9 -8
- package/docs/_posts/tutorials/overview.md +83 -0
- package/docs/{tutorials/Providing-information-about-your-world.md → _posts/tutorials/providing-information-about-your-world.md} +6 -7
- package/docs/{tutorials/Sensing-the-viewer.md → _posts/tutorials/sensing-the-viewer.md} +19 -20
- package/docs/{tutorials/Sensing-viewer-actions.md → _posts/tutorials/sensing-viewer-actions.md} +14 -15
- package/docs/{tutorials/Transforming-Shapes.md → _posts/tutorials/transforming-shapes.md} +8 -9
- package/docs/{tutorials/Writing-program-scripts-with-ECMAScript.md → _posts/tutorials/writing-program-scripts-with-ecmascript.md} +15 -15
- package/docs/{What's-New.md → _posts/what's-new.md} +152 -530
- package/docs/_tabs/imprint.md +52 -0
- package/docs/_tabs/laboratory.md +14 -0
- package/docs/_tabs/playground.html +246 -0
- package/docs/_tabs/reference.md +7 -0
- package/docs/_tabs/tags.md +5 -0
- package/docs/_tabs/tutorials.md +7 -0
- package/docs/assets/css/style.scss +194 -0
- package/docs/assets/img/favicons/android-chrome-192x192.png +0 -0
- package/docs/assets/img/favicons/android-chrome-512x512.png +0 -0
- package/docs/assets/img/favicons/apple-touch-icon.png +0 -0
- package/docs/assets/img/favicons/favicon-16x16.png +0 -0
- package/docs/assets/img/favicons/favicon-32x32.png +0 -0
- package/docs/assets/img/favicons/favicon.ico +0 -0
- package/docs/assets/img/favicons/mstile-150x150.png +0 -0
- package/docs/assets/img/favicons/safari-pinned-tab.svg +71 -0
- package/docs/assets/{images → img}/logo.png +0 -0
- package/docs/assets/js/example.js +34 -0
- package/docs/laboratory/3d-l-system-generator.html +169 -0
- package/docs/laboratory/online-dicom-and-nrrd-file-viewer.html +72 -0
- package/docs/laboratory/real-time-earth-quake-information.html +50 -0
- package/docs/laboratory/x3d-visual-blend-mode-editor.html +227 -0
- package/package.json +4 -4
- package/src/LICENSE.txt +1 -1
- package/src/assets/components/Annotation.js +1 -1
- package/src/assets/components/CADGeometry.js +1 -1
- package/src/assets/components/CubeMapTexturing.js +1 -1
- package/src/assets/components/DIS.js +1 -1
- package/src/assets/components/EventUtilities.js +1 -1
- package/src/assets/components/Geometry2D.js +1 -1
- package/src/assets/components/Geospatial.js +1 -1
- package/src/assets/components/HAnim.js +1 -1
- package/src/assets/components/KeyDeviceSensor.js +1 -1
- package/src/assets/components/Layout.js +1 -1
- package/src/assets/components/NURBS.js +1 -1
- package/src/assets/components/ParticleSystems.js +1 -1
- package/src/assets/components/Picking.js +1 -1
- package/src/assets/components/ProjectiveTextureMapping.js +6 -6
- package/src/assets/components/RigidBodyPhysics.js +1 -6
- package/src/assets/components/Scripting.js +1 -1
- package/src/{x_ite/Components → assets/components}/Text.js +19 -21
- package/src/assets/components/Texturing3D.js +1 -1
- package/src/assets/components/VolumeRendering.js +1 -1
- package/src/assets/components/X_ITE.js +1 -1
- package/src/assets/shaders/Types.glsl.js +1 -1
- package/src/assets/shaders/webgl1/include/Fragment.glsl.js +1 -1
- package/src/assets/shaders/webgl1/include/PointSize.glsl.js +6 -6
- package/src/assets/shaders/webgl1/include/Vertex.glsl.js +4 -4
- package/src/assets/shaders/webgl2/LineTransform.vs.js +11 -11
- package/src/assets/shaders/webgl2/include/Fragment.glsl.js +1 -1
- package/src/assets/shaders/webgl2/include/PointSize.glsl.js +6 -6
- package/src/assets/shaders/webgl2/include/Vertex.glsl.js +4 -4
- package/src/bookmarks.js +1 -1
- package/src/examples.js +3 -3
- package/src/lib/ammojs/AmmoClass.js +1 -1
- package/src/lib/jquery.js +1 -1
- package/src/locale/gettext.js +1 -1
- package/src/shim.js +1 -2
- package/src/standard/Geospatial/Geodetic.js +1 -1
- package/src/standard/Geospatial/ReferenceEllipsoids.js +3 -3
- package/src/standard/Geospatial/UniversalTransverseMercator.js +1 -1
- package/src/standard/Math/Algorithm.js +55 -45
- package/src/standard/Math/Algorithms/Bezier.js +1 -1
- package/src/standard/Math/Algorithms/MergeSort.js +1 -1
- package/src/standard/Math/Algorithms/PartialSort.js +1 -1
- package/src/standard/Math/Algorithms/QuickSort.js +1 -1
- package/src/standard/Math/Algorithms/SAT.js +2 -2
- package/src/standard/Math/Algorithms/eigen_decomposition.js +5 -3
- package/src/standard/Math/Geometry/Box2.js +1 -1
- package/src/standard/Math/Geometry/Box3.js +1 -1
- package/src/standard/Math/Geometry/Camera.js +4 -2
- package/src/standard/Math/Geometry/Cylinder3.js +1 -1
- package/src/standard/Math/Geometry/Line2.js +1 -1
- package/src/standard/Math/Geometry/Line3.js +1 -1
- package/src/standard/Math/Geometry/Plane3.js +1 -1
- package/src/standard/Math/Geometry/Sphere3.js +1 -1
- package/src/standard/Math/Geometry/Spheroid3.js +1 -1
- package/src/standard/Math/Geometry/Triangle2.js +4 -2
- package/src/standard/Math/Geometry/Triangle3.js +4 -2
- package/src/standard/Math/Geometry/ViewVolume.js +1 -1
- package/src/standard/Math/Numbers/Color3.js +3 -1
- package/src/standard/Math/Numbers/Color4.js +4 -1
- package/src/standard/Math/Numbers/Complex.js +1 -1
- package/src/standard/Math/Numbers/Matrix2.js +1 -1
- package/src/standard/Math/Numbers/Matrix3.js +1 -1
- package/src/standard/Math/Numbers/Matrix4.js +1 -1
- package/src/standard/Math/Numbers/Quaternion.js +1 -1
- package/src/standard/Math/Numbers/Rotation4.js +1 -1
- package/src/standard/Math/Numbers/Vector2.js +1 -1
- package/src/standard/Math/Numbers/Vector3.js +1 -1
- package/src/standard/Math/Numbers/Vector4.js +1 -1
- package/src/standard/Math/Utility/BVH.js +1 -1
- package/src/standard/Math/Utility/MatrixStack.js +1 -1
- package/src/standard/Networking/BinaryTransport.js +5 -3
- package/src/standard/Time/MicroTime.js +1 -1
- package/src/standard/Utility/BitSet.js +1 -1
- package/src/standard/Utility/DataStorage.js +1 -1
- package/src/standard/Utility/MapUtilities.js +1 -1
- package/src/standard/Utility/ObjectCache.js +5 -3
- package/src/standard/Utility/Shuffle.js +5 -3
- package/src/tests.js +3 -0
- package/src/x_ite/Base/Events.js +4 -2
- package/src/x_ite/Base/FieldArray.js +1 -1
- package/src/x_ite/Base/FieldDefinitionArray.js +1 -1
- package/src/x_ite/Base/X3DArrayField.js +8 -4
- package/src/x_ite/Base/X3DBaseNode.js +1 -1
- package/src/x_ite/Base/X3DCast.js +5 -3
- package/src/x_ite/Base/X3DChildObject.js +1 -1
- package/src/x_ite/Base/X3DConstants.js +1 -1
- package/src/x_ite/Base/X3DEventObject.js +1 -1
- package/src/x_ite/Base/X3DField.js +2 -13
- package/src/x_ite/Base/X3DFieldDefinition.js +1 -1
- package/src/x_ite/Base/X3DInfoArray.js +1 -1
- package/src/x_ite/Base/X3DObject.js +1 -1
- package/src/x_ite/Base/X3DObjectArrayField.js +1 -1
- package/src/x_ite/Base/X3DTypedArrayField.js +59 -33
- package/src/x_ite/Browser/Core/BrowserOptions.js +22 -30
- package/src/x_ite/Browser/Core/BrowserProperties.js +1 -1
- package/src/x_ite/Browser/Core/BrowserTimings.js +1 -1
- package/src/x_ite/Browser/Core/Context.js +1 -1
- package/src/x_ite/Browser/Core/ContextMenu.js +1 -1
- package/src/x_ite/Browser/Core/Notification.js +1 -1
- package/src/x_ite/Browser/Core/PrimitiveQuality.js +1 -1
- package/src/x_ite/Browser/Core/RenderingProperties.js +1 -1
- package/src/x_ite/Browser/Core/Shading.js +1 -1
- package/src/x_ite/Browser/Core/TextureQuality.js +1 -1
- package/src/x_ite/Browser/Core/X3DCoreContext.js +11 -8
- package/src/x_ite/Browser/DOMIntegration.js +25 -26
- package/src/x_ite/Browser/EnvironmentalEffects/X3DEnvironmentalEffectsContext.js +1 -1
- package/src/x_ite/Browser/Followers/X3DArrayChaserTemplate.js +5 -3
- package/src/x_ite/Browser/Followers/X3DArrayFollowerTemplate.js +5 -3
- package/src/x_ite/Browser/Geometry2D/Arc2DOptions.js +1 -1
- package/src/x_ite/Browser/Geometry2D/ArcClose2DOptions.js +1 -1
- package/src/x_ite/Browser/Geometry2D/Circle2DOptions.js +1 -1
- package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +1 -1
- package/src/x_ite/Browser/Geometry2D/Rectangle2DOptions.js +1 -1
- package/src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js +1 -1
- package/src/x_ite/Browser/Geometry3D/BoxOptions.js +1 -1
- package/src/x_ite/Browser/Geometry3D/ConeOptions.js +1 -1
- package/src/x_ite/Browser/Geometry3D/CylinderOptions.js +1 -1
- package/src/x_ite/Browser/Geometry3D/IcoSphere.js +1 -1
- package/src/x_ite/Browser/Geometry3D/IcoSphereOptions.js +1 -1
- package/src/x_ite/Browser/Geometry3D/QuadSphereOptions.js +1 -1
- package/src/x_ite/Browser/Geometry3D/X3DGeometry3DContext.js +1 -1
- package/src/x_ite/Browser/Geospatial/Geocentric.js +1 -2
- package/src/x_ite/Browser/Geospatial/Geospatial.js +1 -1
- package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +1 -1
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +1 -1
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator1.js +1 -1
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator2.js +4 -2
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator3.js +4 -2
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +5 -3
- package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +1 -1
- package/src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js +1 -1
- package/src/x_ite/Browser/Layering/X3DLayeringContext.js +1 -1
- package/src/x_ite/Browser/Layout/ScreenText.js +1 -1
- package/src/x_ite/Browser/Layout/X3DLayoutContext.js +1 -1
- package/src/x_ite/Browser/Legacy.js +64 -0
- package/src/x_ite/Browser/Lighting/X3DLightingContext.js +1 -1
- package/src/x_ite/Browser/NURBS/NURBS.js +1 -1
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +6 -39
- package/src/x_ite/Browser/Navigation/FlyViewer.js +1 -1
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +1 -1
- package/src/x_ite/Browser/Navigation/NoneViewer.js +1 -1
- package/src/x_ite/Browser/Navigation/PlaneViewer.js +1 -4
- package/src/x_ite/Browser/Navigation/WalkViewer.js +1 -1
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +1 -1
- package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +3 -2
- package/src/x_ite/Browser/Navigation/X3DViewer.js +3 -3
- package/src/x_ite/Browser/Networking/Features.js +52 -0
- package/src/x_ite/Browser/Networking/URLs.js +11 -12
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +9 -22
- package/src/x_ite/Browser/ParticleSystems/GeometryTypes.js +1 -1
- package/src/x_ite/Browser/ParticleSystems/X3DParticleSystemsContext.js +1 -1
- package/src/x_ite/Browser/Picking/IntersectionType.js +1 -1
- package/src/x_ite/Browser/Picking/MatchCriterion.js +1 -1
- package/src/x_ite/Browser/Picking/SortOrder.js +1 -1
- package/src/x_ite/Browser/Picking/VolumePicker.js +2 -4
- package/src/x_ite/Browser/Picking/X3DPickingContext.js +1 -1
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +1 -1
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDeviceSensorContainer.js +1 -1
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +1 -1
- package/src/x_ite/Browser/Rendering/GeometryContext.js +1 -1
- package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +1 -1
- package/src/x_ite/Browser/RigidBodyPhysics/AppliedParametersType.js +1 -1
- package/src/x_ite/Browser/Scripting/X3DScriptingContext.js +1 -1
- package/src/x_ite/Browser/Scripting/evaluate.js +5 -3
- package/src/x_ite/Browser/Shaders/ShaderCompiler.js +1 -1
- package/src/x_ite/Browser/Shaders/ShaderSource.js +5 -5
- package/src/x_ite/Browser/Shaders/Shaders.js +1 -1
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +1 -1
- package/src/x_ite/Browser/Shape/AlphaMode.js +1 -1
- package/src/x_ite/Browser/Shape/X3DShapeContext.js +4 -4
- package/src/x_ite/Browser/Sound/X3DSoundContext.js +1 -1
- package/src/x_ite/Browser/Text/PolygonText.js +1 -1
- package/src/x_ite/Browser/Text/TextAlignment.js +1 -1
- package/src/x_ite/Browser/Text/X3DTextContext.js +1 -1
- package/src/x_ite/Browser/Text/X3DTextGeometry.js +1 -1
- package/src/x_ite/Browser/Texturing/FunctionType.js +1 -1
- package/src/x_ite/Browser/Texturing/ModeType.js +1 -1
- package/src/x_ite/Browser/Texturing/SourceType.js +1 -1
- package/src/x_ite/Browser/Texturing/TextureCoordinateGeneratorModeType.js +1 -1
- package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +1 -1
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +3 -3
- package/src/x_ite/Browser/Texturing3D/NRRDParser.js +2 -2
- package/src/x_ite/Browser/Time/X3DTimeContext.js +1 -1
- package/src/x_ite/Browser/VERSION.js +2 -2
- package/src/x_ite/Browser/VolumeRendering/VolumeMaterial.js +1 -1
- package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +43 -52
- package/src/x_ite/Browser/X3DBrowserContext.js +1 -5
- package/src/x_ite/Components/Annotation/AnnotationLayer.js +1 -1
- package/src/x_ite/Components/Annotation/AnnotationTarget.js +1 -1
- package/src/x_ite/Components/Annotation/GroupAnnotation.js +1 -1
- package/src/x_ite/Components/Annotation/IconAnnotation.js +1 -1
- package/src/x_ite/Components/Annotation/TextAnnotation.js +1 -1
- package/src/x_ite/Components/Annotation/URLAnnotation.js +1 -1
- package/src/x_ite/Components/Annotation/X3DAnnotationNode.js +1 -1
- package/src/x_ite/Components/CADGeometry/CADAssembly.js +1 -1
- package/src/x_ite/Components/CADGeometry/CADFace.js +1 -1
- package/src/x_ite/Components/CADGeometry/CADLayer.js +1 -1
- package/src/x_ite/Components/CADGeometry/CADPart.js +1 -1
- package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +1 -1
- package/src/x_ite/Components/CADGeometry/QuadSet.js +1 -1
- package/src/x_ite/Components/CADGeometry/X3DProductStructureChildNode.js +1 -1
- package/src/x_ite/Components/Core/MetadataBoolean.js +1 -1
- package/src/x_ite/Components/Core/MetadataDouble.js +1 -1
- package/src/x_ite/Components/Core/MetadataFloat.js +1 -1
- package/src/x_ite/Components/Core/MetadataInteger.js +1 -1
- package/src/x_ite/Components/Core/MetadataSet.js +1 -1
- package/src/x_ite/Components/Core/MetadataString.js +1 -1
- package/src/x_ite/Components/Core/WorldInfo.js +1 -1
- package/src/x_ite/Components/Core/X3DBindableNode.js +1 -1
- package/src/x_ite/Components/Core/X3DChildNode.js +1 -1
- package/src/x_ite/Components/Core/X3DInfoNode.js +1 -1
- package/src/x_ite/Components/Core/X3DMetadataObject.js +1 -1
- package/src/x_ite/Components/Core/X3DNode.js +5 -5
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +2 -2
- package/src/x_ite/Components/Core/X3DSensorNode.js +1 -1
- package/src/x_ite/Components/Core.js +1 -1
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +1 -1
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +1 -1
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +1 -1
- package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +1 -1
- package/src/x_ite/Components/DIS/DISEntityManager.js +1 -1
- package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +1 -1
- package/src/x_ite/Components/DIS/EspduTransform.js +1 -1
- package/src/x_ite/Components/DIS/ReceiverPdu.js +1 -1
- package/src/x_ite/Components/DIS/SignalPdu.js +1 -1
- package/src/x_ite/Components/DIS/TransmitterPdu.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/Background.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/Fog.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +6 -12
- package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor.js +1 -1
- package/src/x_ite/Components/EventUtilities/BooleanFilter.js +1 -1
- package/src/x_ite/Components/EventUtilities/BooleanSequencer.js +1 -1
- package/src/x_ite/Components/EventUtilities/BooleanToggle.js +1 -1
- package/src/x_ite/Components/EventUtilities/BooleanTrigger.js +1 -1
- package/src/x_ite/Components/EventUtilities/IntegerSequencer.js +1 -1
- package/src/x_ite/Components/EventUtilities/IntegerTrigger.js +1 -1
- package/src/x_ite/Components/EventUtilities/TimeTrigger.js +1 -1
- package/src/x_ite/Components/EventUtilities/X3DSequencerNode.js +1 -1
- package/src/x_ite/Components/EventUtilities/X3DTriggerNode.js +1 -1
- package/src/x_ite/Components/Followers/ColorChaser.js +1 -1
- package/src/x_ite/Components/Followers/ColorDamper.js +1 -1
- package/src/x_ite/Components/Followers/CoordinateChaser.js +1 -1
- package/src/x_ite/Components/Followers/CoordinateDamper.js +1 -1
- package/src/x_ite/Components/Followers/OrientationChaser.js +1 -1
- package/src/x_ite/Components/Followers/OrientationDamper.js +1 -1
- package/src/x_ite/Components/Followers/PositionChaser.js +1 -1
- package/src/x_ite/Components/Followers/PositionChaser2D.js +1 -1
- package/src/x_ite/Components/Followers/PositionDamper.js +1 -1
- package/src/x_ite/Components/Followers/PositionDamper2D.js +1 -1
- package/src/x_ite/Components/Followers/ScalarChaser.js +1 -1
- package/src/x_ite/Components/Followers/ScalarDamper.js +1 -1
- package/src/x_ite/Components/Followers/TexCoordChaser2D.js +1 -1
- package/src/x_ite/Components/Followers/TexCoordDamper2D.js +1 -1
- package/src/x_ite/Components/Followers/X3DChaserNode.js +1 -1
- package/src/x_ite/Components/Followers/X3DDamperNode.js +1 -1
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +1 -1
- package/src/x_ite/Components/Followers.js +1 -1
- package/src/x_ite/Components/Geometry2D/Arc2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/Circle2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/Disk2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/Polyline2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/Polypoint2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +1 -1
- package/src/x_ite/Components/Geometry3D/Box.js +1 -1
- package/src/x_ite/Components/Geometry3D/Cone.js +3 -3
- package/src/x_ite/Components/Geometry3D/Cylinder.js +4 -4
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +1 -1
- package/src/x_ite/Components/Geometry3D/Extrusion.js +1 -1
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +1 -1
- package/src/x_ite/Components/Geometry3D/Sphere.js +1 -1
- package/src/x_ite/Components/Geometry3D.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoLOD.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoLocation.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoMetadata.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoOrigin.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +17 -13
- package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoTransform.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +39 -106
- package/src/x_ite/Components/Geospatial/X3DGeospatialObject.js +1 -1
- package/src/x_ite/Components/Grouping/Group.js +1 -1
- package/src/x_ite/Components/Grouping/StaticGroup.js +1 -1
- package/src/x_ite/Components/Grouping/Switch.js +1 -1
- package/src/x_ite/Components/Grouping/Transform.js +1 -1
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +1 -1
- package/src/x_ite/Components/Grouping/X3DGroupingNode.js +1 -1
- package/src/x_ite/Components/Grouping/X3DTransformMatrix3DNode.js +1 -1
- package/src/x_ite/Components/Grouping/X3DTransformNode.js +1 -1
- package/src/x_ite/Components/Grouping.js +1 -1
- package/src/x_ite/Components/HAnim/HAnimDisplacer.js +2 -1
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +32 -23
- package/src/x_ite/Components/HAnim/HAnimJoint.js +2 -1
- package/src/x_ite/Components/HAnim/HAnimMotion.js +3 -1
- package/src/x_ite/Components/HAnim/HAnimSegment.js +2 -1
- package/src/x_ite/Components/HAnim/HAnimSite.js +2 -1
- package/src/x_ite/Components/Interpolation/ColorInterpolator.js +2 -2
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js +1 -1
- package/src/x_ite/Components/Interpolation/EaseInEaseOut.js +1 -1
- package/src/x_ite/Components/Interpolation/NormalInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/PositionInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +1 -1
- package/src/x_ite/Components/Interpolation/ScalarInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator2D.js +1 -1
- package/src/x_ite/Components/Interpolation/SplineScalarInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/X3DInterpolatorNode.js +1 -1
- package/src/x_ite/Components/Interpolation.js +1 -1
- package/src/x_ite/Components/KeyDeviceSensor/KeySensor.js +1 -1
- package/src/x_ite/Components/KeyDeviceSensor/StringSensor.js +1 -1
- package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +1 -1
- package/src/x_ite/Components/Layering/Layer.js +4 -2
- package/src/x_ite/Components/Layering/LayerSet.js +1 -1
- package/src/x_ite/Components/Layering/Viewport.js +4 -4
- package/src/x_ite/Components/Layering/X3DLayerNode.js +66 -49
- package/src/x_ite/Components/Layering/X3DViewportNode.js +1 -1
- package/src/x_ite/Components/Layering.js +1 -1
- package/src/x_ite/Components/Layout/Layout.js +1 -1
- package/src/x_ite/Components/Layout/LayoutGroup.js +1 -1
- package/src/x_ite/Components/Layout/LayoutLayer.js +4 -2
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +1 -1
- package/src/x_ite/Components/Layout/ScreenGroup.js +1 -1
- package/src/x_ite/Components/Layout/X3DLayoutNode.js +1 -1
- package/src/x_ite/Components/Lighting/DirectionalLight.js +9 -5
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +143 -0
- package/src/x_ite/Components/Lighting/PointLight.js +9 -5
- package/src/x_ite/Components/Lighting/SpotLight.js +9 -5
- package/src/x_ite/Components/Lighting/X3DLightNode.js +1 -1
- package/src/x_ite/Components/Lighting.js +3 -1
- package/src/x_ite/Components/NURBS/Contour2D.js +1 -1
- package/src/x_ite/Components/NURBS/ContourPolyline2D.js +1 -1
- package/src/x_ite/Components/NURBS/CoordinateDouble.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsCurve.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsSet.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +1 -1
- package/src/x_ite/Components/NURBS/X3DNurbsControlCurveNode.js +1 -1
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +1 -1
- package/src/x_ite/Components/NURBS/X3DParametricGeometryNode.js +1 -1
- package/src/x_ite/Components/Navigation/Billboard.js +1 -1
- package/src/x_ite/Components/Navigation/Collision.js +1 -1
- package/src/x_ite/Components/Navigation/LOD.js +1 -1
- package/src/x_ite/Components/Navigation/NavigationInfo.js +2 -1
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +100 -68
- package/src/x_ite/Components/Navigation/Viewpoint.js +16 -16
- package/src/x_ite/Components/Navigation/ViewpointGroup.js +1 -1
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +219 -111
- package/src/x_ite/Components/Navigation.js +1 -1
- package/src/x_ite/Components/Networking/Anchor.js +1 -1
- package/src/x_ite/Components/Networking/Inline.js +99 -14
- package/src/x_ite/Components/Networking/LoadSensor.js +9 -9
- package/src/x_ite/Components/Networking/X3DNetworkSensorNode.js +1 -1
- package/src/x_ite/Components/Networking/X3DUrlObject.js +3 -3
- package/src/x_ite/Components/Networking.js +1 -1
- package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +1 -1
- package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +1 -1
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +1 -1
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +1 -1
- package/src/x_ite/Components/ParticleSystems/X3DParticleEmitterNode.js +1 -1
- package/src/x_ite/Components/ParticleSystems/X3DParticlePhysicsModelNode.js +1 -1
- package/src/x_ite/Components/Picking/LinePickSensor.js +1 -1
- package/src/x_ite/Components/Picking/PickableGroup.js +1 -1
- package/src/x_ite/Components/Picking/PointPickSensor.js +2 -4
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +1 -1
- package/src/x_ite/Components/Picking/VolumePickSensor.js +1 -1
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +1 -1
- package/src/x_ite/Components/Picking/X3DPickableObject.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/X3DDragSensorNode.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/X3DPointingDeviceSensorNode.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor.js +1 -1
- package/src/x_ite/Components/ProjectiveTextureMapping/{TextureProjectorPerspective.js → TextureProjector.js} +17 -13
- package/src/x_ite/Components/ProjectiveTextureMapping/TextureProjectorParallel.js +17 -13
- package/src/x_ite/Components/ProjectiveTextureMapping/X3DTextureProjectorNode.js +1 -1
- package/src/x_ite/Components/Rendering/ClipPlane.js +1 -1
- package/src/x_ite/Components/Rendering/Color.js +1 -1
- package/src/x_ite/Components/Rendering/ColorRGBA.js +1 -1
- package/src/x_ite/Components/Rendering/Coordinate.js +1 -1
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +6 -1
- package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +1 -1
- package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +1 -1
- package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +1 -1
- package/src/x_ite/Components/Rendering/LineSet.js +6 -1
- package/src/x_ite/Components/Rendering/Normal.js +31 -1
- package/src/x_ite/Components/Rendering/PointSet.js +6 -1
- package/src/x_ite/Components/Rendering/TriangleFanSet.js +1 -1
- package/src/x_ite/Components/Rendering/TriangleSet.js +1 -1
- package/src/x_ite/Components/Rendering/TriangleStripSet.js +1 -1
- package/src/x_ite/Components/Rendering/X3DColorNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DGeometricPropertyNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +40 -35
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +24 -6
- package/src/x_ite/Components/Rendering/X3DNormalNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +7 -1
- package/src/x_ite/Components/Rendering.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/Contact.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +3 -2
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollisionSpaceNode.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/X3DRigidJointNode.js +1 -1
- package/src/x_ite/Components/Scripting/Script.js +2 -1
- package/src/x_ite/Components/Scripting/X3DScriptNode.js +1 -1
- package/src/x_ite/Components/Shaders/ComposedShader.js +1 -1
- package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +1 -1
- package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +1 -1
- package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +1 -1
- package/src/x_ite/Components/Shaders/PackagedShader.js +2 -1
- package/src/x_ite/Components/Shaders/ProgramShader.js +1 -1
- package/src/x_ite/Components/Shaders/ShaderPart.js +2 -1
- package/src/x_ite/Components/Shaders/ShaderProgram.js +2 -1
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +13 -10
- package/src/x_ite/Components/Shaders/X3DShaderNode.js +1 -1
- package/src/x_ite/Components/Shaders/X3DVertexAttributeNode.js +1 -1
- package/src/x_ite/Components/Shaders.js +1 -1
- package/src/x_ite/Components/Shape/AcousticProperties.js +1 -1
- package/src/x_ite/Components/Shape/Appearance.js +2 -2
- package/src/x_ite/Components/Shape/FillProperties.js +4 -1
- package/src/x_ite/Components/Shape/LineProperties.js +4 -1
- package/src/x_ite/Components/Shape/Material.js +24 -16
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +1 -1
- package/src/x_ite/Components/Shape/PointProperties.js +14 -20
- package/src/x_ite/Components/Shape/Shape.js +1 -1
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +1 -1
- package/src/x_ite/Components/Shape/UnlitMaterial.js +1 -1
- package/src/x_ite/Components/Shape/X3DAppearanceChildNode.js +1 -1
- package/src/x_ite/Components/Shape/X3DAppearanceNode.js +1 -1
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +1 -1
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +2 -2
- package/src/x_ite/Components/Shape/X3DShapeNode.js +1 -1
- package/src/x_ite/Components/Shape.js +1 -1
- package/src/x_ite/Components/Sound/Analyser.js +105 -0
- package/src/x_ite/Components/Sound/AudioClip.js +1 -1
- package/src/x_ite/Components/Sound/AudioDestination.js +94 -0
- package/src/x_ite/Components/Sound/BiquadFilter.js +104 -0
- package/src/x_ite/Components/Sound/BufferAudioSource.js +127 -0
- package/src/x_ite/Components/Sound/ChannelMerger.js +91 -0
- package/src/x_ite/Components/Sound/ChannelSelector.js +92 -0
- package/src/x_ite/Components/Sound/ChannelSplitter.js +92 -0
- package/src/x_ite/Components/Sound/Convolver.js +102 -0
- package/src/x_ite/Components/Sound/Delay.js +102 -0
- package/src/x_ite/Components/Sound/DynamicsCompressor.js +106 -0
- package/src/x_ite/Components/Sound/Gain.js +100 -0
- package/src/x_ite/Components/Sound/ListenerPointSource.js +102 -0
- package/src/x_ite/Components/Sound/MicrophoneSource.js +96 -0
- package/src/x_ite/Components/Sound/OscillatorSource.js +98 -0
- package/src/x_ite/Components/Sound/PeriodicWave.js +86 -0
- package/src/x_ite/Components/Sound/Sound.js +16 -13
- package/src/x_ite/Components/Sound/SpatialSound.js +103 -0
- package/src/x_ite/Components/Sound/StreamAudioDestination.js +94 -0
- package/src/x_ite/Components/Sound/StreamAudioSource.js +96 -0
- package/src/x_ite/Components/Sound/WaveShaper.js +102 -0
- package/src/x_ite/Components/Sound/X3DSoundChannelNode.js +63 -0
- package/src/x_ite/Components/Sound/X3DSoundDestinationNode.js +63 -0
- package/src/x_ite/Components/Sound/X3DSoundNode.js +1 -1
- package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +63 -0
- package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +1 -1
- package/src/x_ite/Components/Sound.js +54 -10
- package/src/x_ite/Components/Text/FontStyle.js +1 -1
- package/src/x_ite/Components/Text/Text.js +1 -1
- package/src/x_ite/Components/Text/X3DFontStyleNode.js +1 -1
- package/src/x_ite/Components/Texturing/ImageTexture.js +1 -1
- package/src/x_ite/Components/Texturing/MovieTexture.js +1 -1
- package/src/x_ite/Components/Texturing/MultiTexture.js +1 -1
- package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +1 -1
- package/src/x_ite/Components/Texturing/MultiTextureTransform.js +1 -1
- package/src/x_ite/Components/Texturing/PixelTexture.js +1 -1
- package/src/x_ite/Components/Texturing/TextureCoordinate.js +1 -1
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +1 -1
- package/src/x_ite/Components/Texturing/TextureProperties.js +8 -1
- package/src/x_ite/Components/Texturing/TextureTransform.js +1 -1
- package/src/x_ite/Components/Texturing/X3DSingleTextureCoordinateNode.js +1 -1
- package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +1 -1
- package/src/x_ite/Components/Texturing/X3DSingleTextureTransformNode.js +1 -1
- package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +1 -1
- package/src/x_ite/Components/Texturing/X3DTextureCoordinateNode.js +1 -1
- package/src/x_ite/Components/Texturing/X3DTextureNode.js +1 -1
- package/src/x_ite/Components/Texturing/X3DTextureTransformNode.js +1 -1
- package/src/x_ite/Components/Texturing.js +1 -1
- package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +1 -1
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/X3DTexture3DNode.js +1 -1
- package/src/x_ite/Components/Time/TimeSensor.js +2 -1
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +1 -1
- package/src/x_ite/Components/Time.js +1 -1
- package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +1 -1
- package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +1 -1
- package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +1 -1
- package/src/x_ite/Components/VolumeRendering/X3DComposableVolumeRenderStyleNode.js +1 -1
- package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +1 -1
- package/src/x_ite/Components/VolumeRendering/X3DVolumeRenderStyleNode.js +1 -1
- package/src/x_ite/Components/X_ITE/BlendMode.js +1 -1
- package/src/x_ite/Components.js +6 -28
- package/src/x_ite/Configuration/ComponentInfo.js +10 -7
- package/src/x_ite/Configuration/ComponentInfoArray.js +2 -6
- package/src/x_ite/Configuration/ProfileInfo.js +1 -1
- package/src/x_ite/Configuration/ProfileInfoArray.js +1 -1
- package/src/x_ite/Configuration/SupportedComponents.js +136 -154
- package/src/x_ite/Configuration/SupportedNodes.js +7 -10
- package/src/x_ite/Configuration/SupportedProfiles.js +1 -1
- package/src/x_ite/Configuration/UnitInfo.js +1 -1
- package/src/x_ite/Configuration/UnitInfoArray.js +1 -1
- package/src/x_ite/DEBUG.js +1 -1
- package/src/x_ite/Execution/BindableList.js +1 -1
- package/src/x_ite/Execution/BindableStack.js +12 -12
- package/src/x_ite/Execution/ExportedNodesArray.js +1 -1
- package/src/x_ite/Execution/ImportedNodesArray.js +1 -1
- package/src/x_ite/Execution/NamedNodesArray.js +1 -1
- package/src/x_ite/Execution/Scene.js +13 -13
- package/src/x_ite/Execution/X3DExecutionContext.js +882 -882
- package/src/x_ite/Execution/X3DExportedNode.js +1 -1
- package/src/x_ite/Execution/X3DImportedNode.js +1 -1
- package/src/x_ite/Execution/X3DScene.js +14 -22
- package/src/x_ite/Execution/X3DWorld.js +1 -1
- package/src/x_ite/Fallback.js +1 -6
- package/src/x_ite/Fields/ArrayFields.js +1 -1
- package/src/x_ite/Fields/SFBool.js +1 -1
- package/src/x_ite/Fields/SFColor.js +2 -5
- package/src/x_ite/Fields/SFColorRGBA.js +2 -6
- package/src/x_ite/Fields/SFDouble.js +1 -1
- package/src/x_ite/Fields/SFFloat.js +1 -1
- package/src/x_ite/Fields/SFImage.js +1 -1
- package/src/x_ite/Fields/SFInt32.js +1 -1
- package/src/x_ite/Fields/SFMatrix3.js +16 -11
- package/src/x_ite/Fields/SFMatrix4.js +18 -11
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +15 -4
- package/src/x_ite/Fields/SFNode.js +1 -1
- package/src/x_ite/Fields/SFNodeCache.js +3 -5
- package/src/x_ite/Fields/SFRotation.js +27 -6
- package/src/x_ite/Fields/SFString.js +1 -1
- package/src/x_ite/Fields/SFTime.js +1 -1
- package/src/x_ite/Fields/SFVec2.js +5 -11
- package/src/x_ite/Fields/SFVec3.js +5 -11
- package/src/x_ite/Fields/SFVec4.js +5 -11
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +27 -17
- package/src/x_ite/Fields.js +1 -1
- package/src/x_ite/InputOutput/FileLoader.js +3 -3
- package/src/x_ite/InputOutput/Generator.js +1 -1
- package/src/x_ite/Namespace.js +2 -758
- package/src/x_ite/Parser/GoldenGate.js +1 -1
- package/src/x_ite/Parser/HTMLSupport.js +1 -1
- package/src/x_ite/Parser/JSONParser.js +4 -4
- package/src/x_ite/Parser/VRMLParser.js +15 -1
- package/src/x_ite/Parser/X3DParser.js +1 -1
- package/src/x_ite/Parser/XMLParser.js +1 -1
- package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +1 -1
- package/src/x_ite/Prototype/ProtoDeclarationArray.js +1 -1
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +1 -1
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -1
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -1
- package/src/x_ite/Rendering/DependentRenderer.js +1 -1
- package/src/x_ite/Rendering/TextureBuffer.js +1 -1
- package/src/x_ite/Rendering/TraverseType.js +1 -1
- package/src/x_ite/Rendering/VertexArray.js +2 -2
- package/src/x_ite/Rendering/X3DRenderObject.js +10 -7
- package/src/x_ite/Routing/RouteArray.js +1 -1
- package/src/x_ite/Routing/X3DRoute.js +1 -1
- package/src/x_ite/Routing/X3DRoutingContext.js +1 -1
- package/src/x_ite/X3D.js +25 -37
- package/src/x_ite/X3DCanvas.js +10 -12
- package/src/x_ite.css +20 -0
- package/src/x_ite.html +80 -77
- package/src/x_ite.js +1 -1
- package/webpack.config.js +79 -8
- package/x_ite.min.html +78 -76
- package/build/bin/namespace.mjs +0 -86
- package/docs/404.md +0 -11
- package/docs/Browser-Support.md +0 -53
- package/docs/Supported-Nodes.md +0 -378
- package/docs/_data/navigation.yml +0 -137
- package/docs/assets/css/main.scss +0 -126
- package/docs/reference/Field-Services-and-Objects.md +0 -1110
- package/docs/tutorials/index.md +0 -84
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
layout: page
|
|
3
|
+
---
|
|
4
|
+
<style>
|
|
5
|
+
#sidebar,
|
|
6
|
+
#panel-wrapper {
|
|
7
|
+
display: none !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media all and (max-width: 849px) {
|
|
11
|
+
#sidebar,
|
|
12
|
+
#panel-wrapper {
|
|
13
|
+
display: block !important;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
#topbar-wrapper {
|
|
18
|
+
left: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
#topbar {
|
|
22
|
+
margin: 0;
|
|
23
|
+
max-width: unset;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
#search-wrapper {
|
|
27
|
+
margin: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#main-wrapper,
|
|
31
|
+
footer {
|
|
32
|
+
margin: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
#main {
|
|
36
|
+
margin: 0;
|
|
37
|
+
max-width: unset;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
#core-wrapper {
|
|
41
|
+
flex: 0 0 100%;
|
|
42
|
+
max-width: unset;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
footer > .container {
|
|
46
|
+
padding: 0 !important;
|
|
47
|
+
max-width: unset;
|
|
48
|
+
}
|
|
49
|
+
</style>
|
|
50
|
+
|
|
51
|
+
{% include scripts.html %}
|
|
52
|
+
{{ content }}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
class Jekyll::PostReader
|
|
2
|
+
# Don't use DATE_FILENAME_MATCHER so we don't need to put those stupid dates
|
|
3
|
+
# in the filename. Also limit to just *.markdown, so it won't process binary
|
|
4
|
+
# files from e.g. drags.
|
|
5
|
+
def read_posts(dir)
|
|
6
|
+
read_publishable(dir, "_posts", /.*\.md$/)
|
|
7
|
+
end
|
|
8
|
+
def read_drafts(dir)
|
|
9
|
+
read_publishable(dir, "_drafts", /.*\.md$/)
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
#
|
|
3
|
+
# Check for changed posts
|
|
4
|
+
|
|
5
|
+
Jekyll::Hooks.register :posts, :post_init do |post|
|
|
6
|
+
|
|
7
|
+
commit_num = `git rev-list --count HEAD "#{ post.path }"`
|
|
8
|
+
|
|
9
|
+
if commit_num.to_i > 1
|
|
10
|
+
lastmod_date = `git log -1 --pretty="%ad" --date=iso "#{ post.path }"`
|
|
11
|
+
post.data['last_modified_at'] = lastmod_date
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
end
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
title: Accessing the External Browser
|
|
3
|
+
date: 2022-11-28
|
|
4
|
+
nav: main
|
|
5
|
+
categories: []
|
|
6
|
+
tags: [accessing, external, browser]
|
|
6
7
|
---
|
|
7
|
-
# Accessing the External Browser
|
|
8
8
|
|
|
9
9
|
## Overview
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
X_ITE is designed to provide access to the internal X3D browser and its contained scene graph via JavaScript, either within an internal X3D Script node or an external HTML script.
|
|
12
12
|
|
|
13
13
|
If you want combine DOM access with X3D access in your JavaScript functions then you probably want to access the external browser object if you want include an external JavaScript file in your HTML page and you don't wanna do it directly a in Script node.
|
|
14
14
|
|
|
15
15
|
## Introduction
|
|
16
16
|
|
|
17
|
-
There is the X3D object which is always available, it expects one function handler that is called when the browsers (
|
|
17
|
+
There is the X3D object which is always available, it expects one function handler that is called when the browsers (\<x3d-canvas\> elements) are ready, and a second function handler, that is called if an error occurred. These two arguments are optional. The return value of the X3D function is a Promise, which can be used instead of the arguments.
|
|
18
18
|
|
|
19
19
|
```js
|
|
20
20
|
Promise X3D ([callback[, errorCallback]]);
|
|
@@ -27,7 +27,7 @@ function callback ()
|
|
|
27
27
|
function errorCallback (error)
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
The external browser can be accessed by calling the `X3D .getBrowser (selector)` function, *selector* can be any CSS selector, if you have only one
|
|
30
|
+
The external browser can be accessed by calling the `X3D .getBrowser (selector)` function, *selector* can be any CSS selector, if you have only one \<x3d-canvas\> element on your page, you can omit the selector argument:
|
|
31
31
|
|
|
32
32
|
```html
|
|
33
33
|
<script>
|
|
@@ -92,9 +92,9 @@ async function foo (url)
|
|
|
92
92
|
|
|
93
93
|
#### X3D **noConflict** ()
|
|
94
94
|
|
|
95
|
-
In
|
|
95
|
+
In X_ITE's case, the `X3D` function object is the main entry function. If you need to use another JavaScript library alongside X_ITE, return control of the `X3D` function object back to the other library with a call to `X3D .noConflict ()`. Old references of `X3D` function object are saved during X_ITE initialization; `X3D .noConflict ()` simply restores them. The return value is the `X3D` function object itself.
|
|
96
96
|
|
|
97
|
-
If for some reason two versions of
|
|
97
|
+
If for some reason two versions of X_ITE are loaded (which is not recommended), calling `X3D .noConflict ()` from the second version will return the globally scoped `X3D` object to those of the first version.
|
|
98
98
|
|
|
99
99
|
```html
|
|
100
100
|
<script src="other_lib.js"></script>
|
|
@@ -107,7 +107,7 @@ const X_ITE_X3D = X3D .noConflict ();
|
|
|
107
107
|
|
|
108
108
|
The following services can be used to establish a session and obtain the X3DBrowser object.
|
|
109
109
|
|
|
110
|
-
#### X3DBrowser **getBrowser** (
|
|
110
|
+
#### X3DBrowser **getBrowser** (*[selector : String]*)
|
|
111
111
|
|
|
112
112
|
The *selector* argument must be a string containing a valid CSS selector expression to match elements against. If no selector was given, »x3d-canvas« is used as selector string. The return value is the appropriate X3DBrowser object.
|
|
113
113
|
|
|
@@ -122,12 +122,12 @@ Given a DOM element that represents a x3d-canvas element, the getBrowser functio
|
|
|
122
122
|
|
|
123
123
|
```js
|
|
124
124
|
// Query all x3d-canvas elements within the HTML page.
|
|
125
|
-
const
|
|
125
|
+
const canvases = document .querySelectorAll ("x3d-canvas");
|
|
126
126
|
|
|
127
|
-
for (const
|
|
127
|
+
for (const canvas of canvases)
|
|
128
128
|
{
|
|
129
129
|
// Obtain X3DBrowser object of element i.
|
|
130
|
-
const Browser = X3D .getBrowser (
|
|
130
|
+
const Browser = X3D .getBrowser (canvas);
|
|
131
131
|
...
|
|
132
132
|
}
|
|
133
133
|
```
|
|
@@ -140,11 +140,11 @@ Creates a new x3d-canvas DOM element, initializes it and returns it. Throws an e
|
|
|
140
140
|
function addBrowser (parent)
|
|
141
141
|
{
|
|
142
142
|
// Create a new x3d-canvas element.
|
|
143
|
-
const
|
|
143
|
+
const canvas = X3D .createBrowser ();
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
canvas .setAttribute ("src", "/my/world.x3d");
|
|
146
146
|
|
|
147
|
-
parent .appendChild (
|
|
147
|
+
parent .appendChild (canvas);
|
|
148
148
|
}
|
|
149
149
|
```
|
|
150
150
|
|
|
@@ -154,7 +154,7 @@ The X3D object has several properties, you can use any of the properties below.
|
|
|
154
154
|
|
|
155
155
|
#### **X3DConstants**
|
|
156
156
|
|
|
157
|
-
The X3DConstants object defines values that can be useful for scripting.
|
|
157
|
+
The X3DConstants object defines values that can be useful for scripting. See also [Constants Services](reference/constants-services).
|
|
158
158
|
|
|
159
159
|
```js
|
|
160
160
|
function foo (node)
|
|
@@ -186,7 +186,10 @@ function foo (node)
|
|
|
186
186
|
|
|
187
187
|
#### **X3DFields**
|
|
188
188
|
|
|
189
|
-
All X3DFields (SFColor, ..., MFBool, MFColor, and so on). The fields can be created using the object as constructor.
|
|
189
|
+
All X3DFields (SFColor, ..., MFBool, MFColor, and so on). The fields can be created using the object as constructor. See also [Field Services and Objects](reference/field-services-and-objects).
|
|
190
|
+
|
|
191
|
+
>**Note:** Scalar objects like SFBool, SFDouble, SFFloat, SFInt32, SFString, and SFTime have no constructor, just use the built-in JavaScript types Boolean, Number, and String.
|
|
192
|
+
{: .prompt-info }
|
|
190
193
|
|
|
191
194
|
```js
|
|
192
195
|
// Create a new translation vector and
|
|
@@ -199,19 +202,17 @@ const
|
|
|
199
202
|
|
|
200
203
|
## Function Reference
|
|
201
204
|
|
|
202
|
-
A complete function reference for the X3DBrowser object and all other X3D JavaScript objects can be found [
|
|
205
|
+
A complete function reference for the X3DBrowser object and all other X3D JavaScript objects can be found in [ECMAScript Object and Function Definitions](reference/ecmascript-object-and-function-definitions).
|
|
203
206
|
|
|
204
207
|
## Example
|
|
205
208
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
[View scene in this window.](https://create3000.github.io/media/x_ite/external-browser/adrenaline.html)
|
|
209
|
+
<iframe src="https://create3000.github.io/media/x_ite/external-browser/adrenaline.html"></iframe>
|
|
209
210
|
|
|
210
211
|
Adding HTML controls to your scene is no rocket science. We have added some HTML buttons below the x3d-canvas, which on click call a callback function.
|
|
211
212
|
|
|
212
213
|
### The JavaScript
|
|
213
214
|
|
|
214
|
-
```
|
|
215
|
+
```html
|
|
215
216
|
<script>
|
|
216
217
|
function init ()
|
|
217
218
|
{
|
|
@@ -221,7 +222,7 @@ function init ()
|
|
|
221
222
|
timer = scene .getNamedNode ("SpinAnimationTimer"); // Get box TouchSensor node.
|
|
222
223
|
|
|
223
224
|
// Add field callback to get informed when cycleTime is fired. "time" is an arbitrary
|
|
224
|
-
// string to identify the callback, for
|
|
225
|
+
// string to identify the callback, for instance if you later want to remove the callback.
|
|
225
226
|
timer .addFieldCallback ("cycleTime", "time", function (value)
|
|
226
227
|
{
|
|
227
228
|
console .log ("cycleTime: " + value);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Browser Support
|
|
3
|
+
date: 2022-11-28
|
|
4
|
+
nav: main
|
|
5
|
+
categories: []
|
|
6
|
+
tags: [browser, support]
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
To enjoy the best and most secure experience, we recommend you keep your browser and operating system updated. X_ITE will support the current and previous major releases of:
|
|
12
|
+
|
|
13
|
+
## Desktop
|
|
14
|
+
|
|
15
|
+
Since April 2016 **Chrome** supports all WebGL and JavaScript ES 6 features required by X_ITE. We support the current version and the previous version of Chrome, although X_ITE also runs fine in older versions.
|
|
16
|
+
<https://www.google.com/chrome>{:target="_blank"}
|
|
17
|
+
|
|
18
|
+
**Firefox** as the first browser that supports everything X_ITE needs and is extensively tested since years. We have full support for Firefox.
|
|
19
|
+
<https://www.mozilla.org/firefox/products/>{:target="_blank"}
|
|
20
|
+
|
|
21
|
+
**Safari** has excellent support for WebGL and JavaScript ES 6 and is as much popular as other browsers especially on MacOS X. Keep your Mac up to date to have the best experience we can give.
|
|
22
|
+
<https://www.apple.com/safari/>{:target="_blank"}
|
|
23
|
+
|
|
24
|
+
**Opera** uses the same rendering engine used by Safari and Chrome and is therefore fully supported since April 2016. Always use the latest version of Opera to make your Internet experience more secure and enjoyable.
|
|
25
|
+
<https://www.opera.com/>{:target="_blank"}
|
|
26
|
+
|
|
27
|
+
Starting with Windows 10 X_ITE runs fine in **Microsoft Edge** and is fully supported. Microsoft Edge provides everything X_ITE needs to give you the best performance.
|
|
28
|
+
<https://www.microsoft.com/windows/microsoft-edge>{:target="_blank"}
|
|
29
|
+
|
|
30
|
+
## Mobile
|
|
31
|
+
|
|
32
|
+
All stock browser on **Android** 4.0+ support WebGL and JavaScript ES 6 natively. Always keep in mind to keep your files small in size and always consider to optimize for performance.
|
|
33
|
+
<https://www.android.com/>{:target="_blank"}
|
|
34
|
+
|
|
35
|
+
iOS has good support since **Safari** on iOS 7+. Simplify your scenes and test them extensively to achieve the best results how you would like it to be.
|
|
36
|
+
<https://www.apple.com/ios/>{:target="_blank"}
|
|
37
|
+
|
|
38
|
+
>**Note:** Any problem with X_ITE in the above browsers should be reported as a bug in X_ITE. See [Report a Bug](report-a-bug).
|
|
39
|
+
{: .prompt-info }
|
|
40
|
+
|
|
41
|
+
We do not support older browsers like Internet Explorer 6-9, Opera 12.1x or Safari 5.1+.
|
|
42
|
+
|
|
43
|
+
## Unsupported Browsers
|
|
44
|
+
|
|
45
|
+
While X_ITE *might* run without major issues in older browser versions, we do not actively test X_ITE in them and generally do not fix bugs that may appear in them.
|
|
46
|
+
|
|
47
|
+
Similarly, X_ITE does not fix bugs in pre-release versions of browsers, such as beta or dev releases. If you find a bug with X_ITE in a pre-release of a browser, you should report the bug to the browser vendor.
|
|
48
|
+
|
|
49
|
+
## About Browser Support
|
|
50
|
+
|
|
51
|
+
X_ITE is constantly tested with all of its supported browsers via unit tests. However, a web page using X_ITE may not work in the same set of browsers if its own code takes advantage of (or falls prey to) browser-specific behaviors. Testing is essential to fully support a browser. The Microsoft Edge Developer site makes available [virtual machines](https://dev.windows.com/en-us/microsoft-edge/tools/vms/){:target="_blank"} for testing many different versions of Internet Explorer. Older versions of other browsers can be found at [oldversion.com](http://oldversion.com/){:target="_blank"}.
|
|
52
|
+
|
|
53
|
+
Only the most current version of X_ITE is tested and updated to fix bugs or add features. Users of older versions that find a bug should upgrade to the latest released version to determine if the bug has already been fixed.
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
title: Custom Shaders
|
|
3
|
+
date: 2022-11-28
|
|
4
|
+
nav: main
|
|
5
|
+
categories: []
|
|
6
|
+
tags: [custom, shaders]
|
|
6
7
|
---
|
|
7
|
-
# Custom Shaders
|
|
8
|
-
|
|
9
8
|
## Overview
|
|
10
9
|
|
|
11
10
|
When you display your 3D models with X\_ITE, by default it will use the Gouraud shader. This is a versatile shader that can cover a lot of your rendering needs. If this is not enough there is also a Phong shader available, adjustable with the browser shading option per scripting.
|
|
@@ -14,18 +13,20 @@ However, you will often want to perform special effects or special cases for you
|
|
|
14
13
|
|
|
15
14
|
## Example
|
|
16
15
|
|
|
17
|
-
|
|
16
|
+
<x3d-canvas src="https://create3000.github.io/media/examples/X3D/WaterQuality/WaterQuality.x3d">
|
|
17
|
+
<img src="https://create3000.github.io/media/images/water-quality.png" alt="Shader Example"/>
|
|
18
|
+
</x3d-canvas>
|
|
18
19
|
|
|
19
|
-
[
|
|
20
|
+
[Download ZIP Archive](https://create3000.github.io/media/examples/X3D/WaterQuality/WaterQuality.zip)
|
|
20
21
|
|
|
21
22
|
## Shaders and Shader Definition
|
|
22
23
|
|
|
23
|
-
WebGL uses the GLSL language to write shaders that can be run across all browsers. With X\_ITE you create your own shader using ComposedShader and ShaderPart nodes and than attach the ComposedShader to the *shader* field of an Appearance node and that is a child'
|
|
24
|
+
WebGL uses the GLSL language to write shaders that can be run across all browsers. With X\_ITE you create your own shader using ComposedShader and ShaderPart nodes and than attach the ComposedShader to the *shader* field of an Appearance node and that is a child's play with Titania.
|
|
24
25
|
|
|
25
26
|
### X3D
|
|
26
27
|
|
|
27
28
|
```js
|
|
28
|
-
#X3D
|
|
29
|
+
#X3D V4.0 utf8
|
|
29
30
|
|
|
30
31
|
DEF Timer TimeSensor {
|
|
31
32
|
loop TRUE
|
|
@@ -596,7 +597,10 @@ If the shader node is part of a ParticleSystem node the following attributes and
|
|
|
596
597
|
|
|
597
598
|
## Built-in Constants
|
|
598
599
|
|
|
599
|
-
Some built-in variables are enumerated and have special values and meanings. The following table list all of them and their corresponding values.
|
|
600
|
+
Some built-in variables are enumerated and have special values and meanings. The following table list all of them and their corresponding values.
|
|
601
|
+
|
|
602
|
+
>**Note:** As of version 1.27 these constant are built-in.
|
|
603
|
+
{: .prompt-tip }
|
|
600
604
|
|
|
601
605
|
<table>
|
|
602
606
|
<thead>
|
|
@@ -700,12 +704,12 @@ void
|
|
|
700
704
|
main ()
|
|
701
705
|
{
|
|
702
706
|
...
|
|
703
|
-
//
|
|
707
|
+
//https://outerra.blogspot.com/2013/07/logarithmic-depth-buffer-optimizations.html
|
|
704
708
|
gl_FragDepth = log2 (1.0 + 1.0 / gl_FragCoord .w) * x3d_LogarithmicFarFactor1_2;
|
|
705
709
|
}
|
|
706
710
|
```
|
|
707
711
|
|
|
708
712
|
## See Also
|
|
709
713
|
|
|
710
|
-
- [ComposedShader](https://www.web3d.org/documents/specifications/19775-1/
|
|
711
|
-
- [ShaderPart](https://www.web3d.org/documents/specifications/19775-1/
|
|
714
|
+
- [ComposedShader](https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/components/shaders.html#ComposedShader){:target="_blank"}
|
|
715
|
+
- [ShaderPart](https://www.web3d.org/documents/specifications/19775-1/V4.0/Part01/components/shaders.html#ShaderPart){:target="_blank"}
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
title: DOM Integration
|
|
3
|
+
date: 2022-11-28
|
|
4
|
+
nav: main
|
|
5
|
+
categories: []
|
|
6
|
+
tags: [dom, integration, XHTML]
|
|
6
7
|
---
|
|
7
|
-
# DOM Integration
|
|
8
|
-
|
|
9
8
|
## Overview
|
|
10
9
|
|
|
11
10
|
DOM integration allows you to integrate 3D content seamlessly into your web page, with just a JavaScript file included the scene can be written directly into the XHTML or HTML markup.
|
|
12
11
|
|
|
13
12
|
Andreas Plesch wrote a nice plug-in for X3D DOM integration. This enables JavaScript authors to use X3D content as if it would be HTML. It links the X3D DOM nodes to the X3D scene graph and thereby allows for control of the X3D scene using regular DOM manipulation methods.
|
|
14
13
|
|
|
15
|
-
**HTML DOM integration is
|
|
14
|
+
**HTML DOM integration is now an integral part of X_ITE.**
|
|
16
15
|
|
|
17
|
-
## How
|
|
16
|
+
## How to Use With X_ITE
|
|
18
17
|
|
|
19
18
|
Create an HTML or XHTML page and save it, include the »x_ite.min.js«. Now, X3D content can directly be written within the \<x3d-canvas\> element and regular DOM manipulation methods can be used to manipulate the scene graph. This gives X3D authors the ability to combine HTML with X3D. The example below will show a simple Box node in the \<x3d-canvas\> element.
|
|
20
19
|
|
|
21
|
-
### Example
|
|
22
|
-
|
|
23
20
|
```html
|
|
24
21
|
<!DOCTYPE html>
|
|
25
22
|
<html>
|
|
@@ -28,8 +25,9 @@ Create an HTML or XHTML page and save it, include the »x_ite.min.js«. Now, X3D
|
|
|
28
25
|
<script src="https://create3000.github.io/code/x_ite/latest/x_ite.min.js"></script>
|
|
29
26
|
<style>
|
|
30
27
|
x3d-canvas {
|
|
31
|
-
width:
|
|
32
|
-
height:
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: auto;
|
|
30
|
+
aspect-ratio: 16 / 7.8;
|
|
33
31
|
}
|
|
34
32
|
</style>
|
|
35
33
|
<script>
|
|
@@ -84,12 +82,19 @@ window .addEventListener ("load", function ()
|
|
|
84
82
|
</html>
|
|
85
83
|
```
|
|
86
84
|
|
|
85
|
+
>**Attention:** Make sure you use **closing tags** for all X3D elements. This is needed, because the web browser does not know the X3D elements, and therefor does not know if the tag is self-closing, unless you use XHTML.
|
|
86
|
+
{: .prompt-danger }
|
|
87
|
+
|
|
88
|
+
### Example
|
|
89
|
+
|
|
90
|
+
<iframe src="https://create3000.github.io/media/x_ite/dom-integration/box.html"></iframe>
|
|
91
|
+
|
|
87
92
|
## Attributes
|
|
88
93
|
|
|
89
94
|
If you change an attribute of an X3D element, then the internal state of the node will also change.
|
|
90
95
|
|
|
91
96
|
```js
|
|
92
|
-
const material = document .querySelector ("Material")
|
|
97
|
+
const material = document .querySelector ("Material");
|
|
93
98
|
|
|
94
99
|
material .setAttribute ("diffuseColor", "1 0 0"); // Set diffuse color to red.
|
|
95
100
|
```
|
|
@@ -101,11 +106,12 @@ You can add an event listener to any X3D element with the name of the output fie
|
|
|
101
106
|
Events sent from a node are of type CustomEvent and have the following properties:
|
|
102
107
|
|
|
103
108
|
```js
|
|
104
|
-
{
|
|
105
|
-
type: string,
|
|
109
|
+
CustomEvent: {
|
|
110
|
+
type: string, // name of field
|
|
111
|
+
target: HTMLElement, // X3D element of node
|
|
106
112
|
detail: {
|
|
107
|
-
node: SFNode,
|
|
108
|
-
value: any,
|
|
113
|
+
node: SFNode, // node to which the field belongs to
|
|
114
|
+
value: any, // new value of field
|
|
109
115
|
}
|
|
110
116
|
}
|
|
111
117
|
```
|
|
@@ -181,12 +187,13 @@ function addRoute ()
|
|
|
181
187
|
scene = document .querySelector ("Scene"),
|
|
182
188
|
route = document .createElement ("ROUTE");
|
|
183
189
|
|
|
184
|
-
// Connect a TimeSensor node to a ScalarInterpolator node
|
|
190
|
+
// Connect a TimeSensor node with DEF name »Timer« to a ScalarInterpolator node
|
|
191
|
+
// with DEF name »Interpolator«.
|
|
185
192
|
|
|
186
193
|
route .setAttribute ("id", "route1");
|
|
187
|
-
route .setAttribute ("fromNode", "
|
|
194
|
+
route .setAttribute ("fromNode", "Timer");
|
|
188
195
|
route .setAttribute ("fromField", "fraction_changed");
|
|
189
|
-
route .setAttribute ("toNode", "
|
|
196
|
+
route .setAttribute ("toNode", "Interpolator");
|
|
190
197
|
route .setAttribute ("toField", "set_fraction");
|
|
191
198
|
|
|
192
199
|
scene .appendChild (route);
|
|
@@ -202,5 +209,5 @@ function removeRoute ()
|
|
|
202
209
|
|
|
203
210
|
## See Also
|
|
204
211
|
|
|
205
|
-
* [X3D Encoding : XML](https://www.web3d.org/documents/specifications/19776-1/V3.3/index.html)
|
|
206
|
-
* [X3D Abstract : Node Definitions](https://www.web3d.org/documents/specifications/19775-1/V4.0/index.html)
|
|
212
|
+
* [X3D Encoding : XML](https://www.web3d.org/documents/specifications/19776-1/V3.3/index.html){:target="_blank"}
|
|
213
|
+
* [X3D Abstract : Node Definitions](https://www.web3d.org/documents/specifications/19775-1/V4.0/index.html){:target="_blank"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
title: Features
|
|
3
|
+
date: 2022-11-28
|
|
4
|
+
nav: main
|
|
5
|
+
categories: []
|
|
6
|
+
tags: [features]
|
|
6
7
|
---
|
|
7
|
-
# Features
|
|
8
|
-
|
|
9
8
|
## Overview
|
|
10
9
|
|
|
11
10
|
X_ITE is a fast, small, and feature-rich JavaScript library for displaying and executing X3D files. It makes things like WebGL programming, document access and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
|
|
@@ -16,7 +15,7 @@ Runs completely standalone, ie. there are no other library dependencies. You jus
|
|
|
16
15
|
|
|
17
16
|
Competitive performance for most frequently used functions and nodes. All function within X_ITE are optimized to give your the best performance that JavaScript can offer.
|
|
18
17
|
|
|
19
|
-
The X_ITE package is optimized in size with Terser to achieve the smallest size we can reach. **X_ITE has only
|
|
18
|
+
The X_ITE package is optimized in size with Terser to achieve the smallest size we can reach. **X_ITE has only 250kB in size minified and compressed.**
|
|
20
19
|
|
|
21
20
|
X_ITE is designed for optimal performance with event driven programming. The flow of the program is determined by events such as user actions (mouse clicks, key presses), sensor outputs, or messages from other scripts.
|
|
22
21
|
|
|
@@ -24,27 +23,27 @@ All code is held by CREATE3000 and all contributors are selected and all contrib
|
|
|
24
23
|
|
|
25
24
|
## Core Features
|
|
26
25
|
|
|
27
|
-
Although WebGL acts behind the scenes you do not need any special knowledge about that. There are many of ready to use [X3D nodes](
|
|
26
|
+
Although WebGL acts behind the scenes you do not need any special knowledge about that. There are many of ready to use [X3D nodes](supported-nodes) that will make life easier. X_ITE provides comprehensive X3D support, which is complete and standard compliant.
|
|
28
27
|
|
|
29
28
|
X_ITE comes with a high performance JavaScript rendering engine, ie. developers may be completely free of worry about performance optimizations in their code.
|
|
30
29
|
|
|
31
|
-
We offer full [X3D ECMAScript](reference/
|
|
30
|
+
We offer full [X3D ECMAScript](reference/ecmascript-object-and-function-definitions) support to give you the best scripting tools you can get.
|
|
32
31
|
|
|
33
32
|
X3D comes with a fixed set of objects, called *nodes,* which will cover most of your needs. But it's creators have also planned ahead, knowing that you'll sometimes have to create your own objects. The prototyping feature lets you create complex objects that you can reuse, changing certain characteristics of the objects when desired.
|
|
34
33
|
|
|
35
34
|
X_ITE works seamlessly together with Titania. There is a X_ITE Compatibility Mode in Titania that makes that everything looks equal both in Titania and X_ITE, additionally scripts, and shaders provide the same functionality.
|
|
36
35
|
|
|
37
|
-
There is excellent build in support for Gouraud and Phong shading. Gouraud and Phong shading are the most popular shading algorithm in use today. This methods were developed by Henri Gouraud and Phong Bui-Toung. If the build in shading methods are not enough for you there is support for [Custom Shaders](
|
|
36
|
+
There is excellent build in support for Gouraud and Phong shading. Gouraud and Phong shading are the most popular shading algorithm in use today. This methods were developed by Henri Gouraud and Phong Bui-Toung. If the build in shading methods are not enough for you there is support for [Custom Shaders](custom-shaders). Don't bother about *uniform variables, shader compilation, and texture loading.* With the Composed Shader node it is easy to write to your own shader even if you are a beginner, but it is also all there for professionals. There is a standardized shader API similar to GLSL that makes it easy to convert your existing shaders. The build in shaders support eight simultaneous local lights for each Shape node, Color node attached to a geometry is supported. There is smooth texture mapping adjustable with TextureProperties node and normals can be auto generated depending on *creaseAngle* if you wish smooth shading.
|
|
38
37
|
|
|
39
38
|
Complex routing graphs can be created. The event model of X3D allows the creation of connections between fields (routes) and event are propagated along those connections. The behavior graph collects all of these field connections. It can be changed dynamically by rerouting, adding or breaking connections. Events are injected into the system and propagated through the behavior graph in a well defined order.
|
|
40
39
|
|
|
41
40
|
Collision detection is also considered, it is unbreakable. In virtual reality environments, collision detection is a algorithm that determines how close a user is to a real physical objects and will stop their movement before colliding with the object. If you wish there is terrain following support. Terrain following works by determining the floor under the avatar and let him go over plains and mountains. Use the NavigationInfo node to enable it.
|
|
42
41
|
|
|
43
|
-
To add special effects and environment sound to your scenes there is support for MovieTexture and Sound node with a standardized set of functions. These are easy to use. They use HTML5
|
|
42
|
+
To add special effects and environment sound to your scenes there is support for MovieTexture and Sound node with a standardized set of functions. These are easy to use. They use HTML5 \<video\> and \<audio\> elements internally, you don't need to worry about it.
|
|
44
43
|
|
|
45
44
|
You can create text quick and easy. Use the Text node which can load remote font files in TrueType and OpenType format but there are also build in fonts.
|
|
46
45
|
|
|
47
|
-
If this is not enough for you have a look at [Supported Nodes](
|
|
46
|
+
If this is not enough for you have a look at [Supported Nodes](supported-nodes) there's sure to be something there for you.
|
|
48
47
|
|
|
49
48
|
## Code Features
|
|
50
49
|
|