x_ite 5.0.3 → 6.1.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/.vscode/settings.json +12 -5
- package/.vscode/tasks.json +25 -1
- package/Makefile +36 -28
- package/README.md +6 -11
- package/build/bin/dist.pl +0 -6
- package/build/bin/examples-and-tests.pl +75 -0
- package/build/bin/tests-menu.pl +57 -0
- package/build/bin/version.pl +7 -4
- package/build/parts/default.start.frag.js +3 -2
- package/dist/assets/components/annotation.js +3 -2
- package/dist/assets/components/annotation.min.js +1 -1
- package/dist/assets/components/cad-geometry.js +3 -2
- package/dist/assets/components/cad-geometry.min.js +1 -1
- package/dist/assets/components/cube-map-texturing.js +8 -20
- package/dist/assets/components/cube-map-texturing.min.js +1 -1
- package/dist/assets/components/dis.js +3 -2
- package/dist/assets/components/dis.min.js +1 -1
- package/dist/assets/components/event-utilities.js +4 -3
- package/dist/assets/components/event-utilities.min.js +1 -1
- package/dist/assets/components/geometry2d.js +38 -52
- package/dist/assets/components/geometry2d.min.js +1 -1
- package/dist/assets/components/geospatial.js +34 -1686
- package/dist/assets/components/geospatial.min.js +1 -1
- package/dist/assets/components/h-anim.js +71 -77
- package/dist/assets/components/h-anim.min.js +1 -1
- package/dist/assets/components/key-device-sensor.js +4 -3
- package/dist/assets/components/key-device-sensor.min.js +1 -1
- package/dist/assets/components/layout.js +101 -173
- package/dist/assets/components/layout.min.js +1 -1
- package/dist/assets/components/nurbs.js +3 -2
- package/dist/assets/components/nurbs.min.js +1 -1
- package/dist/assets/components/particle-systems.js +1926 -1669
- package/dist/assets/components/particle-systems.min.js +1 -1
- package/dist/assets/components/picking.js +34 -41
- package/dist/assets/components/picking.min.js +1 -1
- package/dist/assets/components/projective-texture-mapping.js +73 -86
- package/dist/assets/components/projective-texture-mapping.min.js +1 -1
- package/dist/assets/components/rigid-body-physics.js +37 -57
- package/dist/assets/components/rigid-body-physics.min.js +1 -1
- package/dist/assets/components/scripting.js +3 -2
- package/dist/assets/components/scripting.min.js +1 -1
- package/dist/assets/components/texturing-3d.js +27 -33
- package/dist/assets/components/texturing-3d.min.js +3 -3
- package/dist/assets/components/volume-rendering.js +12 -11
- package/dist/assets/components/volume-rendering.min.js +1 -1
- package/dist/assets/components/x_ite.js +3 -2
- package/dist/assets/components/x_ite.min.js +1 -1
- package/dist/assets/images/Shading.png +0 -0
- package/dist/assets/linetype/1.png +0 -0
- package/dist/assets/linetype/10.png +0 -0
- package/dist/assets/linetype/11.png +0 -0
- package/dist/assets/linetype/12.png +0 -0
- package/dist/assets/linetype/13.png +0 -0
- package/dist/assets/linetype/14.png +0 -0
- package/dist/assets/linetype/15.png +0 -0
- package/dist/assets/linetype/16.png +0 -0
- package/dist/assets/linetype/2.png +0 -0
- package/dist/assets/linetype/3.png +0 -0
- package/dist/assets/linetype/4.png +0 -0
- package/dist/assets/linetype/5.png +0 -0
- package/dist/assets/linetype/6.png +0 -0
- package/dist/assets/linetype/7.png +0 -0
- package/dist/assets/linetype/8.png +0 -0
- package/dist/assets/linetype/9.png +0 -0
- package/dist/assets/shaders/webgl1/Gouraud.vs +1 -1
- package/dist/assets/shaders/webgl1/Line.fs +0 -21
- package/dist/assets/shaders/webgl1/Line.vs +0 -10
- package/dist/assets/shaders/webgl1/PBR.fs +1 -1
- package/dist/assets/shaders/webgl1/PBR.vs +1 -1
- package/dist/assets/shaders/webgl1/Phong.fs +1 -1
- package/dist/assets/shaders/webgl1/Point.vs +1 -1
- package/dist/assets/shaders/webgl2/Depth.vs +29 -1
- package/dist/assets/shaders/webgl2/Gouraud.vs +32 -4
- package/dist/assets/shaders/webgl2/Line.fs +24 -12
- package/dist/assets/shaders/webgl2/Line.vs +36 -11
- package/dist/assets/shaders/webgl2/LineTransform.fs +4 -0
- package/dist/assets/shaders/webgl2/LineTransform.vs +57 -0
- package/dist/assets/shaders/webgl2/PBR.fs +1 -1
- package/dist/assets/shaders/webgl2/PBR.vs +35 -7
- package/dist/assets/shaders/webgl2/Phong.fs +1 -1
- package/dist/assets/shaders/webgl2/Phong.vs +31 -3
- package/dist/assets/shaders/webgl2/Point.vs +30 -2
- package/dist/assets/shaders/webgl2/Unlit.vs +31 -3
- package/dist/example.html +6 -6
- package/dist/x_ite.css +199 -224
- package/dist/x_ite.js +16335 -15917
- package/dist/x_ite.min.js +17 -17
- package/dist/x_ite.zip +0 -0
- package/docs/404.md +6 -0
- package/docs/Accessing-the-External-Browser.md +21 -15
- package/docs/Browser-Support.md +6 -0
- package/docs/Custom-Shaders.md +18 -25
- package/docs/Features.md +11 -5
- package/docs/Gemfile +44 -0
- package/docs/Gemfile.lock +122 -0
- package/docs/Glossary.md +6 -0
- package/docs/How-To-Configure-Your-Web-Server.md +6 -0
- package/docs/Supported-Nodes.md +9 -1
- package/docs/What's-New.md +93 -39
- package/docs/XHTML-DOM-Integration.md +6 -0
- package/docs/_config.yml +2 -2
- package/docs/assets/css/main.scss +26 -0
- package/docs/index.md +42 -50
- package/docs/reference/Browser-Services.md +9 -3
- package/docs/reference/Constants-Services.md +6 -0
- package/docs/reference/ECMAScript-Object-and-Function-Definitions.md +12 -6
- package/docs/reference/Field-Services-and-Objects.md +105 -1
- package/docs/reference/Prototype-Services.md +11 -0
- package/docs/reference/Route-Services.md +9 -0
- package/docs/reference/Scene-Services.md +17 -2
- package/docs/reference/Script-Node-Authoring-Interface.md +7 -1
- package/docs/tutorials/Adding-backgrounds.md +6 -0
- package/docs/tutorials/Adding-fog.md +6 -0
- package/docs/tutorials/Adding-sound.md +6 -0
- package/docs/tutorials/Animating-transforms.md +6 -0
- package/docs/tutorials/Basic-Nodes.md +6 -0
- package/docs/tutorials/Building-a-X3D-world.md +6 -0
- package/docs/tutorials/Building-elevation-grids.md +6 -0
- package/docs/tutorials/Building-extruded-shapes.md +6 -0
- package/docs/tutorials/Building-primitive-shapes.md +6 -0
- package/docs/tutorials/Building-shapes-out-of-points,-lines,-and-faces.md +6 -0
- package/docs/tutorials/Controlling-appearance-with-materials.md +6 -0
- package/docs/tutorials/Controlling-color-on-coordinate-based-geometry.md +6 -0
- package/docs/tutorials/Controlling-detail.md +6 -0
- package/docs/tutorials/Controlling-how-textures-are-mapped.md +6 -0
- package/docs/tutorials/Controlling-navigation.md +6 -0
- package/docs/tutorials/Controlling-shading-on-coordinate-based-geometry.md +6 -0
- package/docs/tutorials/Controlling-the-viewpoint.md +6 -0
- package/docs/tutorials/Creating-new-node-types.md +6 -0
- package/docs/tutorials/Grouping-nodes.md +6 -0
- package/docs/tutorials/Hello,-World!.md +6 -0
- package/docs/tutorials/Improving-Performance.md +6 -0
- package/docs/tutorials/Increasing-Rendering-Speed.md +6 -0
- package/docs/tutorials/Introducing-X3D.md +6 -0
- package/docs/tutorials/Introducing-animation.md +6 -0
- package/docs/tutorials/Introducing-script-use.md +6 -0
- package/docs/tutorials/Lighting-your-world.md +6 -0
- package/docs/tutorials/Mapping-textures.md +6 -0
- package/docs/tutorials/Naming-nodes.md +6 -0
- package/docs/tutorials/Providing-information-about-your-world.md +6 -0
- package/docs/tutorials/Sensing-the-viewer.md +6 -0
- package/docs/tutorials/Sensing-viewer-actions.md +6 -0
- package/docs/tutorials/Transforming-Shapes.md +6 -0
- package/docs/tutorials/Writing-program-scripts-with-ECMAScript.md +6 -0
- package/docs/tutorials/index.md +42 -36
- package/package.json +6 -7
- package/src/assets/components/geometry2d.js +1 -1
- package/src/assets/components/key-device-sensor.js +1 -1
- package/src/assets/components/layout.js +1 -1
- package/src/assets/components/particle-systems.js +1 -1
- package/src/assets/components/volume-rendering.js +1 -1
- package/src/assets/images/Shading.png +0 -0
- package/src/assets/linetype/1.png +0 -0
- package/src/assets/linetype/10.png +0 -0
- package/src/assets/linetype/11.png +0 -0
- package/src/assets/linetype/12.png +0 -0
- package/src/assets/linetype/13.png +0 -0
- package/src/assets/linetype/14.png +0 -0
- package/src/assets/linetype/15.png +0 -0
- package/src/assets/linetype/16.png +0 -0
- package/src/assets/linetype/2.png +0 -0
- package/src/assets/linetype/3.png +0 -0
- package/src/assets/linetype/4.png +0 -0
- package/src/assets/linetype/5.png +0 -0
- package/src/assets/linetype/6.png +0 -0
- package/src/assets/linetype/7.png +0 -0
- package/src/assets/linetype/8.png +0 -0
- package/src/assets/linetype/9.png +0 -0
- package/src/assets/shaders/Types.glsl +1 -9
- package/src/assets/shaders/webgl1/Gouraud.fs +1 -1
- package/src/assets/shaders/webgl1/Gouraud.vs +2 -3
- package/src/assets/shaders/webgl1/Line.fs +3 -28
- package/src/assets/shaders/webgl1/Line.vs +6 -20
- package/src/assets/shaders/webgl1/PBR.fs +6 -6
- package/src/assets/shaders/webgl1/PBR.vs +1 -1
- package/src/assets/shaders/webgl1/Phong.fs +10 -10
- package/src/assets/shaders/webgl1/Point.vs +2 -2
- package/src/assets/shaders/webgl1/Unlit.fs +4 -4
- package/src/assets/shaders/webgl1/include/Normal.glsl +1 -1
- package/src/assets/shaders/webgl1/include/Texture.glsl +3 -8
- package/src/assets/shaders/webgl2/Depth.vs +4 -1
- package/src/assets/shaders/webgl2/Gouraud.fs +1 -1
- package/src/assets/shaders/webgl2/Gouraud.vs +8 -6
- package/src/assets/shaders/webgl2/Line.fs +11 -17
- package/src/assets/shaders/webgl2/Line.vs +17 -21
- package/src/assets/shaders/webgl2/LineTransform.fs +6 -0
- package/src/assets/shaders/webgl2/LineTransform.vs +77 -0
- package/src/assets/shaders/webgl2/PBR.fs +6 -6
- package/src/assets/shaders/webgl2/PBR.vs +10 -7
- package/src/assets/shaders/webgl2/Phong.fs +11 -11
- package/src/assets/shaders/webgl2/Phong.vs +6 -3
- package/src/assets/shaders/webgl2/Point.vs +5 -4
- package/src/assets/shaders/webgl2/Unlit.fs +5 -5
- package/src/assets/shaders/webgl2/Unlit.vs +6 -3
- package/src/assets/shaders/webgl2/include/Line2.glsl +20 -0
- package/src/assets/shaders/webgl2/include/Normal.glsl +1 -1
- package/src/assets/shaders/webgl2/include/Particle.glsl +36 -0
- package/src/assets/shaders/webgl2/include/Texture.glsl +3 -3
- package/src/example.html +6 -6
- package/src/examples.js +5 -4
- package/src/standard/Math/Algorithm.js +12 -28
- package/src/standard/Math/Geometry/Line2.js +163 -0
- package/src/standard/Math/Geometry/Line3.js +3 -5
- package/src/standard/Math/Geometry/Plane3.js +0 -2
- package/src/standard/Math/Geometry/Triangle3.js +1 -1
- package/src/standard/Math/Geometry/ViewVolume.js +121 -103
- package/src/standard/Math/Numbers/Color3.js +6 -0
- package/src/standard/Math/Numbers/Color4.js +7 -0
- package/src/standard/Math/Numbers/Complex.js +48 -34
- package/src/standard/Math/Numbers/Matrix2.js +62 -2
- package/src/standard/Math/Numbers/Matrix3.js +129 -110
- package/src/standard/Math/Numbers/Matrix4.js +138 -119
- package/src/standard/Math/Numbers/Quaternion.js +12 -5
- package/src/standard/Math/Numbers/Rotation4.js +8 -1
- package/src/standard/Math/Numbers/Vector2.js +42 -9
- package/src/standard/Math/Numbers/Vector3.js +50 -14
- package/src/standard/Math/Numbers/Vector4.js +48 -11
- package/src/standard/Math/Utility/BVH.js +45 -17
- package/src/tests.js +68 -66
- package/src/x_ite/Base/X3DBaseNode.js +22 -11
- package/src/x_ite/Base/X3DField.js +1 -1
- package/src/x_ite/Browser/Core/BrowserOptions.js +24 -143
- package/src/x_ite/Browser/Core/BrowserTimings.js +6 -4
- package/src/x_ite/Browser/Core/Context.js +185 -0
- package/src/x_ite/Browser/Core/ContextMenu.js +398 -211
- package/src/x_ite/Browser/Core/Notification.js +1 -0
- package/src/x_ite/Browser/Core/X3DCoreContext.js +35 -146
- package/src/x_ite/Browser/Followers/X3DArrayFollowerTemplate.js +1 -1
- package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +1 -0
- package/src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js +2 -2
- package/src/x_ite/Browser/Geometry3D/X3DGeometry3DContext.js +41 -2
- package/src/x_ite/Browser/Geospatial/Geocentric.js +2 -2
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +1 -1
- package/src/x_ite/Browser/Layout/ScreenText.js +18 -65
- package/src/x_ite/Browser/Layout/X3DLayoutContext.js +59 -16
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +13 -20
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +1 -4
- package/src/x_ite/Browser/Navigation/PlaneViewer.js +0 -3
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +15 -8
- package/src/x_ite/Browser/Navigation/X3DViewer.js +12 -20
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +11 -7
- package/src/x_ite/Browser/ParticleSystems/BVH.glsl +183 -0
- package/src/x_ite/Browser/ParticleSystems/Box3.glsl +47 -0
- package/src/x_ite/Browser/ParticleSystems/GeometryTypes.js +66 -0
- package/src/x_ite/Browser/ParticleSystems/Line3.glsl +55 -0
- package/src/x_ite/Browser/ParticleSystems/Plane3.glsl +160 -0
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +27 -3
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +41 -37
- package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +21 -13
- package/src/x_ite/Browser/Shaders/Shader.js +33 -12
- package/src/x_ite/Browser/Shaders/ShaderSource.js +6 -0
- package/src/x_ite/Browser/Shaders/ShaderTest.js +16 -10
- package/src/x_ite/Browser/Shape/X3DShapeContext.js +50 -9
- package/src/x_ite/Browser/Text/X3DTextContext.js +4 -13
- package/src/x_ite/Browser/Text/X3DTextGeometry.js +2 -1
- package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +71 -34
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +2 -2
- package/src/x_ite/Browser/Time/X3DTimeContext.js +4 -2
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +7 -6
- package/src/x_ite/Browser/X3DBrowserContext.js +43 -10
- package/src/x_ite/Components/Core/X3DNode.js +4 -0
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +0 -2
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +3 -4
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +1 -12
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +1 -2
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +76 -77
- package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +2 -9
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +51 -65
- package/src/x_ite/Components/EventUtilities/X3DSequencerNode.js +1 -1
- package/src/x_ite/Components/Followers/ColorDamper.js +1 -1
- package/src/x_ite/Components/Followers/X3DChaserNode.js +18 -32
- package/src/x_ite/Components/Followers/X3DDamperNode.js +1 -6
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +1 -1
- package/src/x_ite/Components/Geometry2D/Disk2D.js +30 -46
- package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +1 -1
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +12 -4
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +4 -4
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +10 -27
- package/src/x_ite/Components/Geospatial/GeoLOD.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +5 -10
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +9 -16
- package/src/x_ite/Components/Geospatial/GeoTransform.js +6 -18
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +26 -30
- package/src/x_ite/Components/Geospatial/X3DGeospatialObject.js +20 -27
- package/src/x_ite/Components/Grouping/X3DGroupingNode.js +8 -8
- package/src/x_ite/Components/Grouping/X3DTransformNode.js +0 -4
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +68 -75
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +4 -11
- package/src/x_ite/Components/Interpolation/X3DInterpolatorNode.js +1 -1
- package/src/x_ite/Components/Layout/LayoutGroup.js +4 -9
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +1 -1
- package/src/x_ite/Components/Layout/ScreenGroup.js +16 -80
- package/src/x_ite/Components/Lighting/DirectionalLight.js +28 -36
- package/src/x_ite/Components/Lighting/PointLight.js +32 -47
- package/src/x_ite/Components/Lighting/SpotLight.js +33 -48
- package/src/x_ite/Components/Navigation/Billboard.js +49 -56
- package/src/x_ite/Components/Navigation/LOD.js +2 -2
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +29 -30
- package/src/x_ite/Components/Navigation/Viewpoint.js +16 -20
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +82 -111
- package/src/x_ite/Components/Networking/Anchor.js +18 -7
- package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +6 -6
- package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +44 -36
- package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +26 -17
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +20 -7
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +463 -882
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +39 -35
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +112 -128
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +105 -112
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +138 -176
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +16 -11
- package/src/x_ite/Components/ParticleSystems/X3DParticleEmitterNode.js +807 -217
- package/src/x_ite/Components/Picking/LinePickSensor.js +31 -39
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +91 -108
- package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +56 -59
- package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +54 -71
- package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +8 -15
- package/src/x_ite/Components/ProjectiveTextureMapping/TextureProjectorParallel.js +43 -50
- package/src/x_ite/Components/ProjectiveTextureMapping/TextureProjectorPerspective.js +32 -39
- package/src/x_ite/Components/Rendering/ClipPlane.js +3 -11
- package/src/x_ite/Components/Rendering/Color.js +12 -24
- package/src/x_ite/Components/Rendering/ColorRGBA.js +13 -25
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +26 -4
- package/src/x_ite/Components/Rendering/LineSet.js +35 -13
- package/src/x_ite/Components/Rendering/PointSet.js +35 -13
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +13 -5
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +331 -387
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +350 -140
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +116 -126
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +24 -38
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +10 -17
- package/src/x_ite/Components/Shaders/ComposedShader.js +35 -75
- package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +8 -11
- package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +10 -14
- package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +10 -14
- package/src/x_ite/Components/Shaders/ShaderPart.js +1 -10
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +220 -210
- package/src/x_ite/Components/Shaders/X3DShaderNode.js +28 -10
- package/src/x_ite/Components/Shaders/X3DVertexAttributeNode.js +15 -1
- package/src/x_ite/Components/Shape/Appearance.js +37 -4
- package/src/x_ite/Components/Shape/FillProperties.js +12 -1
- package/src/x_ite/Components/Shape/LineProperties.js +33 -1
- package/src/x_ite/Components/Shape/PointProperties.js +24 -3
- package/src/x_ite/Components/Shape/Shape.js +30 -39
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +3 -1
- package/src/x_ite/Components/Sound/Sound.js +31 -41
- package/src/x_ite/Components/Text/Text.js +6 -20
- 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/PixelTexture.js +2 -2
- package/src/x_ite/Components/Texturing/TextureCoordinate.js +5 -5
- package/src/x_ite/Components/Texturing/TextureProperties.js +4 -4
- package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +5 -4
- package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +24 -33
- package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +5 -5
- package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +5 -5
- package/src/x_ite/Components/Texturing3D/X3DTexture3DNode.js +12 -19
- package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +8 -8
- package/src/x_ite/Components.js +2 -2
- package/src/x_ite/Fallback.js +9 -3
- package/src/x_ite/Fields/SFColor.js +4 -0
- package/src/x_ite/Fields/SFColorRGBA.js +4 -0
- package/src/x_ite/Fields/SFImage.js +2 -11
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +4 -0
- package/src/x_ite/Fields/SFRotation.js +4 -0
- package/src/x_ite/Fields/SFString.js +4 -0
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +22 -2
- package/src/x_ite/Parser/XMLParser.js +1 -1
- package/src/x_ite/Rendering/TextureBuffer.js +43 -36
- package/src/x_ite/Rendering/VertexArray.js +103 -0
- package/src/x_ite/Rendering/X3DRenderObject.js +127 -148
- package/src/x_ite/X3D.js +32 -26
- package/src/x_ite.config.js +0 -5
- package/src/x_ite.css +216 -175
- package/src/x_ite.html +15 -10
- package/src/x_ite.js +49 -1
- package/x_ite.min.html +15 -10
- package/dist/assets/hatching/0.png +0 -0
- package/dist/assets/linetype/0.png +0 -0
- package/src/assets/hatching/0.png +0 -0
- package/src/assets/linetype/0.png +0 -0
- package/src/spinner.css +0 -67
- package/src/x_ite/Browser/Shape/LineStipples.xcf +0 -0
package/src/tests.js
CHANGED
|
@@ -18,9 +18,8 @@ const X_ITE_TESTS = [
|
|
|
18
18
|
{ path: "Core/EXPORT.x3dv" },
|
|
19
19
|
{ path: "Core/IMPORT.x3d" },
|
|
20
20
|
{ path: "Core/IMPORT.x3dv" },
|
|
21
|
+
{ path: "Core/proto/TestPrototype.x3d" },
|
|
21
22
|
{ path: "Core/Statements.x3d" },
|
|
22
|
-
{ path: "Core/export.x3d" },
|
|
23
|
-
{ path: "Core/proto" },
|
|
24
23
|
{ path: "Core/units.x3d" },
|
|
25
24
|
{ path: "Core/units.x3dv" },
|
|
26
25
|
{ component: "EnvironmentalEffects" },
|
|
@@ -53,11 +52,11 @@ const X_ITE_TESTS = [
|
|
|
53
52
|
{ path: "Follower/PositionChaser2D.x3dv" },
|
|
54
53
|
{ path: "Follower/PositionDamper.x3dv" },
|
|
55
54
|
{ path: "Follower/PositionDamper2D.x3dv" },
|
|
55
|
+
{ path: "Follower/ScalarChaser.x3d" },
|
|
56
|
+
{ path: "Follower/ScalarDamper.x3d" },
|
|
56
57
|
{ path: "Follower/SFFloat.x3dv" },
|
|
57
58
|
{ path: "Follower/SFVec2f.x3dv" },
|
|
58
59
|
{ path: "Follower/SFVec3f.x3dv" },
|
|
59
|
-
{ path: "Follower/ScalarChaser.x3d" },
|
|
60
|
-
{ path: "Follower/ScalarDamper.x3d" },
|
|
61
60
|
{ path: "Follower/TexCoordChaser2D.x3d" },
|
|
62
61
|
{ path: "Follower/TexCoordDamper.x3d" },
|
|
63
62
|
{ component: "Geometry2D" },
|
|
@@ -65,34 +64,38 @@ const X_ITE_TESTS = [
|
|
|
65
64
|
{ component: "Geometry3D" },
|
|
66
65
|
{ path: "Geometry3D/1728.x3dv" },
|
|
67
66
|
{ path: "Geometry3D/Beethoven.x3dz" },
|
|
68
|
-
{ path: "Geometry3D/Cube.x3dv" },
|
|
69
|
-
{ path: "Geometry3D/Extrusion" },
|
|
70
|
-
{ path: "Geometry3D/Geometry3D.x3d" },
|
|
71
|
-
{ path: "Geometry3D/Smash.x3d" },
|
|
72
67
|
{ path: "Geometry3D/box.x3d" },
|
|
73
68
|
{ path: "Geometry3D/box.x3dv" },
|
|
69
|
+
{ path: "Geometry3D/Cube.x3dv" },
|
|
74
70
|
{ path: "Geometry3D/dragon.x3d" },
|
|
71
|
+
{ path: "Geometry3D/Extrusion/extrude1.x3d" },
|
|
72
|
+
{ path: "Geometry3D/Extrusion/gears42P.O.x3d" },
|
|
73
|
+
{ path: "Geometry3D/Extrusion/gears42P.x3d" },
|
|
74
|
+
{ path: "Geometry3D/Extrusion/HalfSpheres.x3d" },
|
|
75
|
+
{ path: "Geometry3D/Extrusion/Rotations.x3d" },
|
|
76
|
+
{ path: "Geometry3D/Geometry3D.x3d" },
|
|
77
|
+
{ path: "Geometry3D/Smash.x3d" },
|
|
75
78
|
{ component: "Geospatial" },
|
|
79
|
+
{ path: "Geospatial/child1.x3dv" },
|
|
80
|
+
{ path: "Geospatial/child2.x3dv" },
|
|
81
|
+
{ path: "Geospatial/child3.x3dv" },
|
|
82
|
+
{ path: "Geospatial/child4.x3dv" },
|
|
76
83
|
{ path: "Geospatial/GeoCoordinate.x3d" },
|
|
77
84
|
{ path: "Geospatial/GeoElevationGrid.UTM.x3d" },
|
|
78
85
|
{ path: "Geospatial/GeoElevationGrid.x3dz" },
|
|
79
|
-
{ path: "Geospatial/GeoLOD.x3d" },
|
|
80
86
|
{ path: "Geospatial/GeoLocation.x3dz" },
|
|
87
|
+
{ path: "Geospatial/GeoLOD.x3d" },
|
|
81
88
|
{ path: "Geospatial/GeoPositionInterpolator.x3d" },
|
|
82
89
|
{ path: "Geospatial/GeoProximitySensor.x3d" },
|
|
90
|
+
{ path: "Geospatial/Geospatial.x3dz" },
|
|
83
91
|
{ path: "Geospatial/GeoTouchSensor.x3dz" },
|
|
84
92
|
{ path: "Geospatial/GeoTransform.x3d" },
|
|
85
93
|
{ path: "Geospatial/GeoViewpoint.rotateYUp.x3dz" },
|
|
86
94
|
{ path: "Geospatial/GeoViewpoint.x3dz" },
|
|
87
|
-
{ path: "Geospatial/Geospatial.x3dz" },
|
|
88
95
|
{ path: "Geospatial/Globe.x3d" },
|
|
89
|
-
{ path: "Geospatial/YUp.x3d" },
|
|
90
|
-
{ path: "Geospatial/child1.x3dv" },
|
|
91
|
-
{ path: "Geospatial/child2.x3dv" },
|
|
92
|
-
{ path: "Geospatial/child3.x3dv" },
|
|
93
|
-
{ path: "Geospatial/child4.x3dv" },
|
|
94
96
|
{ path: "Geospatial/root.x3dv" },
|
|
95
97
|
{ path: "Geospatial/tie.x3dv" },
|
|
98
|
+
{ path: "Geospatial/YUp.x3d" },
|
|
96
99
|
{ component: "Grouping" },
|
|
97
100
|
{ path: "Grouping/AddRemoveChildren.x3dv" },
|
|
98
101
|
{ path: "Grouping/StaticGroup.x3d" },
|
|
@@ -109,10 +112,13 @@ const X_ITE_TESTS = [
|
|
|
109
112
|
{ path: "Layering/Viewport.x3d" },
|
|
110
113
|
{ path: "Layering/ViewportLayer.x3dv" },
|
|
111
114
|
{ component: "Layout" },
|
|
115
|
+
{ path: "Layout/info.x3d" },
|
|
116
|
+
{ path: "Layout/library/Colors.x3dv" },
|
|
117
|
+
{ path: "Layout/library/logo.x3dv" },
|
|
118
|
+
{ path: "Layout/library/red.orange.yellow.x3dv" },
|
|
119
|
+
{ path: "Layout/library/Rotor.x3dv" },
|
|
112
120
|
{ path: "Layout/ScreenFontStyle.x3dv" },
|
|
113
121
|
{ path: "Layout/ScreenGroup.x3d" },
|
|
114
|
-
{ path: "Layout/info.x3d" },
|
|
115
|
-
{ path: "Layout/library" },
|
|
116
122
|
{ component: "Lighting" },
|
|
117
123
|
{ path: "Lighting/LightScale.x3d" },
|
|
118
124
|
{ path: "Lighting/LocalLight.x3d" },
|
|
@@ -121,6 +127,19 @@ const X_ITE_TESTS = [
|
|
|
121
127
|
{ path: "Lighting/PointLight.x3dv" },
|
|
122
128
|
{ path: "Lighting/PointLight2.x3d" },
|
|
123
129
|
{ path: "Lighting/SpotLight.x3d" },
|
|
130
|
+
{ component: "Navigation" },
|
|
131
|
+
{ path: "Navigation/Billboard.x3d" },
|
|
132
|
+
{ path: "Navigation/ClonedLOD.x3d" },
|
|
133
|
+
{ path: "Navigation/Depth.x3d" },
|
|
134
|
+
{ path: "Navigation/Gravitation.x3d" },
|
|
135
|
+
{ path: "Navigation/ScreenScale.x3d" },
|
|
136
|
+
{ path: "Navigation/ViewpointJump.x3d" },
|
|
137
|
+
{ path: "Navigation/ViewpointLayers.x3d" },
|
|
138
|
+
{ path: "Navigation/WalkViewer.x3d" },
|
|
139
|
+
{ component: "Networking" },
|
|
140
|
+
{ path: "Networking/Anchor.x3d" },
|
|
141
|
+
{ path: "Networking/autoRefresh.x3dv" },
|
|
142
|
+
{ path: "Networking/LoadSensor.x3d" },
|
|
124
143
|
{ component: "NURBS" },
|
|
125
144
|
{ path: "NURBS/AnimatedNurbsPatchSurfaceHead.x3dv" },
|
|
126
145
|
{ path: "NURBS/B.x3d" },
|
|
@@ -148,30 +167,6 @@ const X_ITE_TESTS = [
|
|
|
148
167
|
{ path: "NURBS/NurbsTextureCoordinate.x3dv" },
|
|
149
168
|
{ path: "NURBS/Rectangle2D.x3dv" },
|
|
150
169
|
{ path: "NURBS/torus.x3d" },
|
|
151
|
-
{ component: "Navigation" },
|
|
152
|
-
{ path: "Navigation/Billboard.x3d" },
|
|
153
|
-
{ path: "Navigation/ClonedLOD.x3d" },
|
|
154
|
-
{ path: "Navigation/Depth.x3d" },
|
|
155
|
-
{ path: "Navigation/Gravitation.x3d" },
|
|
156
|
-
{ path: "Navigation/ScreenScale.x3d" },
|
|
157
|
-
{ path: "Navigation/ViewpointJump.x3d" },
|
|
158
|
-
{ path: "Navigation/ViewpointLayers.x3d" },
|
|
159
|
-
{ path: "Navigation/WalkViewer.x3d" },
|
|
160
|
-
{ component: "Networking" },
|
|
161
|
-
{ path: "Networking/Anchor.x3d" },
|
|
162
|
-
{ path: "Networking/LoadSensor.x3d" },
|
|
163
|
-
{ path: "Networking/autoRefresh.x3dv" },
|
|
164
|
-
{ component: "PROTO" },
|
|
165
|
-
{ path: "PROTO/27cubes.x3d" },
|
|
166
|
-
{ path: "PROTO/Double.x3dv" },
|
|
167
|
-
{ path: "PROTO/ExternProto.x3d" },
|
|
168
|
-
{ path: "PROTO/ExternProto.x3dv" },
|
|
169
|
-
{ path: "PROTO/NestedProtos.x3d" },
|
|
170
|
-
{ path: "PROTO/Rotor.wrl" },
|
|
171
|
-
{ path: "PROTO/cbx.wrl" },
|
|
172
|
-
{ path: "PROTO/cbx.wrl.gz" },
|
|
173
|
-
{ path: "PROTO/test.x3d" },
|
|
174
|
-
{ path: "PROTO/test.x3dv" },
|
|
175
170
|
{ component: "ParticleSystems" },
|
|
176
171
|
{ path: "ParticleSystems/BoundedPhysicsModel.x3d" },
|
|
177
172
|
{ path: "ParticleSystems/Bubbles.x3d" },
|
|
@@ -184,15 +179,19 @@ const X_ITE_TESTS = [
|
|
|
184
179
|
{ path: "ParticleSystems/DolphinSurfaceEmitter.x3d" },
|
|
185
180
|
{ path: "ParticleSystems/Earth.x3dz" },
|
|
186
181
|
{ path: "ParticleSystems/ExplosionEmitter.x3d" },
|
|
182
|
+
{ path: "ParticleSystems/ExplosionEmitterGeometry.x3d" },
|
|
187
183
|
{ path: "ParticleSystems/Fire.x3d" },
|
|
188
184
|
{ path: "ParticleSystems/Geometry.x3d" },
|
|
189
|
-
{ path: "ParticleSystems/
|
|
185
|
+
{ path: "ParticleSystems/GeometryLineSet.x3d" },
|
|
186
|
+
{ path: "ParticleSystems/GeometryPointSet.x3d" },
|
|
190
187
|
{ path: "ParticleSystems/GridTool.x3dv" },
|
|
191
188
|
{ path: "ParticleSystems/OpenVolume.x3d" },
|
|
192
189
|
{ path: "ParticleSystems/PointEmitter.x3d" },
|
|
193
190
|
{ path: "ParticleSystems/PolylineEmitter.x3d" },
|
|
194
191
|
{ path: "ParticleSystems/Smoke.x3d" },
|
|
195
192
|
{ path: "ParticleSystems/SurfaceEmitter.x3d" },
|
|
193
|
+
{ path: "ParticleSystems/Torus.x3dv" },
|
|
194
|
+
{ path: "ParticleSystems/Tunnel.x3dv" },
|
|
196
195
|
{ path: "ParticleSystems/VolumeEmitter-U.x3d" },
|
|
197
196
|
{ path: "ParticleSystems/VolumeEmitter.x3d" },
|
|
198
197
|
{ path: "ParticleSystems/Waterfall.x3d" },
|
|
@@ -205,24 +204,35 @@ const X_ITE_TESTS = [
|
|
|
205
204
|
{ path: "Picking/VolumePickSensorGeometry.x3d" },
|
|
206
205
|
{ component: "PointingDeviceSensor" },
|
|
207
206
|
{ path: "PointingDeviceSensor/ClonedSensors.x3d" },
|
|
207
|
+
{ path: "PointingDeviceSensor/lamp.x3d" },
|
|
208
208
|
{ path: "PointingDeviceSensor/LineSensor.x3d" },
|
|
209
209
|
{ path: "PointingDeviceSensor/PlaneSensor.x3d" },
|
|
210
210
|
{ path: "PointingDeviceSensor/SphereSensor.x3d" },
|
|
211
|
+
{ path: "PointingDeviceSensor/test.x3d" },
|
|
212
|
+
{ path: "PointingDeviceSensor/TouchBeethoven.x3dz" },
|
|
211
213
|
{ path: "PointingDeviceSensor/TouchLines.x3dv" },
|
|
212
214
|
{ path: "PointingDeviceSensor/TouchPoints.x3dv" },
|
|
213
|
-
{ path: "PointingDeviceSensor/lamp.x3d" },
|
|
214
|
-
{ path: "PointingDeviceSensor/test.x3d" },
|
|
215
215
|
{ component: "ProjectiveTextureMapping" },
|
|
216
|
+
{ path: "ProjectiveTextureMapping/apple.x3d" },
|
|
216
217
|
{ path: "ProjectiveTextureMapping/Local.x3d" },
|
|
217
218
|
{ path: "ProjectiveTextureMapping/Parallel.x3d" },
|
|
218
219
|
{ path: "ProjectiveTextureMapping/Perspective.x3d" },
|
|
219
|
-
{
|
|
220
|
+
{ component: "PROTO" },
|
|
221
|
+
{ path: "PROTO/27cubes.x3d" },
|
|
222
|
+
{ path: "PROTO/cbx.wrl" },
|
|
223
|
+
{ path: "PROTO/Double.x3dv" },
|
|
224
|
+
{ path: "PROTO/ExternProto.x3d" },
|
|
225
|
+
{ path: "PROTO/ExternProto.x3dv" },
|
|
226
|
+
{ path: "PROTO/NestedProtos.x3d" },
|
|
227
|
+
{ path: "PROTO/Rotor.wrl" },
|
|
228
|
+
{ path: "PROTO/test.x3d" },
|
|
229
|
+
{ path: "PROTO/test.x3dv" },
|
|
220
230
|
{ component: "Rendering" },
|
|
221
231
|
{ path: "Rendering/ClipPlane.x3d" },
|
|
232
|
+
{ path: "Rendering/cubes.x3d" },
|
|
222
233
|
{ path: "Rendering/IndexedLineSet.x3d" },
|
|
223
234
|
{ path: "Rendering/IndexedTriangleSetSphere.x3d" },
|
|
224
235
|
{ path: "Rendering/L-System.x3dz" },
|
|
225
|
-
{ path: "Rendering/cubes.x3d" },
|
|
226
236
|
{ path: "Rendering/world.x3d" },
|
|
227
237
|
{ component: "RigidBodyPhysics" },
|
|
228
238
|
{ path: "RigidBodyPhysics/Ball.x3d" },
|
|
@@ -244,17 +254,17 @@ const X_ITE_TESTS = [
|
|
|
244
254
|
{ path: "Scripting/AddRemoveRoute.x3d" },
|
|
245
255
|
{ path: "Scripting/BaseNodeDispose.x3d" },
|
|
246
256
|
{ path: "Scripting/ColorSpheres.x3d" },
|
|
247
|
-
{ path: "Scripting/ExternProto.x3d" },
|
|
248
|
-
{ path: "Scripting/MURCIELAGO640.x3dj" },
|
|
249
|
-
{ path: "Scripting/Proto.x3d" },
|
|
250
|
-
{ path: "Scripting/Pyramid.x3d" },
|
|
251
|
-
{ path: "Scripting/SFNode.x3d" },
|
|
252
257
|
{ path: "Scripting/createVrmlFromString.x3d" },
|
|
253
258
|
{ path: "Scripting/createX3DFromString.x3dv" },
|
|
254
259
|
{ path: "Scripting/createX3DFromURL.x3dv" },
|
|
260
|
+
{ path: "Scripting/ExternProto.x3d" },
|
|
255
261
|
{ path: "Scripting/geodome.wrl" },
|
|
256
262
|
{ path: "Scripting/load-viewpoints.x3d" },
|
|
263
|
+
{ path: "Scripting/MURCIELAGO640.x3dj" },
|
|
264
|
+
{ path: "Scripting/Proto.x3d" },
|
|
265
|
+
{ path: "Scripting/Pyramid.x3d" },
|
|
257
266
|
{ path: "Scripting/rotation.x3dv" },
|
|
267
|
+
{ path: "Scripting/SFNode.x3d" },
|
|
258
268
|
{ path: "Scripting/string.x3dv" },
|
|
259
269
|
{ path: "Scripting/test.x3d" },
|
|
260
270
|
{ path: "Scripting/toXMLString.x3d" },
|
|
@@ -264,6 +274,7 @@ const X_ITE_TESTS = [
|
|
|
264
274
|
{ path: "Shaders/ComposedShaderUniformRotation.x3d" },
|
|
265
275
|
{ path: "Shaders/Fields.x3d" },
|
|
266
276
|
{ path: "Shaders/FloatVertexAttribute.x3d" },
|
|
277
|
+
{ path: "Shaders/images.x3d" },
|
|
267
278
|
{ path: "Shaders/LineFloatVertexAttribute.x3d" },
|
|
268
279
|
{ path: "Shaders/LineMatrix3VertexAttribute.x3d" },
|
|
269
280
|
{ path: "Shaders/LineMatrix4VertexAttribute.x3d" },
|
|
@@ -278,27 +289,25 @@ const X_ITE_TESTS = [
|
|
|
278
289
|
{ path: "Shaders/Shading.x3d" },
|
|
279
290
|
{ path: "Shaders/Waves.x3d" },
|
|
280
291
|
{ path: "Shaders/Wireframe.x3d" },
|
|
281
|
-
{ path: "Shaders/images.x3d" },
|
|
282
292
|
{ component: "Shape" },
|
|
293
|
+
{ path: "Shape/BackMaterial.x3d" },
|
|
283
294
|
{ path: "Shape/Connectors.x3d" },
|
|
284
295
|
{ path: "Shape/CopperGold.x3d" },
|
|
285
296
|
{ path: "Shape/FillProperties.x3d" },
|
|
286
297
|
{ path: "Shape/LineProperties.x3d" },
|
|
287
298
|
{ path: "Shape/LineProperties.x3dv" },
|
|
288
|
-
{ path: "Shape/
|
|
289
|
-
{ path: "Shape/
|
|
299
|
+
{ path: "Shape/NormalTexture.x3d" },
|
|
300
|
+
{ path: "Shape/OcclusionTexture.x3d" },
|
|
301
|
+
{ path: "Shape/SpecularTexture.x3d" },
|
|
290
302
|
{ path: "Shape/Transparency.x3dv" },
|
|
291
303
|
{ path: "Shape/TwoSidedMaterial.x3d" },
|
|
304
|
+
{ path: "Shape/UnlitMaterial.x3d" },
|
|
292
305
|
{ path: "Shape/UnlitTexture.x3d" },
|
|
293
|
-
{ path: "Shape/NormalTexture.x3d" },
|
|
294
|
-
{ path: "Shape/SpecularTexture.x3d" },
|
|
295
|
-
{ path: "Shape/OcclusionTexture.x3d" },
|
|
296
306
|
{ component: "Sound" },
|
|
297
307
|
{ path: "Sound/AudioClip.wrl" },
|
|
298
308
|
{ path: "Sound/AudioClip.x3d" },
|
|
299
309
|
{ path: "Sound/Sound.x3d" },
|
|
300
310
|
{ component: "Text" },
|
|
301
|
-
{ path: "Text/Poetica-ChanceryI.otf" },
|
|
302
311
|
{ path: "Text/charcodes.x3d" },
|
|
303
312
|
{ path: "Text/date.x3d" },
|
|
304
313
|
{ path: "Text/default.x3d" },
|
|
@@ -317,10 +326,8 @@ const X_ITE_TESTS = [
|
|
|
317
326
|
{ path: "Texturing/TextureCoordinateGenerator.x3d" },
|
|
318
327
|
{ path: "Texturing/ubuntu.x3d" },
|
|
319
328
|
{ component: "Texturing3D" },
|
|
320
|
-
{ path: "Texturing3D/Angio.nrrd" },
|
|
321
329
|
{ path: "Texturing3D/Angio.x3d" },
|
|
322
330
|
{ path: "Texturing3D/ComposedTexture3D.x3d" },
|
|
323
|
-
{ path: "Texturing3D/DEMRI.nrrd" },
|
|
324
331
|
{ path: "Texturing3D/DEMRI.x3d" },
|
|
325
332
|
{ path: "Texturing3D/ImageTexture3D.x3d" },
|
|
326
333
|
{ path: "Texturing3D/NRRD-ascii.x3d" },
|
|
@@ -329,11 +336,6 @@ const X_ITE_TESTS = [
|
|
|
329
336
|
{ path: "Texturing3D/NRRD-raw.x3d" },
|
|
330
337
|
{ path: "Texturing3D/PixelTexture3D.x3d" },
|
|
331
338
|
{ path: "Texturing3D/Volume.x3d" },
|
|
332
|
-
{ path: "Texturing3D/ascii.nrrd" },
|
|
333
|
-
{ path: "Texturing3D/backpack.nrrd" },
|
|
334
|
-
{ path: "Texturing3D/gzip.nrrd" },
|
|
335
|
-
{ path: "Texturing3D/hex.nrrd" },
|
|
336
|
-
{ path: "Texturing3D/raw.nrrd" },
|
|
337
339
|
{ component: "Time" },
|
|
338
340
|
{ path: "Time/Clock.x3d" },
|
|
339
341
|
{ path: "Time/TimeProto.x3d" },
|
|
@@ -353,6 +355,6 @@ const X_ITE_TESTS = [
|
|
|
353
355
|
{ path: "VolumeRendering/ShadedBrain.x3d" },
|
|
354
356
|
{ path: "VolumeRendering/SilhouetteSkull.x3d" },
|
|
355
357
|
{ path: "VolumeRendering/VolumeData.x3d" },
|
|
356
|
-
{ path: "VolumeRendering/datasets" },
|
|
357
358
|
];
|
|
358
359
|
X_ITE_TESTS .server = "https://rawgit.com/create3000/Library/main/Tests/Components";
|
|
360
|
+
|
|
@@ -118,13 +118,14 @@ function (X3DEventObject,
|
|
|
118
118
|
{
|
|
119
119
|
X3DEventObject .prototype .setName .call (this, value)
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
if (this [_initialized])
|
|
122
|
+
this ._name_changed = this .getBrowser () .getCurrentTime ();
|
|
122
123
|
},
|
|
123
124
|
getMainScene: function ()
|
|
124
125
|
{
|
|
125
126
|
let scene = this [_executionContext] .getScene ();
|
|
126
127
|
|
|
127
|
-
while (!scene .isMainScene ())
|
|
128
|
+
while (! scene .isMainScene ())
|
|
128
129
|
scene = scene .getScene ();
|
|
129
130
|
|
|
130
131
|
return scene;
|
|
@@ -133,7 +134,7 @@ function (X3DEventObject,
|
|
|
133
134
|
{
|
|
134
135
|
let executionContext = this [_executionContext];
|
|
135
136
|
|
|
136
|
-
while (!executionContext .isScene ())
|
|
137
|
+
while (! executionContext .isScene ())
|
|
137
138
|
executionContext = executionContext .getExecutionContext ();
|
|
138
139
|
|
|
139
140
|
return executionContext;
|
|
@@ -344,7 +345,8 @@ function (X3DEventObject,
|
|
|
344
345
|
if (!this .getPrivate ())
|
|
345
346
|
field .addCloneCount (1);
|
|
346
347
|
|
|
347
|
-
|
|
348
|
+
if (this [_initialized])
|
|
349
|
+
this ._fields_changed = this .getBrowser () .getCurrentTime ();
|
|
348
350
|
},
|
|
349
351
|
getField: (function ()
|
|
350
352
|
{
|
|
@@ -412,7 +414,8 @@ function (X3DEventObject,
|
|
|
412
414
|
if (!this .getPrivate ())
|
|
413
415
|
field .removeCloneCount (1);
|
|
414
416
|
|
|
415
|
-
|
|
417
|
+
if (this [_initialized])
|
|
418
|
+
this ._fields_changed = this .getBrowser () .getCurrentTime ();
|
|
416
419
|
}
|
|
417
420
|
},
|
|
418
421
|
canUserDefinedFields: function ()
|
|
@@ -436,7 +439,8 @@ function (X3DEventObject,
|
|
|
436
439
|
if (!this .getPrivate ())
|
|
437
440
|
field .addCloneCount (1);
|
|
438
441
|
|
|
439
|
-
|
|
442
|
+
if (this [_initialized])
|
|
443
|
+
this ._fields_changed = this .getBrowser () .getCurrentTime ();
|
|
440
444
|
},
|
|
441
445
|
removeUserDefinedField: function (name)
|
|
442
446
|
{
|
|
@@ -453,7 +457,8 @@ function (X3DEventObject,
|
|
|
453
457
|
if (!this .getPrivate ())
|
|
454
458
|
field .removeCloneCount (1);
|
|
455
459
|
|
|
456
|
-
|
|
460
|
+
if (this [_initialized])
|
|
461
|
+
this ._fields_changed = this .getBrowser () .getCurrentTime ();
|
|
457
462
|
}
|
|
458
463
|
},
|
|
459
464
|
getUserDefinedFields: function ()
|
|
@@ -561,22 +566,28 @@ function (X3DEventObject,
|
|
|
561
566
|
if (count === 0)
|
|
562
567
|
return;
|
|
563
568
|
|
|
569
|
+
const time = this .getBrowser () .getCurrentTime ();
|
|
570
|
+
|
|
564
571
|
this [_cloneCount] += count;
|
|
565
572
|
|
|
566
|
-
this .
|
|
573
|
+
this [_executionContext] ._sceneGraph_changed = time;
|
|
567
574
|
|
|
568
|
-
this [
|
|
575
|
+
if (this [_initialized])
|
|
576
|
+
this ._cloneCount_changed = time;
|
|
569
577
|
},
|
|
570
578
|
removeCloneCount: function (count)
|
|
571
579
|
{
|
|
572
580
|
if (count === 0)
|
|
573
581
|
return;
|
|
574
582
|
|
|
583
|
+
const time = this .getBrowser () .getCurrentTime ();
|
|
584
|
+
|
|
575
585
|
this [_cloneCount] -= count;
|
|
576
586
|
|
|
577
|
-
this .
|
|
587
|
+
this [_executionContext] ._sceneGraph_changed = time;
|
|
578
588
|
|
|
579
|
-
this [
|
|
589
|
+
if (this [_initialized])
|
|
590
|
+
this ._cloneCount_changed = time;
|
|
580
591
|
},
|
|
581
592
|
dispose: function ()
|
|
582
593
|
{
|
|
@@ -140,7 +140,7 @@ function (Fields,
|
|
|
140
140
|
},
|
|
141
141
|
configure: function ()
|
|
142
142
|
{
|
|
143
|
-
if (!this .isInitialized ())
|
|
143
|
+
if (! this .isInitialized ())
|
|
144
144
|
return;
|
|
145
145
|
|
|
146
146
|
const localStorage = this .localStorage;
|
|
@@ -152,7 +152,7 @@ function (Fields,
|
|
|
152
152
|
if (localStorage [fieldDefinition .name] !== undefined)
|
|
153
153
|
continue;
|
|
154
154
|
|
|
155
|
-
if (!field .equals (fieldDefinition .value))
|
|
155
|
+
if (! field .equals (fieldDefinition .value))
|
|
156
156
|
field .assign (fieldDefinition .value);
|
|
157
157
|
}
|
|
158
158
|
|
|
@@ -234,62 +234,15 @@ function (Fields,
|
|
|
234
234
|
|
|
235
235
|
this .localStorage .PrimitiveQuality = primitiveQuality;
|
|
236
236
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
sphere = browser .getSphereOptions ();
|
|
237
|
+
this .primitiveQuality = PrimitiveQuality .hasOwnProperty (primitiveQuality)
|
|
238
|
+
? PrimitiveQuality [primitiveQuality]
|
|
239
|
+
: PrimitiveQuality .MEDIUM;
|
|
241
240
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
break;
|
|
248
|
-
|
|
249
|
-
this .primitiveQuality = PrimitiveQuality .LOW;
|
|
250
|
-
|
|
251
|
-
if (browser .setGeometry2DPrimitiveQuality)
|
|
252
|
-
browser .setGeometry2DPrimitiveQuality (this .primitiveQuality);
|
|
253
|
-
|
|
254
|
-
cone ._xDimension = 16;
|
|
255
|
-
cylinder ._xDimension = 16;
|
|
256
|
-
sphere ._xDimension = 20;
|
|
257
|
-
sphere ._yDimension = 9;
|
|
258
|
-
break;
|
|
259
|
-
}
|
|
260
|
-
case "HIGH":
|
|
261
|
-
{
|
|
262
|
-
if (this .primitiveQuality === PrimitiveQuality .HIGH)
|
|
263
|
-
break;
|
|
264
|
-
|
|
265
|
-
this .primitiveQuality = PrimitiveQuality .HIGH;
|
|
266
|
-
|
|
267
|
-
if (browser .setGeometry2DPrimitiveQuality)
|
|
268
|
-
browser .setGeometry2DPrimitiveQuality (this .primitiveQuality);
|
|
269
|
-
|
|
270
|
-
cone ._xDimension = 32;
|
|
271
|
-
cylinder ._xDimension = 32;
|
|
272
|
-
sphere ._xDimension = 64;
|
|
273
|
-
sphere ._yDimension = 31;
|
|
274
|
-
break;
|
|
275
|
-
}
|
|
276
|
-
default:
|
|
277
|
-
{
|
|
278
|
-
if (this .primitiveQuality === PrimitiveQuality .MEDIUM)
|
|
279
|
-
break;
|
|
280
|
-
|
|
281
|
-
this .primitiveQuality = PrimitiveQuality .MEDIUM;
|
|
282
|
-
|
|
283
|
-
if (browser .setGeometry2DPrimitiveQuality)
|
|
284
|
-
browser .setGeometry2DPrimitiveQuality (this .primitiveQuality);
|
|
285
|
-
|
|
286
|
-
cone ._xDimension = 20;
|
|
287
|
-
cylinder ._xDimension = 20;
|
|
288
|
-
sphere ._xDimension = 32;
|
|
289
|
-
sphere ._yDimension = 15;
|
|
290
|
-
break;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
241
|
+
if (typeof browser .setPrimitiveQuality2D === "function")
|
|
242
|
+
browser .setPrimitiveQuality2D (this .primitiveQuality);
|
|
243
|
+
|
|
244
|
+
if (typeof browser .setPrimitiveQuality3D === "function")
|
|
245
|
+
browser .setPrimitiveQuality3D (this .primitiveQuality);
|
|
293
246
|
},
|
|
294
247
|
set_textureQuality__: function (value)
|
|
295
248
|
{
|
|
@@ -299,93 +252,20 @@ function (Fields,
|
|
|
299
252
|
|
|
300
253
|
this .localStorage .TextureQuality = textureQuality;
|
|
301
254
|
|
|
302
|
-
|
|
255
|
+
this .textureQuality = TextureQuality .hasOwnProperty (textureQuality)
|
|
256
|
+
? TextureQuality [textureQuality]
|
|
257
|
+
: TextureQuality .MEDIUM;
|
|
303
258
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
case "LOW":
|
|
307
|
-
{
|
|
308
|
-
if (this .textureQuality === TextureQuality .LOW)
|
|
309
|
-
break;
|
|
310
|
-
|
|
311
|
-
this .textureQuality = TextureQuality .LOW;
|
|
312
|
-
|
|
313
|
-
textureProperties ._magnificationFilter = "AVG_PIXEL";
|
|
314
|
-
textureProperties ._minificationFilter = "AVG_PIXEL";
|
|
315
|
-
textureProperties ._textureCompression = "FASTEST";
|
|
316
|
-
textureProperties ._generateMipMaps = true;
|
|
317
|
-
|
|
318
|
-
//glHint (GL_GENERATE_MIPMAP_HINT, GL_FASTEST);
|
|
319
|
-
//glHint (GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST);
|
|
320
|
-
break;
|
|
321
|
-
}
|
|
322
|
-
case "HIGH":
|
|
323
|
-
{
|
|
324
|
-
if (this .textureQuality === TextureQuality .HIGH)
|
|
325
|
-
break;
|
|
326
|
-
|
|
327
|
-
this .textureQuality = TextureQuality .HIGH;
|
|
328
|
-
|
|
329
|
-
textureProperties ._magnificationFilter = "NICEST";
|
|
330
|
-
textureProperties ._minificationFilter = "NICEST";
|
|
331
|
-
textureProperties ._textureCompression = "NICEST";
|
|
332
|
-
textureProperties ._generateMipMaps = true;
|
|
333
|
-
|
|
334
|
-
//glHint (GL_GENERATE_MIPMAP_HINT, GL_NICEST);
|
|
335
|
-
//glHint (GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
|
|
336
|
-
break;
|
|
337
|
-
}
|
|
338
|
-
default:
|
|
339
|
-
{
|
|
340
|
-
if (this .textureQuality === TextureQuality .MEDIUM)
|
|
341
|
-
break;
|
|
342
|
-
|
|
343
|
-
this .textureQuality = TextureQuality .MEDIUM;
|
|
344
|
-
|
|
345
|
-
textureProperties ._magnificationFilter = "NICEST";
|
|
346
|
-
textureProperties ._minificationFilter = "AVG_PIXEL_AVG_MIPMAP";
|
|
347
|
-
textureProperties ._textureCompression = "NICEST";
|
|
348
|
-
textureProperties ._generateMipMaps = true;
|
|
349
|
-
|
|
350
|
-
//glHint (GL_GENERATE_MIPMAP_HINT, GL_FASTEST);
|
|
351
|
-
//glHint (GL_PERSPECTIVE_CORRECTION_HINT, GL_FASTEST);
|
|
352
|
-
break;
|
|
353
|
-
}
|
|
354
|
-
}
|
|
259
|
+
if (typeof browser .setTextureQuality === "function")
|
|
260
|
+
browser .setTextureQuality (this .textureQuality);
|
|
355
261
|
},
|
|
356
262
|
set_shading__: function (value)
|
|
357
263
|
{
|
|
358
|
-
const shading = value .getValue () .toUpperCase ();
|
|
264
|
+
const shading = value .getValue () .toUpperCase () .replace ("POINTSET", "POINT");
|
|
359
265
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
case "POINTSET":
|
|
364
|
-
{
|
|
365
|
-
this .shading = Shading .POINT;
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
case "WIREFRAME":
|
|
369
|
-
{
|
|
370
|
-
this .shading = Shading .WIREFRAME;
|
|
371
|
-
break;
|
|
372
|
-
}
|
|
373
|
-
case "FLAT":
|
|
374
|
-
{
|
|
375
|
-
this .shading = Shading .FLAT;
|
|
376
|
-
break;
|
|
377
|
-
}
|
|
378
|
-
case "PHONG":
|
|
379
|
-
{
|
|
380
|
-
this .shading = Shading .PHONG;
|
|
381
|
-
break;
|
|
382
|
-
}
|
|
383
|
-
default:
|
|
384
|
-
{
|
|
385
|
-
this .shading = Shading .GOURAUD;
|
|
386
|
-
break;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
266
|
+
this .shading = Shading .hasOwnProperty (shading)
|
|
267
|
+
? Shading [shading]
|
|
268
|
+
: Shading .GOURAUD;
|
|
389
269
|
|
|
390
270
|
this .getBrowser () .setShading (this .shading);
|
|
391
271
|
},
|
|
@@ -399,7 +279,7 @@ function (Fields,
|
|
|
399
279
|
browser = this .getBrowser (),
|
|
400
280
|
gl = browser .getContext ();
|
|
401
281
|
|
|
402
|
-
logarithmicDepthBuffer = logarithmicDepthBuffer .getValue () && (gl .getVersion () >= 2 || Boolean (
|
|
282
|
+
logarithmicDepthBuffer = logarithmicDepthBuffer .getValue () && (gl .getVersion () >= 2 || Boolean (gl .getExtension ("EXT_frag_depth")));
|
|
403
283
|
|
|
404
284
|
if (logarithmicDepthBuffer === browser .getRenderingProperties () ._LogarithmicDepthBuffer .getValue ())
|
|
405
285
|
return;
|
|
@@ -407,7 +287,6 @@ function (Fields,
|
|
|
407
287
|
browser .getRenderingProperties () ._LogarithmicDepthBuffer = logarithmicDepthBuffer;
|
|
408
288
|
|
|
409
289
|
// Recompile shaders.
|
|
410
|
-
|
|
411
290
|
// There's no need to update background shader.
|
|
412
291
|
|
|
413
292
|
for (const shader of browser .getStandardShaders ())
|
|
@@ -426,10 +305,12 @@ function (Fields,
|
|
|
426
305
|
|
|
427
306
|
function toBoolean (value, defaultValue)
|
|
428
307
|
{
|
|
429
|
-
|
|
308
|
+
value = String (value) .toUpperCase ();
|
|
309
|
+
|
|
310
|
+
if (value === "TRUE")
|
|
430
311
|
return true;
|
|
431
312
|
|
|
432
|
-
if (value === "
|
|
313
|
+
if (value === "FALSE")
|
|
433
314
|
return false;
|
|
434
315
|
|
|
435
316
|
return defaultValue;
|
|
@@ -92,14 +92,16 @@ function ($,
|
|
|
92
92
|
this .startTime = 0;
|
|
93
93
|
this .frames = 0;
|
|
94
94
|
|
|
95
|
-
this .element = $("<div></div>") .addClass ("x_ite-private-browser-timings") .appendTo (this .getBrowser () .getSurface ());
|
|
95
|
+
this .element = $("<div></div>") .hide () .addClass ("x_ite-private-browser-timings") .appendTo (this .getBrowser () .getSurface ());
|
|
96
96
|
this .table = $("<table></table>") .appendTo (this .element);
|
|
97
97
|
this .header = $("<thead></thead>") .append ($("<tr></tr>") .append ($("<th colspan='2'></th>"))) .appendTo (this .table);
|
|
98
98
|
this .body = $("<tbody></tbody>") .appendTo (this .table);
|
|
99
99
|
this .footer = $("<tfoot></tfoot>") .append ($("<tr></tr>") .append ($("<td colspan='2'></td>"))) .appendTo (this .table);
|
|
100
|
-
this .button = $("<button></button>") .attr ("type", "button") .
|
|
100
|
+
this .button = $("<button></button>") .attr ("type", "button") .appendTo (this .footer .find ("td"));
|
|
101
101
|
this .rows = [ ];
|
|
102
102
|
|
|
103
|
+
this .button .on ("click touchend", this .set_type__ .bind (this));
|
|
104
|
+
|
|
103
105
|
this .set_button__ ();
|
|
104
106
|
},
|
|
105
107
|
getEnabled: function ()
|
|
@@ -115,13 +117,13 @@ function ($,
|
|
|
115
117
|
|
|
116
118
|
if (enabled)
|
|
117
119
|
{
|
|
118
|
-
this .element .fadeIn ();
|
|
120
|
+
this .element .stop (true, true) .fadeIn ();
|
|
119
121
|
this .getBrowser () .prepareEvents () .addInterest ("update", this);
|
|
120
122
|
this .update ();
|
|
121
123
|
}
|
|
122
124
|
else
|
|
123
125
|
{
|
|
124
|
-
this .element .fadeOut ();
|
|
126
|
+
this .element .stop (true, true) .fadeOut ();
|
|
125
127
|
this .getBrowser () .prepareEvents () .removeInterest ("update", this);
|
|
126
128
|
}
|
|
127
129
|
},
|