@automovie/viewer 0.0.0-stage → 0.0.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/LICENSE +21 -0
- package/README.md +54 -2
- package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.d.ts +4 -0
- package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js +5 -0
- package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js.map +1 -0
- package/lib/AutoMovieDisplayCompositor.d.ts +105 -0
- package/lib/AutoMovieDisplayCompositor.js +342 -0
- package/lib/AutoMovieDisplayCompositor.js.map +1 -0
- package/lib/AutoMovieDissolveCompositorState.d.ts +4 -0
- package/lib/AutoMovieDissolveCompositorState.js +3 -0
- package/lib/AutoMovieDissolveCompositorState.js.map +1 -0
- package/lib/AutoMovieEnvironmentTextureOwnership.d.ts +52 -0
- package/lib/AutoMovieEnvironmentTextureOwnership.js +187 -0
- package/lib/AutoMovieEnvironmentTextureOwnership.js.map +1 -0
- package/lib/AutoMovieFadeCompositorState.d.ts +4 -0
- package/lib/AutoMovieFadeCompositorState.js +3 -0
- package/lib/AutoMovieFadeCompositorState.js.map +1 -0
- package/lib/AutoMovieFilmBeautyComposition.d.ts +25 -0
- package/lib/AutoMovieFilmBeautyComposition.js +2 -0
- package/lib/AutoMovieFilmBeautyComposition.js.map +1 -0
- package/lib/AutoMovieGeometryPhysicalVertices.d.ts +48 -0
- package/lib/AutoMovieGeometryPhysicalVertices.js +134 -0
- package/lib/AutoMovieGeometryPhysicalVertices.js.map +1 -0
- package/lib/AutoMoviePlayer.d.ts +99 -0
- package/lib/AutoMoviePlayer.js +192 -0
- package/lib/AutoMoviePlayer.js.map +1 -0
- package/lib/AutoMovieRenderModeMesh.d.ts +13 -0
- package/lib/AutoMovieRenderModeMesh.js +2 -0
- package/lib/AutoMovieRenderModeMesh.js.map +1 -0
- package/lib/AutoMovieResourceRetirementScope.d.ts +108 -0
- package/lib/AutoMovieResourceRetirementScope.js +169 -0
- package/lib/AutoMovieResourceRetirementScope.js.map +1 -0
- package/lib/AutoMovieSkinBlend.d.ts +83 -0
- package/lib/AutoMovieSkinBlend.js +195 -0
- package/lib/AutoMovieSkinBlend.js.map +1 -0
- package/lib/AutoMovieSkinPose.d.ts +119 -0
- package/lib/AutoMovieSkinPose.js +365 -0
- package/lib/AutoMovieSkinPose.js.map +1 -0
- package/lib/AutoMovieSkinnedMesh.d.ts +182 -0
- package/lib/AutoMovieSkinnedMesh.js +246 -0
- package/lib/AutoMovieSkinnedMesh.js.map +1 -0
- package/lib/AutoMovieTextureCache.d.ts +178 -0
- package/lib/AutoMovieTextureCache.js +321 -0
- package/lib/AutoMovieTextureCache.js.map +1 -0
- package/lib/AutoMovieTextureCacheAllocationAuthority.d.ts +217 -0
- package/lib/AutoMovieTextureCacheAllocationAuthority.js +417 -0
- package/lib/AutoMovieTextureCacheAllocationAuthority.js.map +1 -0
- package/lib/DEPTH_NORMALIZATION_RANGE.d.ts +4 -0
- package/lib/DEPTH_NORMALIZATION_RANGE.js +5 -0
- package/lib/DEPTH_NORMALIZATION_RANGE.js.map +1 -0
- package/lib/EDGE_SHELL_NAME.d.ts +2 -0
- package/lib/EDGE_SHELL_NAME.js +3 -0
- package/lib/EDGE_SHELL_NAME.js.map +1 -0
- package/lib/EDGE_WIDTH.d.ts +4 -0
- package/lib/EDGE_WIDTH.js +5 -0
- package/lib/EDGE_WIDTH.js.map +1 -0
- package/lib/IApplyAutoMovieSectionPlanesProps.d.ts +28 -0
- package/lib/IApplyAutoMovieSectionPlanesProps.js +2 -0
- package/lib/IApplyAutoMovieSectionPlanesProps.js.map +1 -0
- package/lib/IAutoMovieAnalysisOverlayObject.d.ts +52 -0
- package/lib/IAutoMovieAnalysisOverlayObject.js +2 -0
- package/lib/IAutoMovieAnalysisOverlayObject.js.map +1 -0
- package/lib/IAutoMovieBuiltPropArticulation.d.ts +34 -0
- package/lib/IAutoMovieBuiltPropArticulation.js +2 -0
- package/lib/IAutoMovieBuiltPropArticulation.js.map +1 -0
- package/lib/IAutoMovieEffectViewerObject.d.ts +28 -0
- package/lib/IAutoMovieEffectViewerObject.js +2 -0
- package/lib/IAutoMovieEffectViewerObject.js.map +1 -0
- package/lib/IAutoMovieEffectViewerStats.d.ts +18 -0
- package/lib/IAutoMovieEffectViewerStats.js +2 -0
- package/lib/IAutoMovieEffectViewerStats.js.map +1 -0
- package/lib/IAutoMovieExpressionTarget.d.ts +22 -0
- package/lib/IAutoMovieExpressionTarget.js +2 -0
- package/lib/IAutoMovieExpressionTarget.js.map +1 -0
- package/lib/IAutoMovieFilmBeautyLayer.d.ts +12 -0
- package/lib/IAutoMovieFilmBeautyLayer.js +2 -0
- package/lib/IAutoMovieFilmBeautyLayer.js.map +1 -0
- package/lib/IAutoMovieFluidSprayObject.d.ts +50 -0
- package/lib/IAutoMovieFluidSprayObject.js +2 -0
- package/lib/IAutoMovieFluidSprayObject.js.map +1 -0
- package/lib/IAutoMovieFluidSurfaceObject.d.ts +38 -0
- package/lib/IAutoMovieFluidSurfaceObject.js +2 -0
- package/lib/IAutoMovieFluidSurfaceObject.js.map +1 -0
- package/lib/IAutoMovieFormationCadence.d.ts +17 -0
- package/lib/IAutoMovieFormationCadence.js +2 -0
- package/lib/IAutoMovieFormationCadence.js.map +1 -0
- package/lib/IAutoMovieFormationCycle.d.ts +38 -0
- package/lib/IAutoMovieFormationCycle.js +2 -0
- package/lib/IAutoMovieFormationCycle.js.map +1 -0
- package/lib/IAutoMovieFormationCycleTake.d.ts +47 -0
- package/lib/IAutoMovieFormationCycleTake.js +2 -0
- package/lib/IAutoMovieFormationCycleTake.js.map +1 -0
- package/lib/IAutoMovieFormationCycleUniforms.d.ts +21 -0
- package/lib/IAutoMovieFormationCycleUniforms.js +2 -0
- package/lib/IAutoMovieFormationCycleUniforms.js.map +1 -0
- package/lib/IAutoMovieFormationViewerObject.d.ts +62 -0
- package/lib/IAutoMovieFormationViewerObject.js +2 -0
- package/lib/IAutoMovieFormationViewerObject.js.map +1 -0
- package/lib/IAutoMovieFormationViewerStats.d.ts +34 -0
- package/lib/IAutoMovieFormationViewerStats.js +2 -0
- package/lib/IAutoMovieFormationViewerStats.js.map +1 -0
- package/lib/IAutoMovieImportedModelOptions.d.ts +44 -0
- package/lib/IAutoMovieImportedModelOptions.js +2 -0
- package/lib/IAutoMovieImportedModelOptions.js.map +1 -0
- package/lib/IAutoMovieInstanceSetViewerObject.d.ts +42 -0
- package/lib/IAutoMovieInstanceSetViewerObject.js +2 -0
- package/lib/IAutoMovieInstanceSetViewerObject.js.map +1 -0
- package/lib/IAutoMovieInstanceSetViewerStats.d.ts +17 -0
- package/lib/IAutoMovieInstanceSetViewerStats.js +2 -0
- package/lib/IAutoMovieInstanceSetViewerStats.js.map +1 -0
- package/lib/IAutoMovieInstancedGeometry.d.ts +24 -0
- package/lib/IAutoMovieInstancedGeometry.js +2 -0
- package/lib/IAutoMovieInstancedGeometry.js.map +1 -0
- package/lib/IAutoMovieInstancedModelRepresentation.d.ts +16 -0
- package/lib/IAutoMovieInstancedModelRepresentation.js +2 -0
- package/lib/IAutoMovieInstancedModelRepresentation.js.map +1 -0
- package/lib/IAutoMovieMaterialLibrary.d.ts +42 -0
- package/lib/IAutoMovieMaterialLibrary.js +2 -0
- package/lib/IAutoMovieMaterialLibrary.js.map +1 -0
- package/lib/IAutoMovieModelObject.d.ts +51 -0
- package/lib/IAutoMovieModelObject.js +2 -0
- package/lib/IAutoMovieModelObject.js.map +1 -0
- package/lib/IAutoMoviePlantingObject.d.ts +33 -0
- package/lib/IAutoMoviePlantingObject.js +2 -0
- package/lib/IAutoMoviePlantingObject.js.map +1 -0
- package/lib/IAutoMovieRenderModeHandle.d.ts +44 -0
- package/lib/IAutoMovieRenderModeHandle.js +2 -0
- package/lib/IAutoMovieRenderModeHandle.js.map +1 -0
- package/lib/IAutoMovieRendererEnvironmentHandle.d.ts +22 -0
- package/lib/IAutoMovieRendererEnvironmentHandle.js +2 -0
- package/lib/IAutoMovieRendererEnvironmentHandle.js.map +1 -0
- package/lib/IAutoMovieRigLocalTransform.d.ts +15 -0
- package/lib/IAutoMovieRigLocalTransform.js +2 -0
- package/lib/IAutoMovieRigLocalTransform.js.map +1 -0
- package/lib/IAutoMovieSceneObject.d.ts +26 -0
- package/lib/IAutoMovieSceneObject.js +2 -0
- package/lib/IAutoMovieSceneObject.js.map +1 -0
- package/lib/IAutoMovieSectionRenderer.d.ts +17 -0
- package/lib/IAutoMovieSectionRenderer.js +2 -0
- package/lib/IAutoMovieSectionRenderer.js.map +1 -0
- package/lib/IAutoMovieShadowTextureHost.d.ts +17 -0
- package/lib/IAutoMovieShadowTextureHost.js +2 -0
- package/lib/IAutoMovieShadowTextureHost.js.map +1 -0
- package/lib/IAutoMovieSoftBodyObject.d.ts +43 -0
- package/lib/IAutoMovieSoftBodyObject.js +2 -0
- package/lib/IAutoMovieSoftBodyObject.js.map +1 -0
- package/lib/IAutoMovieSpringAxisSettlement.d.ts +19 -0
- package/lib/IAutoMovieSpringAxisSettlement.js +2 -0
- package/lib/IAutoMovieSpringAxisSettlement.js.map +1 -0
- package/lib/IAutoMovieSpringConfig.d.ts +22 -0
- package/lib/IAutoMovieSpringConfig.js +2 -0
- package/lib/IAutoMovieSpringConfig.js.map +1 -0
- package/lib/IAutoMovieTextureLoader.d.ts +13 -0
- package/lib/IAutoMovieTextureLoader.js +2 -0
- package/lib/IAutoMovieTextureLoader.js.map +1 -0
- package/lib/IAutoMovieTextureResolver.d.ts +16 -0
- package/lib/IAutoMovieTextureResolver.js +2 -0
- package/lib/IAutoMovieTextureResolver.js.map +1 -0
- package/lib/IAutoMovieViewerCameraDepthPrecisionReport.d.ts +30 -0
- package/lib/IAutoMovieViewerCameraDepthPrecisionReport.js +2 -0
- package/lib/IAutoMovieViewerCameraDepthPrecisionReport.js.map +1 -0
- package/lib/IAutoMovieViewerCompletedFrame.d.ts +51 -0
- package/lib/IAutoMovieViewerCompletedFrame.js +2 -0
- package/lib/IAutoMovieViewerCompletedFrame.js.map +1 -0
- package/lib/IAutoMovieViewerDisplayMetadata.d.ts +22 -0
- package/lib/IAutoMovieViewerDisplayMetadata.js +2 -0
- package/lib/IAutoMovieViewerDisplayMetadata.js.map +1 -0
- package/lib/IAutoMovieViewerFrame.d.ts +19 -0
- package/lib/IAutoMovieViewerFrame.js +2 -0
- package/lib/IAutoMovieViewerFrame.js.map +1 -0
- package/lib/IAutoMovieViewerHandle.d.ts +42 -0
- package/lib/IAutoMovieViewerHandle.js +2 -0
- package/lib/IAutoMovieViewerHandle.js.map +1 -0
- package/lib/IAutoMovieViewerSnapshot.d.ts +18 -0
- package/lib/IAutoMovieViewerSnapshot.js +2 -0
- package/lib/IAutoMovieViewerSnapshot.js.map +1 -0
- package/lib/IAutoMovieViewerSnapshotOptions.d.ts +14 -0
- package/lib/IAutoMovieViewerSnapshotOptions.js +2 -0
- package/lib/IAutoMovieViewerSnapshotOptions.js.map +1 -0
- package/lib/IAutoMovieViewerSnapshotRenderer.d.ts +32 -0
- package/lib/IAutoMovieViewerSnapshotRenderer.js +2 -0
- package/lib/IAutoMovieViewerSnapshotRenderer.js.map +1 -0
- package/lib/IBakeFormationCycleProps.d.ts +31 -0
- package/lib/IBakeFormationCycleProps.js +2 -0
- package/lib/IBakeFormationCycleProps.js.map +1 -0
- package/lib/IBuildAutoMovieMaterialLibraryProps.d.ts +30 -0
- package/lib/IBuildAutoMovieMaterialLibraryProps.js +2 -0
- package/lib/IBuildAutoMovieMaterialLibraryProps.js.map +1 -0
- package/lib/IBuildInstancedFormationProps.d.ts +34 -0
- package/lib/IBuildInstancedFormationProps.js +2 -0
- package/lib/IBuildInstancedFormationProps.js.map +1 -0
- package/lib/IBuildInstancedInstanceSetProps.d.ts +29 -0
- package/lib/IBuildInstancedInstanceSetProps.js +2 -0
- package/lib/IBuildInstancedInstanceSetProps.js.map +1 -0
- package/lib/IBuildPlantingObjectProps.d.ts +22 -0
- package/lib/IBuildPlantingObjectProps.js +2 -0
- package/lib/IBuildPlantingObjectProps.js.map +1 -0
- package/lib/IBuildPropArticulationProps.d.ts +30 -0
- package/lib/IBuildPropArticulationProps.js +2 -0
- package/lib/IBuildPropArticulationProps.js.map +1 -0
- package/lib/IBuildSoftBodyObjectProps.d.ts +18 -0
- package/lib/IBuildSoftBodyObjectProps.js +2 -0
- package/lib/IBuildSoftBodyObjectProps.js.map +1 -0
- package/lib/IChunkObject.d.ts +32 -0
- package/lib/IChunkObject.js +2 -0
- package/lib/IChunkObject.js.map +1 -0
- package/lib/IFormationTierRepresentation.d.ts +17 -0
- package/lib/IFormationTierRepresentation.js +2 -0
- package/lib/IFormationTierRepresentation.js.map +1 -0
- package/lib/IMaterialShaderPatch.d.ts +28 -0
- package/lib/IMaterialShaderPatch.js +2 -0
- package/lib/IMaterialShaderPatch.js.map +1 -0
- package/lib/IMountViewerOptions.d.ts +61 -0
- package/lib/IMountViewerOptions.js +2 -0
- package/lib/IMountViewerOptions.js.map +1 -0
- package/lib/ISlotException.d.ts +26 -0
- package/lib/ISlotException.js +2 -0
- package/lib/ISlotException.js.map +1 -0
- package/lib/IViewerCameraStateSnapshot.d.ts +49 -0
- package/lib/IViewerCameraStateSnapshot.js +2 -0
- package/lib/IViewerCameraStateSnapshot.js.map +1 -0
- package/lib/POSE_OVERLAY_NAME.d.ts +2 -0
- package/lib/POSE_OVERLAY_NAME.js +3 -0
- package/lib/POSE_OVERLAY_NAME.js.map +1 -0
- package/lib/SPACE_GROUP_NAME.d.ts +12 -0
- package/lib/SPACE_GROUP_NAME.js +13 -0
- package/lib/SPACE_GROUP_NAME.js.map +1 -0
- package/lib/addMaterialShaderPatch.d.ts +21 -0
- package/lib/addMaterialShaderPatch.js +31 -0
- package/lib/addMaterialShaderPatch.js.map +1 -0
- package/lib/analysisOverlay.d.ts +3 -0
- package/lib/analysisOverlay.js +3 -0
- package/lib/analysisOverlay.js.map +1 -0
- package/lib/applyAutoMovieDeliveryCrop.d.ts +22 -0
- package/lib/applyAutoMovieDeliveryCrop.js +34 -0
- package/lib/applyAutoMovieDeliveryCrop.js.map +1 -0
- package/lib/applyAutoMovieRigLocals.d.ts +27 -0
- package/lib/applyAutoMovieRigLocals.js +89 -0
- package/lib/applyAutoMovieRigLocals.js.map +1 -0
- package/lib/applyAutoMovieSectionPlanes.d.ts +24 -0
- package/lib/applyAutoMovieSectionPlanes.js +42 -0
- package/lib/applyAutoMovieSectionPlanes.js.map +1 -0
- package/lib/applyAutoMovieShadowParticipation.d.ts +42 -0
- package/lib/applyAutoMovieShadowParticipation.js +62 -0
- package/lib/applyAutoMovieShadowParticipation.js.map +1 -0
- package/lib/applyCaptureCanvasSize.d.ts +12 -0
- package/lib/applyCaptureCanvasSize.js +21 -0
- package/lib/applyCaptureCanvasSize.js.map +1 -0
- package/lib/applyDepthMode.d.ts +20 -0
- package/lib/applyDepthMode.js +81 -0
- package/lib/applyDepthMode.js.map +1 -0
- package/lib/applyEdgeMode.d.ts +20 -0
- package/lib/applyEdgeMode.js +114 -0
- package/lib/applyEdgeMode.js.map +1 -0
- package/lib/applyExpression.d.ts +20 -0
- package/lib/applyExpression.js +138 -0
- package/lib/applyExpression.js.map +1 -0
- package/lib/applyFormationCycleCadence.d.ts +20 -0
- package/lib/applyFormationCycleCadence.js +26 -0
- package/lib/applyFormationCycleCadence.js.map +1 -0
- package/lib/applyFormationCycleMaterial.d.ts +31 -0
- package/lib/applyFormationCycleMaterial.js +100 -0
- package/lib/applyFormationCycleMaterial.js.map +1 -0
- package/lib/applyLightMotion.d.ts +38 -0
- package/lib/applyLightMotion.js +46 -0
- package/lib/applyLightMotion.js.map +1 -0
- package/lib/applyLightState.d.ts +38 -0
- package/lib/applyLightState.js +57 -0
- package/lib/applyLightState.js.map +1 -0
- package/lib/applyMaskMode.d.ts +20 -0
- package/lib/applyMaskMode.js +90 -0
- package/lib/applyMaskMode.js.map +1 -0
- package/lib/applyMaterialShaderPatches.d.ts +22 -0
- package/lib/applyMaterialShaderPatches.js +24 -0
- package/lib/applyMaterialShaderPatches.js.map +1 -0
- package/lib/applyObjectMotion.d.ts +30 -0
- package/lib/applyObjectMotion.js +33 -0
- package/lib/applyObjectMotion.js.map +1 -0
- package/lib/applyObjectMotions.d.ts +14 -0
- package/lib/applyObjectMotions.js +17 -0
- package/lib/applyObjectMotions.js.map +1 -0
- package/lib/applyPose.d.ts +40 -0
- package/lib/applyPose.js +85 -0
- package/lib/applyPose.js.map +1 -0
- package/lib/applyPoseMode.d.ts +20 -0
- package/lib/applyPoseMode.js +80 -0
- package/lib/applyPoseMode.js.map +1 -0
- package/lib/applyRenderMode.d.ts +48 -0
- package/lib/applyRenderMode.js +191 -0
- package/lib/applyRenderMode.js.map +1 -0
- package/lib/applyRendererEnvironment.d.ts +25 -0
- package/lib/applyRendererEnvironment.js +107 -0
- package/lib/applyRendererEnvironment.js.map +1 -0
- package/lib/applySampledObjectMotion.d.ts +16 -0
- package/lib/applySampledObjectMotion.js +71 -0
- package/lib/applySampledObjectMotion.js.map +1 -0
- package/lib/applySceneEnvironment.d.ts +16 -0
- package/lib/applySceneEnvironment.js +47 -0
- package/lib/applySceneEnvironment.js.map +1 -0
- package/lib/applySceneFog.d.ts +34 -0
- package/lib/applySceneFog.js +42 -0
- package/lib/applySceneFog.js.map +1 -0
- package/lib/applySemanticMaskMode.d.ts +22 -0
- package/lib/applySemanticMaskMode.js +37 -0
- package/lib/applySemanticMaskMode.js.map +1 -0
- package/lib/applyTransform.d.ts +16 -0
- package/lib/applyTransform.js +19 -0
- package/lib/applyTransform.js.map +1 -0
- package/lib/assertAutoMovieSceneShadowProfile.d.ts +19 -0
- package/lib/assertAutoMovieSceneShadowProfile.js +30 -0
- package/lib/assertAutoMovieSceneShadowProfile.js.map +1 -0
- package/lib/assertAutoMovieViewerCameraDepthPrecision.d.ts +18 -0
- package/lib/assertAutoMovieViewerCameraDepthPrecision.js +27 -0
- package/lib/assertAutoMovieViewerCameraDepthPrecision.js.map +1 -0
- package/lib/audio/IAutoMovieAudioCue.d.ts +26 -0
- package/lib/audio/IAutoMovieAudioCue.js +2 -0
- package/lib/audio/IAutoMovieAudioCue.js.map +1 -0
- package/lib/audio/index.d.ts +3 -0
- package/lib/audio/index.js +3 -0
- package/lib/audio/index.js.map +1 -0
- package/lib/audio/planAutoMovieAudioPlayback.d.ts +51 -0
- package/lib/audio/planAutoMovieAudioPlayback.js +49 -0
- package/lib/audio/planAutoMovieAudioPlayback.js.map +1 -0
- package/lib/audio/playAutoMovieAudioCues.d.ts +23 -0
- package/lib/audio/playAutoMovieAudioCues.js +58 -0
- package/lib/audio/playAutoMovieAudioCues.js.map +1 -0
- package/lib/autoMovieAnalysisRampColor.d.ts +22 -0
- package/lib/autoMovieAnalysisRampColor.js +27 -0
- package/lib/autoMovieAnalysisRampColor.js.map +1 -0
- package/lib/bakeFormationCycle.d.ts +31 -0
- package/lib/bakeFormationCycle.js +101 -0
- package/lib/bakeFormationCycle.js.map +1 -0
- package/lib/bindFormationTierCycle.d.ts +18 -0
- package/lib/bindFormationTierCycle.js +32 -0
- package/lib/bindFormationTierCycle.js.map +1 -0
- package/lib/buildAnalysisOverlayObject.d.ts +38 -0
- package/lib/buildAnalysisOverlayObject.js +97 -0
- package/lib/buildAnalysisOverlayObject.js.map +1 -0
- package/lib/buildAutoMovieConstruction.d.ts +27 -0
- package/lib/buildAutoMovieConstruction.js +74 -0
- package/lib/buildAutoMovieConstruction.js.map +1 -0
- package/lib/buildAutoMovieMaterialLibrary.d.ts +30 -0
- package/lib/buildAutoMovieMaterialLibrary.js +92 -0
- package/lib/buildAutoMovieMaterialLibrary.js.map +1 -0
- package/lib/buildFluidSprayObject.d.ts +22 -0
- package/lib/buildFluidSprayObject.js +67 -0
- package/lib/buildFluidSprayObject.js.map +1 -0
- package/lib/buildFluidSurfaceObject.d.ts +23 -0
- package/lib/buildFluidSurfaceObject.js +74 -0
- package/lib/buildFluidSurfaceObject.js.map +1 -0
- package/lib/buildGeometry.d.ts +20 -0
- package/lib/buildGeometry.js +89 -0
- package/lib/buildGeometry.js.map +1 -0
- package/lib/buildInstancedEffect.d.ts +18 -0
- package/lib/buildInstancedEffect.js +103 -0
- package/lib/buildInstancedEffect.js.map +1 -0
- package/lib/buildInstancedFormation.d.ts +23 -0
- package/lib/buildInstancedFormation.js +340 -0
- package/lib/buildInstancedFormation.js.map +1 -0
- package/lib/buildInstancedInstanceSet.d.ts +29 -0
- package/lib/buildInstancedInstanceSet.js +321 -0
- package/lib/buildInstancedInstanceSet.js.map +1 -0
- package/lib/buildLight.d.ts +31 -0
- package/lib/buildLight.js +105 -0
- package/lib/buildLight.js.map +1 -0
- package/lib/buildMaterial.d.ts +22 -0
- package/lib/buildMaterial.js +98 -0
- package/lib/buildMaterial.js.map +1 -0
- package/lib/buildModel.d.ts +63 -0
- package/lib/buildModel.js +243 -0
- package/lib/buildModel.js.map +1 -0
- package/lib/buildPlantingObject.d.ts +22 -0
- package/lib/buildPlantingObject.js +155 -0
- package/lib/buildPlantingObject.js.map +1 -0
- package/lib/buildPropArticulation.d.ts +55 -0
- package/lib/buildPropArticulation.js +130 -0
- package/lib/buildPropArticulation.js.map +1 -0
- package/lib/buildScene.d.ts +44 -0
- package/lib/buildScene.js +102 -0
- package/lib/buildScene.js.map +1 -0
- package/lib/buildSoftBodyObject.d.ts +14 -0
- package/lib/buildSoftBodyObject.js +148 -0
- package/lib/buildSoftBodyObject.js.map +1 -0
- package/lib/buildSpace.d.ts +2 -0
- package/lib/buildSpace.js +3 -0
- package/lib/buildSpace.js.map +1 -0
- package/lib/buildSpaceObject.d.ts +43 -0
- package/lib/buildSpaceObject.js +71 -0
- package/lib/buildSpaceObject.js.map +1 -0
- package/lib/cameraDepthPrecision.d.ts +3 -0
- package/lib/cameraDepthPrecision.js +3 -0
- package/lib/cameraDepthPrecision.js.map +1 -0
- package/lib/captureAutoMovieFramebufferRestore.d.ts +18 -0
- package/lib/captureAutoMovieFramebufferRestore.js +70 -0
- package/lib/captureAutoMovieFramebufferRestore.js.map +1 -0
- package/lib/captureAutoMovieMetricFrame.d.ts +27 -0
- package/lib/captureAutoMovieMetricFrame.js +93 -0
- package/lib/captureAutoMovieMetricFrame.js.map +1 -0
- package/lib/captureSize.d.ts +1 -0
- package/lib/captureSize.js +2 -0
- package/lib/captureSize.js.map +1 -0
- package/lib/captureViewerSnapshot.d.ts +16 -0
- package/lib/captureViewerSnapshot.js +22 -0
- package/lib/captureViewerSnapshot.js.map +1 -0
- package/lib/collectAutoMovieOwnedResources.d.ts +29 -0
- package/lib/collectAutoMovieOwnedResources.js +56 -0
- package/lib/collectAutoMovieOwnedResources.js.map +1 -0
- package/lib/collectAutoMovieRenderModeMeshes.d.ts +14 -0
- package/lib/collectAutoMovieRenderModeMeshes.js +21 -0
- package/lib/collectAutoMovieRenderModeMeshes.js.map +1 -0
- package/lib/constructAutoMovieOwnedResources.d.ts +24 -0
- package/lib/constructAutoMovieOwnedResources.js +35 -0
- package/lib/constructAutoMovieOwnedResources.js.map +1 -0
- package/lib/createAutoMovieClosedSphereGeometry.d.ts +25 -0
- package/lib/createAutoMovieClosedSphereGeometry.js +80 -0
- package/lib/createAutoMovieClosedSphereGeometry.js.map +1 -0
- package/lib/createAutoMovieMetricOrthographicCamera.d.ts +28 -0
- package/lib/createAutoMovieMetricOrthographicCamera.js +61 -0
- package/lib/createAutoMovieMetricOrthographicCamera.js.map +1 -0
- package/lib/createAutoMoviePerformanceOverlay.d.ts +36 -0
- package/lib/createAutoMoviePerformanceOverlay.js +132 -0
- package/lib/createAutoMoviePerformanceOverlay.js.map +1 -0
- package/lib/createAutoMoviePhysicalPoseAdapter.d.ts +14 -0
- package/lib/createAutoMoviePhysicalPoseAdapter.js +89 -0
- package/lib/createAutoMoviePhysicalPoseAdapter.js.map +1 -0
- package/lib/createAutoMovieResourceRetirement.d.ts +25 -0
- package/lib/createAutoMovieResourceRetirement.js +16 -0
- package/lib/createAutoMovieResourceRetirement.js.map +1 -0
- package/lib/createAutoMovieSurfaceAppearance.d.ts +30 -0
- package/lib/createAutoMovieSurfaceAppearance.js +180 -0
- package/lib/createAutoMovieSurfaceAppearance.js.map +1 -0
- package/lib/createAutoMovieSurfaceVertexAdapter.d.ts +17 -0
- package/lib/createAutoMovieSurfaceVertexAdapter.js +49 -0
- package/lib/createAutoMovieSurfaceVertexAdapter.js.map +1 -0
- package/lib/createFormationCycleShadowMaterials.d.ts +29 -0
- package/lib/createFormationCycleShadowMaterials.js +56 -0
- package/lib/createFormationCycleShadowMaterials.js.map +1 -0
- package/lib/createFormationRepresentations.d.ts +17 -0
- package/lib/createFormationRepresentations.js +53 -0
- package/lib/createFormationRepresentations.js.map +1 -0
- package/lib/createImportedModelObject.d.ts +14 -0
- package/lib/createImportedModelObject.js +50 -0
- package/lib/createImportedModelObject.js.map +1 -0
- package/lib/createViewerCameraState.d.ts +21 -0
- package/lib/createViewerCameraState.js +213 -0
- package/lib/createViewerCameraState.js.map +1 -0
- package/lib/createViewerDisplayClock.d.ts +20 -0
- package/lib/createViewerDisplayClock.js +44 -0
- package/lib/createViewerDisplayClock.js.map +1 -0
- package/lib/createViewerDisplayPublication.d.ts +28 -0
- package/lib/createViewerDisplayPublication.js +56 -0
- package/lib/createViewerDisplayPublication.js.map +1 -0
- package/lib/createViewerDisplaySave.d.ts +33 -0
- package/lib/createViewerDisplaySave.js +150 -0
- package/lib/createViewerDisplaySave.js.map +1 -0
- package/lib/createViewerFrameControl.d.ts +36 -0
- package/lib/createViewerFrameControl.js +109 -0
- package/lib/createViewerFrameControl.js.map +1 -0
- package/lib/createViewerViewportResize.d.ts +16 -0
- package/lib/createViewerViewportResize.js +42 -0
- package/lib/createViewerViewportResize.js.map +1 -0
- package/lib/decodeAutoMovieImage.d.ts +16 -0
- package/lib/decodeAutoMovieImage.js +119 -0
- package/lib/decodeAutoMovieImage.js.map +1 -0
- package/lib/defaultMaterial.d.ts +14 -0
- package/lib/defaultMaterial.js +19 -0
- package/lib/defaultMaterial.js.map +1 -0
- package/lib/deliveryCrop.d.ts +2 -0
- package/lib/deliveryCrop.js +3 -0
- package/lib/deliveryCrop.js.map +1 -0
- package/lib/describeFormationTextureSources.d.ts +20 -0
- package/lib/describeFormationTextureSources.js +31 -0
- package/lib/describeFormationTextureSources.js.map +1 -0
- package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.d.ts +5 -0
- package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.js +6 -0
- package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.js.map +1 -0
- package/lib/detailNormalShading/applyDetailNormal.d.ts +18 -0
- package/lib/detailNormalShading/applyDetailNormal.js +24 -0
- package/lib/detailNormalShading/applyDetailNormal.js.map +1 -0
- package/lib/detailNormalShading/createDetailNormalShaderPatch.d.ts +21 -0
- package/lib/detailNormalShading/createDetailNormalShaderPatch.js +35 -0
- package/lib/detailNormalShading/createDetailNormalShaderPatch.js.map +1 -0
- package/lib/detailNormalShading/detailNormalFragment.d.ts +14 -0
- package/lib/detailNormalShading/detailNormalFragment.js +18 -0
- package/lib/detailNormalShading/detailNormalFragment.js.map +1 -0
- package/lib/detailNormalShading/detailNormalVertex.d.ts +13 -0
- package/lib/detailNormalShading/detailNormalVertex.js +16 -0
- package/lib/detailNormalShading/detailNormalVertex.js.map +1 -0
- package/lib/detailNormalShading/index.d.ts +6 -0
- package/lib/detailNormalShading/index.js +7 -0
- package/lib/detailNormalShading/index.js.map +1 -0
- package/lib/detailNormalShading/spliceTangentNormal.d.ts +15 -0
- package/lib/detailNormalShading/spliceTangentNormal.js +25 -0
- package/lib/detailNormalShading/spliceTangentNormal.js.map +1 -0
- package/lib/disposeCrossDissolve.d.ts +15 -0
- package/lib/disposeCrossDissolve.js +22 -0
- package/lib/disposeCrossDissolve.js.map +1 -0
- package/lib/disposeFadeToBlack.d.ts +15 -0
- package/lib/disposeFadeToBlack.js +22 -0
- package/lib/disposeFadeToBlack.js.map +1 -0
- package/lib/disposeFormationRepresentations.d.ts +15 -0
- package/lib/disposeFormationRepresentations.js +37 -0
- package/lib/disposeFormationRepresentations.js.map +1 -0
- package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.d.ts +16 -0
- package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.js +20 -0
- package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.js.map +1 -0
- package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.d.ts +15 -0
- package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.js +21 -0
- package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.js.map +1 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.d.ts +16 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.js +16 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.js.map +1 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.d.ts +30 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.js +132 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.js.map +1 -0
- package/lib/dualQuaternionSkinning/index.d.ts +4 -0
- package/lib/dualQuaternionSkinning/index.js +5 -0
- package/lib/dualQuaternionSkinning/index.js.map +1 -0
- package/lib/effect.d.ts +4 -0
- package/lib/effect.js +3 -0
- package/lib/effect.js.map +1 -0
- package/lib/evaluateAutoMovieViewerCameraDepthPrecision.d.ts +29 -0
- package/lib/evaluateAutoMovieViewerCameraDepthPrecision.js +71 -0
- package/lib/evaluateAutoMovieViewerCameraDepthPrecision.js.map +1 -0
- package/lib/flattenInstancedModel.d.ts +29 -0
- package/lib/flattenInstancedModel.js +91 -0
- package/lib/flattenInstancedModel.js.map +1 -0
- package/lib/flattenInstancedObject.d.ts +18 -0
- package/lib/flattenInstancedObject.js +25 -0
- package/lib/flattenInstancedObject.js.map +1 -0
- package/lib/flattenRigidParts.d.ts +19 -0
- package/lib/flattenRigidParts.js +91 -0
- package/lib/flattenRigidParts.js.map +1 -0
- package/lib/fluidSurface.d.ts +4 -0
- package/lib/fluidSurface.js +3 -0
- package/lib/fluidSurface.js.map +1 -0
- package/lib/formation/index.d.ts +12 -0
- package/lib/formation/index.js +10 -0
- package/lib/formation/index.js.map +1 -0
- package/lib/formationCycle/index.d.ts +17 -0
- package/lib/formationCycle/index.js +18 -0
- package/lib/formationCycle/index.js.map +1 -0
- package/lib/formationCycleCadence.d.ts +32 -0
- package/lib/formationCycleCadence.js +46 -0
- package/lib/formationCycleCadence.js.map +1 -0
- package/lib/formationCycleGait.d.ts +22 -0
- package/lib/formationCycleGait.js +23 -0
- package/lib/formationCycleGait.js.map +1 -0
- package/lib/formationCycleOf.d.ts +16 -0
- package/lib/formationCycleOf.js +15 -0
- package/lib/formationCycleOf.js.map +1 -0
- package/lib/formationCyclePosition.d.ts +21 -0
- package/lib/formationCyclePosition.js +26 -0
- package/lib/formationCyclePosition.js.map +1 -0
- package/lib/formationCycleStride.d.ts +26 -0
- package/lib/formationCycleStride.js +49 -0
- package/lib/formationCycleStride.js.map +1 -0
- package/lib/formationGeometry/index.d.ts +5 -0
- package/lib/formationGeometry/index.js +6 -0
- package/lib/formationGeometry/index.js.map +1 -0
- package/lib/formationSpacingOffset.d.ts +32 -0
- package/lib/formationSpacingOffset.js +45 -0
- package/lib/formationSpacingOffset.js.map +1 -0
- package/lib/guardAutoMovieRenderModeRetirement.d.ts +18 -0
- package/lib/guardAutoMovieRenderModeRetirement.js +60 -0
- package/lib/guardAutoMovieRenderModeRetirement.js.map +1 -0
- package/lib/guardAutoMovieSceneShadowRetirement.d.ts +17 -0
- package/lib/guardAutoMovieSceneShadowRetirement.js +35 -0
- package/lib/guardAutoMovieSceneShadowRetirement.js.map +1 -0
- package/lib/human-polygon/AutoMovieHumanCartoon.d.ts +78 -0
- package/lib/human-polygon/AutoMovieHumanCartoon.js +2 -0
- package/lib/human-polygon/AutoMovieHumanCartoon.js.map +1 -0
- package/lib/human-polygon/AutoMovieHumanPolygon.d.ts +137 -0
- package/lib/human-polygon/AutoMovieHumanPolygon.js +2 -0
- package/lib/human-polygon/AutoMovieHumanPolygon.js.map +1 -0
- package/lib/human-polygon/applyHumanPolygonPose.d.ts +16 -0
- package/lib/human-polygon/applyHumanPolygonPose.js +46 -0
- package/lib/human-polygon/applyHumanPolygonPose.js.map +1 -0
- package/lib/human-polygon/buildHumanCartoonFace.d.ts +43 -0
- package/lib/human-polygon/buildHumanCartoonFace.js +319 -0
- package/lib/human-polygon/buildHumanCartoonFace.js.map +1 -0
- package/lib/human-polygon/buildHumanPolygon.d.ts +38 -0
- package/lib/human-polygon/buildHumanPolygon.js +265 -0
- package/lib/human-polygon/buildHumanPolygon.js.map +1 -0
- package/lib/human-polygon/buildHumanPolygonModule.d.ts +71 -0
- package/lib/human-polygon/buildHumanPolygonModule.js +206 -0
- package/lib/human-polygon/buildHumanPolygonModule.js.map +1 -0
- package/lib/human-polygon/buildHumanPolygonParts.d.ts +21 -0
- package/lib/human-polygon/buildHumanPolygonParts.js +140 -0
- package/lib/human-polygon/buildHumanPolygonParts.js.map +1 -0
- package/lib/human-polygon/createAutoMovieHumanPolygonFigure.d.ts +60 -0
- package/lib/human-polygon/createAutoMovieHumanPolygonFigure.js +67 -0
- package/lib/human-polygon/createAutoMovieHumanPolygonFigure.js.map +1 -0
- package/lib/human-polygon/createHumanPolygonPalette.d.ts +62 -0
- package/lib/human-polygon/createHumanPolygonPalette.js +131 -0
- package/lib/human-polygon/createHumanPolygonPalette.js.map +1 -0
- package/lib/human-polygon/humanPolygonSections.d.ts +49 -0
- package/lib/human-polygon/humanPolygonSections.js +63 -0
- package/lib/human-polygon/humanPolygonSections.js.map +1 -0
- package/lib/human-polygon/humanPolygonTopology.d.ts +62 -0
- package/lib/human-polygon/humanPolygonTopology.js +111 -0
- package/lib/human-polygon/humanPolygonTopology.js.map +1 -0
- package/lib/human-polygon/index.d.ts +5 -0
- package/lib/human-polygon/index.js +4 -0
- package/lib/human-polygon/index.js.map +1 -0
- package/lib/human-polygon/mountHumanCartoonFace.d.ts +14 -0
- package/lib/human-polygon/mountHumanCartoonFace.js +70 -0
- package/lib/human-polygon/mountHumanCartoonFace.js.map +1 -0
- package/lib/importedModel/index.d.ts +4 -0
- package/lib/importedModel/index.js +5 -0
- package/lib/importedModel/index.js.map +1 -0
- package/lib/index.d.ts +139 -0
- package/lib/index.js +140 -0
- package/lib/index.js.map +1 -0
- package/lib/instanceSet/index.d.ts +6 -0
- package/lib/instanceSet/index.js +7 -0
- package/lib/instanceSet/index.js.map +1 -0
- package/lib/instancedModelParts.d.ts +15 -0
- package/lib/instancedModelParts.js +22 -0
- package/lib/instancedModelParts.js.map +1 -0
- package/lib/invalidateAutoMovieSceneShadowPrograms.d.ts +13 -0
- package/lib/invalidateAutoMovieSceneShadowPrograms.js +27 -0
- package/lib/invalidateAutoMovieSceneShadowPrograms.js.map +1 -0
- package/lib/invalidateAutoMovieSkinnedPose.d.ts +22 -0
- package/lib/invalidateAutoMovieSkinnedPose.js +31 -0
- package/lib/invalidateAutoMovieSkinnedPose.js.map +1 -0
- package/lib/mapImportedHumanoidBones.d.ts +16 -0
- package/lib/mapImportedHumanoidBones.js +57 -0
- package/lib/mapImportedHumanoidBones.js.map +1 -0
- package/lib/maskColor.d.ts +13 -0
- package/lib/maskColor.js +14 -0
- package/lib/maskColor.js.map +1 -0
- package/lib/matchesAutoMovieShadowTextureProfile.d.ts +13 -0
- package/lib/matchesAutoMovieShadowTextureProfile.js +21 -0
- package/lib/matchesAutoMovieShadowTextureProfile.js.map +1 -0
- package/lib/materialOverlayShading/IMaterialOverlayShading.d.ts +29 -0
- package/lib/materialOverlayShading/IMaterialOverlayShading.js +2 -0
- package/lib/materialOverlayShading/IMaterialOverlayShading.js.map +1 -0
- package/lib/materialOverlayShading/IMaterialOverlayShape.d.ts +16 -0
- package/lib/materialOverlayShading/IMaterialOverlayShape.js +2 -0
- package/lib/materialOverlayShading/IMaterialOverlayShape.js.map +1 -0
- package/lib/materialOverlayShading/applyMaterialOverlays.d.ts +16 -0
- package/lib/materialOverlayShading/applyMaterialOverlays.js +66 -0
- package/lib/materialOverlayShading/applyMaterialOverlays.js.map +1 -0
- package/lib/materialOverlayShading/getOverlayFlatNormal.d.ts +13 -0
- package/lib/materialOverlayShading/getOverlayFlatNormal.js +24 -0
- package/lib/materialOverlayShading/getOverlayFlatNormal.js.map +1 -0
- package/lib/materialOverlayShading/index.d.ts +6 -0
- package/lib/materialOverlayShading/index.js +4 -0
- package/lib/materialOverlayShading/index.js.map +1 -0
- package/lib/materialOverlayShading/materialOverlayFragment.d.ts +13 -0
- package/lib/materialOverlayShading/materialOverlayFragment.js +50 -0
- package/lib/materialOverlayShading/materialOverlayFragment.js.map +1 -0
- package/lib/materialOverlayShading/materialOverlayVertex.d.ts +13 -0
- package/lib/materialOverlayShading/materialOverlayVertex.js +27 -0
- package/lib/materialOverlayShading/materialOverlayVertex.js.map +1 -0
- package/lib/materialTextureBindings.d.ts +13 -0
- package/lib/materialTextureBindings.js +26 -0
- package/lib/materialTextureBindings.js.map +1 -0
- package/lib/morphTargetDriversOf.d.ts +17 -0
- package/lib/morphTargetDriversOf.js +16 -0
- package/lib/morphTargetDriversOf.js.map +1 -0
- package/lib/motion-overlay/applyAutoMovieGhost.d.ts +25 -0
- package/lib/motion-overlay/applyAutoMovieGhost.js +42 -0
- package/lib/motion-overlay/applyAutoMovieGhost.js.map +1 -0
- package/lib/motion-overlay/createAutoMovieDriftMarkers.d.ts +27 -0
- package/lib/motion-overlay/createAutoMovieDriftMarkers.js +47 -0
- package/lib/motion-overlay/createAutoMovieDriftMarkers.js.map +1 -0
- package/lib/motion-overlay/createAutoMovieTargetMarker.d.ts +24 -0
- package/lib/motion-overlay/createAutoMovieTargetMarker.js +51 -0
- package/lib/motion-overlay/createAutoMovieTargetMarker.js.map +1 -0
- package/lib/motion-overlay/createAutoMovieTrail.d.ts +23 -0
- package/lib/motion-overlay/createAutoMovieTrail.js +35 -0
- package/lib/motion-overlay/createAutoMovieTrail.js.map +1 -0
- package/lib/motion-overlay/index.d.ts +4 -0
- package/lib/motion-overlay/index.js +5 -0
- package/lib/motion-overlay/index.js.map +1 -0
- package/lib/mountViewer.d.ts +20 -0
- package/lib/mountViewer.js +179 -0
- package/lib/mountViewer.js.map +1 -0
- package/lib/objectTransform.d.ts +14 -0
- package/lib/objectTransform.js +28 -0
- package/lib/objectTransform.js.map +1 -0
- package/lib/observeAutoMovieRendererFrame.d.ts +21 -0
- package/lib/observeAutoMovieRendererFrame.js +40 -0
- package/lib/observeAutoMovieRendererFrame.js.map +1 -0
- package/lib/overrideAutoMovieRenderModeMaterials.d.ts +17 -0
- package/lib/overrideAutoMovieRenderModeMaterials.js +61 -0
- package/lib/overrideAutoMovieRenderModeMaterials.js.map +1 -0
- package/lib/planAutoMovieShadowTextureTarget.d.ts +14 -0
- package/lib/planAutoMovieShadowTextureTarget.js +33 -0
- package/lib/planAutoMovieShadowTextureTarget.js.map +1 -0
- package/lib/propArticulation/index.d.ts +4 -0
- package/lib/propArticulation/index.js +5 -0
- package/lib/propArticulation/index.js.map +1 -0
- package/lib/publishViewerCompletedFrame.d.ts +18 -0
- package/lib/publishViewerCompletedFrame.js +19 -0
- package/lib/publishViewerCompletedFrame.js.map +1 -0
- package/lib/readAutoMovieCubeShadowDepth.d.ts +13 -0
- package/lib/readAutoMovieCubeShadowDepth.js +37 -0
- package/lib/readAutoMovieCubeShadowDepth.js.map +1 -0
- package/lib/readAutoMovieDeliveryCrop.d.ts +20 -0
- package/lib/readAutoMovieDeliveryCrop.js +36 -0
- package/lib/readAutoMovieDeliveryCrop.js.map +1 -0
- package/lib/readAutoMovieDisplayDestinationEncoding.d.ts +13 -0
- package/lib/readAutoMovieDisplayDestinationEncoding.js +52 -0
- package/lib/readAutoMovieDisplayDestinationEncoding.js.map +1 -0
- package/lib/readAutoMovieEnvironmentColorSpace.d.ts +13 -0
- package/lib/readAutoMovieEnvironmentColorSpace.js +18 -0
- package/lib/readAutoMovieEnvironmentColorSpace.js.map +1 -0
- package/lib/readAutoMovieFilmDisplayTextureResidency.d.ts +20 -0
- package/lib/readAutoMovieFilmDisplayTextureResidency.js +29 -0
- package/lib/readAutoMovieFilmDisplayTextureResidency.js.map +1 -0
- package/lib/readAutoMovieMaterialTextureSources.d.ts +23 -0
- package/lib/readAutoMovieMaterialTextureSources.js +94 -0
- package/lib/readAutoMovieMaterialTextureSources.js.map +1 -0
- package/lib/readAutoMovieRenderTextureTarget.d.ts +14 -0
- package/lib/readAutoMovieRenderTextureTarget.js +52 -0
- package/lib/readAutoMovieRenderTextureTarget.js.map +1 -0
- package/lib/readAutoMovieShadowLightSource.d.ts +14 -0
- package/lib/readAutoMovieShadowLightSource.js +23 -0
- package/lib/readAutoMovieShadowLightSource.js.map +1 -0
- package/lib/readAutoMovieShadowTextureTargets.d.ts +16 -0
- package/lib/readAutoMovieShadowTextureTargets.js +65 -0
- package/lib/readAutoMovieShadowTextureTargets.js.map +1 -0
- package/lib/readAutoMovieTextureSource.d.ts +20 -0
- package/lib/readAutoMovieTextureSource.js +214 -0
- package/lib/readAutoMovieTextureSource.js.map +1 -0
- package/lib/readAutoMovieTextureUploadFormat.d.ts +13 -0
- package/lib/readAutoMovieTextureUploadFormat.js +43 -0
- package/lib/readAutoMovieTextureUploadFormat.js.map +1 -0
- package/lib/readAutoMovieTransmissionTextureTarget.d.ts +19 -0
- package/lib/readAutoMovieTransmissionTextureTarget.js +42 -0
- package/lib/readAutoMovieTransmissionTextureTarget.js.map +1 -0
- package/lib/redrawViewerCompletedFrame.d.ts +28 -0
- package/lib/redrawViewerCompletedFrame.js +35 -0
- package/lib/redrawViewerCompletedFrame.js.map +1 -0
- package/lib/regenerateFormationSlot.d.ts +15 -0
- package/lib/regenerateFormationSlot.js +16 -0
- package/lib/regenerateFormationSlot.js.map +1 -0
- package/lib/regenerateInstanceSlot.d.ts +17 -0
- package/lib/regenerateInstanceSlot.js +18 -0
- package/lib/regenerateInstanceSlot.js.map +1 -0
- package/lib/releaseMountedViewer.d.ts +13 -0
- package/lib/releaseMountedViewer.js +24 -0
- package/lib/releaseMountedViewer.js.map +1 -0
- package/lib/releaseViewerRenderer.d.ts +13 -0
- package/lib/releaseViewerRenderer.js +26 -0
- package/lib/releaseViewerRenderer.js.map +1 -0
- package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.d.ts +5 -0
- package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.js +6 -0
- package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.js.map +1 -0
- package/lib/reliefWeightShading/applyReliefWeights.d.ts +13 -0
- package/lib/reliefWeightShading/applyReliefWeights.js +17 -0
- package/lib/reliefWeightShading/applyReliefWeights.js.map +1 -0
- package/lib/reliefWeightShading/createReliefWeightShaderPatch.d.ts +18 -0
- package/lib/reliefWeightShading/createReliefWeightShaderPatch.js +21 -0
- package/lib/reliefWeightShading/createReliefWeightShaderPatch.js.map +1 -0
- package/lib/reliefWeightShading/index.d.ts +5 -0
- package/lib/reliefWeightShading/index.js +6 -0
- package/lib/reliefWeightShading/index.js.map +1 -0
- package/lib/reliefWeightShading/reliefWeightFragment.d.ts +12 -0
- package/lib/reliefWeightShading/reliefWeightFragment.js +24 -0
- package/lib/reliefWeightShading/reliefWeightFragment.js.map +1 -0
- package/lib/reliefWeightShading/reliefWeightVertex.d.ts +12 -0
- package/lib/reliefWeightShading/reliefWeightVertex.js +15 -0
- package/lib/reliefWeightShading/reliefWeightVertex.js.map +1 -0
- package/lib/renderAutoMovieFilmFrame.d.ts +22 -0
- package/lib/renderAutoMovieFilmFrame.js +33 -0
- package/lib/renderAutoMovieFilmFrame.js.map +1 -0
- package/lib/renderAutoMovieScenePass.d.ts +14 -0
- package/lib/renderAutoMovieScenePass.js +103 -0
- package/lib/renderAutoMovieScenePass.js.map +1 -0
- package/lib/renderCrossDissolve.d.ts +13 -0
- package/lib/renderCrossDissolve.js +26 -0
- package/lib/renderCrossDissolve.js.map +1 -0
- package/lib/renderCrossDissolveFrames.d.ts +15 -0
- package/lib/renderCrossDissolveFrames.js +30 -0
- package/lib/renderCrossDissolveFrames.js.map +1 -0
- package/lib/renderFadeToBlackFrame.d.ts +13 -0
- package/lib/renderFadeToBlackFrame.js +28 -0
- package/lib/renderFadeToBlackFrame.js.map +1 -0
- package/lib/reportAutoMovieResourceRetirement.d.ts +14 -0
- package/lib/reportAutoMovieResourceRetirement.js +47 -0
- package/lib/reportAutoMovieResourceRetirement.js.map +1 -0
- package/lib/resetAutoMovieSceneShadowTargets.d.ts +15 -0
- package/lib/resetAutoMovieSceneShadowTargets.js +83 -0
- package/lib/resetAutoMovieSceneShadowTargets.js.map +1 -0
- package/lib/resolveAutoMovieFilmBeautyComposition.d.ts +16 -0
- package/lib/resolveAutoMovieFilmBeautyComposition.js +31 -0
- package/lib/resolveAutoMovieFilmBeautyComposition.js.map +1 -0
- package/lib/resolveAutoMovieMaterialTexture.d.ts +17 -0
- package/lib/resolveAutoMovieMaterialTexture.js +77 -0
- package/lib/resolveAutoMovieMaterialTexture.js.map +1 -0
- package/lib/restoreAutoMovieRenderModeOnce.d.ts +12 -0
- package/lib/restoreAutoMovieRenderModeOnce.js +31 -0
- package/lib/restoreAutoMovieRenderModeOnce.js.map +1 -0
- package/lib/restoreAutoMovieRenderModeState.d.ts +15 -0
- package/lib/restoreAutoMovieRenderModeState.js +49 -0
- package/lib/restoreAutoMovieRenderModeState.js.map +1 -0
- package/lib/retireAutoMovieCubeShadowDepth.d.ts +13 -0
- package/lib/retireAutoMovieCubeShadowDepth.js +28 -0
- package/lib/retireAutoMovieCubeShadowDepth.js.map +1 -0
- package/lib/sampleFormationCycleMatrix.d.ts +15 -0
- package/lib/sampleFormationCycleMatrix.js +27 -0
- package/lib/sampleFormationCycleMatrix.js.map +1 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskBinding.d.ts +19 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskBinding.js +2 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskBinding.js.map +1 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskHandle.d.ts +42 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskHandle.js +2 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskHandle.js.map +1 -0
- package/lib/semanticMask/SCENE_MASK_KEY.d.ts +6 -0
- package/lib/semanticMask/SCENE_MASK_KEY.js +7 -0
- package/lib/semanticMask/SCENE_MASK_KEY.js.map +1 -0
- package/lib/semanticMask/applyAutoMovieSemanticMask.d.ts +34 -0
- package/lib/semanticMask/applyAutoMovieSemanticMask.js +177 -0
- package/lib/semanticMask/applyAutoMovieSemanticMask.js.map +1 -0
- package/lib/semanticMask/attachAutoMovieSemanticMask.d.ts +16 -0
- package/lib/semanticMask/attachAutoMovieSemanticMask.js +18 -0
- package/lib/semanticMask/attachAutoMovieSemanticMask.js.map +1 -0
- package/lib/semanticMask/auditAutoMovieSemanticMaskScene.d.ts +21 -0
- package/lib/semanticMask/auditAutoMovieSemanticMaskScene.js +27 -0
- package/lib/semanticMask/auditAutoMovieSemanticMaskScene.js.map +1 -0
- package/lib/semanticMask/autoMovieSemanticMaskOf.d.ts +14 -0
- package/lib/semanticMask/autoMovieSemanticMaskOf.js +14 -0
- package/lib/semanticMask/autoMovieSemanticMaskOf.js.map +1 -0
- package/lib/semanticMask/index.d.ts +7 -0
- package/lib/semanticMask/index.js +7 -0
- package/lib/semanticMask/index.js.map +1 -0
- package/lib/semanticMask/maskRoots.d.ts +23 -0
- package/lib/semanticMask/maskRoots.js +33 -0
- package/lib/semanticMask/maskRoots.js.map +1 -0
- package/lib/semanticMask/nearest.d.ts +14 -0
- package/lib/semanticMask/nearest.js +22 -0
- package/lib/semanticMask/nearest.js.map +1 -0
- package/lib/semanticMask/unresolvedOf.d.ts +14 -0
- package/lib/semanticMask/unresolvedOf.js +21 -0
- package/lib/semanticMask/unresolvedOf.js.map +1 -0
- package/lib/slotMatrix.d.ts +17 -0
- package/lib/slotMatrix.js +15 -0
- package/lib/slotMatrix.js.map +1 -0
- package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.d.ts +9 -0
- package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.js +2 -0
- package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubject.d.ts +25 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubject.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubject.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.d.ts +26 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.d.ts +20 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.d.ts +39 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.d.ts +37 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.d.ts +55 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.d.ts +22 -0
- package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.d.ts +28 -0
- package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.js.map +1 -0
- package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.d.ts +14 -0
- package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.js +25 -0
- package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.js.map +1 -0
- package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.d.ts +24 -0
- package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.js +33 -0
- package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.js.map +1 -0
- package/lib/subjectViewpoint/autoMovieViewerSubjectKey.d.ts +13 -0
- package/lib/subjectViewpoint/autoMovieViewerSubjectKey.js +17 -0
- package/lib/subjectViewpoint/autoMovieViewerSubjectKey.js.map +1 -0
- package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.d.ts +14 -0
- package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.js +41 -0
- package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.js.map +1 -0
- package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.d.ts +14 -0
- package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.js +25 -0
- package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.js.map +1 -0
- package/lib/subjectViewpoint/frameAutoMovieViewerSubject.d.ts +16 -0
- package/lib/subjectViewpoint/frameAutoMovieViewerSubject.js +57 -0
- package/lib/subjectViewpoint/frameAutoMovieViewerSubject.js.map +1 -0
- package/lib/subjectViewpoint/index.d.ts +16 -0
- package/lib/subjectViewpoint/index.js +17 -0
- package/lib/subjectViewpoint/index.js.map +1 -0
- package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.d.ts +13 -0
- package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.js +49 -0
- package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.js.map +1 -0
- package/lib/subsurfaceShading/SUBSURFACE_TARGET.d.ts +2 -0
- package/lib/subsurfaceShading/SUBSURFACE_TARGET.js +3 -0
- package/lib/subsurfaceShading/SUBSURFACE_TARGET.js.map +1 -0
- package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.d.ts +5 -0
- package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.js +3 -0
- package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.js.map +1 -0
- package/lib/subsurfaceShading/applySubsurfaceShading.d.ts +17 -0
- package/lib/subsurfaceShading/applySubsurfaceShading.js +34 -0
- package/lib/subsurfaceShading/applySubsurfaceShading.js.map +1 -0
- package/lib/subsurfaceShading/getSubsurfaceTexture.d.ts +13 -0
- package/lib/subsurfaceShading/getSubsurfaceTexture.js +36 -0
- package/lib/subsurfaceShading/getSubsurfaceTexture.js.map +1 -0
- package/lib/subsurfaceShading/index.d.ts +6 -0
- package/lib/subsurfaceShading/index.js +7 -0
- package/lib/subsurfaceShading/index.js.map +1 -0
- package/lib/subsurfaceShading/subsurfaceFragment.d.ts +12 -0
- package/lib/subsurfaceShading/subsurfaceFragment.js +26 -0
- package/lib/subsurfaceShading/subsurfaceFragment.js.map +1 -0
- package/lib/subsurfaceShading/subsurfacePhysicalChunk.d.ts +12 -0
- package/lib/subsurfaceShading/subsurfacePhysicalChunk.js +34 -0
- package/lib/subsurfaceShading/subsurfacePhysicalChunk.js.map +1 -0
- package/lib/subsurfaceShading/subsurfaceTable.d.ts +12 -0
- package/lib/subsurfaceShading/subsurfaceTable.js +45 -0
- package/lib/subsurfaceShading/subsurfaceTable.js.map +1 -0
- package/lib/textureBindingAsset.d.ts +13 -0
- package/lib/textureBindingAsset.js +15 -0
- package/lib/textureBindingAsset.js.map +1 -0
- package/lib/transport/AutoMovieViewerTransport.d.ts +216 -0
- package/lib/transport/AutoMovieViewerTransport.js +243 -0
- package/lib/transport/AutoMovieViewerTransport.js.map +1 -0
- package/lib/transport/configureAutoMovieReviewControls.d.ts +27 -0
- package/lib/transport/configureAutoMovieReviewControls.js +35 -0
- package/lib/transport/configureAutoMovieReviewControls.js.map +1 -0
- package/lib/transport/index.d.ts +5 -0
- package/lib/transport/index.js +6 -0
- package/lib/transport/index.js.map +1 -0
- package/lib/transport/mountAutoMovieTransportControls.d.ts +64 -0
- package/lib/transport/mountAutoMovieTransportControls.js +124 -0
- package/lib/transport/mountAutoMovieTransportControls.js.map +1 -0
- package/lib/transport/parseAutoMovieInspectionView.d.ts +20 -0
- package/lib/transport/parseAutoMovieInspectionView.js +29 -0
- package/lib/transport/parseAutoMovieInspectionView.js.map +1 -0
- package/lib/transport/readAutoMovieReviewInterval.d.ts +23 -0
- package/lib/transport/readAutoMovieReviewInterval.js +39 -0
- package/lib/transport/readAutoMovieReviewInterval.js.map +1 -0
- package/lib/updateAutoMovieComparisonCamera.d.ts +27 -0
- package/lib/updateAutoMovieComparisonCamera.js +79 -0
- package/lib/updateAutoMovieComparisonCamera.js.map +1 -0
- package/lib/vector.d.ts +17 -0
- package/lib/vector.js +16 -0
- package/lib/vector.js.map +1 -0
- package/package.json +51 -3
- package/src/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.ts +4 -0
- package/src/AutoMovieDisplayCompositor.ts +379 -0
- package/src/AutoMovieDissolveCompositorState.ts +9 -0
- package/src/AutoMovieEnvironmentTextureOwnership.ts +262 -0
- package/src/AutoMovieFadeCompositorState.ts +9 -0
- package/src/AutoMovieFilmBeautyComposition.ts +24 -0
- package/src/AutoMovieGeometryPhysicalVertices.ts +187 -0
- package/src/AutoMoviePlayer.ts +281 -0
- package/src/AutoMovieRenderModeMesh.ts +14 -0
- package/src/AutoMovieResourceRetirementScope.ts +203 -0
- package/src/AutoMovieSkinBlend.ts +251 -0
- package/src/AutoMovieSkinPose.ts +453 -0
- package/src/AutoMovieSkinnedMesh.ts +333 -0
- package/src/AutoMovieTextureCache.ts +389 -0
- package/src/AutoMovieTextureCacheAllocationAuthority.ts +516 -0
- package/src/DEPTH_NORMALIZATION_RANGE.ts +4 -0
- package/src/EDGE_SHELL_NAME.ts +2 -0
- package/src/EDGE_WIDTH.ts +4 -0
- package/src/IApplyAutoMovieSectionPlanesProps.ts +32 -0
- package/src/IAutoMovieAnalysisOverlayObject.ts +53 -0
- package/src/IAutoMovieBuiltPropArticulation.ts +36 -0
- package/src/IAutoMovieEffectViewerObject.ts +32 -0
- package/src/IAutoMovieEffectViewerStats.ts +21 -0
- package/src/IAutoMovieExpressionTarget.ts +22 -0
- package/src/IAutoMovieFilmBeautyLayer.ts +12 -0
- package/src/IAutoMovieFluidSprayObject.ts +54 -0
- package/src/IAutoMovieFluidSurfaceObject.ts +41 -0
- package/src/IAutoMovieFormationCadence.ts +20 -0
- package/src/IAutoMovieFormationCycle.ts +44 -0
- package/src/IAutoMovieFormationCycleTake.ts +52 -0
- package/src/IAutoMovieFormationCycleUniforms.ts +26 -0
- package/src/IAutoMovieFormationViewerObject.ts +74 -0
- package/src/IAutoMovieFormationViewerStats.ts +38 -0
- package/src/IAutoMovieImportedModelOptions.ts +51 -0
- package/src/IAutoMovieInstanceSetViewerObject.ts +47 -0
- package/src/IAutoMovieInstanceSetViewerStats.ts +20 -0
- package/src/IAutoMovieInstancedGeometry.ts +26 -0
- package/src/IAutoMovieInstancedModelRepresentation.ts +20 -0
- package/src/IAutoMovieMaterialLibrary.ts +44 -0
- package/src/IAutoMovieModelObject.ts +61 -0
- package/src/IAutoMoviePlantingObject.ts +39 -0
- package/src/IAutoMovieRenderModeHandle.ts +47 -0
- package/src/IAutoMovieRendererEnvironmentHandle.ts +22 -0
- package/src/IAutoMovieRigLocalTransform.ts +16 -0
- package/src/IAutoMovieSceneObject.ts +29 -0
- package/src/IAutoMovieSectionRenderer.ts +17 -0
- package/src/IAutoMovieShadowTextureHost.ts +19 -0
- package/src/IAutoMovieSoftBodyObject.ts +49 -0
- package/src/IAutoMovieSpringAxisSettlement.ts +21 -0
- package/src/IAutoMovieSpringConfig.ts +25 -0
- package/src/IAutoMovieTextureLoader.ts +14 -0
- package/src/IAutoMovieTextureResolver.ts +19 -0
- package/src/IAutoMovieViewerCameraDepthPrecisionReport.ts +45 -0
- package/src/IAutoMovieViewerCompletedFrame.ts +62 -0
- package/src/IAutoMovieViewerDisplayMetadata.ts +26 -0
- package/src/IAutoMovieViewerFrame.ts +26 -0
- package/src/IAutoMovieViewerHandle.ts +45 -0
- package/src/IAutoMovieViewerSnapshot.ts +21 -0
- package/src/IAutoMovieViewerSnapshotOptions.ts +15 -0
- package/src/IAutoMovieViewerSnapshotRenderer.ts +36 -0
- package/src/IBakeFormationCycleProps.ts +36 -0
- package/src/IBuildAutoMovieMaterialLibraryProps.ts +34 -0
- package/src/IBuildInstancedFormationProps.ts +45 -0
- package/src/IBuildInstancedInstanceSetProps.ts +36 -0
- package/src/IBuildPlantingObjectProps.ts +30 -0
- package/src/IBuildPropArticulationProps.ts +35 -0
- package/src/IBuildSoftBodyObjectProps.ts +24 -0
- package/src/IChunkObject.ts +42 -0
- package/src/IFormationTierRepresentation.ts +18 -0
- package/src/IMaterialShaderPatch.ts +30 -0
- package/src/IMountViewerOptions.ts +69 -0
- package/src/ISlotException.ts +31 -0
- package/src/IViewerCameraStateSnapshot.ts +60 -0
- package/src/POSE_OVERLAY_NAME.ts +2 -0
- package/src/SPACE_GROUP_NAME.ts +12 -0
- package/src/addMaterialShaderPatch.ts +42 -0
- package/src/analysisOverlay.ts +3 -0
- package/src/applyAutoMovieDeliveryCrop.ts +51 -0
- package/src/applyAutoMovieRigLocals.ts +111 -0
- package/src/applyAutoMovieSectionPlanes.ts +73 -0
- package/src/applyAutoMovieShadowParticipation.ts +69 -0
- package/src/applyCaptureCanvasSize.ts +30 -0
- package/src/applyDepthMode.ts +101 -0
- package/src/applyEdgeMode.ts +153 -0
- package/src/applyExpression.ts +203 -0
- package/src/applyFormationCycleCadence.ts +39 -0
- package/src/applyFormationCycleMaterial.ts +121 -0
- package/src/applyLightMotion.ts +58 -0
- package/src/applyLightState.ts +61 -0
- package/src/applyMaskMode.ts +130 -0
- package/src/applyMaterialShaderPatches.ts +28 -0
- package/src/applyObjectMotion.ts +44 -0
- package/src/applyObjectMotions.ts +28 -0
- package/src/applyPose.ts +127 -0
- package/src/applyPoseMode.ts +115 -0
- package/src/applyRenderMode.ts +248 -0
- package/src/applyRendererEnvironment.ts +141 -0
- package/src/applySampledObjectMotion.ts +79 -0
- package/src/applySceneEnvironment.ts +72 -0
- package/src/applySceneFog.ts +49 -0
- package/src/applySemanticMaskMode.ts +50 -0
- package/src/applyTransform.ts +24 -0
- package/src/assertAutoMovieSceneShadowProfile.ts +45 -0
- package/src/assertAutoMovieViewerCameraDepthPrecision.ts +35 -0
- package/src/audio/IAutoMovieAudioCue.ts +32 -0
- package/src/audio/index.ts +3 -0
- package/src/audio/planAutoMovieAudioPlayback.ts +87 -0
- package/src/audio/playAutoMovieAudioCues.ts +76 -0
- package/src/autoMovieAnalysisRampColor.ts +30 -0
- package/src/bakeFormationCycle.ts +221 -0
- package/src/bindFormationTierCycle.ts +62 -0
- package/src/buildAnalysisOverlayObject.ts +163 -0
- package/src/buildAutoMovieConstruction.ts +114 -0
- package/src/buildAutoMovieMaterialLibrary.ts +150 -0
- package/src/buildFluidSprayObject.ts +96 -0
- package/src/buildFluidSurfaceObject.ts +127 -0
- package/src/buildGeometry.ts +149 -0
- package/src/buildInstancedEffect.ts +152 -0
- package/src/buildInstancedFormation.ts +599 -0
- package/src/buildInstancedInstanceSet.ts +637 -0
- package/src/buildLight.ts +129 -0
- package/src/buildMaterial.ts +215 -0
- package/src/buildModel.ts +333 -0
- package/src/buildPlantingObject.ts +234 -0
- package/src/buildPropArticulation.ts +181 -0
- package/src/buildScene.ts +136 -0
- package/src/buildSoftBodyObject.ts +191 -0
- package/src/buildSpace.ts +2 -0
- package/src/buildSpaceObject.ts +100 -0
- package/src/cameraDepthPrecision.ts +3 -0
- package/src/captureAutoMovieFramebufferRestore.ts +84 -0
- package/src/captureAutoMovieMetricFrame.ts +111 -0
- package/src/captureSize.ts +1 -0
- package/src/captureViewerSnapshot.ts +37 -0
- package/src/collectAutoMovieOwnedResources.ts +73 -0
- package/src/collectAutoMovieRenderModeMeshes.ts +32 -0
- package/src/constructAutoMovieOwnedResources.ts +47 -0
- package/src/createAutoMovieClosedSphereGeometry.ts +113 -0
- package/src/createAutoMovieMetricOrthographicCamera.ts +95 -0
- package/src/createAutoMoviePerformanceOverlay.ts +239 -0
- package/src/createAutoMoviePhysicalPoseAdapter.ts +125 -0
- package/src/createAutoMovieResourceRetirement.ts +59 -0
- package/src/createAutoMovieSurfaceAppearance.ts +260 -0
- package/src/createAutoMovieSurfaceVertexAdapter.ts +66 -0
- package/src/createFormationCycleShadowMaterials.ts +111 -0
- package/src/createFormationRepresentations.ts +101 -0
- package/src/createImportedModelObject.ts +67 -0
- package/src/createViewerCameraState.ts +291 -0
- package/src/createViewerDisplayClock.ts +48 -0
- package/src/createViewerDisplayPublication.ts +59 -0
- package/src/createViewerDisplaySave.ts +224 -0
- package/src/createViewerFrameControl.ts +130 -0
- package/src/createViewerViewportResize.ts +58 -0
- package/src/decodeAutoMovieImage.ts +152 -0
- package/src/defaultMaterial.ts +21 -0
- package/src/deliveryCrop.ts +2 -0
- package/src/describeFormationTextureSources.ts +54 -0
- package/src/detailNormalShading/DETAIL_NORMAL_TARGET.ts +5 -0
- package/src/detailNormalShading/applyDetailNormal.ts +42 -0
- package/src/detailNormalShading/createDetailNormalShaderPatch.ts +71 -0
- package/src/detailNormalShading/detailNormalFragment.ts +27 -0
- package/src/detailNormalShading/detailNormalVertex.ts +24 -0
- package/src/detailNormalShading/index.ts +6 -0
- package/src/detailNormalShading/spliceTangentNormal.ts +39 -0
- package/src/disposeCrossDissolve.ts +25 -0
- package/src/disposeFadeToBlack.ts +25 -0
- package/src/disposeFormationRepresentations.ts +59 -0
- package/src/dualQuaternionSkinning/applyDualQuaternionSkinning.ts +24 -0
- package/src/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.ts +23 -0
- package/src/dualQuaternionSkinning/dualQuaternionSkinningOf.ts +19 -0
- package/src/dualQuaternionSkinning/dualQuaternionSkinningVertex.ts +146 -0
- package/src/dualQuaternionSkinning/index.ts +4 -0
- package/src/effect.ts +4 -0
- package/src/evaluateAutoMovieViewerCameraDepthPrecision.ts +114 -0
- package/src/flattenInstancedModel.ts +127 -0
- package/src/flattenInstancedObject.ts +33 -0
- package/src/flattenRigidParts.ts +174 -0
- package/src/fluidSurface.ts +4 -0
- package/src/formation/index.ts +22 -0
- package/src/formationCycle/index.ts +17 -0
- package/src/formationCycleCadence.ts +55 -0
- package/src/formationCycleGait.ts +27 -0
- package/src/formationCycleOf.ts +25 -0
- package/src/formationCyclePosition.ts +34 -0
- package/src/formationCycleStride.ts +57 -0
- package/src/formationGeometry/index.ts +5 -0
- package/src/formationSpacingOffset.ts +65 -0
- package/src/guardAutoMovieRenderModeRetirement.ts +66 -0
- package/src/guardAutoMovieSceneShadowRetirement.ts +50 -0
- package/src/human-polygon/AutoMovieHumanCartoon.ts +109 -0
- package/src/human-polygon/AutoMovieHumanPolygon.ts +160 -0
- package/src/human-polygon/applyHumanPolygonPose.ts +59 -0
- package/src/human-polygon/buildHumanCartoonFace.ts +466 -0
- package/src/human-polygon/buildHumanPolygon.ts +347 -0
- package/src/human-polygon/buildHumanPolygonModule.ts +300 -0
- package/src/human-polygon/buildHumanPolygonParts.ts +254 -0
- package/src/human-polygon/createAutoMovieHumanPolygonFigure.ts +120 -0
- package/src/human-polygon/createHumanPolygonPalette.ts +169 -0
- package/src/human-polygon/humanPolygonSections.ts +70 -0
- package/src/human-polygon/humanPolygonTopology.ts +147 -0
- package/src/human-polygon/index.ts +5 -0
- package/src/human-polygon/mountHumanCartoonFace.ts +92 -0
- package/src/importedModel/index.ts +4 -0
- package/src/index.ts +139 -0
- package/src/instanceSet/index.ts +6 -0
- package/src/instancedModelParts.ts +25 -0
- package/src/invalidateAutoMovieSceneShadowPrograms.ts +28 -0
- package/src/invalidateAutoMovieSkinnedPose.ts +31 -0
- package/src/mapImportedHumanoidBones.ts +73 -0
- package/src/maskColor.ts +17 -0
- package/src/matchesAutoMovieShadowTextureProfile.ts +34 -0
- package/src/materialOverlayShading/IMaterialOverlayShading.ts +32 -0
- package/src/materialOverlayShading/IMaterialOverlayShape.ts +18 -0
- package/src/materialOverlayShading/applyMaterialOverlays.ts +88 -0
- package/src/materialOverlayShading/getOverlayFlatNormal.ts +25 -0
- package/src/materialOverlayShading/index.ts +6 -0
- package/src/materialOverlayShading/materialOverlayFragment.ts +85 -0
- package/src/materialOverlayShading/materialOverlayVertex.ts +50 -0
- package/src/materialTextureBindings.ts +44 -0
- package/src/morphTargetDriversOf.ts +25 -0
- package/src/motion-overlay/applyAutoMovieGhost.ts +46 -0
- package/src/motion-overlay/createAutoMovieDriftMarkers.ts +59 -0
- package/src/motion-overlay/createAutoMovieTargetMarker.ts +62 -0
- package/src/motion-overlay/createAutoMovieTrail.ts +44 -0
- package/src/motion-overlay/index.ts +4 -0
- package/src/mountViewer.ts +248 -0
- package/src/objectTransform.ts +42 -0
- package/src/observeAutoMovieRendererFrame.ts +47 -0
- package/src/overrideAutoMovieRenderModeMaterials.ts +87 -0
- package/src/planAutoMovieShadowTextureTarget.ts +55 -0
- package/src/propArticulation/index.ts +4 -0
- package/src/publishViewerCompletedFrame.ts +31 -0
- package/src/readAutoMovieCubeShadowDepth.ts +57 -0
- package/src/readAutoMovieDeliveryCrop.ts +41 -0
- package/src/readAutoMovieDisplayDestinationEncoding.ts +98 -0
- package/src/readAutoMovieEnvironmentColorSpace.ts +20 -0
- package/src/readAutoMovieFilmDisplayTextureResidency.ts +52 -0
- package/src/readAutoMovieMaterialTextureSources.ts +154 -0
- package/src/readAutoMovieRenderTextureTarget.ts +70 -0
- package/src/readAutoMovieShadowLightSource.ts +40 -0
- package/src/readAutoMovieShadowTextureTargets.ts +123 -0
- package/src/readAutoMovieTextureSource.ts +262 -0
- package/src/readAutoMovieTextureUploadFormat.ts +45 -0
- package/src/readAutoMovieTransmissionTextureTarget.ts +57 -0
- package/src/redrawViewerCompletedFrame.ts +67 -0
- package/src/regenerateFormationSlot.ts +26 -0
- package/src/regenerateInstanceSlot.ts +28 -0
- package/src/releaseMountedViewer.ts +35 -0
- package/src/releaseViewerRenderer.ts +31 -0
- package/src/reliefWeightShading/RELIEF_WEIGHT_TARGET.ts +5 -0
- package/src/reliefWeightShading/applyReliefWeights.ts +21 -0
- package/src/reliefWeightShading/createReliefWeightShaderPatch.ts +50 -0
- package/src/reliefWeightShading/index.ts +5 -0
- package/src/reliefWeightShading/reliefWeightFragment.ts +40 -0
- package/src/reliefWeightShading/reliefWeightVertex.ts +23 -0
- package/src/renderAutoMovieFilmFrame.ts +63 -0
- package/src/renderAutoMovieScenePass.ts +121 -0
- package/src/renderCrossDissolve.ts +50 -0
- package/src/renderCrossDissolveFrames.ts +41 -0
- package/src/renderFadeToBlackFrame.ts +37 -0
- package/src/reportAutoMovieResourceRetirement.ts +48 -0
- package/src/resetAutoMovieSceneShadowTargets.ts +106 -0
- package/src/resolveAutoMovieFilmBeautyComposition.ts +52 -0
- package/src/resolveAutoMovieMaterialTexture.ts +113 -0
- package/src/restoreAutoMovieRenderModeOnce.ts +30 -0
- package/src/restoreAutoMovieRenderModeState.ts +71 -0
- package/src/retireAutoMovieCubeShadowDepth.ts +33 -0
- package/src/sampleFormationCycleMatrix.ts +70 -0
- package/src/semanticMask/IAutoMovieSemanticMaskBinding.ts +24 -0
- package/src/semanticMask/IAutoMovieSemanticMaskHandle.ts +45 -0
- package/src/semanticMask/SCENE_MASK_KEY.ts +6 -0
- package/src/semanticMask/applyAutoMovieSemanticMask.ts +262 -0
- package/src/semanticMask/attachAutoMovieSemanticMask.ts +27 -0
- package/src/semanticMask/auditAutoMovieSemanticMaskScene.ts +50 -0
- package/src/semanticMask/autoMovieSemanticMaskOf.ts +24 -0
- package/src/semanticMask/index.ts +7 -0
- package/src/semanticMask/maskRoots.ts +67 -0
- package/src/semanticMask/nearest.ts +29 -0
- package/src/semanticMask/unresolvedOf.ts +34 -0
- package/src/slotMatrix.ts +38 -0
- package/src/subjectViewpoint/AutoMovieViewerSubjectKind.ts +23 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubject.ts +28 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectBounds.ts +19 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectLens.ts +21 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectPose.ts +36 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectView.ts +42 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.ts +67 -0
- package/src/subjectViewpoint/IAutoMovieViewerTurntableOptions.ts +24 -0
- package/src/subjectViewpoint/IAutoMovieViewerViewpoint.ts +31 -0
- package/src/subjectViewpoint/applyAutoMovieViewerSubjectPose.ts +31 -0
- package/src/subjectViewpoint/autoMovieViewerPoseFromHeading.ts +43 -0
- package/src/subjectViewpoint/autoMovieViewerSubjectKey.ts +20 -0
- package/src/subjectViewpoint/autoMovieViewerTurntableViewpoints.ts +54 -0
- package/src/subjectViewpoint/captureAutoMovieViewerSubjectView.ts +34 -0
- package/src/subjectViewpoint/frameAutoMovieViewerSubject.ts +77 -0
- package/src/subjectViewpoint/index.ts +16 -0
- package/src/subjectViewpoint/parseAutoMovieViewerSubjectKey.ts +59 -0
- package/src/subsurfaceShading/SUBSURFACE_TARGET.ts +3 -0
- package/src/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.ts +2 -0
- package/src/subsurfaceShading/applySubsurfaceShading.ts +38 -0
- package/src/subsurfaceShading/getSubsurfaceTexture.ts +46 -0
- package/src/subsurfaceShading/index.ts +6 -0
- package/src/subsurfaceShading/subsurfaceFragment.ts +30 -0
- package/src/subsurfaceShading/subsurfacePhysicalChunk.ts +43 -0
- package/src/subsurfaceShading/subsurfaceTable.ts +47 -0
- package/src/textureBindingAsset.ts +16 -0
- package/src/transport/AutoMovieViewerTransport.ts +356 -0
- package/src/transport/configureAutoMovieReviewControls.ts +44 -0
- package/src/transport/index.ts +5 -0
- package/src/transport/mountAutoMovieTransportControls.ts +254 -0
- package/src/transport/parseAutoMovieInspectionView.ts +35 -0
- package/src/transport/readAutoMovieReviewInterval.ts +45 -0
- package/src/updateAutoMovieComparisonCamera.ts +92 -0
- package/src/vector.ts +20 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
import { restoreAutoMovieRenderModeState } from "./restoreAutoMovieRenderModeState.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Capture the public framebuffer selection and raster rectangle state.
|
|
7
|
+
* A target bind changes effective viewport/scissor. Preserve both configured
|
|
8
|
+
* logical renderer fields and the effective framebuffer's physical rectangle.
|
|
9
|
+
* A temporary target rectangle supplies the captured physical values to the
|
|
10
|
+
* supported bind operation, then its authored fields are restored immediately.
|
|
11
|
+
* Every independent restoration is attempted after a native resource operation.
|
|
12
|
+
*
|
|
13
|
+
* @evidence contracts/development/implementation.md#principled-implementation Captures native target/cube-face/mip plus logical viewport/scissor/test and current framebuffer rectangles, then restores through public setters/bind with a temporary target rectangle handoff; renderer/context must still be alive and supported native state APIs must describe the same draw target, with default-framebuffer state relying on native null-bind behavior.
|
|
14
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns one reversible framebuffer snapshot separate from pass materials; temporary target field mutation exists only because native setRenderTarget consumes that target's authored raster state.
|
|
15
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses queried actual framebuffer rectangles instead of fixture canvas dimensions or renderer-internal replacements; target's original fields are independently restored even when rebinding throws, preserving the original cause.
|
|
16
|
+
* @evidence contracts/development/common.md#meaningful-documentation Distinguishes logical versus effective physical rectangles, target handoff and independent restoration after native operations rather than claiming a target-only snapshot is complete.
|
|
17
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Performs fixed-count native state reads/vector copies and fixed restore operations, constant coordinator storage; WebGL getParameter may synchronize with the driver and is a snapshot boundary cost rather than per-pixel work.
|
|
18
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The returned closer reuses one captured state for its owner scope; each actual snapshot requires fresh target/rectangle observations and repeated restore is not memoized by this primitive.
|
|
19
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds borrowed renderer/target plus four-vector/scalar snapshot state through closer lifetime and acquires no render target itself; target/renderer owners must keep resources alive until restore and then release the closer.
|
|
20
|
+
*/
|
|
21
|
+
export const captureAutoMovieFramebufferRestore: (
|
|
22
|
+
renderer: THREE.WebGLRenderer,
|
|
23
|
+
) => () => void = (renderer: THREE.WebGLRenderer): (() => void) => {
|
|
24
|
+
const target: THREE.WebGLRenderTarget<
|
|
25
|
+
THREE.Texture<unknown, THREE.TextureEventMap>
|
|
26
|
+
> | null = renderer.getRenderTarget(),
|
|
27
|
+
face: number = renderer.getActiveCubeFace(),
|
|
28
|
+
mip: number = renderer.getActiveMipmapLevel();
|
|
29
|
+
const viewport: THREE.Vector4 = renderer.getViewport(new THREE.Vector4()),
|
|
30
|
+
scissor: THREE.Vector4 = renderer.getScissor(new THREE.Vector4()),
|
|
31
|
+
test: boolean = renderer.getScissorTest();
|
|
32
|
+
const effectiveViewport: THREE.Vector4 = renderer.getCurrentViewport(
|
|
33
|
+
new THREE.Vector4(),
|
|
34
|
+
);
|
|
35
|
+
const gl: WebGLRenderingContext | WebGL2RenderingContext =
|
|
36
|
+
renderer.getContext();
|
|
37
|
+
const effectiveScissor: THREE.Vector4 = new THREE.Vector4().fromArray(
|
|
38
|
+
gl.getParameter(gl.SCISSOR_BOX) as Int32Array,
|
|
39
|
+
);
|
|
40
|
+
const effectiveTest: boolean = gl.isEnabled(gl.SCISSOR_TEST);
|
|
41
|
+
return (): void =>
|
|
42
|
+
restoreAutoMovieRenderModeState([
|
|
43
|
+
(): void => {
|
|
44
|
+
renderer.setViewport(viewport);
|
|
45
|
+
},
|
|
46
|
+
(): void => {
|
|
47
|
+
renderer.setScissor(scissor);
|
|
48
|
+
},
|
|
49
|
+
(): void => {
|
|
50
|
+
renderer.setScissorTest(test);
|
|
51
|
+
},
|
|
52
|
+
(): void => {
|
|
53
|
+
if (target === null) {
|
|
54
|
+
renderer.setRenderTarget(null, face, mip);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const priorViewport: THREE.Vector4 = target.viewport.clone(),
|
|
58
|
+
priorScissor: THREE.Vector4 = target.scissor.clone(),
|
|
59
|
+
priorTest: boolean = target.scissorTest;
|
|
60
|
+
target.viewport.copy(effectiveViewport);
|
|
61
|
+
target.scissor.copy(effectiveScissor);
|
|
62
|
+
target.scissorTest = effectiveTest;
|
|
63
|
+
let failure: { error: unknown } | undefined;
|
|
64
|
+
try {
|
|
65
|
+
renderer.setRenderTarget(target, face, mip);
|
|
66
|
+
} catch (error) {
|
|
67
|
+
failure = { error };
|
|
68
|
+
}
|
|
69
|
+
const restore: (() => void)[] = [
|
|
70
|
+
(): void => {
|
|
71
|
+
target.viewport.copy(priorViewport);
|
|
72
|
+
},
|
|
73
|
+
(): void => {
|
|
74
|
+
target.scissor.copy(priorScissor);
|
|
75
|
+
},
|
|
76
|
+
(): void => {
|
|
77
|
+
target.scissorTest = priorTest;
|
|
78
|
+
},
|
|
79
|
+
];
|
|
80
|
+
if (failure === undefined) restoreAutoMovieRenderModeState(restore);
|
|
81
|
+
else restoreAutoMovieRenderModeState(restore, failure);
|
|
82
|
+
},
|
|
83
|
+
]);
|
|
84
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
import { captureAutoMovieFramebufferRestore } from "./captureAutoMovieFramebufferRestore.js";
|
|
4
|
+
import { restoreAutoMovieRenderModeState } from "./restoreAutoMovieRenderModeState.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Capture the caller's current scene through an explicit calibrated camera.
|
|
8
|
+
* The requested dimensions are physical output pixels, independent of the
|
|
9
|
+
* borrowed renderer's device ratio. A silhouette pass uses black meshes on
|
|
10
|
+
* white, separately from neutral-lit surface judgment. The caller selects which
|
|
11
|
+
* scene subjects/construction are visible and redraws its ordinary camera after
|
|
12
|
+
* this operation restores renderer dimensions, framebuffer selection/raster and
|
|
13
|
+
* scene state. Logical and effective physical rectangles remain distinct.
|
|
14
|
+
*
|
|
15
|
+
* @evidence contracts/development/implementation.md#principled-implementation One original native render uses the supplied camera and current scene geometry; physical pixel dimensions and an explicit optional silhouette material define the capture without changing any model coefficients or camera matrix.
|
|
16
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This viewer operation owns temporary capture state and PNG extraction, reusing the framebuffer snapshot owner for target/cube-face/mip and logical/effective raster restoration, while the caller retains renderer, scene, camera and loaded subject ownership.
|
|
17
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No capture-only model, source image overlay, extra reconstruction, software renderer, native method replacement or silent resolution downgrade supplies pixels.
|
|
18
|
+
* @evidence contracts/development/common.md#meaningful-documentation States physical pixel sizing, borrowed resources, surface versus structural silhouette meaning, restored states and caller redraw responsibility.
|
|
19
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One render and PNG encoding scale with admitted W times H pixels and visible scene geometry; maxPixels bounds output raster allocation before resizing and no persistent render target is retained.
|
|
20
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each capture observes current mutable scene/camera state and has a distinct pixel effect, so it is not cached.
|
|
21
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrowed dimensions, pixel ratio, framebuffer/raster, background and override material are restored independently after success or failure; the one optional owned mask material is disposed and only PNG data transfers. Public disposal does not certify GPU-driver retirement.
|
|
22
|
+
*/
|
|
23
|
+
export function captureAutoMovieMetricFrame(input: {
|
|
24
|
+
renderer: THREE.WebGLRenderer;
|
|
25
|
+
scene: THREE.Scene;
|
|
26
|
+
camera: THREE.Camera;
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
maxPixels: number;
|
|
30
|
+
mode: "surface" | "silhouette";
|
|
31
|
+
}): string {
|
|
32
|
+
if (
|
|
33
|
+
!input ||
|
|
34
|
+
!Number.isSafeInteger(input.width) ||
|
|
35
|
+
input.width < 1 ||
|
|
36
|
+
!Number.isSafeInteger(input.height) ||
|
|
37
|
+
input.height < 1 ||
|
|
38
|
+
!Number.isSafeInteger(input.maxPixels) ||
|
|
39
|
+
input.maxPixels < 1 ||
|
|
40
|
+
!Number.isSafeInteger(input.width * input.height) ||
|
|
41
|
+
input.width * input.height > input.maxPixels ||
|
|
42
|
+
!["surface", "silhouette"].includes(input.mode)
|
|
43
|
+
)
|
|
44
|
+
throw new Error(
|
|
45
|
+
"Metric capture requires positive bounded physical pixel dimensions and an explicit pass",
|
|
46
|
+
);
|
|
47
|
+
const maximum: number = input.renderer
|
|
48
|
+
.getContext()
|
|
49
|
+
.getParameter(input.renderer.getContext().MAX_RENDERBUFFER_SIZE) as number;
|
|
50
|
+
if (
|
|
51
|
+
!Number.isSafeInteger(maximum) ||
|
|
52
|
+
maximum <= 0 ||
|
|
53
|
+
input.renderer.getContext().isContextLost() ||
|
|
54
|
+
input.width > maximum ||
|
|
55
|
+
input.height > maximum
|
|
56
|
+
)
|
|
57
|
+
throw new Error("Metric capture exceeds native renderbuffer dimensions");
|
|
58
|
+
const size: THREE.Vector2 = input.renderer.getSize(new THREE.Vector2());
|
|
59
|
+
const ratio: number = input.renderer.getPixelRatio();
|
|
60
|
+
const restoreFramebuffer: () => void = captureAutoMovieFramebufferRestore(
|
|
61
|
+
input.renderer,
|
|
62
|
+
);
|
|
63
|
+
const autoClear: boolean = input.renderer.autoClear;
|
|
64
|
+
const background: THREE.Scene["background"] = input.scene.background;
|
|
65
|
+
const override: THREE.Scene["overrideMaterial"] =
|
|
66
|
+
input.scene.overrideMaterial;
|
|
67
|
+
const mask: THREE.MeshBasicMaterial | null =
|
|
68
|
+
input.mode === "silhouette"
|
|
69
|
+
? new THREE.MeshBasicMaterial({ color: 0x000000 })
|
|
70
|
+
: null;
|
|
71
|
+
const restore: (() => void)[] = [
|
|
72
|
+
(): void => {
|
|
73
|
+
input.scene.background = background;
|
|
74
|
+
},
|
|
75
|
+
(): void => {
|
|
76
|
+
input.scene.overrideMaterial = override;
|
|
77
|
+
},
|
|
78
|
+
(): void => {
|
|
79
|
+
input.renderer.setPixelRatio(ratio);
|
|
80
|
+
},
|
|
81
|
+
(): void => {
|
|
82
|
+
input.renderer.setSize(size.x, size.y, false);
|
|
83
|
+
},
|
|
84
|
+
restoreFramebuffer,
|
|
85
|
+
(): void => {
|
|
86
|
+
input.renderer.autoClear = autoClear;
|
|
87
|
+
},
|
|
88
|
+
(): void => {
|
|
89
|
+
mask?.dispose();
|
|
90
|
+
},
|
|
91
|
+
];
|
|
92
|
+
let png: string;
|
|
93
|
+
try {
|
|
94
|
+
if (mask) {
|
|
95
|
+
input.scene.background = new THREE.Color(0xffffff);
|
|
96
|
+
input.scene.overrideMaterial = mask;
|
|
97
|
+
}
|
|
98
|
+
input.renderer.setRenderTarget(null);
|
|
99
|
+
input.renderer.setPixelRatio(1);
|
|
100
|
+
input.renderer.setSize(input.width, input.height, false);
|
|
101
|
+
input.renderer.setViewport(0, 0, input.width, input.height);
|
|
102
|
+
input.renderer.setScissorTest(false);
|
|
103
|
+
input.renderer.autoClear = true;
|
|
104
|
+
input.renderer.render(input.scene, input.camera);
|
|
105
|
+
png = input.renderer.domElement.toDataURL("image/png");
|
|
106
|
+
} catch (error: unknown) {
|
|
107
|
+
return restoreAutoMovieRenderModeState(restore, { error });
|
|
108
|
+
}
|
|
109
|
+
restoreAutoMovieRenderModeState(restore);
|
|
110
|
+
return png;
|
|
111
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { applyCaptureCanvasSize } from "./applyCaptureCanvasSize.js";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
import type { IAutoMovieViewerSnapshot } from "./IAutoMovieViewerSnapshot.js";
|
|
4
|
+
import type { IAutoMovieViewerSnapshotOptions } from "./IAutoMovieViewerSnapshotOptions.js";
|
|
5
|
+
import type { IAutoMovieViewerSnapshotRenderer } from "./IAutoMovieViewerSnapshotRenderer.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Render synchronously through the supplied original host and immediately encode its canvas as an inline image. PNG is the default request; actual canvas fallback, taint and empty-canvas behavior remain native. This low-level readout does not independently establish native renderer identity, current-source hardware readiness or valid nonblank pixels.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Defaults requested MIME to PNG, executes the original synchronous host draw and immediately reads its canvas extent/data URL with forwarded quality.
|
|
11
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A low-level structural host adapter separates original draw/encode from browser acquisition and stronger current-source/hardware/delivery gates.
|
|
12
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No native renderer replacement, fake pixels or image parse certifies this readout; encoder fallback/taint/empty-canvas failure remain native behavior and caller owns source/pixel admission.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents original draw-before-read, requested-versus-encoded MIME, borrowed host lifetime and absence of independent hardware/source verification.
|
|
14
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Coordinator reads are fixed around actual draw plus pixel/format-dependent synchronous encoding and proportional data-URL storage, with no duplicate image decode.
|
|
15
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Every requested snapshot executes its own original draw/encode effect; equal scene/camera/options do not establish unchanged pixels.
|
|
16
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The renderer/scene/camera remain borrowed and no browser/context is acquired; returned string belongs to the consumer, while native host shutdown stays with its original owner.
|
|
17
|
+
*/
|
|
18
|
+
export const captureViewerSnapshot: (
|
|
19
|
+
renderer: IAutoMovieViewerSnapshotRenderer,
|
|
20
|
+
scene: THREE.Scene,
|
|
21
|
+
camera: THREE.Camera,
|
|
22
|
+
options?: IAutoMovieViewerSnapshotOptions,
|
|
23
|
+
) => IAutoMovieViewerSnapshot = (
|
|
24
|
+
renderer: IAutoMovieViewerSnapshotRenderer,
|
|
25
|
+
scene: THREE.Scene,
|
|
26
|
+
camera: THREE.Camera,
|
|
27
|
+
options: IAutoMovieViewerSnapshotOptions = {},
|
|
28
|
+
): IAutoMovieViewerSnapshot => {
|
|
29
|
+
const mimeType: string = options.mimeType ?? "image/png";
|
|
30
|
+
renderer.render(scene, camera);
|
|
31
|
+
return {
|
|
32
|
+
width: renderer.domElement.width,
|
|
33
|
+
height: renderer.domElement.height,
|
|
34
|
+
mimeType,
|
|
35
|
+
dataUrl: renderer.domElement.toDataURL(mimeType, options.quality),
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Collect the resources a subtree owner may retire, before any disposal event
|
|
5
|
+
* can mutate that subtree. Geometry, standard materials, custom shadow
|
|
6
|
+
* materials and skinned meshes' skeletons are distinct by object identity,
|
|
7
|
+
* including sharing across meshes. A skeleton is collected because its
|
|
8
|
+
* disposal releases the bone texture the renderer allocates on first draw;
|
|
9
|
+
* omitting it left that texture to the GPU until context loss. Skeletons come
|
|
10
|
+
* last, after every geometry, material and texture.
|
|
11
|
+
*
|
|
12
|
+
* Textures are included only for a decoded subtree that owns them. A group
|
|
13
|
+
* backed by a texture cache leaves those wrappers to the cache's independent
|
|
14
|
+
* retirement. This collection does not acquire ownership of borrowed objects:
|
|
15
|
+
* the caller must own the supplied subtree and its declared resource roles.
|
|
16
|
+
* Texture collection covers direct material texture slots, as used by the
|
|
17
|
+
* decoded standard-material previews. Shader uniform textures have their own
|
|
18
|
+
* producer lifetime and are not acquired by this subtree collector.
|
|
19
|
+
*
|
|
20
|
+
* @evidence contracts/development/implementation.md#principled-implementation Snapshots geometry/visible/custom-shadow material identities and skinned-mesh skeletons (whose dispose releases the renderer's bone texture) from actual mesh subclasses before disposal can mutate the subtree, optionally collecting direct native texture slots; the caller must own those roles, and shader-uniform/producer-owned textures remain outside this collector.
|
|
21
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Returns a deduplicated retirement population without executing disposal or inferring ownership from attachment; asynchronous/failure-aware retirement stays with its resource owner.
|
|
22
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts ownTextures is an explicit decoded-subtree ownership decision, not a fixture-name inference; actual object identity dedup avoids duplicate calls and no foreign disposal method is replaced.
|
|
23
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives pre-disposal snapshot purpose, standard/custom-shadow roles, optional texture ownership, borrowed-source prohibition and uniform-texture exclusion.
|
|
24
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Traverses O subtree nodes and mesh material slots with identity Sets, then optionally scans direct enumerable fields of unique materials; time/storage follow actual unique geometry/material/texture resources, not instance-member count or pixel dimensions.
|
|
25
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Deduplicates resources shared by multiple meshes in one snapshot; different mutable subtrees/ownership roles require a fresh collection rather than an attachment-only cache.
|
|
26
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Acquires no resource ownership or task and transfers snapshot references to the caller; its temporary Sets die on return, while the caller must preserve failed/indeterminate owned resources through supported retirement.
|
|
27
|
+
*/
|
|
28
|
+
export function collectAutoMovieOwnedResources(
|
|
29
|
+
group: THREE.Object3D,
|
|
30
|
+
ownTextures: boolean = false,
|
|
31
|
+
): readonly { dispose(): void }[] {
|
|
32
|
+
const geometries: Set<
|
|
33
|
+
THREE.BufferGeometry<
|
|
34
|
+
THREE.NormalBufferAttributes,
|
|
35
|
+
THREE.BufferGeometryEventMap
|
|
36
|
+
>
|
|
37
|
+
> = new Set<THREE.BufferGeometry>();
|
|
38
|
+
const materials: Set<THREE.Material<THREE.MaterialEventMap>> =
|
|
39
|
+
new Set<THREE.Material>();
|
|
40
|
+
const textures: Set<THREE.Texture<unknown, THREE.TextureEventMap>> =
|
|
41
|
+
new Set<THREE.Texture>();
|
|
42
|
+
const skeletons: Set<THREE.Skeleton> = new Set<THREE.Skeleton>();
|
|
43
|
+
group.traverse((object: THREE.Object3D<THREE.Object3DEventMap>): void => {
|
|
44
|
+
// A skinned mesh's skeleton owns the bone texture the renderer uploads its
|
|
45
|
+
// bone matrices into; it is retired with the subtree that bound it.
|
|
46
|
+
if ((object as THREE.SkinnedMesh).isSkinnedMesh === true)
|
|
47
|
+
skeletons.add((object as THREE.SkinnedMesh).skeleton);
|
|
48
|
+
const mesh: THREE.Mesh<
|
|
49
|
+
THREE.BufferGeometry<
|
|
50
|
+
THREE.NormalBufferAttributes,
|
|
51
|
+
THREE.BufferGeometryEventMap
|
|
52
|
+
>,
|
|
53
|
+
| THREE.Material<THREE.MaterialEventMap>
|
|
54
|
+
| THREE.Material<THREE.MaterialEventMap>[],
|
|
55
|
+
THREE.Object3DEventMap
|
|
56
|
+
> = object as THREE.Mesh;
|
|
57
|
+
if (mesh.isMesh !== true) return;
|
|
58
|
+
geometries.add(mesh.geometry);
|
|
59
|
+
for (const material of Array.isArray(mesh.material)
|
|
60
|
+
? mesh.material
|
|
61
|
+
: [mesh.material])
|
|
62
|
+
materials.add(material);
|
|
63
|
+
if (mesh.customDepthMaterial !== undefined)
|
|
64
|
+
materials.add(mesh.customDepthMaterial);
|
|
65
|
+
if (mesh.customDistanceMaterial !== undefined)
|
|
66
|
+
materials.add(mesh.customDistanceMaterial);
|
|
67
|
+
});
|
|
68
|
+
if (ownTextures)
|
|
69
|
+
for (const material of materials)
|
|
70
|
+
for (const value of Object.values(material))
|
|
71
|
+
if (value?.isTexture === true) textures.add(value);
|
|
72
|
+
return [...geometries, ...materials, ...textures, ...skeletons];
|
|
73
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
import type { AutoMovieRenderModeMesh } from "./AutoMovieRenderModeMesh.js";
|
|
4
|
+
|
|
5
|
+
const isMeshLike: (
|
|
6
|
+
object: THREE.Object3D,
|
|
7
|
+
) => object is AutoMovieRenderModeMesh = (
|
|
8
|
+
object: THREE.Object3D,
|
|
9
|
+
): object is AutoMovieRenderModeMesh => (object as THREE.Mesh).isMesh === true;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Collects actual mesh projections in deterministic traversal order without altering their state.
|
|
13
|
+
*
|
|
14
|
+
* @evidence contracts/development/implementation.md#principled-implementation Traverses the actual subtree and selects native isMesh markers, including skinned/instanced meshes, preserving Three child traversal order without interpreting visibility or authored identity as geometry admission.
|
|
15
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One collector supplies all guide-pass owners with the same supported mesh surface rather than repeated class-specific traversal logic.
|
|
16
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses native mesh role uniformly, with no fixture names or synthetic meshes; it reads markers and does not replace traversal or mutate scene state.
|
|
17
|
+
* @evidence contracts/development/common.md#meaningful-documentation States actual mesh projection, deterministic order and no mutation; selection does not mean the source is visible or its custom deformation is supported by every pass.
|
|
18
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Visits O subtree objects once and appends M meshes, O(O) time and O(M) result references with no material/vertex copies.
|
|
19
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work All passes reuse this collector implementation; mutable graph membership/order prevents a stale root-only collection cache, and pass owners handle their own cycle-equivalent material reuse.
|
|
20
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows root and transfers an array of borrowed mesh references; retains no scene registry, GPU allocation or task after return.
|
|
21
|
+
*/
|
|
22
|
+
export const collectAutoMovieRenderModeMeshes: (
|
|
23
|
+
root: THREE.Object3D,
|
|
24
|
+
) => AutoMovieRenderModeMesh[] = (
|
|
25
|
+
root: THREE.Object3D,
|
|
26
|
+
): AutoMovieRenderModeMesh[] => {
|
|
27
|
+
const meshes: AutoMovieRenderModeMesh[] = [];
|
|
28
|
+
root.traverse((object: THREE.Object3D<THREE.Object3DEventMap>): void => {
|
|
29
|
+
if (isMeshLike(object)) meshes.push(object);
|
|
30
|
+
});
|
|
31
|
+
return meshes;
|
|
32
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { restoreAutoMovieRenderModeState } from "./restoreAutoMovieRenderModeState.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Own resources from their first successful allocation until a synchronous
|
|
5
|
+
* producer transfers its complete result. The producer registers each object
|
|
6
|
+
* immediately, including objects not yet attached to its returned scene graph.
|
|
7
|
+
* A refusal attempts every registered resource once by object identity and
|
|
8
|
+
* reports the original construction cause before independent cleanup failures.
|
|
9
|
+
*
|
|
10
|
+
* Only resources created by this producer belong here. Texture resolvers and
|
|
11
|
+
* shared shader producers retain their own wrappers and tables. Completion of
|
|
12
|
+
* a public disposal call does not certify physical GPU retirement. Nested
|
|
13
|
+
* constructors register a child's resources only after that child succeeds;
|
|
14
|
+
* the child owns its own refusal, preventing duplicate retirement by its parent.
|
|
15
|
+
*
|
|
16
|
+
* @evidence contracts/development/implementation.md#principled-implementation Registers each successfully allocated disposable by identity and transfers the producer result only on success; refusal independently attempts every registered disposer and preserves the primary cause with cleanup failures. Registration must be immediate, and nested child constructors must clean their own pre-return acquisitions.
|
|
17
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A synchronous construction scope owns rollback only; successful public runtime owners govern later retirement, and external texture/cache resources are not silently enrolled.
|
|
18
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Does not retry disposers, replace native methods or infer resources from final scene attachment; a child or caller that fails to register an acquisition remains an explicit ownership gap rather than being masked by this wrapper.
|
|
19
|
+
* @evidence contracts/development/common.md#meaningful-documentation States first-acquisition registration, result transfer, independent rollback, external-owner exclusions, nested-constructor responsibility and public versus physical-retirement distinction.
|
|
20
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Set registration is expected constant per unique resource and failed rollback visits R owned resources once, using O(R) references; successful construction runs no disposal traversal.
|
|
21
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Identity registration reuses a single retirement entry for the same object within this scope; effectful construction results are not cached across different producer calls.
|
|
22
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Holds registered resources through synchronous construction and rollback; successful result transfer drops the scope's registry, while failure attempts all release operations. Failed rollback ownership is not retained in a returned recovery handle, so native failure boundaries remain the child/host responsibility.
|
|
23
|
+
*/
|
|
24
|
+
export function constructAutoMovieOwnedResources<Value>(
|
|
25
|
+
construct: (
|
|
26
|
+
own: <Resource extends { dispose(): void }>(resource: Resource) => Resource,
|
|
27
|
+
) => Value,
|
|
28
|
+
): Value {
|
|
29
|
+
const owned: Set<{ dispose(): void }> = new Set<{ dispose(): void }>();
|
|
30
|
+
try {
|
|
31
|
+
return construct(
|
|
32
|
+
<Resource extends { dispose(): void }>(resource: Resource): Resource => {
|
|
33
|
+
owned.add(resource);
|
|
34
|
+
return resource;
|
|
35
|
+
},
|
|
36
|
+
);
|
|
37
|
+
} catch (error) {
|
|
38
|
+
return restoreAutoMovieRenderModeState(
|
|
39
|
+
[...owned].map(
|
|
40
|
+
(resource: { dispose(): void }): (() => void) =>
|
|
41
|
+
(): void =>
|
|
42
|
+
resource.dispose(),
|
|
43
|
+
),
|
|
44
|
+
{ error },
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Create a complete sphere with one exact positional sample at its periodic seam.
|
|
5
|
+
*
|
|
6
|
+
* Finite segment counts use Three's floor/minimum normalization. The two UV
|
|
7
|
+
* columns still have separate indices and texture coordinates, but the last
|
|
8
|
+
* column reuses the first column's position and normal at the same longitude.
|
|
9
|
+
* This preserves exact closure after a shared rigid world transform.
|
|
10
|
+
* Nonfinite Float32 output, zero normals or collapsed indexed triangles refuse;
|
|
11
|
+
* the admissible radius therefore also depends on the requested tessellation.
|
|
12
|
+
*
|
|
13
|
+
* @param radius Positive finite local-metre radius with representable, nondegenerate output.
|
|
14
|
+
* @param widthSegments Finite longitude count, floored with minimum three.
|
|
15
|
+
* @param heightSegments Finite latitude count, floored with minimum two.
|
|
16
|
+
* @returns Caller-owned SphereGeometry; dispose it when its consumers retire.
|
|
17
|
+
*
|
|
18
|
+
* @evidence contracts/development/implementation.md#principled-implementation Longitude zero and a full turn are the same parameter point. Copying that known endpoint sample constructs exact periodic identity without a proximity rule; Three retains its original triangles, UV split, radius and segment normalization. Exact finite/nonzero checks on the emitted Float32 buffers refuse arithmetic overflow, underflow and collapsed triangles without inventing a radius cutoff.
|
|
19
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One primitive producer delegates tessellation to Three and owns its full-period boundary and output admission. Glove equipment and face marks consume this same source rather than repairing query inputs independently.
|
|
20
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No geometry label, coordinate epsilon, vertex merge, triangle removal, collision exemption or fitted proxy participates. Invalid numeric inputs refuse before construction; unusable output refuses and is disposed before transfer.
|
|
21
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the complete-sphere domain, output-dependent radius admission, metre units, segment normalization, unchanged UV/index ownership, exact seam construction and caller disposal responsibility.
|
|
22
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Three creates O(width times height) vertices and triangles; seam copying adds O(height) work and output admission scans each vertex and triangle once. Constant-size vectors are reused; no extra geometry or query hierarchy is built. A complete scan is required to detect collapse at any latitude or longitude.
|
|
23
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Each latitude's first sample supplies its mathematically identical final longitude once. The caller decides whether immutable owned geometry is shared across instances; this producer retains no cross-request cache.
|
|
24
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned geometry owns Three's position, normal, UV and index buffers. Failed output admission disposes them before throwing. The producer retains no closure, actor, renderer or task; callers dispose accepted geometry after its last mesh consumer.
|
|
25
|
+
*/
|
|
26
|
+
export function createAutoMovieClosedSphereGeometry(
|
|
27
|
+
radius: number = 1,
|
|
28
|
+
widthSegments: number = 32,
|
|
29
|
+
heightSegments: number = 16,
|
|
30
|
+
): THREE.SphereGeometry {
|
|
31
|
+
if (
|
|
32
|
+
!Number.isFinite(radius) ||
|
|
33
|
+
radius <= 0 ||
|
|
34
|
+
!Number.isFinite(widthSegments) ||
|
|
35
|
+
!Number.isFinite(heightSegments)
|
|
36
|
+
)
|
|
37
|
+
throw new Error(
|
|
38
|
+
"A closed sphere requires a positive finite radius and finite segment counts",
|
|
39
|
+
);
|
|
40
|
+
const geometry: THREE.SphereGeometry = new THREE.SphereGeometry(
|
|
41
|
+
radius,
|
|
42
|
+
widthSegments,
|
|
43
|
+
heightSegments,
|
|
44
|
+
);
|
|
45
|
+
const width: number = Math.max(3, Math.floor(widthSegments));
|
|
46
|
+
const height: number = Math.max(2, Math.floor(heightSegments));
|
|
47
|
+
const position: THREE.BufferAttribute | THREE.InterleavedBufferAttribute =
|
|
48
|
+
geometry.getAttribute("position");
|
|
49
|
+
const normal: THREE.BufferAttribute | THREE.InterleavedBufferAttribute =
|
|
50
|
+
geometry.getAttribute("normal");
|
|
51
|
+
|
|
52
|
+
// A full turn shares the same exact sample; UV coordinates remain distinct.
|
|
53
|
+
for (let row: number = 0; row <= height; row++) {
|
|
54
|
+
const first: number = row * (width + 1);
|
|
55
|
+
const last: number = first + width;
|
|
56
|
+
position.setXYZ(
|
|
57
|
+
last,
|
|
58
|
+
position.getX(first),
|
|
59
|
+
position.getY(first),
|
|
60
|
+
position.getZ(first),
|
|
61
|
+
);
|
|
62
|
+
normal.setXYZ(
|
|
63
|
+
last,
|
|
64
|
+
normal.getX(first),
|
|
65
|
+
normal.getY(first),
|
|
66
|
+
normal.getZ(first),
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
position.needsUpdate = true;
|
|
70
|
+
normal.needsUpdate = true;
|
|
71
|
+
const origin: THREE.Vector3 = new THREE.Vector3();
|
|
72
|
+
const firstEdge: THREE.Vector3 = new THREE.Vector3();
|
|
73
|
+
const secondEdge: THREE.Vector3 = new THREE.Vector3();
|
|
74
|
+
|
|
75
|
+
// Validate the actual stored precision, since finite inputs can overflow or collapse.
|
|
76
|
+
for (let vertex: number = 0; vertex < position.count; vertex++) {
|
|
77
|
+
origin.fromBufferAttribute(position, vertex);
|
|
78
|
+
firstEdge.fromBufferAttribute(normal, vertex);
|
|
79
|
+
if (
|
|
80
|
+
!Number.isFinite(origin.x) ||
|
|
81
|
+
!Number.isFinite(origin.y) ||
|
|
82
|
+
!Number.isFinite(origin.z) ||
|
|
83
|
+
!Number.isFinite(firstEdge.x) ||
|
|
84
|
+
!Number.isFinite(firstEdge.y) ||
|
|
85
|
+
!Number.isFinite(firstEdge.z) ||
|
|
86
|
+
firstEdge.lengthSq() === 0
|
|
87
|
+
) {
|
|
88
|
+
geometry.dispose();
|
|
89
|
+
throw new Error(
|
|
90
|
+
"A closed sphere requires finite positions and nonzero finite normals at stored precision",
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const indices: THREE.BufferAttribute = geometry.index!;
|
|
95
|
+
|
|
96
|
+
// Float32 edge products and their squares fit in doubles even at subnormal scale.
|
|
97
|
+
for (let triangle: number = 0; triangle < indices.count; triangle += 3) {
|
|
98
|
+
origin.fromBufferAttribute(position, indices.getX(triangle));
|
|
99
|
+
firstEdge
|
|
100
|
+
.fromBufferAttribute(position, indices.getX(triangle + 1))
|
|
101
|
+
.sub(origin);
|
|
102
|
+
secondEdge
|
|
103
|
+
.fromBufferAttribute(position, indices.getX(triangle + 2))
|
|
104
|
+
.sub(origin);
|
|
105
|
+
if (firstEdge.cross(secondEdge).lengthSq() === 0) {
|
|
106
|
+
geometry.dispose();
|
|
107
|
+
throw new Error(
|
|
108
|
+
"A closed sphere requires nondegenerate triangles at stored precision",
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return geometry;
|
|
113
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Construct a native camera for a supplied horizontal metric pixel chart.
|
|
5
|
+
* Pixel centres use column+0.5,row+0.5. Image U projects cos(a) X + sin(a) Z;
|
|
6
|
+
* image V projects negative Y, with pitch in metres per pixel and principal
|
|
7
|
+
* point in pixel-edge coordinates. No image distortion, pose estimation or
|
|
8
|
+
* resizing is performed. Distance and near/far only select orthographic depth
|
|
9
|
+
* admission; image scale is supplied independently by pitch. Native projection
|
|
10
|
+
* and inverse matrices must remain finite and nonsingular at the supplied gauge.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/implementation.md#principled-implementation Native frustum bounds are calibrated pixel-edge limits in metres; right is (cos(a),0,sin(a)), up is +Y and position lies on their cross product. Native rotation about Y and updateProjectionMatrix preserve the supplied affine projection without a custom override or distance-dependent lookAt normalization.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This generic viewer owner maps one explicit metric chart to native Three camera fields while inverse geometry fitting and image acquisition remain independent.
|
|
14
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No approximate perspective lens, guessed focal length, altered principal point, image resampling, source-dependent pose or native method replacement is used.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives pixel centres/edges, world/image signs, metre pitch, principal point, horizontal restriction and the separate role of orthographic depth limits.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of trigonometric, scalar and native matrix operations constructs one camera independent of image pixel population.
|
|
17
|
+
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each explicit chart gets its own mutable caller-owned native camera rather than a shared stale projection.
|
|
18
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources One CPU camera is returned without a renderer, GPU allocation, image buffer, listener, handle or global cache.
|
|
19
|
+
*/
|
|
20
|
+
export function createAutoMovieMetricOrthographicCamera(input: {
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
pixelPitchMeters: number;
|
|
24
|
+
principalPointPx: [number, number];
|
|
25
|
+
azimuthRadians: number;
|
|
26
|
+
distanceMeters: number;
|
|
27
|
+
nearMeters: number;
|
|
28
|
+
farMeters: number;
|
|
29
|
+
}): THREE.OrthographicCamera {
|
|
30
|
+
if (
|
|
31
|
+
!input ||
|
|
32
|
+
!Number.isSafeInteger(input.width) ||
|
|
33
|
+
input.width < 1 ||
|
|
34
|
+
!Number.isSafeInteger(input.height) ||
|
|
35
|
+
input.height < 1 ||
|
|
36
|
+
!Number.isFinite(input.pixelPitchMeters) ||
|
|
37
|
+
input.pixelPitchMeters <= 0 ||
|
|
38
|
+
!Array.isArray(input.principalPointPx) ||
|
|
39
|
+
input.principalPointPx.length !== 2 ||
|
|
40
|
+
!Number.isFinite(input.principalPointPx[0]) ||
|
|
41
|
+
!Number.isFinite(input.principalPointPx[1]) ||
|
|
42
|
+
!Number.isFinite(input.azimuthRadians) ||
|
|
43
|
+
!Number.isFinite(input.distanceMeters) ||
|
|
44
|
+
input.distanceMeters <= 0 ||
|
|
45
|
+
!Number.isFinite(input.nearMeters) ||
|
|
46
|
+
!Number.isFinite(input.farMeters) ||
|
|
47
|
+
input.nearMeters <= 0 ||
|
|
48
|
+
input.farMeters <= input.nearMeters
|
|
49
|
+
)
|
|
50
|
+
throw new Error(
|
|
51
|
+
"A finite horizontal metric pixel chart and positive ordered depth limits are required",
|
|
52
|
+
);
|
|
53
|
+
const left: number = -input.principalPointPx[0] * input.pixelPitchMeters;
|
|
54
|
+
const right: number =
|
|
55
|
+
(input.width - input.principalPointPx[0]) * input.pixelPitchMeters;
|
|
56
|
+
const top: number = input.principalPointPx[1] * input.pixelPitchMeters;
|
|
57
|
+
const bottom: number =
|
|
58
|
+
(input.principalPointPx[1] - input.height) * input.pixelPitchMeters;
|
|
59
|
+
if (
|
|
60
|
+
![left, right, top, bottom].every(Number.isFinite) ||
|
|
61
|
+
!(left < right) ||
|
|
62
|
+
!(bottom < top)
|
|
63
|
+
)
|
|
64
|
+
throw new Error(
|
|
65
|
+
"Metric orthographic frustum exceeds finite representable chart limits",
|
|
66
|
+
);
|
|
67
|
+
const camera: THREE.OrthographicCamera = new THREE.OrthographicCamera(
|
|
68
|
+
left,
|
|
69
|
+
right,
|
|
70
|
+
top,
|
|
71
|
+
bottom,
|
|
72
|
+
input.nearMeters,
|
|
73
|
+
input.farMeters,
|
|
74
|
+
);
|
|
75
|
+
camera.position.set(
|
|
76
|
+
-Math.sin(input.azimuthRadians) * input.distanceMeters,
|
|
77
|
+
0,
|
|
78
|
+
Math.cos(input.azimuthRadians) * input.distanceMeters,
|
|
79
|
+
);
|
|
80
|
+
camera.up.set(0, 1, 0);
|
|
81
|
+
camera.rotation.y = -input.azimuthRadians;
|
|
82
|
+
camera.updateMatrixWorld(true);
|
|
83
|
+
camera.updateProjectionMatrix();
|
|
84
|
+
if (
|
|
85
|
+
!camera.projectionMatrix.elements.every(Number.isFinite) ||
|
|
86
|
+
!camera.matrixWorld.elements.every(Number.isFinite) ||
|
|
87
|
+
!camera.matrixWorldInverse.elements.every(Number.isFinite) ||
|
|
88
|
+
!camera.projectionMatrixInverse.elements.every(Number.isFinite) ||
|
|
89
|
+
camera.projectionMatrix.determinant() === 0
|
|
90
|
+
)
|
|
91
|
+
throw new Error(
|
|
92
|
+
"Metric orthographic native projection or inverse is nonfinite or singular",
|
|
93
|
+
);
|
|
94
|
+
return camera;
|
|
95
|
+
}
|