rhodonite 0.4.2 → 0.5.2
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/VERSION-FILE +2 -2
- package/dist/esm/effekseer/EffekseerComponent.d.ts +52 -45
- package/dist/esm/effekseer/main.d.ts +6 -6
- package/dist/esm/foundation/cameras/AbstractCameraController.d.ts +14 -14
- package/dist/esm/foundation/cameras/ICameraController.d.ts +9 -9
- package/dist/esm/foundation/cameras/OrbitCameraController.d.ts +128 -123
- package/dist/esm/foundation/cameras/WalkThroughCameraController.d.ts +75 -75
- package/dist/esm/foundation/components/AnimationComponent.d.ts +81 -94
- package/dist/esm/foundation/components/BlendShapeComponent.d.ts +14 -14
- package/dist/esm/foundation/components/CameraComponent.d.ts +116 -116
- package/dist/esm/foundation/components/CameraControllerComponent.d.ts +16 -16
- package/dist/esm/foundation/components/LightComponent.d.ts +28 -28
- package/dist/esm/foundation/components/MeshComponent.d.ts +50 -50
- package/dist/esm/foundation/components/MeshRendererComponent.d.ts +57 -57
- package/dist/esm/foundation/components/PhysicsComponent.d.ts +12 -12
- package/dist/esm/foundation/components/SceneGraphComponent.d.ts +114 -81
- package/dist/esm/foundation/components/SkeletalComponent.d.ts +50 -50
- package/dist/esm/foundation/components/TransformComponent.d.ts +91 -91
- package/dist/esm/foundation/components/WellKnownComponentTIDs.d.ts +16 -16
- package/dist/esm/foundation/core/Component.d.ts +216 -216
- package/dist/esm/foundation/core/ComponentRepository.d.ts +59 -59
- package/dist/esm/foundation/core/Config.d.ts +20 -19
- package/dist/esm/foundation/core/Entity.d.ts +84 -84
- package/dist/esm/foundation/core/EntityRepository.d.ts +62 -62
- package/dist/esm/foundation/core/GlobalDataRepository.d.ts +32 -31
- package/dist/esm/foundation/core/MemoryManager.d.ts +29 -29
- package/dist/esm/foundation/core/RnObject.d.ts +96 -96
- package/dist/esm/foundation/definitions/AlphaMode.d.ts +15 -15
- package/dist/esm/foundation/definitions/AnimationAttribute.d.ts +13 -13
- package/dist/esm/foundation/definitions/AnimationInterpolation.d.ts +12 -12
- package/dist/esm/foundation/definitions/BasisCompressionType.d.ts +26 -26
- package/dist/esm/foundation/definitions/BoneDataType.d.ts +13 -13
- package/dist/esm/foundation/definitions/BufferUse.d.ts +13 -13
- package/dist/esm/foundation/definitions/CameraControllerType.d.ts +11 -11
- package/dist/esm/foundation/definitions/CameraType.d.ts +12 -12
- package/dist/esm/foundation/definitions/ComponentType.d.ts +32 -32
- package/dist/esm/foundation/definitions/CompositionType.d.ts +39 -38
- package/dist/esm/foundation/definitions/CompressionTextureType.d.ts +48 -48
- package/dist/esm/foundation/definitions/FileType.d.ts +17 -17
- package/dist/esm/foundation/definitions/GpuState.d.ts +10 -10
- package/dist/esm/foundation/definitions/HdriFormat.d.ts +10 -10
- package/dist/esm/foundation/definitions/LightType.d.ts +13 -13
- package/dist/esm/foundation/definitions/PixelFormat.d.ts +10 -10
- package/dist/esm/foundation/definitions/PrimitiveMode.d.ts +15 -15
- package/dist/esm/foundation/definitions/ProcessApproach.d.ts +19 -19
- package/dist/esm/foundation/definitions/ProcessStage.d.ts +18 -18
- package/dist/esm/foundation/definitions/RenderBufferTarget.d.ts +27 -27
- package/dist/esm/foundation/definitions/ShaderNode.d.ts +11 -11
- package/dist/esm/foundation/definitions/ShaderSemantics.d.ts +119 -119
- package/dist/esm/foundation/definitions/ShaderType.d.ts +13 -13
- package/dist/esm/foundation/definitions/ShaderVariableType.d.ts +11 -11
- package/dist/esm/foundation/definitions/ShaderVariableUpdateInterval.d.ts +12 -12
- package/dist/esm/foundation/definitions/ShadingModel.d.ts +12 -12
- package/dist/esm/foundation/definitions/ShadowMap.d.ts +11 -11
- package/dist/esm/foundation/definitions/TextureParameter.d.ts +37 -37
- package/dist/esm/foundation/definitions/VertexAttribute.d.ts +38 -38
- package/dist/esm/foundation/definitions/visibility.d.ts +12 -12
- package/dist/esm/foundation/enhanced_js_objects/Array.d.ts +15 -15
- package/dist/esm/foundation/exporter/Gltf2Exporter.d.ts +27 -22
- package/dist/esm/foundation/geometry/Frustum.d.ts +37 -37
- package/dist/esm/foundation/geometry/Mesh.d.ts +148 -124
- package/dist/esm/foundation/geometry/Plane.d.ts +30 -26
- package/dist/esm/foundation/geometry/Primitive.d.ts +78 -78
- package/dist/esm/foundation/geometry/Sphere.d.ts +12 -12
- package/dist/esm/foundation/gizmos/AABBGizmo.d.ts +29 -10
- package/dist/esm/foundation/gizmos/Gizmo.d.ts +39 -16
- package/dist/esm/foundation/gizmos/LocatorGizmo.d.ts +28 -0
- package/dist/esm/foundation/helpers/EntityHelper.d.ts +11 -11
- package/dist/esm/foundation/helpers/MaterialHelper.d.ts +173 -167
- package/dist/esm/foundation/helpers/MeshHelper.d.ts +4 -4
- package/dist/esm/foundation/helpers/RenderableHelper.d.ts +18 -18
- package/dist/esm/foundation/importer/AnimationAssigner.d.ts +16 -16
- package/dist/esm/foundation/importer/DrcPointCloudImporter.d.ts +69 -69
- package/dist/esm/foundation/importer/FormatDetector.d.ts +5 -5
- package/dist/esm/foundation/importer/Gltf1Importer.d.ts +45 -45
- package/dist/esm/foundation/importer/Gltf2Importer.d.ts +46 -46
- package/dist/esm/foundation/importer/GltfImporter.d.ts +57 -57
- package/dist/esm/foundation/importer/ILoaderExtension.d.ts +11 -11
- package/dist/esm/foundation/importer/ModelConverter.d.ts +78 -78
- package/dist/esm/foundation/importer/RhodoniteImportExtension.d.ts +9 -9
- package/dist/esm/foundation/importer/VRMImporter.d.ts +15 -15
- package/dist/esm/foundation/materials/core/AbstractMaterialNode.d.ts +124 -124
- package/dist/esm/foundation/materials/core/AbstractShaderNode.d.ts +33 -33
- package/dist/esm/foundation/materials/core/Material.d.ts +181 -149
- package/dist/esm/foundation/materials/core/ShaderGraphResolver.d.ts +16 -16
- package/dist/esm/foundation/materials/core/ShaderityUtility.d.ts +30 -32
- package/dist/esm/foundation/materials/nodes/AddShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/AttributeNormalShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/AttributePositionShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/BlockBeginShaderNode.d.ts +9 -9
- package/dist/esm/foundation/materials/nodes/BlockEndShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/DotProductShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/GreaterShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/IfStatementShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/MultiplyShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/NormalMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/NormalizeShaderNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/OutColorShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/OutPositionShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ProjectionMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ScalarToVector4ShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/TextureFetchMaterialNode.d.ts +6 -6
- package/dist/esm/foundation/materials/nodes/UniformDataShaderNode.d.ts +8 -8
- package/dist/esm/foundation/materials/nodes/VaryingInVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/VaryingOutVariableShaderNode.d.ts +7 -7
- package/dist/esm/foundation/materials/nodes/Vector3AndScalarToVector4ShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/ViewMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/WireframeMaterialNode.d.ts +4 -4
- package/dist/esm/foundation/materials/nodes/WorldMatrixShaderNode.d.ts +4 -4
- package/dist/esm/foundation/materials/singles/ClassicShadingSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/ColorGradingUsingLUTsSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/CustomSingleMaterialNode.d.ts +30 -31
- package/dist/esm/foundation/materials/singles/DepthEncodeSingleMaterialNode.d.ts +20 -20
- package/dist/esm/foundation/materials/singles/DetectHighLuminanceSingleMaterialNode.d.ts +16 -16
- package/dist/esm/foundation/materials/singles/EntityUIDOutputSingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/EnvConstantSingleMaterialNode.d.ts +14 -14
- package/dist/esm/foundation/materials/singles/FXAA3QualitySingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/FurnaceTestSingleMaterialNode.d.ts +17 -17
- package/dist/esm/foundation/materials/singles/GammaCorrectionSingleMaterialNode.d.ts +11 -11
- package/dist/esm/foundation/materials/singles/GaussianBlurForEncodedDepthSingleMaterialNode.d.ts +27 -27
- package/dist/esm/foundation/materials/singles/GaussianBlurSingleMaterialNode.d.ts +27 -27
- package/dist/esm/foundation/materials/singles/MToonSingleMaterialNode.d.ts +52 -52
- package/dist/esm/foundation/materials/singles/MatCapSingleMaterialNode.d.ts +14 -14
- package/dist/esm/foundation/materials/singles/PbrExtendedShadingSingleMaterialNode.d.ts +29 -29
- package/dist/esm/foundation/materials/singles/PbrShadingSingleMaterialNode.d.ts +36 -36
- package/dist/esm/foundation/materials/singles/ShaderitySingleMaterialNode.d.ts +17 -0
- package/dist/esm/foundation/materials/singles/ShadowMapDecodeClassicSingleMaterialNode.d.ts +41 -41
- package/dist/esm/foundation/materials/singles/SkinPbrShadingSingleMaterialNode.d.ts +26 -26
- package/dist/esm/foundation/materials/singles/SynthesizeHDRSingleMaterialNode.d.ts +39 -39
- package/dist/esm/foundation/materials/singles/VarianceShadowMapDecodeClassicSingleMaterialNode.d.ts +52 -52
- package/dist/esm/foundation/math/AABB.d.ts +34 -34
- package/dist/esm/foundation/math/AbstractMathNumber.d.ts +6 -6
- package/dist/esm/foundation/math/AbstractMatrix.d.ts +14 -14
- package/dist/esm/foundation/math/AbstractQuaternion.d.ts +25 -25
- package/dist/esm/foundation/math/AbstractVector.d.ts +21 -21
- package/dist/esm/foundation/math/ColorRgb.d.ts +26 -27
- package/dist/esm/foundation/math/ColorRgba.d.ts +25 -25
- package/dist/esm/foundation/math/IColor.d.ts +64 -64
- package/dist/esm/foundation/math/IMathNumber.d.ts +3 -3
- package/dist/esm/foundation/math/IMatrix.d.ts +226 -226
- package/dist/esm/foundation/math/IQuaternion.d.ts +64 -64
- package/dist/esm/foundation/math/IVector.d.ts +209 -209
- package/dist/esm/foundation/math/IdentityMatrix33.d.ts +40 -40
- package/dist/esm/foundation/math/IdentityMatrix44.d.ts +45 -45
- package/dist/esm/foundation/math/ImageUtil.d.ts +19 -19
- package/dist/esm/foundation/math/LogQuaternion.d.ts +12 -12
- package/dist/esm/foundation/math/MathClassUtil.d.ts +37 -37
- package/dist/esm/foundation/math/MathUtil.d.ts +55 -55
- package/dist/esm/foundation/math/Matrix22.d.ts +69 -69
- package/dist/esm/foundation/math/Matrix33.d.ts +86 -86
- package/dist/esm/foundation/math/Matrix44.d.ts +122 -122
- package/dist/esm/foundation/math/MutableColorRgb.d.ts +32 -33
- package/dist/esm/foundation/math/MutableColorRgba.d.ts +33 -33
- package/dist/esm/foundation/math/MutableMatrix22.d.ts +80 -80
- package/dist/esm/foundation/math/MutableMatrix33.d.ts +110 -110
- package/dist/esm/foundation/math/MutableMatrix44.d.ts +149 -149
- package/dist/esm/foundation/math/MutableQuaternion.d.ts +48 -48
- package/dist/esm/foundation/math/MutableScalar.d.ts +34 -34
- package/dist/esm/foundation/math/MutableVector2.d.ts +80 -75
- package/dist/esm/foundation/math/MutableVector3.d.ts +98 -94
- package/dist/esm/foundation/math/MutableVector4.d.ts +87 -85
- package/dist/esm/foundation/math/Quaternion.d.ts +53 -51
- package/dist/esm/foundation/math/Scalar.d.ts +40 -36
- package/dist/esm/foundation/math/Vector2.d.ts +140 -126
- package/dist/esm/foundation/math/Vector3.d.ts +166 -150
- package/dist/esm/foundation/math/Vector4.d.ts +146 -146
- package/dist/esm/foundation/math/VectorN.d.ts +5 -5
- package/dist/esm/foundation/math/raw/raw_extension.d.ts +59 -23
- package/dist/esm/foundation/memory/Accessor.d.ts +182 -182
- package/dist/esm/foundation/memory/Buffer.d.ts +37 -37
- package/dist/esm/foundation/memory/BufferView.d.ts +60 -60
- package/dist/esm/foundation/misc/Cache.d.ts +19 -0
- package/dist/esm/foundation/misc/DataUtil.d.ts +42 -38
- package/dist/esm/foundation/misc/EnumIO.d.ts +33 -33
- package/dist/esm/foundation/misc/Is.d.ts +26 -26
- package/dist/esm/foundation/misc/ManualCache.d.ts +30 -0
- package/dist/esm/foundation/misc/MiscUtil.d.ts +37 -30
- package/dist/esm/foundation/misc/Option.d.ts +72 -72
- package/dist/esm/foundation/misc/Result.d.ts +40 -40
- package/dist/esm/foundation/misc/RnPromise.d.ts +27 -27
- package/dist/esm/foundation/misc/Time.d.ts +16 -16
- package/dist/esm/foundation/physics/PhysicsStrategy.d.ts +2 -2
- package/dist/esm/foundation/physics/SphereCollider.d.ts +5 -5
- package/dist/esm/foundation/physics/VRMColliderGroup.d.ts +6 -6
- package/dist/esm/foundation/physics/VRMSpringBoneGroup.d.ts +14 -14
- package/dist/esm/foundation/physics/VRMSpringBonePhysicsStrategy.d.ts +39 -39
- package/dist/esm/foundation/renderer/CGAPIResourceRepository.d.ts +5 -5
- package/dist/esm/foundation/renderer/Expression.d.ts +21 -21
- package/dist/esm/foundation/renderer/FrameBuffer.d.ts +32 -32
- package/dist/esm/foundation/renderer/RenderPass.d.ts +113 -115
- package/dist/esm/foundation/system/EventPubSub.d.ts +19 -19
- package/dist/esm/foundation/system/ModuleManager.d.ts +10 -10
- package/dist/esm/foundation/system/System.d.ts +23 -23
- package/dist/esm/foundation/system/SystemState.d.ts +4 -4
- package/dist/esm/foundation/textures/AbstractTexture.d.ts +60 -60
- package/dist/esm/foundation/textures/CubeTexture.d.ts +33 -33
- package/dist/esm/foundation/textures/IRenderable.d.ts +10 -10
- package/dist/esm/foundation/textures/RenderBuffer.d.ts +23 -23
- package/dist/esm/foundation/textures/RenderTargetTexture.d.ts +39 -39
- package/dist/esm/foundation/textures/Texture.d.ts +90 -90
- package/dist/esm/foundation/textures/TextureDataFloat.d.ts +20 -18
- package/dist/esm/foundation/textures/VideoTexture.d.ts +63 -63
- package/dist/esm/index.d.ts +927 -917
- package/dist/esm/index.js +44596 -41597
- package/dist/esm/pbr/main.d.ts +5 -5
- package/dist/esm/sparkgear/SparkGearComponent.d.ts +54 -54
- package/dist/esm/sparkgear/main.d.ts +6 -6
- package/dist/esm/types/BasisTexture.d.ts +23 -23
- package/dist/esm/types/CommonTypes.d.ts +33 -29
- package/dist/esm/types/KTX2Texture.d.ts +67 -67
- package/dist/esm/types/RnM2.d.ts +329 -329
- package/dist/esm/types/TypeConverter.d.ts +1 -1
- package/dist/esm/types/TypeGenerators.d.ts +4 -4
- package/dist/esm/types/VRM.d.ts +160 -160
- package/dist/esm/types/glTF.d.ts +387 -385
- package/dist/esm/types/glTF1.d.ts +88 -88
- package/dist/esm/types/glTF2.d.ts +391 -338
- package/dist/esm/webgl/WebGLContextWrapper.d.ts +99 -99
- package/dist/esm/webgl/WebGLExtendedTypes.d.ts +14 -9
- package/dist/esm/webgl/WebGLExtension.d.ts +24 -24
- package/dist/esm/webgl/WebGLResourceRepository.d.ts +351 -221
- package/dist/esm/webgl/WebGLStrategy.d.ts +27 -22
- package/dist/esm/webgl/WebGLStrategyCommonMethod.d.ts +54 -30
- package/dist/esm/webgl/WebGLStrategyFastest.d.ts +54 -51
- package/dist/esm/webgl/WebGLStrategyUniform.d.ts +44 -40
- package/dist/esm/webgl/getRenderingStrategy.d.ts +4 -4
- package/dist/esm/webgl/main.d.ts +17 -17
- package/dist/esm/webgl/shaders/GLSLShader.d.ts +48 -48
- package/dist/esm/webgl/shaders/nodes/BlockBeginShader.d.ts +16 -16
- package/dist/esm/webgl/shaders/nodes/BlockEndShader.d.ts +16 -16
- package/dist/esm/webgl/shaders/nodes/ClassicShadingShader.d.ts +17 -17
- package/dist/esm/webgl/shaders/nodes/ConstantVariableShader.d.ts +18 -18
- package/dist/esm/webgl/shaders/nodes/EndShader.d.ts +17 -17
- package/dist/esm/webgl/shaders/nodes/IfStatementShader.d.ts +12 -12
- package/dist/esm/webgl/shaders/nodes/TextureFetchShader.d.ts +18 -18
- package/dist/esm/webgl/shaders/nodes/UniformDataShader.d.ts +20 -20
- package/dist/esm/webgl/shaders/nodes/VaryingVariableShader.d.ts +18 -18
- package/dist/esm/webgl/textureLoader/KTX2TextureLoader.d.ts +21 -21
- package/dist/esm/xr/WebVRSystem.d.ts +55 -55
- package/dist/esm/xr/WebXRInput.d.ts +18 -18
- package/dist/esm/xr/WebXRSystem.d.ts +136 -136
- package/dist/esm/xr/main.d.ts +8 -8
- package/package.json +5 -7
- package/dist/VERSION-FILE +0 -2
- package/dist/esm/foundation/components/MeshComponent.test.d.ts +0 -1
- package/dist/esm/foundation/components/SceneGraphComponent.test.d.ts +0 -1
- package/dist/esm/foundation/components/TransformComponent.test.d.ts +0 -1
- package/dist/esm/foundation/core/Entity.test.d.ts +0 -1
- package/dist/esm/foundation/core/EntityRepository.test.d.ts +0 -1
- package/dist/esm/foundation/core/RnObject.test.d.ts +0 -1
- package/dist/esm/foundation/definitions/ShaderVariableTyoe.d.ts +0 -11
- package/dist/esm/foundation/enhanced_js_objects/Array.test.d.ts +0 -5
- package/dist/esm/foundation/geometry/Mesh.test.d.ts +0 -1
- package/dist/esm/foundation/importer/VRizeGltfLoaderExtension.d.ts +0 -21
- package/dist/esm/foundation/materials/core/Material.test.d.ts +0 -1
- package/dist/esm/foundation/materials/core/ShaderityUtility.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/AddShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/ConstantVariableShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/ScalarToVector4ShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/nodes/VaryingVariableShaderNode.test.d.ts +0 -1
- package/dist/esm/foundation/materials/singles/VRizeClassicShadingSingleMaterialNode.d.ts +0 -24
- package/dist/esm/foundation/materials/singles/VRizePbrShadingSingleMaterialNode.d.ts +0 -28
- package/dist/esm/foundation/math/AABB.test.d.ts +0 -1
- package/dist/esm/foundation/math/IdentityMatrix33.test.d.ts +0 -1
- package/dist/esm/foundation/math/IdentityMatrix44.test.d.ts +0 -1
- package/dist/esm/foundation/math/Matrix44.test.d.ts +0 -1
- package/dist/esm/foundation/math/MutableMatrix44..test.d.ts +0 -1
- package/dist/esm/foundation/math/MutableVector4.test.d.ts +0 -1
- package/dist/esm/foundation/math/Vector4.test.d.ts +0 -1
- package/dist/esm/foundation/memory/Accessor.test.d.ts +0 -1
- package/dist/esm/foundation/memory/Buffer.test.d.ts +0 -1
- package/dist/esm/foundation/memory/BufferView.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Is.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Option.test.d.ts +0 -1
- package/dist/esm/foundation/misc/Result.test.d.ts +0 -1
- package/dist/esm/foundation/misc/RnPromise.test.d.ts +0 -1
- package/dist/esm/foundation/renderer/RenderPass.test.d.ts +0 -1
- package/dist/esm/foundation/system/EventPubSub.test.d.ts +0 -1
- package/dist/esm/rhodonite-xr.d.ts +0 -8
- package/dist/esm/types/Option.d.ts +0 -68
- package/dist/esm/types/Option.test.d.ts +0 -1
- package/dist/esm/types/Result.d.ts +0 -32
- package/dist/esm/webgl/WebGLResourceRepository.test.d.ts +0 -1
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import Primitive from '../geometry/Primitive';
|
|
2
|
-
import { glTF2, GltfLoadOption } from '../../types/glTF';
|
|
3
|
-
/**
|
|
4
|
-
* The draco Importer class.
|
|
5
|
-
*/
|
|
6
|
-
export default class DrcPointCloudImporter {
|
|
7
|
-
private static __instance;
|
|
8
|
-
private constructor();
|
|
9
|
-
/**
|
|
10
|
-
* Import draco file of point cloud type
|
|
11
|
-
* WEIGHTS_0 and JOINTS_0 attribute and all the mesh type and is not support yet.
|
|
12
|
-
* @param uri - uri of drc file
|
|
13
|
-
* @param options - options for loading process
|
|
14
|
-
* @returns a glTF2 based JSON pre-processed
|
|
15
|
-
*/
|
|
16
|
-
importPointCloud(uri: string, options?: GltfLoadOption): Promise<void | glTF2>;
|
|
17
|
-
/**
|
|
18
|
-
* Import the specified array buffer of draco file where the type must be point cloud.
|
|
19
|
-
* WEIGHTS_0 and JOINTS_0 attribute and all the mesh type and is not support yet.
|
|
20
|
-
* @param uri - uri of drc file
|
|
21
|
-
* @param arrayBuffer - fetched array buffer of drc file
|
|
22
|
-
* @param options - options for loading process
|
|
23
|
-
* @returns a glTF2 based JSON pre-processed
|
|
24
|
-
*/
|
|
25
|
-
importArrayBuffer(uri: string, arrayBuffer: ArrayBuffer, options?: GltfLoadOption): Promise<void | glTF2>;
|
|
26
|
-
private __loadFromArrayBuffer;
|
|
27
|
-
_getOptions(defaultOptions: any, json: glTF2, options: any): GltfLoadOption;
|
|
28
|
-
_loadAsBinaryJson(dataView: DataView, isLittleEndian: boolean, arrayBuffer: ArrayBuffer, options: GltfLoadOption, defaultOptions: GltfLoadOption, basePath: string): Promise<any>;
|
|
29
|
-
_loadAsTextJson(gltfJson: glTF2, options: GltfLoadOption, defaultOptions: GltfLoadOption, basePath: string): Promise<glTF2>;
|
|
30
|
-
_loadInner(uint8array: Uint8Array | undefined, basePath: string, gltfJson: glTF2, options: GltfLoadOption): Promise<(void | void[])[]>;
|
|
31
|
-
_loadJsonContent(gltfJson: glTF2, options: GltfLoadOption): void;
|
|
32
|
-
_loadDependenciesOfScenes(gltfJson: glTF2): void;
|
|
33
|
-
_loadDependenciesOfNodes(gltfJson: glTF2): void;
|
|
34
|
-
_loadDependenciesOfMeshes(gltfJson: glTF2): void;
|
|
35
|
-
private _checkRnGltfLoaderOptionsExist;
|
|
36
|
-
_loadDependenciesOfMaterials(gltfJson: glTF2): void;
|
|
37
|
-
_loadDependenciesOfTextures(gltfJson: glTF2): void;
|
|
38
|
-
_loadDependenciesOfJoints(gltfJson: glTF2): void;
|
|
39
|
-
_loadDependenciesOfAnimations(gltfJson: glTF2): void;
|
|
40
|
-
_loadDependenciesOfAccessors(gltfJson: glTF2): void;
|
|
41
|
-
_loadDependenciesOfBufferViews(gltfJson: glTF2): void;
|
|
42
|
-
_mergeExtendedJson(gltfJson: glTF2, extendedData: any): void;
|
|
43
|
-
_loadResources(uint8Array: Uint8Array, basePath: string, gltfJson: glTF2, options: GltfLoadOption, resources: {
|
|
44
|
-
shaders: any[];
|
|
45
|
-
buffers: any[];
|
|
46
|
-
images: any[];
|
|
47
|
-
}): Promise<void | void[]>;
|
|
48
|
-
static getInstance(): DrcPointCloudImporter;
|
|
49
|
-
private __decodeDraco;
|
|
50
|
-
private __decodeBuffer;
|
|
51
|
-
private __decodedBufferToJSON;
|
|
52
|
-
private __setBuffersToJSON;
|
|
53
|
-
private __convertBufferToURI;
|
|
54
|
-
private __setAccessorsAndBufferViewsToJSON;
|
|
55
|
-
private __setMeshesToJSON;
|
|
56
|
-
/**
|
|
57
|
-
* Import Draco file of point cloud type.
|
|
58
|
-
* WEIGHTS_0 and JOINTS_0 attribute and all the mesh type and is not support yet.
|
|
59
|
-
* @param uri - uri of glTF file
|
|
60
|
-
* @returns a primitive of Rhodonite object
|
|
61
|
-
*/
|
|
62
|
-
importPointCloudToPrimitive(uri: string): Promise<Primitive>;
|
|
63
|
-
private __decodeDracoToPrimitive;
|
|
64
|
-
private __getGeometryFromDracoBuffer;
|
|
65
|
-
private __getPositions;
|
|
66
|
-
private __getColors;
|
|
67
|
-
private __getNormals;
|
|
68
|
-
private __getTextureCoords;
|
|
69
|
-
}
|
|
1
|
+
import Primitive from '../geometry/Primitive';
|
|
2
|
+
import { glTF2, GltfLoadOption } from '../../types/glTF';
|
|
3
|
+
/**
|
|
4
|
+
* The draco Importer class.
|
|
5
|
+
*/
|
|
6
|
+
export default class DrcPointCloudImporter {
|
|
7
|
+
private static __instance;
|
|
8
|
+
private constructor();
|
|
9
|
+
/**
|
|
10
|
+
* Import draco file of point cloud type
|
|
11
|
+
* WEIGHTS_0 and JOINTS_0 attribute and all the mesh type and is not support yet.
|
|
12
|
+
* @param uri - uri of drc file
|
|
13
|
+
* @param options - options for loading process
|
|
14
|
+
* @returns a glTF2 based JSON pre-processed
|
|
15
|
+
*/
|
|
16
|
+
importPointCloud(uri: string, options?: GltfLoadOption): Promise<void | glTF2>;
|
|
17
|
+
/**
|
|
18
|
+
* Import the specified array buffer of draco file where the type must be point cloud.
|
|
19
|
+
* WEIGHTS_0 and JOINTS_0 attribute and all the mesh type and is not support yet.
|
|
20
|
+
* @param uri - uri of drc file
|
|
21
|
+
* @param arrayBuffer - fetched array buffer of drc file
|
|
22
|
+
* @param options - options for loading process
|
|
23
|
+
* @returns a glTF2 based JSON pre-processed
|
|
24
|
+
*/
|
|
25
|
+
importArrayBuffer(uri: string, arrayBuffer: ArrayBuffer, options?: GltfLoadOption): Promise<void | glTF2>;
|
|
26
|
+
private __loadFromArrayBuffer;
|
|
27
|
+
_getOptions(defaultOptions: any, json: glTF2, options: any): GltfLoadOption;
|
|
28
|
+
_loadAsBinaryJson(dataView: DataView, isLittleEndian: boolean, arrayBuffer: ArrayBuffer, options: GltfLoadOption, defaultOptions: GltfLoadOption, basePath: string): Promise<any>;
|
|
29
|
+
_loadAsTextJson(gltfJson: glTF2, options: GltfLoadOption, defaultOptions: GltfLoadOption, basePath: string): Promise<glTF2>;
|
|
30
|
+
_loadInner(uint8array: Uint8Array | undefined, basePath: string, gltfJson: glTF2, options: GltfLoadOption): Promise<(void | void[])[]>;
|
|
31
|
+
_loadJsonContent(gltfJson: glTF2, options: GltfLoadOption): void;
|
|
32
|
+
_loadDependenciesOfScenes(gltfJson: glTF2): void;
|
|
33
|
+
_loadDependenciesOfNodes(gltfJson: glTF2): void;
|
|
34
|
+
_loadDependenciesOfMeshes(gltfJson: glTF2): void;
|
|
35
|
+
private _checkRnGltfLoaderOptionsExist;
|
|
36
|
+
_loadDependenciesOfMaterials(gltfJson: glTF2): void;
|
|
37
|
+
_loadDependenciesOfTextures(gltfJson: glTF2): void;
|
|
38
|
+
_loadDependenciesOfJoints(gltfJson: glTF2): void;
|
|
39
|
+
_loadDependenciesOfAnimations(gltfJson: glTF2): void;
|
|
40
|
+
_loadDependenciesOfAccessors(gltfJson: glTF2): void;
|
|
41
|
+
_loadDependenciesOfBufferViews(gltfJson: glTF2): void;
|
|
42
|
+
_mergeExtendedJson(gltfJson: glTF2, extendedData: any): void;
|
|
43
|
+
_loadResources(uint8Array: Uint8Array, basePath: string, gltfJson: glTF2, options: GltfLoadOption, resources: {
|
|
44
|
+
shaders: any[];
|
|
45
|
+
buffers: any[];
|
|
46
|
+
images: any[];
|
|
47
|
+
}): Promise<void | void[]>;
|
|
48
|
+
static getInstance(): DrcPointCloudImporter;
|
|
49
|
+
private __decodeDraco;
|
|
50
|
+
private __decodeBuffer;
|
|
51
|
+
private __decodedBufferToJSON;
|
|
52
|
+
private __setBuffersToJSON;
|
|
53
|
+
private __convertBufferToURI;
|
|
54
|
+
private __setAccessorsAndBufferViewsToJSON;
|
|
55
|
+
private __setMeshesToJSON;
|
|
56
|
+
/**
|
|
57
|
+
* Import Draco file of point cloud type.
|
|
58
|
+
* WEIGHTS_0 and JOINTS_0 attribute and all the mesh type and is not support yet.
|
|
59
|
+
* @param uri - uri of glTF file
|
|
60
|
+
* @returns a primitive of Rhodonite object
|
|
61
|
+
*/
|
|
62
|
+
importPointCloudToPrimitive(uri: string): Promise<Primitive>;
|
|
63
|
+
private __decodeDracoToPrimitive;
|
|
64
|
+
private __getGeometryFromDracoBuffer;
|
|
65
|
+
private __getPositions;
|
|
66
|
+
private __getColors;
|
|
67
|
+
private __getNormals;
|
|
68
|
+
private __getTextureCoords;
|
|
69
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FileTypeEnum } from '../../foundation/definitions/FileType';
|
|
2
|
-
export declare function detectFormatByArrayBuffers(files: {
|
|
3
|
-
[s: string]: ArrayBuffer;
|
|
4
|
-
}): FileTypeEnum;
|
|
5
|
-
export declare function detectFormatByUri(uri: string): string;
|
|
1
|
+
import { FileTypeEnum } from '../../foundation/definitions/FileType';
|
|
2
|
+
export declare function detectFormatByArrayBuffers(files: {
|
|
3
|
+
[s: string]: ArrayBuffer;
|
|
4
|
+
}): FileTypeEnum;
|
|
5
|
+
export declare function detectFormatByUri(uri: string): string;
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { glTF1, glTF2, GltfFileBuffers, GltfLoadOption } from '../../types/glTF';
|
|
2
|
-
export default class Gltf1Importer {
|
|
3
|
-
private static __instance;
|
|
4
|
-
private constructor();
|
|
5
|
-
/**
|
|
6
|
-
* the method to load glTF1 file.
|
|
7
|
-
* @param uri - uri of glTF file
|
|
8
|
-
* @param options - options for loading process
|
|
9
|
-
* @returns a glTF2 based JSON pre-processed
|
|
10
|
-
*/
|
|
11
|
-
import(uri: string, options?: GltfLoadOption): Promise<glTF2>;
|
|
12
|
-
importGltfOrGlbFromFile(uri: string, options?: GltfLoadOption): Promise<glTF2 | undefined>;
|
|
13
|
-
/**
|
|
14
|
-
* Import glTF1 array buffer.
|
|
15
|
-
* @param arrayBuffer .gltf/.glb file in ArrayBuffer
|
|
16
|
-
* @param otherFiles other resource files data in ArrayBuffers
|
|
17
|
-
* @param options options for loading process (Optional)
|
|
18
|
-
* @param uri .gltf file's uri (Optional)
|
|
19
|
-
* @returns a glTF2 based JSON pre-processed
|
|
20
|
-
*/
|
|
21
|
-
importGltfOrGlbFromArrayBuffers(arrayBuffer: ArrayBuffer, otherFiles: GltfFileBuffers, options?: GltfLoadOption, uri?: string): Promise<glTF2>;
|
|
22
|
-
_getOptions(defaultOptions: any, json: glTF1, options: any): GltfLoadOption;
|
|
23
|
-
importGlb(arrayBuffer: ArrayBuffer, files: GltfFileBuffers, options: GltfLoadOption): Promise<glTF2>;
|
|
24
|
-
importGltf(gltfJson: glTF1, files: GltfFileBuffers, options: GltfLoadOption, uri?: string): Promise<glTF2>;
|
|
25
|
-
_loadInner(gltfJson: glTF1, files: GltfFileBuffers, options: GltfLoadOption, uint8array?: Uint8Array, basePath?: string): Promise<any>;
|
|
26
|
-
_loadJsonContent(gltfJson: glTF1, options: GltfLoadOption): void;
|
|
27
|
-
private _convertToGltf2LikeStructure;
|
|
28
|
-
private __createProperty;
|
|
29
|
-
_loadDependenciesOfScenes(gltfJson: glTF1): void;
|
|
30
|
-
_loadDependenciesOfNodes(gltfJson: glTF1): void;
|
|
31
|
-
_loadDependenciesOfMeshes(gltfJson: glTF1): void;
|
|
32
|
-
_isKHRMaterialsCommon(materialJson: any): boolean;
|
|
33
|
-
_loadDependenciesOfMaterials(gltfJson: glTF1): void;
|
|
34
|
-
_loadDependenciesOfTextures(gltfJson: glTF1): void;
|
|
35
|
-
_loadDependenciesOfJoints(gltfJson: glTF1): void;
|
|
36
|
-
_loadDependenciesOfAnimations(gltfJson: glTF1): void;
|
|
37
|
-
_loadDependenciesOfAccessors(gltfJson: glTF1): void;
|
|
38
|
-
_loadDependenciesOfBufferViews(gltfJson: glTF1): void;
|
|
39
|
-
_mergeExtendedJson(gltfJson: glTF1, extendedData: any): void;
|
|
40
|
-
_loadResources(uint8Array: Uint8Array, gltfJson: glTF1, files: GltfFileBuffers, options: GltfLoadOption, basePath?: string): Promise<any[]>;
|
|
41
|
-
private __containsFileName;
|
|
42
|
-
private __getFullPathOfFileName;
|
|
43
|
-
private __loadImageUri;
|
|
44
|
-
static getInstance(): Gltf1Importer;
|
|
45
|
-
}
|
|
1
|
+
import { glTF1, glTF2, GltfFileBuffers, GltfLoadOption } from '../../types/glTF';
|
|
2
|
+
export default class Gltf1Importer {
|
|
3
|
+
private static __instance;
|
|
4
|
+
private constructor();
|
|
5
|
+
/**
|
|
6
|
+
* the method to load glTF1 file.
|
|
7
|
+
* @param uri - uri of glTF file
|
|
8
|
+
* @param options - options for loading process
|
|
9
|
+
* @returns a glTF2 based JSON pre-processed
|
|
10
|
+
*/
|
|
11
|
+
import(uri: string, options?: GltfLoadOption): Promise<glTF2>;
|
|
12
|
+
importGltfOrGlbFromFile(uri: string, options?: GltfLoadOption): Promise<glTF2 | undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* Import glTF1 array buffer.
|
|
15
|
+
* @param arrayBuffer .gltf/.glb file in ArrayBuffer
|
|
16
|
+
* @param otherFiles other resource files data in ArrayBuffers
|
|
17
|
+
* @param options options for loading process (Optional)
|
|
18
|
+
* @param uri .gltf file's uri (Optional)
|
|
19
|
+
* @returns a glTF2 based JSON pre-processed
|
|
20
|
+
*/
|
|
21
|
+
importGltfOrGlbFromArrayBuffers(arrayBuffer: ArrayBuffer, otherFiles: GltfFileBuffers, options?: GltfLoadOption, uri?: string): Promise<glTF2>;
|
|
22
|
+
_getOptions(defaultOptions: any, json: glTF1, options: any): GltfLoadOption;
|
|
23
|
+
importGlb(arrayBuffer: ArrayBuffer, files: GltfFileBuffers, options: GltfLoadOption): Promise<glTF2>;
|
|
24
|
+
importGltf(gltfJson: glTF1, files: GltfFileBuffers, options: GltfLoadOption, uri?: string): Promise<glTF2>;
|
|
25
|
+
_loadInner(gltfJson: glTF1, files: GltfFileBuffers, options: GltfLoadOption, uint8array?: Uint8Array, basePath?: string): Promise<any>;
|
|
26
|
+
_loadJsonContent(gltfJson: glTF1, options: GltfLoadOption): void;
|
|
27
|
+
private _convertToGltf2LikeStructure;
|
|
28
|
+
private __createProperty;
|
|
29
|
+
_loadDependenciesOfScenes(gltfJson: glTF1): void;
|
|
30
|
+
_loadDependenciesOfNodes(gltfJson: glTF1): void;
|
|
31
|
+
_loadDependenciesOfMeshes(gltfJson: glTF1): void;
|
|
32
|
+
_isKHRMaterialsCommon(materialJson: any): boolean;
|
|
33
|
+
_loadDependenciesOfMaterials(gltfJson: glTF1): void;
|
|
34
|
+
_loadDependenciesOfTextures(gltfJson: glTF1): void;
|
|
35
|
+
_loadDependenciesOfJoints(gltfJson: glTF1): void;
|
|
36
|
+
_loadDependenciesOfAnimations(gltfJson: glTF1): void;
|
|
37
|
+
_loadDependenciesOfAccessors(gltfJson: glTF1): void;
|
|
38
|
+
_loadDependenciesOfBufferViews(gltfJson: glTF1): void;
|
|
39
|
+
_mergeExtendedJson(gltfJson: glTF1, extendedData: any): void;
|
|
40
|
+
_loadResources(uint8Array: Uint8Array, gltfJson: glTF1, files: GltfFileBuffers, options: GltfLoadOption, basePath?: string): Promise<any[]>;
|
|
41
|
+
private __containsFileName;
|
|
42
|
+
private __getFullPathOfFileName;
|
|
43
|
+
private __loadImageUri;
|
|
44
|
+
static getInstance(): Gltf1Importer;
|
|
45
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { glTF2, GltfLoadOption, GltfFileBuffers } from '../../types/glTF';
|
|
2
|
-
/**
|
|
3
|
-
* The glTF2 Importer class.
|
|
4
|
-
*/
|
|
5
|
-
export default class Gltf2Importer {
|
|
6
|
-
private static __instance;
|
|
7
|
-
private constructor();
|
|
8
|
-
/**
|
|
9
|
-
* Import glTF2 file
|
|
10
|
-
* @param uri - uri of glTF file
|
|
11
|
-
* @param options - options for loading process
|
|
12
|
-
* @returns a glTF2 based JSON pre-processed
|
|
13
|
-
*/
|
|
14
|
-
import(uri: string, options?: GltfLoadOption): Promise<glTF2 | undefined>;
|
|
15
|
-
importGltfOrGlbFromFile(uri: string, options?: GltfLoadOption): Promise<void | glTF2 | undefined>;
|
|
16
|
-
/**
|
|
17
|
-
* Import glTF2 array buffer.
|
|
18
|
-
* @param arrayBuffer .gltf/.glb file in ArrayBuffer
|
|
19
|
-
* @param otherFiles other resource files data in ArrayBuffers
|
|
20
|
-
* @param options options for loading process (Optional)
|
|
21
|
-
* @param uri .gltf file's uri (Optional)
|
|
22
|
-
* @returns a glTF2 based JSON pre-processed
|
|
23
|
-
*/
|
|
24
|
-
importGltfOrGlbFromArrayBuffers(arrayBuffer: ArrayBuffer, otherFiles: GltfFileBuffers, options?: GltfLoadOption, uri?: string): Promise<glTF2 | undefined>;
|
|
25
|
-
_getOptions(defaultOptions: any, json: glTF2, options: any): GltfLoadOption;
|
|
26
|
-
importGlb(arrayBuffer: ArrayBuffer, files: GltfFileBuffers, options: GltfLoadOption): Promise<glTF2>;
|
|
27
|
-
importGltf(gltfJson: glTF2, fileArrayBuffers: GltfFileBuffers, options: GltfLoadOption, uri?: string): Promise<glTF2>;
|
|
28
|
-
_loadInner(gltfJson: glTF2, files: GltfFileBuffers, options: GltfLoadOption, uint8array?: Uint8Array, basePath?: string): Promise<(void | void[])[]>;
|
|
29
|
-
_loadJsonContent(gltfJson: glTF2): void;
|
|
30
|
-
_loadDependenciesOfScenes(gltfJson: glTF2): void;
|
|
31
|
-
_loadDependenciesOfNodes(gltfJson: glTF2): void;
|
|
32
|
-
_loadDependenciesOfMeshes(gltfJson: glTF2): void;
|
|
33
|
-
private _checkRnGltfLoaderOptionsExist;
|
|
34
|
-
_loadDependenciesOfMaterials(gltfJson: glTF2): void;
|
|
35
|
-
_loadDependenciesOfTextures(gltfJson: glTF2): void;
|
|
36
|
-
_loadDependenciesOfJoints(gltfJson: glTF2): void;
|
|
37
|
-
_loadDependenciesOfAnimations(gltfJson: glTF2): void;
|
|
38
|
-
_loadDependenciesOfAccessors(gltfJson: glTF2): void;
|
|
39
|
-
_loadDependenciesOfBufferViews(gltfJson: glTF2): void;
|
|
40
|
-
_mergeExtendedJson(gltfJson: glTF2, extendedData: any): void;
|
|
41
|
-
_loadResources(uint8Array: Uint8Array, gltfJson: glTF2, files: GltfFileBuffers, options: GltfLoadOption, basePath?: string): Promise<void | void[]>;
|
|
42
|
-
private __containsFileName;
|
|
43
|
-
private __getFullPathOfFileName;
|
|
44
|
-
private __loadImageUri;
|
|
45
|
-
static getInstance(): Gltf2Importer;
|
|
46
|
-
}
|
|
1
|
+
import { glTF2, GltfLoadOption, GltfFileBuffers } from '../../types/glTF';
|
|
2
|
+
/**
|
|
3
|
+
* The glTF2 Importer class.
|
|
4
|
+
*/
|
|
5
|
+
export default class Gltf2Importer {
|
|
6
|
+
private static __instance;
|
|
7
|
+
private constructor();
|
|
8
|
+
/**
|
|
9
|
+
* Import glTF2 file
|
|
10
|
+
* @param uri - uri of glTF file
|
|
11
|
+
* @param options - options for loading process
|
|
12
|
+
* @returns a glTF2 based JSON pre-processed
|
|
13
|
+
*/
|
|
14
|
+
import(uri: string, options?: GltfLoadOption): Promise<glTF2 | undefined>;
|
|
15
|
+
importGltfOrGlbFromFile(uri: string, options?: GltfLoadOption): Promise<void | glTF2 | undefined>;
|
|
16
|
+
/**
|
|
17
|
+
* Import glTF2 array buffer.
|
|
18
|
+
* @param arrayBuffer .gltf/.glb file in ArrayBuffer
|
|
19
|
+
* @param otherFiles other resource files data in ArrayBuffers
|
|
20
|
+
* @param options options for loading process (Optional)
|
|
21
|
+
* @param uri .gltf file's uri (Optional)
|
|
22
|
+
* @returns a glTF2 based JSON pre-processed
|
|
23
|
+
*/
|
|
24
|
+
importGltfOrGlbFromArrayBuffers(arrayBuffer: ArrayBuffer, otherFiles: GltfFileBuffers, options?: GltfLoadOption, uri?: string): Promise<glTF2 | undefined>;
|
|
25
|
+
_getOptions(defaultOptions: any, json: glTF2, options: any): GltfLoadOption;
|
|
26
|
+
importGlb(arrayBuffer: ArrayBuffer, files: GltfFileBuffers, options: GltfLoadOption): Promise<glTF2>;
|
|
27
|
+
importGltf(gltfJson: glTF2, fileArrayBuffers: GltfFileBuffers, options: GltfLoadOption, uri?: string): Promise<glTF2>;
|
|
28
|
+
_loadInner(gltfJson: glTF2, files: GltfFileBuffers, options: GltfLoadOption, uint8array?: Uint8Array, basePath?: string): Promise<(void | void[])[]>;
|
|
29
|
+
_loadJsonContent(gltfJson: glTF2): void;
|
|
30
|
+
_loadDependenciesOfScenes(gltfJson: glTF2): void;
|
|
31
|
+
_loadDependenciesOfNodes(gltfJson: glTF2): void;
|
|
32
|
+
_loadDependenciesOfMeshes(gltfJson: glTF2): void;
|
|
33
|
+
private _checkRnGltfLoaderOptionsExist;
|
|
34
|
+
_loadDependenciesOfMaterials(gltfJson: glTF2): void;
|
|
35
|
+
_loadDependenciesOfTextures(gltfJson: glTF2): void;
|
|
36
|
+
_loadDependenciesOfJoints(gltfJson: glTF2): void;
|
|
37
|
+
_loadDependenciesOfAnimations(gltfJson: glTF2): void;
|
|
38
|
+
_loadDependenciesOfAccessors(gltfJson: glTF2): void;
|
|
39
|
+
_loadDependenciesOfBufferViews(gltfJson: glTF2): void;
|
|
40
|
+
_mergeExtendedJson(gltfJson: glTF2, extendedData: any): void;
|
|
41
|
+
_loadResources(uint8Array: Uint8Array, gltfJson: glTF2, files: GltfFileBuffers, options: GltfLoadOption, basePath?: string): Promise<void | void[]>;
|
|
42
|
+
private __containsFileName;
|
|
43
|
+
private __getFullPathOfFileName;
|
|
44
|
+
private __loadImageUri;
|
|
45
|
+
static getInstance(): Gltf2Importer;
|
|
46
|
+
}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import Entity from '../core/Entity';
|
|
2
|
-
import { GltfLoadOption, glTF2, GltfFileBuffers } from '../../types/glTF';
|
|
3
|
-
import Texture from '../textures/Texture';
|
|
4
|
-
import Expression from '../renderer/Expression';
|
|
5
|
-
import { VRM } from '../../types/VRM';
|
|
6
|
-
/**
|
|
7
|
-
* Importer class which can import GLTF and VRM.
|
|
8
|
-
*/
|
|
9
|
-
export default class GltfImporter {
|
|
10
|
-
private static __instance;
|
|
11
|
-
private constructor();
|
|
12
|
-
static getInstance(): GltfImporter;
|
|
13
|
-
/**
|
|
14
|
-
* For VRM file only
|
|
15
|
-
* Generate JSON.
|
|
16
|
-
*/
|
|
17
|
-
importJsonOfVRM(uri: string, options?: GltfLoadOption): Promise<VRM | undefined>;
|
|
18
|
-
/**
|
|
19
|
-
* Import GLTF or VRM file.
|
|
20
|
-
* @param uris uri or array of uri of glTF file
|
|
21
|
-
* @param options options for loading process where the files property is ignored
|
|
22
|
-
* @returns gltf expression where:
|
|
23
|
-
* renderPasses[0]: model entities
|
|
24
|
-
* renderPasses[1]: model outlines
|
|
25
|
-
*/
|
|
26
|
-
import(uris: string | string[], options?: GltfLoadOption): Promise<Expression>;
|
|
27
|
-
/**
|
|
28
|
-
* Import GLTF or VRM file.
|
|
29
|
-
* @param uris uri or array of uri of glTF file
|
|
30
|
-
* @param options options for loading process where if you use files option, key name of files must be uri of the value array buffer
|
|
31
|
-
* @returns gltf expression where:
|
|
32
|
-
* renderPasses[0]: model entities
|
|
33
|
-
* renderPasses[1]: model outlines
|
|
34
|
-
*/
|
|
35
|
-
importFromArrayBuffers(files: GltfFileBuffers, options?: GltfLoadOption): Promise<Expression>;
|
|
36
|
-
private __initOptions;
|
|
37
|
-
private __setRenderPassesToExpression;
|
|
38
|
-
private __importMultipleModelsFromUri;
|
|
39
|
-
private __importMultipleModelsFromArrayBuffers;
|
|
40
|
-
private __isValidExtension;
|
|
41
|
-
private __importToRenderPassesFromUriPromise;
|
|
42
|
-
private __isGlb;
|
|
43
|
-
private __getGlbVersion;
|
|
44
|
-
private __getGltfVersion;
|
|
45
|
-
private __importToRenderPassesFromArrayBufferPromise;
|
|
46
|
-
private __getFileTypeFromFilePromise;
|
|
47
|
-
private __importVRM;
|
|
48
|
-
_getOptions(options?: GltfLoadOption): GltfLoadOption;
|
|
49
|
-
_readVRMHumanoidInfo(gltfModel: VRM, rootEntity?: Entity): void;
|
|
50
|
-
_readSpringBone(rootEntity: Entity, gltfModel: VRM): void;
|
|
51
|
-
private addPhysicsComponentRecursively;
|
|
52
|
-
_createTextures(gltfModel: glTF2): Texture[];
|
|
53
|
-
_existOutlineMaterial(extensionsVRM: any): boolean;
|
|
54
|
-
_initializeMaterialProperties(gltfModel: glTF2, texturesLength: number): void;
|
|
55
|
-
private __initializeMToonMaterialProperties;
|
|
56
|
-
private __initializeForUndefinedProperty;
|
|
57
|
-
}
|
|
1
|
+
import Entity from '../core/Entity';
|
|
2
|
+
import { GltfLoadOption, glTF2, GltfFileBuffers } from '../../types/glTF';
|
|
3
|
+
import Texture from '../textures/Texture';
|
|
4
|
+
import Expression from '../renderer/Expression';
|
|
5
|
+
import { VRM } from '../../types/VRM';
|
|
6
|
+
/**
|
|
7
|
+
* Importer class which can import GLTF and VRM.
|
|
8
|
+
*/
|
|
9
|
+
export default class GltfImporter {
|
|
10
|
+
private static __instance;
|
|
11
|
+
private constructor();
|
|
12
|
+
static getInstance(): GltfImporter;
|
|
13
|
+
/**
|
|
14
|
+
* For VRM file only
|
|
15
|
+
* Generate JSON.
|
|
16
|
+
*/
|
|
17
|
+
importJsonOfVRM(uri: string, options?: GltfLoadOption): Promise<VRM | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* Import GLTF or VRM file.
|
|
20
|
+
* @param uris uri or array of uri of glTF file
|
|
21
|
+
* @param options options for loading process where the files property is ignored
|
|
22
|
+
* @returns gltf expression where:
|
|
23
|
+
* renderPasses[0]: model entities
|
|
24
|
+
* renderPasses[1]: model outlines
|
|
25
|
+
*/
|
|
26
|
+
import(uris: string | string[], options?: GltfLoadOption): Promise<Expression>;
|
|
27
|
+
/**
|
|
28
|
+
* Import GLTF or VRM file.
|
|
29
|
+
* @param uris uri or array of uri of glTF file
|
|
30
|
+
* @param options options for loading process where if you use files option, key name of files must be uri of the value array buffer
|
|
31
|
+
* @returns gltf expression where:
|
|
32
|
+
* renderPasses[0]: model entities
|
|
33
|
+
* renderPasses[1]: model outlines
|
|
34
|
+
*/
|
|
35
|
+
importFromArrayBuffers(files: GltfFileBuffers, options?: GltfLoadOption): Promise<Expression>;
|
|
36
|
+
private __initOptions;
|
|
37
|
+
private __setRenderPassesToExpression;
|
|
38
|
+
private __importMultipleModelsFromUri;
|
|
39
|
+
private __importMultipleModelsFromArrayBuffers;
|
|
40
|
+
private __isValidExtension;
|
|
41
|
+
private __importToRenderPassesFromUriPromise;
|
|
42
|
+
private __isGlb;
|
|
43
|
+
private __getGlbVersion;
|
|
44
|
+
private __getGltfVersion;
|
|
45
|
+
private __importToRenderPassesFromArrayBufferPromise;
|
|
46
|
+
private __getFileTypeFromFilePromise;
|
|
47
|
+
private __importVRM;
|
|
48
|
+
_getOptions(options?: GltfLoadOption): GltfLoadOption;
|
|
49
|
+
_readVRMHumanoidInfo(gltfModel: VRM, rootEntity?: Entity): void;
|
|
50
|
+
_readSpringBone(rootEntity: Entity, gltfModel: VRM): void;
|
|
51
|
+
private addPhysicsComponentRecursively;
|
|
52
|
+
_createTextures(gltfModel: glTF2): Texture[];
|
|
53
|
+
_existOutlineMaterial(extensionsVRM: any): boolean;
|
|
54
|
+
_initializeMaterialProperties(gltfModel: glTF2, texturesLength: number): void;
|
|
55
|
+
private __initializeMToonMaterialProperties;
|
|
56
|
+
private __initializeForUndefinedProperty;
|
|
57
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import Material from '../materials/core/Material';
|
|
2
|
-
import { glTF2, Gltf2Material, Gltf2Sampler } from '../../types/glTF';
|
|
3
|
-
import Entity from '../core/Entity';
|
|
4
|
-
export default interface ILoaderExtension {
|
|
5
|
-
generateMaterial?(materialJson: Gltf2Material): Material;
|
|
6
|
-
isNeededToUseThisMaterial?(gltfJson: glTF2): boolean;
|
|
7
|
-
setTextures?(gltfJson: glTF2, materialJson: Gltf2Material): void;
|
|
8
|
-
setupMaterial?(gltfJson: glTF2, materialJson: Gltf2Material, material: Material): void;
|
|
9
|
-
setUVTransformToTexture?(material: Material, samplerJson: Gltf2Sampler): void;
|
|
10
|
-
loadExtensionInfoAndSetToRootGroup?(rootGroup: Entity, json: glTF2): void;
|
|
11
|
-
}
|
|
1
|
+
import Material from '../materials/core/Material';
|
|
2
|
+
import { glTF2, Gltf2Material, Gltf2Sampler } from '../../types/glTF';
|
|
3
|
+
import Entity from '../core/Entity';
|
|
4
|
+
export default interface ILoaderExtension {
|
|
5
|
+
generateMaterial?(materialJson: Gltf2Material): Material;
|
|
6
|
+
isNeededToUseThisMaterial?(gltfJson: glTF2): boolean;
|
|
7
|
+
setTextures?(gltfJson: glTF2, materialJson: Gltf2Material): void;
|
|
8
|
+
setupMaterial?(gltfJson: glTF2, materialJson: Gltf2Material, material: Material): void;
|
|
9
|
+
setUVTransformToTexture?(material: Material, samplerJson: Gltf2Sampler): void;
|
|
10
|
+
loadExtensionInfoAndSetToRootGroup?(rootGroup: Entity, json: glTF2): void;
|
|
11
|
+
}
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import Entity from '../core/Entity';
|
|
2
|
-
import Buffer from '../memory/Buffer';
|
|
3
|
-
import Texture from '../textures/Texture';
|
|
4
|
-
import { ShaderSemanticsEnum } from '../definitions/ShaderSemantics';
|
|
5
|
-
import Material from '../materials/core/Material';
|
|
6
|
-
import Accessor from '../memory/Accessor';
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
private
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
* The
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private
|
|
24
|
-
private
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
private
|
|
41
|
-
private
|
|
42
|
-
private
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
private
|
|
47
|
-
private
|
|
48
|
-
private
|
|
49
|
-
private
|
|
50
|
-
private
|
|
51
|
-
private
|
|
52
|
-
private
|
|
53
|
-
private
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
private static
|
|
59
|
-
private
|
|
60
|
-
private
|
|
61
|
-
private
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
private __addOffsetToIndices;
|
|
69
|
-
private __getRnAccessor;
|
|
70
|
-
private __copyRnAccessorAndBufferView;
|
|
71
|
-
private __createRnAccessor;
|
|
72
|
-
private __getRnBufferView;
|
|
73
|
-
private __getGeometryFromDracoBuffer;
|
|
74
|
-
__getIndicesFromDraco(draco: any, decoder: any, dracoGeometry: any, triangleStripDrawMode: boolean): Uint32Array | undefined;
|
|
75
|
-
private __decodeDraco;
|
|
76
|
-
static _setupTextureTransform(textureJson: any, rnMaterial: Material, textureTransformShaderSemantic: ShaderSemanticsEnum, textureRotationShaderSemantic: ShaderSemanticsEnum): void;
|
|
77
|
-
private __createBufferForDecompressedData;
|
|
78
|
-
}
|
|
1
|
+
import Entity from '../core/Entity';
|
|
2
|
+
import Buffer from '../memory/Buffer';
|
|
3
|
+
import Texture from '../textures/Texture';
|
|
4
|
+
import { ShaderSemanticsEnum } from '../definitions/ShaderSemantics';
|
|
5
|
+
import Material from '../materials/core/Material';
|
|
6
|
+
import Accessor from '../memory/Accessor';
|
|
7
|
+
import { GltfLoadOption, glTF2, Gltf2Accessor } from '../../types/glTF';
|
|
8
|
+
/**
|
|
9
|
+
* A converter class from glTF2 model to Rhodonite Native data
|
|
10
|
+
*/
|
|
11
|
+
export default class ModelConverter {
|
|
12
|
+
private static __instance;
|
|
13
|
+
private constructor();
|
|
14
|
+
/**
|
|
15
|
+
* The static method to get singleton instance of this class.
|
|
16
|
+
* @return The singleton instance of ModelConverter class
|
|
17
|
+
*/
|
|
18
|
+
static getInstance(): ModelConverter;
|
|
19
|
+
_getDefaultShader(options: GltfLoadOption): null;
|
|
20
|
+
private __generateEntity;
|
|
21
|
+
private __generateGroupEntity;
|
|
22
|
+
private __generateMeshEntity;
|
|
23
|
+
private __generateCameraEntity;
|
|
24
|
+
private __generateLightEntity;
|
|
25
|
+
convertToRhodoniteObject(gltfModel: glTF2): Entity;
|
|
26
|
+
_setupCamera(gltfModel: glTF2): void;
|
|
27
|
+
private createRnBuffer;
|
|
28
|
+
_setupTransform(gltfModel: glTF2, groups: Entity[]): void;
|
|
29
|
+
_setupHierarchy(gltfModel: glTF2, rnEntities: Entity[]): void;
|
|
30
|
+
/**
|
|
31
|
+
* @private
|
|
32
|
+
*/
|
|
33
|
+
_setupAnimation(gltfModel: glTF2, rnEntities: Entity[]): void;
|
|
34
|
+
_setupSkeleton(gltfModel: glTF2, rnEntities: Entity[]): void;
|
|
35
|
+
__setupObjects(gltfModel: glTF2, rnBuffers: Buffer[]): {
|
|
36
|
+
rnEntities: Entity[];
|
|
37
|
+
rnEntitiesByNames: Map<String, Entity>;
|
|
38
|
+
};
|
|
39
|
+
private __isMorphing;
|
|
40
|
+
private __setupLight;
|
|
41
|
+
private __setupCamera;
|
|
42
|
+
private __setupMesh;
|
|
43
|
+
setSparseAccessor(accessor: any, rnAccessor: Accessor): void;
|
|
44
|
+
static setDefaultTextures(material: Material, gltfModel: glTF2): void;
|
|
45
|
+
private __setVRMMaterial;
|
|
46
|
+
private __generateAppropriateMaterial;
|
|
47
|
+
private __isLighting;
|
|
48
|
+
private __isSkinning;
|
|
49
|
+
private __useTangentAttribute;
|
|
50
|
+
private __useNormalTexture;
|
|
51
|
+
private __makeOutputSrgb;
|
|
52
|
+
private __getMaterialHash;
|
|
53
|
+
private __setupMaterial;
|
|
54
|
+
static _createTexture(textureType: any, gltfModel: glTF2, { autoDetectTransparency }?: {
|
|
55
|
+
autoDetectTransparency?: boolean | undefined;
|
|
56
|
+
}): Texture;
|
|
57
|
+
private static __needResizeToPowerOfTwoOnWebGl1;
|
|
58
|
+
private static __sizeIsPowerOfTwo;
|
|
59
|
+
private __needParameterInitialization;
|
|
60
|
+
private _checkRnGltfLoaderOptionsExist;
|
|
61
|
+
private __rewrapWithTypedArray;
|
|
62
|
+
_checkBytesPerComponent(accessor: any): number;
|
|
63
|
+
_checkComponentNumber(accessor: any): number;
|
|
64
|
+
_checkDataViewMethod(accessor: any): string;
|
|
65
|
+
static _isSystemLittleEndian(): boolean;
|
|
66
|
+
_accessBinaryWithAccessor(accessor: Gltf2Accessor): Float32Array;
|
|
67
|
+
private __arrayToFloat32Array;
|
|
68
|
+
private __addOffsetToIndices;
|
|
69
|
+
private __getRnAccessor;
|
|
70
|
+
private __copyRnAccessorAndBufferView;
|
|
71
|
+
private __createRnAccessor;
|
|
72
|
+
private __getRnBufferView;
|
|
73
|
+
private __getGeometryFromDracoBuffer;
|
|
74
|
+
__getIndicesFromDraco(draco: any, decoder: any, dracoGeometry: any, triangleStripDrawMode: boolean): Uint32Array | undefined;
|
|
75
|
+
private __decodeDraco;
|
|
76
|
+
static _setupTextureTransform(textureJson: any, rnMaterial: Material, textureTransformShaderSemantic: ShaderSemanticsEnum, textureRotationShaderSemantic: ShaderSemanticsEnum): void;
|
|
77
|
+
private __createBufferForDecompressedData;
|
|
78
|
+
}
|