x_ite 8.6.12 → 8.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LICENSE.md +4 -4
- package/dist/assets/components/Annotation.js +37 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +45 -21
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +39 -28
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +37 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +37 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +55 -23
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +84 -40
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +42 -18
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +18 -10
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +47 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +84 -28
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +70 -30
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +42 -22
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +93 -37
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +35 -31
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +33 -25
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +22 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +64 -32
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +80 -28
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +13 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +1697 -1080
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +2 -2
- package/docs/_posts/components/Core/WorldInfo.md +1 -1
- package/docs/_posts/components/EnvironmentalEffects/Background.md +1 -1
- package/docs/_posts/components/EnvironmentalEffects/Fog.md +1 -1
- package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +1 -1
- package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +1 -1
- package/docs/_posts/components/Geometry3D/Box.md +1 -1
- package/docs/_posts/components/Geometry3D/Cone.md +1 -1
- package/docs/_posts/components/Geometry3D/Cylinder.md +1 -1
- package/docs/_posts/components/Geometry3D/ElevationGrid.md +1 -1
- package/docs/_posts/components/Geometry3D/Extrusion.md +1 -1
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +1 -1
- package/docs/_posts/components/Geometry3D/Sphere.md +1 -1
- package/docs/_posts/components/Grouping/Group.md +1 -1
- package/docs/_posts/components/Grouping/Switch.md +1 -1
- package/docs/_posts/components/Grouping/Transform.md +1 -1
- package/docs/_posts/components/Interpolation/ColorInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/NormalInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/OrientationInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/PositionInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/ScalarInterpolator.md +1 -1
- package/docs/_posts/components/Lighting/DirectionalLight.md +1 -1
- package/docs/_posts/components/Lighting/PointLight.md +1 -1
- package/docs/_posts/components/Lighting/SpotLight.md +1 -1
- package/docs/_posts/components/Navigation/Billboard.md +1 -1
- package/docs/_posts/components/Navigation/Collision.md +1 -1
- package/docs/_posts/components/Navigation/LOD.md +1 -1
- package/docs/_posts/components/Navigation/NavigationInfo.md +1 -1
- package/docs/_posts/components/Navigation/Viewpoint.md +1 -1
- package/docs/_posts/components/Networking/Anchor.md +1 -1
- package/docs/_posts/components/Networking/Inline.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/SphereSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/TouchSensor.md +1 -1
- package/docs/_posts/components/Rendering/Color.md +1 -1
- package/docs/_posts/components/Rendering/Coordinate.md +1 -1
- package/docs/_posts/components/Rendering/IndexedLineSet.md +1 -1
- package/docs/_posts/components/Rendering/Normal.md +1 -1
- package/docs/_posts/components/Rendering/PointSet.md +1 -1
- package/docs/_posts/components/Scripting/Script.md +1 -1
- package/docs/_posts/components/Shape/Appearance.md +1 -1
- package/docs/_posts/components/Shape/Material.md +1 -9
- package/docs/_posts/components/Shape/PhysicalMaterial.md +0 -8
- package/docs/_posts/components/Shape/Shape.md +1 -1
- package/docs/_posts/components/Shape/UnlitMaterial.md +0 -8
- package/docs/_posts/components/Sound/AudioClip.md +1 -1
- package/docs/_posts/components/Sound/Sound.md +1 -1
- package/docs/_posts/components/Text/FontStyle.md +1 -1
- package/docs/_posts/components/Text/Text.md +1 -1
- package/docs/_posts/components/Texturing/ImageTexture.md +1 -5
- package/docs/_posts/components/Texturing/MovieTexture.md +1 -5
- package/docs/_posts/components/Texturing/PixelTexture.md +1 -1
- package/docs/_posts/components/Texturing/TextureCoordinate.md +1 -1
- package/docs/_posts/components/Texturing/TextureTransform.md +1 -1
- package/docs/_posts/components/Time/TimeSensor.md +1 -1
- package/docs/laboratory/gltf-sample-viewer.html +1 -1
- package/package.json +1 -1
- package/src/standard/Math/Numbers/Matrix2.js +3 -3
- package/src/standard/Math/Numbers/Vector4.js +1 -0
- package/src/tests.js +2 -0
- package/src/x_ite/Base/X3DBaseNode.js +58 -53
- package/src/x_ite/Browser/Core/BrowserOptions.js +2 -1
- package/src/x_ite/Browser/Core/X3DCoreContext.js +3 -6
- package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +9 -15
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +0 -3
- package/src/x_ite/Browser/Navigation/FlyViewer.js +0 -2
- package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +10 -12
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +40 -21
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +19 -19
- package/src/x_ite/Components/Annotation/AnnotationLayer.js +4 -0
- package/src/x_ite/Components/Annotation/AnnotationTarget.js +4 -0
- package/src/x_ite/Components/Annotation/GroupAnnotation.js +4 -0
- package/src/x_ite/Components/Annotation/IconAnnotation.js +4 -0
- package/src/x_ite/Components/Annotation/TextAnnotation.js +4 -0
- package/src/x_ite/Components/Annotation/URLAnnotation.js +4 -0
- package/src/x_ite/Components/CADGeometry/CADAssembly.js +4 -0
- package/src/x_ite/Components/CADGeometry/CADFace.js +12 -8
- package/src/x_ite/Components/CADGeometry/CADLayer.js +4 -0
- package/src/x_ite/Components/CADGeometry/CADPart.js +4 -0
- package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +4 -0
- package/src/x_ite/Components/CADGeometry/QuadSet.js +4 -0
- package/src/x_ite/Components/Core/MetadataBoolean.js +8 -4
- package/src/x_ite/Components/Core/MetadataDouble.js +8 -4
- package/src/x_ite/Components/Core/MetadataFloat.js +8 -4
- package/src/x_ite/Components/Core/MetadataInteger.js +8 -4
- package/src/x_ite/Components/Core/MetadataSet.js +8 -4
- package/src/x_ite/Components/Core/MetadataString.js +8 -4
- package/src/x_ite/Components/Core/WorldInfo.js +4 -0
- package/src/x_ite/Components/Core/X3DNode.js +17 -16
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +11 -14
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +4 -1
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +4 -0
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +6 -2
- package/src/x_ite/Components/DIS/DISEntityManager.js +4 -0
- package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +4 -0
- package/src/x_ite/Components/DIS/EspduTransform.js +4 -0
- package/src/x_ite/Components/DIS/ReceiverPdu.js +4 -0
- package/src/x_ite/Components/DIS/SignalPdu.js +4 -0
- package/src/x_ite/Components/DIS/TransmitterPdu.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/Background.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/Fog.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +4 -0
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +4 -0
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +6 -2
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +4 -0
- package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +2 -2
- package/src/x_ite/Components/EventUtilities/BooleanFilter.js +4 -0
- package/src/x_ite/Components/EventUtilities/BooleanSequencer.js +4 -0
- package/src/x_ite/Components/EventUtilities/BooleanToggle.js +4 -0
- package/src/x_ite/Components/EventUtilities/BooleanTrigger.js +4 -0
- package/src/x_ite/Components/EventUtilities/IntegerSequencer.js +4 -0
- package/src/x_ite/Components/EventUtilities/IntegerTrigger.js +4 -0
- package/src/x_ite/Components/EventUtilities/TimeTrigger.js +4 -0
- package/src/x_ite/Components/Followers/ColorChaser.js +4 -0
- package/src/x_ite/Components/Followers/ColorDamper.js +4 -0
- package/src/x_ite/Components/Followers/CoordinateChaser.js +4 -0
- package/src/x_ite/Components/Followers/CoordinateDamper.js +4 -0
- package/src/x_ite/Components/Followers/OrientationChaser.js +4 -0
- package/src/x_ite/Components/Followers/OrientationDamper.js +4 -0
- package/src/x_ite/Components/Followers/PositionChaser.js +4 -0
- package/src/x_ite/Components/Followers/PositionChaser2D.js +4 -0
- package/src/x_ite/Components/Followers/PositionDamper.js +4 -0
- package/src/x_ite/Components/Followers/PositionDamper2D.js +4 -0
- package/src/x_ite/Components/Followers/ScalarChaser.js +4 -0
- package/src/x_ite/Components/Followers/ScalarDamper.js +4 -0
- package/src/x_ite/Components/Followers/TexCoordChaser2D.js +4 -0
- package/src/x_ite/Components/Followers/TexCoordDamper2D.js +4 -0
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +2 -2
- package/src/x_ite/Components/Geometry2D/Arc2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/Circle2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/Disk2D.js +5 -1
- package/src/x_ite/Components/Geometry2D/Polyline2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/Polypoint2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +4 -0
- package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +4 -0
- package/src/x_ite/Components/Geometry3D/Box.js +4 -0
- package/src/x_ite/Components/Geometry3D/Cone.js +5 -1
- package/src/x_ite/Components/Geometry3D/Cylinder.js +5 -1
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +14 -10
- package/src/x_ite/Components/Geometry3D/Extrusion.js +4 -0
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +7 -3
- package/src/x_ite/Components/Geometry3D/Sphere.js +5 -1
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +11 -7
- package/src/x_ite/Components/Geospatial/GeoLOD.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoLocation.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoMetadata.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoOrigin.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoTransform.js +4 -0
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +4 -0
- package/src/x_ite/Components/Grouping/Group.js +4 -0
- package/src/x_ite/Components/Grouping/StaticGroup.js +4 -0
- package/src/x_ite/Components/Grouping/Switch.js +11 -7
- package/src/x_ite/Components/Grouping/Transform.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimDisplacer.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimJoint.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimMotion.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimSegment.js +4 -0
- package/src/x_ite/Components/HAnim/HAnimSite.js +4 -0
- package/src/x_ite/Components/Interpolation/ColorInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js +4 -0
- package/src/x_ite/Components/Interpolation/EaseInEaseOut.js +4 -0
- package/src/x_ite/Components/Interpolation/NormalInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/PositionInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +4 -0
- package/src/x_ite/Components/Interpolation/ScalarInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator2D.js +4 -0
- package/src/x_ite/Components/Interpolation/SplineScalarInterpolator.js +4 -0
- package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +4 -0
- package/src/x_ite/Components/KeyDeviceSensor/KeySensor.js +4 -0
- package/src/x_ite/Components/KeyDeviceSensor/StringSensor.js +4 -0
- package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +2 -2
- package/src/x_ite/Components/Layering/Layer.js +4 -0
- package/src/x_ite/Components/Layering/LayerSet.js +4 -0
- package/src/x_ite/Components/Layering/Viewport.js +4 -0
- package/src/x_ite/Components/Layering/X3DLayerNode.js +40 -49
- package/src/x_ite/Components/Layout/Layout.js +4 -0
- package/src/x_ite/Components/Layout/LayoutGroup.js +4 -0
- package/src/x_ite/Components/Layout/LayoutLayer.js +4 -0
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +4 -0
- package/src/x_ite/Components/Layout/ScreenGroup.js +4 -0
- package/src/x_ite/Components/Lighting/DirectionalLight.js +4 -0
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +4 -0
- package/src/x_ite/Components/Lighting/PointLight.js +4 -0
- package/src/x_ite/Components/Lighting/SpotLight.js +7 -9
- package/src/x_ite/Components/NURBS/Contour2D.js +4 -0
- package/src/x_ite/Components/NURBS/ContourPolyline2D.js +4 -0
- package/src/x_ite/Components/NURBS/CoordinateDouble.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsCurve.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSet.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +4 -0
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +4 -0
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +4 -4
- package/src/x_ite/Components/Navigation/Billboard.js +4 -0
- package/src/x_ite/Components/Navigation/Collision.js +8 -4
- package/src/x_ite/Components/Navigation/LOD.js +11 -7
- package/src/x_ite/Components/Navigation/NavigationInfo.js +4 -0
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +4 -0
- package/src/x_ite/Components/Navigation/Viewpoint.js +4 -0
- package/src/x_ite/Components/Navigation/ViewpointGroup.js +4 -0
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +8 -0
- package/src/x_ite/Components/Networking/Anchor.js +4 -0
- package/src/x_ite/Components/Networking/Inline.js +6 -2
- package/src/x_ite/Components/Networking/LoadSensor.js +42 -29
- package/src/x_ite/Components/Networking/X3DUrlObject.js +2 -2
- package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +4 -0
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +12 -8
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +4 -0
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +4 -0
- package/src/x_ite/Components/Picking/LinePickSensor.js +4 -0
- package/src/x_ite/Components/Picking/PickableGroup.js +4 -0
- package/src/x_ite/Components/Picking/PointPickSensor.js +4 -0
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +4 -0
- package/src/x_ite/Components/Picking/VolumePickSensor.js +4 -0
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +4 -4
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +4 -0
- package/src/x_ite/Components/PointingDeviceSensor/X3DPointingDeviceSensorNode.js +28 -19
- package/src/x_ite/Components/Rendering/ClipPlane.js +4 -0
- package/src/x_ite/Components/Rendering/Color.js +4 -0
- package/src/x_ite/Components/Rendering/ColorRGBA.js +4 -0
- package/src/x_ite/Components/Rendering/Coordinate.js +4 -0
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +15 -11
- package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +4 -0
- package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +4 -0
- package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +4 -0
- package/src/x_ite/Components/Rendering/LineSet.js +16 -12
- package/src/x_ite/Components/Rendering/Normal.js +4 -0
- package/src/x_ite/Components/Rendering/PointSet.js +15 -11
- package/src/x_ite/Components/Rendering/TriangleFanSet.js +4 -0
- package/src/x_ite/Components/Rendering/TriangleSet.js +4 -0
- package/src/x_ite/Components/Rendering/TriangleStripSet.js +4 -0
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +14 -14
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +6 -6
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +6 -6
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +4 -4
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +11 -7
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +11 -7
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +7 -3
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/Contact.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +6 -2
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +4 -0
- package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +4 -0
- package/src/x_ite/Components/Scripting/Script.js +7 -3
- package/src/x_ite/Components/Shaders/ComposedShader.js +11 -9
- package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +4 -0
- package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +4 -0
- package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +4 -0
- package/src/x_ite/Components/Shaders/PackagedShader.js +4 -0
- package/src/x_ite/Components/Shaders/ProgramShader.js +4 -0
- package/src/x_ite/Components/Shaders/ShaderPart.js +4 -2
- package/src/x_ite/Components/Shaders/ShaderProgram.js +4 -0
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +3 -3
- package/src/x_ite/Components/Shape/AcousticProperties.js +4 -0
- package/src/x_ite/Components/Shape/Appearance.js +8 -4
- package/src/x_ite/Components/Shape/FillProperties.js +4 -0
- package/src/x_ite/Components/Shape/LineProperties.js +4 -0
- package/src/x_ite/Components/Shape/Material.js +5 -2
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +5 -2
- package/src/x_ite/Components/Shape/PointProperties.js +4 -0
- package/src/x_ite/Components/Shape/Shape.js +4 -0
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +4 -0
- package/src/x_ite/Components/Shape/UnlitMaterial.js +5 -2
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +1 -1
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +5 -7
- package/src/x_ite/Components/Shape/X3DShapeNode.js +1 -1
- package/src/x_ite/Components/Sound/Analyser.js +4 -0
- package/src/x_ite/Components/Sound/AudioClip.js +6 -2
- package/src/x_ite/Components/Sound/AudioDestination.js +4 -0
- package/src/x_ite/Components/Sound/BiquadFilter.js +4 -0
- package/src/x_ite/Components/Sound/BufferAudioSource.js +4 -0
- package/src/x_ite/Components/Sound/ChannelMerger.js +4 -0
- package/src/x_ite/Components/Sound/ChannelSelector.js +4 -0
- package/src/x_ite/Components/Sound/ChannelSplitter.js +4 -0
- package/src/x_ite/Components/Sound/Convolver.js +4 -0
- package/src/x_ite/Components/Sound/Delay.js +4 -0
- package/src/x_ite/Components/Sound/DynamicsCompressor.js +4 -0
- package/src/x_ite/Components/Sound/Gain.js +4 -0
- package/src/x_ite/Components/Sound/ListenerPointSource.js +4 -0
- package/src/x_ite/Components/Sound/MicrophoneSource.js +4 -0
- package/src/x_ite/Components/Sound/OscillatorSource.js +4 -0
- package/src/x_ite/Components/Sound/PeriodicWave.js +4 -0
- package/src/x_ite/Components/Sound/Sound.js +6 -2
- package/src/x_ite/Components/Sound/SpatialSound.js +4 -0
- package/src/x_ite/Components/Sound/StreamAudioDestination.js +4 -0
- package/src/x_ite/Components/Sound/StreamAudioSource.js +4 -0
- package/src/x_ite/Components/Sound/WaveShaper.js +4 -0
- package/src/x_ite/Components/Text/FontStyle.js +4 -0
- package/src/x_ite/Components/Text/Text.js +5 -1
- package/src/x_ite/Components/TextureProjector/TextureProjector.js +4 -0
- package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +4 -0
- package/src/x_ite/Components/Texturing/ImageTexture.js +13 -13
- package/src/x_ite/Components/Texturing/MovieTexture.js +10 -7
- package/src/x_ite/Components/Texturing/MultiTexture.js +4 -0
- package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +4 -0
- package/src/x_ite/Components/Texturing/MultiTextureTransform.js +4 -0
- package/src/x_ite/Components/Texturing/PixelTexture.js +4 -0
- package/src/x_ite/Components/Texturing/TextureCoordinate.js +4 -0
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +4 -0
- package/src/x_ite/Components/Texturing/TextureProperties.js +4 -0
- package/src/x_ite/Components/Texturing/TextureTransform.js +4 -0
- package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +6 -2
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +4 -0
- package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +4 -0
- package/src/x_ite/Components/Time/TimeSensor.js +5 -1
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +6 -6
- package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +4 -0
- package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +4 -0
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +4 -0
- package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +8 -8
- package/src/x_ite/Components/X_ITE/BlendMode.js +4 -0
- package/src/x_ite/Execution/BindableList.js +16 -19
- package/src/x_ite/Execution/X3DExecutionContext.js +33 -11
- package/src/x_ite/Execution/X3DScene.js +4 -0
- package/src/x_ite/Fields/ArrayFields.js +42 -22
- package/src/x_ite/Fields/SFNode.js +3 -6
- package/src/x_ite/Fields/SFNodeCache.js +34 -19
- package/src/x_ite/InputOutput/FileLoader.js +22 -14
- package/src/x_ite/Parser/GLTF2Parser.js +72 -51
- package/src/x_ite/Parser/VRMLParser.js +66 -34
- package/src/x_ite/Parser/X3DParser.js +9 -36
- package/src/x_ite/Parser/XMLParser.js +8 -8
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +2 -2
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -2
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -1
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
|
@@ -84,6 +84,10 @@ Shape .prototype = Object .assign (Object .create (X3DShapeNode .prototype),
|
|
|
84
84
|
{
|
|
85
85
|
return "children";
|
|
86
86
|
},
|
|
87
|
+
getSpecificationRange: function ()
|
|
88
|
+
{
|
|
89
|
+
return ["2.0", "Infinity"];
|
|
90
|
+
},
|
|
87
91
|
initialize: function ()
|
|
88
92
|
{
|
|
89
93
|
X3DShapeNode .prototype .initialize .call (this);
|
|
@@ -101,6 +101,10 @@ TwoSidedMaterial .prototype = Object .assign (Object .create (X3DMaterialNode .p
|
|
|
101
101
|
{
|
|
102
102
|
return "material";
|
|
103
103
|
},
|
|
104
|
+
getSpecificationRange: function ()
|
|
105
|
+
{
|
|
106
|
+
return ["3.2", "Infinity"];
|
|
107
|
+
},
|
|
104
108
|
initialize: function ()
|
|
105
109
|
{
|
|
106
110
|
X3DMaterialNode . prototype .initialize .call (this);
|
|
@@ -64,7 +64,6 @@ UnlitMaterial .prototype = Object .assign (Object .create (X3DOneSidedMaterialNo
|
|
|
64
64
|
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new FieldDefinitionArray ([
|
|
65
65
|
new X3DFieldDefinition (X3DConstants .inputOutput, "metadata", new Fields .SFNode ()),
|
|
66
66
|
new X3DFieldDefinition (X3DConstants .inputOutput, "emissiveColor", new Fields .SFColor (1, 1, 1)),
|
|
67
|
-
new X3DFieldDefinition (X3DConstants .inputOutput, "emissiveStrength", new Fields .SFFloat (1)),
|
|
68
67
|
new X3DFieldDefinition (X3DConstants .inputOutput, "emissiveTextureMapping", new Fields .SFString ()),
|
|
69
68
|
new X3DFieldDefinition (X3DConstants .inputOutput, "emissiveTexture", new Fields .SFNode ()),
|
|
70
69
|
new X3DFieldDefinition (X3DConstants .inputOutput, "normalScale", new Fields .SFFloat (1)),
|
|
@@ -84,6 +83,10 @@ UnlitMaterial .prototype = Object .assign (Object .create (X3DOneSidedMaterialNo
|
|
|
84
83
|
{
|
|
85
84
|
return "material";
|
|
86
85
|
},
|
|
86
|
+
getSpecificationRange: function ()
|
|
87
|
+
{
|
|
88
|
+
return ["4.0", "Infinity"];
|
|
89
|
+
},
|
|
87
90
|
initialize: function ()
|
|
88
91
|
{
|
|
89
92
|
X3DOneSidedMaterialNode .prototype .initialize .call (this);
|
|
@@ -103,7 +106,7 @@ UnlitMaterial .prototype = Object .assign (Object .create (X3DOneSidedMaterialNo
|
|
|
103
106
|
set_transparent__: function ()
|
|
104
107
|
{
|
|
105
108
|
this .setTransparent (!!(this .getTransparency () ||
|
|
106
|
-
this .getEmissiveTexture ()?.isTransparent ()));
|
|
109
|
+
this .getEmissiveTexture () ?.isTransparent ()));
|
|
107
110
|
},
|
|
108
111
|
getMaterialKey: function ()
|
|
109
112
|
{
|
|
@@ -120,7 +120,7 @@ X3DMaterialNode .prototype = Object .assign (Object .create (X3DAppearanceChildN
|
|
|
120
120
|
key += appearanceNode .getNormalizedAlphaMode (transparent);
|
|
121
121
|
key += this .getMaterialKey (shadows);
|
|
122
122
|
key += shadows ? 1 : 0;
|
|
123
|
-
key += fogNode?.getFogType () ?? 0;
|
|
123
|
+
key += fogNode ?.getFogType () ?? 0;
|
|
124
124
|
key += shapeNode .getShapeKey ();
|
|
125
125
|
key += appearanceNode .getStyleProperties (geometryContext .geometryType) ? 1 : 0;
|
|
126
126
|
key += appearanceNode .getTextureTransformMapping () .size || 1;
|
|
@@ -70,7 +70,6 @@ X3DOneSidedMaterialNode .prototype = Object .assign (Object .create (X3DMaterial
|
|
|
70
70
|
X3DMaterialNode .prototype .initialize .call (this);
|
|
71
71
|
|
|
72
72
|
this ._emissiveColor .addInterest ("set_emissiveColor__", this);
|
|
73
|
-
this ._emissiveStrength .addInterest ("set_emissiveColor__", this);
|
|
74
73
|
this ._emissiveTexture .addInterest ("set_emissiveTexture__", this);
|
|
75
74
|
this ._normalTexture .addInterest ("set_normalTexture__", this);
|
|
76
75
|
this ._transparency .addInterest ("set_transparency__", this);
|
|
@@ -87,13 +86,12 @@ X3DOneSidedMaterialNode .prototype = Object .assign (Object .create (X3DMaterial
|
|
|
87
86
|
//this .emissiveColor .set (this ._emissiveColor .getValue ());
|
|
88
87
|
|
|
89
88
|
const
|
|
90
|
-
emissiveColor
|
|
91
|
-
emissiveColor_
|
|
92
|
-
emissiveStrength = this ._emissiveStrength .getValue ();
|
|
89
|
+
emissiveColor = this .emissiveColor,
|
|
90
|
+
emissiveColor_ = this ._emissiveColor .getValue ();
|
|
93
91
|
|
|
94
|
-
emissiveColor [0] = emissiveColor_ .r
|
|
95
|
-
emissiveColor [1] = emissiveColor_ .g
|
|
96
|
-
emissiveColor [2] = emissiveColor_ .b
|
|
92
|
+
emissiveColor [0] = emissiveColor_ .r;
|
|
93
|
+
emissiveColor [1] = emissiveColor_ .g;
|
|
94
|
+
emissiveColor [2] = emissiveColor_ .b;
|
|
97
95
|
},
|
|
98
96
|
set_emissiveTexture__: function ()
|
|
99
97
|
{
|
|
@@ -181,7 +181,7 @@ X3DShapeNode .prototype = Object .assign (Object .create (X3DChildNode .prototyp
|
|
|
181
181
|
{
|
|
182
182
|
if (this .appearanceNode .getAlphaMode () === AlphaMode .AUTO)
|
|
183
183
|
{
|
|
184
|
-
this .transparent = !!(this .appearanceNode .isTransparent () || this .geometryNode?.isTransparent ());
|
|
184
|
+
this .transparent = !!(this .appearanceNode .isTransparent () || this .geometryNode ?.isTransparent ());
|
|
185
185
|
}
|
|
186
186
|
else
|
|
187
187
|
{
|
|
@@ -102,6 +102,10 @@ AudioClip .prototype = Object .assign (Object .create (X3DSoundSourceNode .proto
|
|
|
102
102
|
{
|
|
103
103
|
return "source";
|
|
104
104
|
},
|
|
105
|
+
getSpecificationRange: function ()
|
|
106
|
+
{
|
|
107
|
+
return ["2.0", "Infinity"];
|
|
108
|
+
},
|
|
105
109
|
initialize: function ()
|
|
106
110
|
{
|
|
107
111
|
X3DSoundSourceNode .prototype .initialize .call (this);
|
|
@@ -171,7 +175,7 @@ AudioClip .prototype = Object .assign (Object .create (X3DSoundSourceNode .proto
|
|
|
171
175
|
setError: function (event)
|
|
172
176
|
{
|
|
173
177
|
if (this .URL .protocol !== "data:")
|
|
174
|
-
console .warn (
|
|
178
|
+
console .warn (`Error loading audio '${decodeURI (this .URL .href)}'`, event .type);
|
|
175
179
|
|
|
176
180
|
this .loadNext ();
|
|
177
181
|
},
|
|
@@ -180,7 +184,7 @@ AudioClip .prototype = Object .assign (Object .create (X3DSoundSourceNode .proto
|
|
|
180
184
|
if (DEBUG)
|
|
181
185
|
{
|
|
182
186
|
if (this .URL .protocol !== "data:")
|
|
183
|
-
console .info (
|
|
187
|
+
console .info (`Done loading audio '${decodeURI (this .URL .href)}'`);
|
|
184
188
|
}
|
|
185
189
|
|
|
186
190
|
this .audio .unbind ("canplaythrough");
|
|
@@ -112,6 +112,10 @@ BufferAudioSource .prototype = Object .assign (Object .create (X3DSoundSourceNod
|
|
|
112
112
|
{
|
|
113
113
|
return "children";
|
|
114
114
|
},
|
|
115
|
+
getSpecificationRange: function ()
|
|
116
|
+
{
|
|
117
|
+
return ["4.0", "Infinity"];
|
|
118
|
+
},
|
|
115
119
|
initialize: function ()
|
|
116
120
|
{
|
|
117
121
|
X3DSoundSourceNode .prototype .initialize .call (this);
|
|
@@ -101,6 +101,10 @@ DynamicsCompressor .prototype = Object .assign (Object .create (X3DSoundProcessi
|
|
|
101
101
|
{
|
|
102
102
|
return "children";
|
|
103
103
|
},
|
|
104
|
+
getSpecificationRange: function ()
|
|
105
|
+
{
|
|
106
|
+
return ["4.0", "Infinity"];
|
|
107
|
+
},
|
|
104
108
|
});
|
|
105
109
|
|
|
106
110
|
export default DynamicsCompressor;
|
|
@@ -107,11 +107,15 @@ Sound .prototype = Object .assign (Object .create (X3DSoundNode .prototype),
|
|
|
107
107
|
{
|
|
108
108
|
return "children";
|
|
109
109
|
},
|
|
110
|
+
getSpecificationRange: function ()
|
|
111
|
+
{
|
|
112
|
+
return ["2.0", "Infinity"];
|
|
113
|
+
},
|
|
110
114
|
initialize: function ()
|
|
111
115
|
{
|
|
112
116
|
X3DSoundNode .prototype .initialize .call (this);
|
|
113
117
|
|
|
114
|
-
this .
|
|
118
|
+
this .getLive () .addInterest ("set_live__", this);
|
|
115
119
|
this ._traversed .addInterest ("set_live__", this);
|
|
116
120
|
|
|
117
121
|
this ._source .addInterest ("set_source__", this);
|
|
@@ -140,7 +144,7 @@ Sound .prototype = Object .assign (Object .create (X3DSoundNode .prototype),
|
|
|
140
144
|
},
|
|
141
145
|
set_live__: function ()
|
|
142
146
|
{
|
|
143
|
-
if (this .
|
|
147
|
+
if (this .getLive () .getValue () && this ._traversed .getValue ())
|
|
144
148
|
{
|
|
145
149
|
this .getBrowser () .sensorEvents () .addInterest ("update", this);
|
|
146
150
|
}
|
|
@@ -88,6 +88,10 @@ FontStyle .prototype = Object .assign (Object .create (X3DFontStyleNode .prototy
|
|
|
88
88
|
{
|
|
89
89
|
return "fontStyle";
|
|
90
90
|
},
|
|
91
|
+
getSpecificationRange: function ()
|
|
92
|
+
{
|
|
93
|
+
return ["2.0", "Infinity"];
|
|
94
|
+
},
|
|
91
95
|
getTextGeometry: function (text)
|
|
92
96
|
{
|
|
93
97
|
return new PolygonText (text, this);
|
|
@@ -91,6 +91,10 @@ Text .prototype = Object .assign (Object .create (X3DGeometryNode .prototype),
|
|
|
91
91
|
{
|
|
92
92
|
return "geometry";
|
|
93
93
|
},
|
|
94
|
+
getSpecificationRange: function ()
|
|
95
|
+
{
|
|
96
|
+
return ["2.0", "Infinity"];
|
|
97
|
+
},
|
|
94
98
|
initialize: function ()
|
|
95
99
|
{
|
|
96
100
|
X3DGeometryNode .prototype .initialize .call (this);
|
|
@@ -114,7 +118,7 @@ Text .prototype = Object .assign (Object .create (X3DGeometryNode .prototype),
|
|
|
114
118
|
{
|
|
115
119
|
X3DGeometryNode .prototype .set_live__ .call (this);
|
|
116
120
|
|
|
117
|
-
if (this .
|
|
121
|
+
if (this .getLive () .getValue ())
|
|
118
122
|
this .getBrowser () .getBrowserOptions () ._PrimitiveQuality .addInterest ("requestRebuild", this);
|
|
119
123
|
else
|
|
120
124
|
this .getBrowser () .getBrowserOptions () ._PrimitiveQuality .removeInterest ("requestRebuild", this);
|
|
@@ -180,6 +180,10 @@ TextureProjector .prototype = Object .assign (Object .create (X3DTextureProjecto
|
|
|
180
180
|
{
|
|
181
181
|
return "children";
|
|
182
182
|
},
|
|
183
|
+
getSpecificationRange: function ()
|
|
184
|
+
{
|
|
185
|
+
return ["4.0", "Infinity"];
|
|
186
|
+
},
|
|
183
187
|
initialize: function ()
|
|
184
188
|
{
|
|
185
189
|
X3DTextureProjectorNode .prototype .initialize .call (this);
|
|
@@ -201,6 +201,10 @@ TextureProjectorParallel .prototype = Object .assign (Object .create (X3DTexture
|
|
|
201
201
|
{
|
|
202
202
|
return "children";
|
|
203
203
|
},
|
|
204
|
+
getSpecificationRange: function ()
|
|
205
|
+
{
|
|
206
|
+
return ["4.0", "Infinity"];
|
|
207
|
+
},
|
|
204
208
|
initialize: function ()
|
|
205
209
|
{
|
|
206
210
|
X3DTextureProjectorNode .prototype .initialize .call (this);
|
|
@@ -76,7 +76,6 @@ ImageTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
76
76
|
new X3DFieldDefinition (X3DConstants .inputOutput, "url", new Fields .MFString ()),
|
|
77
77
|
new X3DFieldDefinition (X3DConstants .inputOutput, "autoRefresh", new Fields .SFTime ()),
|
|
78
78
|
new X3DFieldDefinition (X3DConstants .inputOutput, "autoRefreshTimeLimit", new Fields .SFTime (3600)),
|
|
79
|
-
new X3DFieldDefinition (X3DConstants .initializeOnly, "flipVertically", new Fields .SFBool ()),
|
|
80
79
|
new X3DFieldDefinition (X3DConstants .initializeOnly, "repeatS", new Fields .SFBool (true)),
|
|
81
80
|
new X3DFieldDefinition (X3DConstants .initializeOnly, "repeatT", new Fields .SFBool (true)),
|
|
82
81
|
new X3DFieldDefinition (X3DConstants .initializeOnly, "textureProperties", new Fields .SFNode ()),
|
|
@@ -93,13 +92,15 @@ ImageTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
93
92
|
{
|
|
94
93
|
return "texture";
|
|
95
94
|
},
|
|
95
|
+
getSpecificationRange: function ()
|
|
96
|
+
{
|
|
97
|
+
return ["2.0", "Infinity"];
|
|
98
|
+
},
|
|
96
99
|
initialize: function ()
|
|
97
100
|
{
|
|
98
101
|
X3DTexture2DNode .prototype .initialize .call (this);
|
|
99
102
|
X3DUrlObject .prototype .initialize .call (this);
|
|
100
103
|
|
|
101
|
-
this ._flipVertically .addInterest ("set_url__", this);
|
|
102
|
-
|
|
103
104
|
this .image .on ("load", this .setImage .bind (this));
|
|
104
105
|
this .image .on ("abort error", this .setError .bind (this));
|
|
105
106
|
this .image .prop ("crossOrigin", "Anonymous");
|
|
@@ -143,7 +144,7 @@ ImageTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
143
144
|
setError: function (event)
|
|
144
145
|
{
|
|
145
146
|
if (this .URL .protocol !== "data:")
|
|
146
|
-
console .warn (
|
|
147
|
+
console .warn (`Error loading image '${decodeURI (this .URL .href)}'`, event .type);
|
|
147
148
|
|
|
148
149
|
this .loadNext ();
|
|
149
150
|
},
|
|
@@ -152,7 +153,7 @@ ImageTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
152
153
|
if (DEBUG)
|
|
153
154
|
{
|
|
154
155
|
if (this .URL .protocol !== "data:")
|
|
155
|
-
console .info (
|
|
156
|
+
console .info (`Done loading image '${decodeURI (this .URL .href)}'`);
|
|
156
157
|
}
|
|
157
158
|
|
|
158
159
|
try
|
|
@@ -180,11 +181,9 @@ ImageTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
180
181
|
cx .clearRect (0, 0, width, height);
|
|
181
182
|
cx .save ();
|
|
182
183
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
cx .scale (1, -1);
|
|
187
|
-
}
|
|
184
|
+
// Flip vertically.
|
|
185
|
+
cx .translate (0, height);
|
|
186
|
+
cx .scale (1, -1);
|
|
188
187
|
|
|
189
188
|
cx .drawImage (image, 0, 0, image .width, image .height, 0, 0, width, height);
|
|
190
189
|
cx .restore ();
|
|
@@ -208,10 +207,9 @@ ImageTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
208
207
|
width = image .width,
|
|
209
208
|
height = image .height;
|
|
210
209
|
|
|
211
|
-
// Flip
|
|
210
|
+
// Flip vertically.
|
|
212
211
|
|
|
213
|
-
|
|
214
|
-
this .flipImage (data, width, height, 4);
|
|
212
|
+
this .flipImage (data, width, height, 4);
|
|
215
213
|
|
|
216
214
|
// Upload image to GPU.
|
|
217
215
|
|
|
@@ -236,7 +234,9 @@ ImageTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
236
234
|
gl .bindFramebuffer (gl.FRAMEBUFFER, framebuffer);
|
|
237
235
|
gl .bindTexture (gl.TEXTURE_2D, texture);
|
|
238
236
|
gl .framebufferTexture2D (gl.FRAMEBUFFER, gl .COLOR_ATTACHMENT0, gl .TEXTURE_2D, texture, 0);
|
|
237
|
+
//gl .pixelStorei (gl .UNPACK_COLORSPACE_CONVERSION_WEBGL, colorspace ? gl .BROWSER_DEFAULT_WEBGL : gl .NONE);
|
|
239
238
|
gl .texImage2D (gl .TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, image);
|
|
239
|
+
//gl .pixelStorei (gl .UNPACK_COLORSPACE_CONVERSION_WEBGL, gl .BROWSER_DEFAULT_WEBGL);
|
|
240
240
|
await gl .readPixelsAsync (0, 0, image .width, image .height, gl.RGBA, gl.UNSIGNED_BYTE, data);
|
|
241
241
|
gl .deleteFramebuffer (framebuffer);
|
|
242
242
|
gl .deleteTexture (texture);
|
|
@@ -93,7 +93,6 @@ MovieTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
93
93
|
new X3DFieldDefinition (X3DConstants .outputOnly, "isActive", new Fields .SFBool ()),
|
|
94
94
|
new X3DFieldDefinition (X3DConstants .outputOnly, "elapsedTime", new Fields .SFTime ()),
|
|
95
95
|
new X3DFieldDefinition (X3DConstants .outputOnly, "duration_changed", new Fields .SFTime (-1)),
|
|
96
|
-
new X3DFieldDefinition (X3DConstants .initializeOnly, "flipVertically", new Fields .SFBool ()),
|
|
97
96
|
new X3DFieldDefinition (X3DConstants .initializeOnly, "repeatS", new Fields .SFBool (true)),
|
|
98
97
|
new X3DFieldDefinition (X3DConstants .initializeOnly, "repeatT", new Fields .SFBool (true)),
|
|
99
98
|
new X3DFieldDefinition (X3DConstants .initializeOnly, "textureProperties", new Fields .SFNode ()),
|
|
@@ -110,6 +109,10 @@ MovieTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
110
109
|
{
|
|
111
110
|
return "texture";
|
|
112
111
|
},
|
|
112
|
+
getSpecificationRange: function ()
|
|
113
|
+
{
|
|
114
|
+
return ["2.0", "Infinity"];
|
|
115
|
+
},
|
|
113
116
|
initialize: function ()
|
|
114
117
|
{
|
|
115
118
|
X3DTexture2DNode .prototype .initialize .call (this);
|
|
@@ -195,7 +198,7 @@ MovieTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
195
198
|
setError: function (event)
|
|
196
199
|
{
|
|
197
200
|
if (this .URL .protocol !== "data:")
|
|
198
|
-
console .warn (
|
|
201
|
+
console .warn (`Error loading movie '${decodeURI (this .URL .href)}'`, event .type);
|
|
199
202
|
|
|
200
203
|
this .loadNext ();
|
|
201
204
|
},
|
|
@@ -204,7 +207,7 @@ MovieTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
204
207
|
if (DEBUG)
|
|
205
208
|
{
|
|
206
209
|
if (this .URL .protocol !== "data:")
|
|
207
|
-
console .info (
|
|
210
|
+
console .info (`Done loading movie '${decodeURI (this .URL .href)}'`);
|
|
208
211
|
}
|
|
209
212
|
|
|
210
213
|
try
|
|
@@ -220,7 +223,7 @@ MovieTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
220
223
|
throw new Error ("The movie texture is a non power-of-two texture.");
|
|
221
224
|
|
|
222
225
|
this .setMedia (this .video [0]);
|
|
223
|
-
this .setTexture (width, height, false, video,
|
|
226
|
+
this .setTexture (width, height, false, video, true);
|
|
224
227
|
this .setLoadState (X3DConstants .COMPLETE_STATE);
|
|
225
228
|
}
|
|
226
229
|
catch (error)
|
|
@@ -240,7 +243,7 @@ MovieTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
240
243
|
gif .pause ();
|
|
241
244
|
|
|
242
245
|
this .setMedia (gif);
|
|
243
|
-
this .setTexture (gif .get_canvas () .width, gif .get_canvas () .height, false, gif .get_frames () [0] .data,
|
|
246
|
+
this .setTexture (gif .get_canvas () .width, gif .get_canvas () .height, false, gif .get_frames () [0] .data, true);
|
|
244
247
|
this .setLoadState (X3DConstants .COMPLETE_STATE);
|
|
245
248
|
}
|
|
246
249
|
catch (error)
|
|
@@ -257,9 +260,9 @@ MovieTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
257
260
|
return;
|
|
258
261
|
|
|
259
262
|
if (this .gif)
|
|
260
|
-
this .updateTexture (this .gif .currentFrame .data,
|
|
263
|
+
this .updateTexture (this .gif .currentFrame .data, true);
|
|
261
264
|
else
|
|
262
|
-
this .updateTexture (this .video [0],
|
|
265
|
+
this .updateTexture (this .video [0], true);
|
|
263
266
|
},
|
|
264
267
|
traverse: X3DTexture2DNode .prototype .traverse,
|
|
265
268
|
dispose: function ()
|
|
@@ -99,6 +99,10 @@ MultiTexture .prototype = Object .assign (Object .create (X3DTextureNode .protot
|
|
|
99
99
|
{
|
|
100
100
|
return "texture";
|
|
101
101
|
},
|
|
102
|
+
getSpecificationRange: function ()
|
|
103
|
+
{
|
|
104
|
+
return ["3.0", "Infinity"];
|
|
105
|
+
},
|
|
102
106
|
initialize: function ()
|
|
103
107
|
{
|
|
104
108
|
X3DTextureNode .prototype .initialize .call (this);
|
|
@@ -83,6 +83,10 @@ MultiTextureCoordinate .prototype = Object .assign (Object .create (X3DTextureCo
|
|
|
83
83
|
{
|
|
84
84
|
return "texCoord";
|
|
85
85
|
},
|
|
86
|
+
getSpecificationRange: function ()
|
|
87
|
+
{
|
|
88
|
+
return ["3.0", "Infinity"];
|
|
89
|
+
},
|
|
86
90
|
initialize: function ()
|
|
87
91
|
{
|
|
88
92
|
X3DTextureCoordinateNode .prototype .initialize .call (this);
|
|
@@ -83,6 +83,10 @@ MultiTextureTransform .prototype = Object .assign (Object .create (X3DTextureTra
|
|
|
83
83
|
{
|
|
84
84
|
return "textureTransform";
|
|
85
85
|
},
|
|
86
|
+
getSpecificationRange: function ()
|
|
87
|
+
{
|
|
88
|
+
return ["3.0", "Infinity"];
|
|
89
|
+
},
|
|
86
90
|
initialize: function ()
|
|
87
91
|
{
|
|
88
92
|
X3DTextureTransformNode .prototype .initialize .call (this);
|
|
@@ -86,6 +86,10 @@ PixelTexture .prototype = Object .assign (Object .create (X3DTexture2DNode .prot
|
|
|
86
86
|
{
|
|
87
87
|
return "texture";
|
|
88
88
|
},
|
|
89
|
+
getSpecificationRange: function ()
|
|
90
|
+
{
|
|
91
|
+
return ["2.0", "Infinity"];
|
|
92
|
+
},
|
|
89
93
|
initialize: function ()
|
|
90
94
|
{
|
|
91
95
|
X3DTexture2DNode .prototype .initialize .call (this);
|
|
@@ -79,6 +79,10 @@ TextureCoordinate .prototype = Object .assign (Object .create (X3DSingleTextureC
|
|
|
79
79
|
{
|
|
80
80
|
return "texCoord";
|
|
81
81
|
},
|
|
82
|
+
getSpecificationRange: function ()
|
|
83
|
+
{
|
|
84
|
+
return ["2.0", "Infinity"];
|
|
85
|
+
},
|
|
82
86
|
initialize: function ()
|
|
83
87
|
{
|
|
84
88
|
X3DSingleTextureCoordinateNode .prototype .initialize .call (this);
|