@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,90 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { collectAutoMovieRenderModeMeshes } from "./collectAutoMovieRenderModeMeshes.js";
|
|
3
|
+
import { applyDualQuaternionSkinning, dualQuaternionSkinningOf, } from "./dualQuaternionSkinning/index.js";
|
|
4
|
+
import { applyFormationCycleMaterial, formationCycleOf, } from "./formationCycle/index.js";
|
|
5
|
+
import { guardAutoMovieRenderModeRetirement } from "./guardAutoMovieRenderModeRetirement.js";
|
|
6
|
+
import { maskColor } from "./maskColor.js";
|
|
7
|
+
import { restoreAutoMovieRenderModeOnce } from "./restoreAutoMovieRenderModeOnce.js";
|
|
8
|
+
import { restoreAutoMovieRenderModeState } from "./restoreAutoMovieRenderModeState.js";
|
|
9
|
+
/**
|
|
10
|
+
* Per-top-level-node flat colors on a black background.
|
|
11
|
+
*
|
|
12
|
+
* This legacy palette records top-level child position, so inserting a child
|
|
13
|
+
* changes later identities. A semantic-palette host uses applySemanticMaskMode.
|
|
14
|
+
* Returned restore returns original materials/background and retires overrides.
|
|
15
|
+
* Active or failed scene retirement refuses before setup; failed restore keeps
|
|
16
|
+
* its original-material snapshots, owned overrides and cause reachable.
|
|
17
|
+
*
|
|
18
|
+
* @evidence contracts/development/implementation.md#principled-implementation Colors each mesh-bearing top-level subtree by its current child index and uses a distinct override per actual deformation cycle and skinning method; black background and unlit material expose positional coverage, not stable entity identity, and palette repetition limits large-child distinction.
|
|
19
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns legacy positional mask assignment and reversible material bookkeeping; semantic identity masks have their own explicit palette owner rather than being inferred from scene positions here.
|
|
20
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Index palette is the documented legacy convention, not a fixture-key branch; all collected meshes use actual source/cycle identity and no foreign method is replaced or existing material disposed.
|
|
21
|
+
* @evidence contracts/development/common.md#meaningful-documentation States positional versus semantic identity, black background and restore ownership; cycle- and skinning-method-specific sharing preserves animated and dual-quaternion vertex behavior without changing the child's assigned color.
|
|
22
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Collects meshes in each top-level subtree and assigns O(M) references with one material per subtree/cycle/skinning-method identity; temporary originals are O(M), materials O(C), and no material is allocated for an empty subtree.
|
|
23
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shares a material among meshes under the same child, exact cycle identity and skinning method, because child color, cycle uniforms and the skinning patch jointly determine equivalence; different children/pass installs keep independent colors/restoration.
|
|
24
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows original materials/background and owns temporary override materials until memoized restore, which independently restores references and disposes all overrides; construction failure partway through assignment has no outer rollback here.
|
|
25
|
+
*/
|
|
26
|
+
export const applyMaskMode = (scene) => {
|
|
27
|
+
guardAutoMovieRenderModeRetirement(scene);
|
|
28
|
+
const background = scene.background;
|
|
29
|
+
scene.background = new THREE.Color(0x000000);
|
|
30
|
+
const originals = [];
|
|
31
|
+
const created = [];
|
|
32
|
+
scene.children.forEach((child, index) => {
|
|
33
|
+
const meshes = collectAutoMovieRenderModeMeshes(child);
|
|
34
|
+
// Create only for mesh-bearing children (a camera/light child would leak
|
|
35
|
+
// an unassigned material); the palette index stays the CHILD index, so the
|
|
36
|
+
// deterministic node→color mapping is unchanged.
|
|
37
|
+
if (meshes.length === 0)
|
|
38
|
+
return;
|
|
39
|
+
// One child can hold several formation tiers, each deforming by its own
|
|
40
|
+
// baked table, so the flat color is shared by cycle rather than by child.
|
|
41
|
+
// The color is still the child's: a segmentation pass keeps naming nodes,
|
|
42
|
+
// and only the vertex stage differs between the materials under one node.
|
|
43
|
+
// A dual-quaternion skin deforms in its own vertex stage as well, so
|
|
44
|
+
// the skinning method splits the material beside the cycle.
|
|
45
|
+
const materials = new Map();
|
|
46
|
+
for (const mesh of meshes) {
|
|
47
|
+
const cycle = formationCycleOf(mesh);
|
|
48
|
+
const dual = dualQuaternionSkinningOf(mesh);
|
|
49
|
+
let byMethod = materials.get(cycle);
|
|
50
|
+
if (byMethod === undefined) {
|
|
51
|
+
byMethod = new Map();
|
|
52
|
+
materials.set(cycle, byMethod);
|
|
53
|
+
}
|
|
54
|
+
let material = byMethod.get(dual);
|
|
55
|
+
if (material === undefined) {
|
|
56
|
+
material = new THREE.MeshBasicMaterial({ color: maskColor(index) });
|
|
57
|
+
if (cycle !== null)
|
|
58
|
+
applyFormationCycleMaterial(material, cycle);
|
|
59
|
+
if (dual)
|
|
60
|
+
applyDualQuaternionSkinning(material);
|
|
61
|
+
byMethod.set(dual, material);
|
|
62
|
+
created.push(material);
|
|
63
|
+
}
|
|
64
|
+
originals.push({ mesh, material: mesh.material });
|
|
65
|
+
mesh.material = material;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
return {
|
|
69
|
+
mode: "mask",
|
|
70
|
+
semantic: null,
|
|
71
|
+
restore: restoreAutoMovieRenderModeOnce(() => {
|
|
72
|
+
guardAutoMovieRenderModeRetirement(scene, {
|
|
73
|
+
run: () => {
|
|
74
|
+
restoreAutoMovieRenderModeState([
|
|
75
|
+
...originals.map(({ mesh, material, }) => () => {
|
|
76
|
+
mesh.material = material;
|
|
77
|
+
}),
|
|
78
|
+
...created.map((material) => () => {
|
|
79
|
+
material.dispose();
|
|
80
|
+
}),
|
|
81
|
+
() => {
|
|
82
|
+
scene.background = background;
|
|
83
|
+
},
|
|
84
|
+
]);
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
}),
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=applyMaskMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyMaskMode.js","sourceRoot":"","sources":["../src/applyMaskMode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EACL,2BAA2B,EAC3B,wBAAwB,GACzB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,2BAA2B,EAC3B,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEvF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,aAAa,GAEQ,CAChC,KAAkB,EACU,EAAE;IAC9B,kCAAkC,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,UAAU,GAGL,KAAK,CAAC,UAAU,CAAC;IAC5B,KAAK,CAAC,UAAU,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,SAAS,GAGV,EAAE,CAAC;IACR,MAAM,OAAO,GAAqB,EAAE,CAAC;IACrC,KAAK,CAAC,QAAQ,CAAC,OAAO,CACpB,CAAC,KAA6C,EAAE,KAAa,EAAQ,EAAE;QACrE,MAAM,MAAM,GACV,gCAAgC,CAAC,KAAK,CAAC,CAAC;QAC1C,yEAAyE;QACzE,2EAA2E;QAC3E,iDAAiD;QACjD,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO;QAChC,wEAAwE;QACxE,0EAA0E;QAC1E,0EAA0E;QAC1E,0EAA0E;QAC1E,qEAAqE;QACrE,4DAA4D;QAC5D,MAAM,SAAS,GAGX,IAAI,GAAG,EAGR,CAAC;QACJ,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE,CAAC;YAC1B,MAAM,KAAK,GAAoC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YACtE,MAAM,IAAI,GAAY,wBAAwB,CAAC,IAAI,CAAC,CAAC;YACrD,IAAI,QAAQ,GACV,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACvB,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC3B,QAAQ,GAAG,IAAI,GAAG,EAA2B,CAAC;gBAC9C,SAAS,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;YACjC,CAAC;YACD,IAAI,QAAQ,GACV,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACrB,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC3B,QAAQ,GAAG,IAAI,KAAK,CAAC,iBAAiB,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;gBACpE,IAAI,KAAK,KAAK,IAAI;oBAAE,2BAA2B,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;gBACjE,IAAI,IAAI;oBAAE,2BAA2B,CAAC,QAAQ,CAAC,CAAC;gBAChD,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;gBAC7B,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YACzB,CAAC;YACD,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;YAClD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC3B,CAAC;IACH,CAAC,CACF,CAAC;IACF,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,8BAA8B,CAAC,GAAS,EAAE;YACjD,kCAAkC,CAAC,KAAK,EAAE;gBACxC,GAAG,EAAE,GAAS,EAAE;oBACd,+BAA+B,CAAC;wBAC9B,GAAG,SAAS,CAAC,GAAG,CACd,CAAC,EACC,IAAI,EACJ,QAAQ,GAIT,EAAgB,EAAE,CACjB,GAAS,EAAE;4BACT,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;wBAC3B,CAAC,CACJ;wBACD,GAAG,OAAO,CAAC,GAAG,CACZ,CAAC,QAAwB,EAAgB,EAAE,CACzC,GAAS,EAAE;4BACT,QAAQ,CAAC,OAAO,EAAE,CAAC;wBACrB,CAAC,CACJ;wBACD,GAAS,EAAE;4BACT,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC;wBAChC,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;aACF,CAAC,CAAC;QACL,CAAC,CAAC;KACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Apply the captured registration list to one shader in order. The material's
|
|
3
|
+
* native compile hook supplies this shader before compilation; each operation
|
|
4
|
+
* observes its predecessor's source and uniforms. The same complete input
|
|
5
|
+
* object passes to each operation; this owner neither projects its fields nor
|
|
6
|
+
* substitutes renderer configuration or material lifetime state.
|
|
7
|
+
*
|
|
8
|
+
* An operation's exception propagates immediately. Earlier edits remain on
|
|
9
|
+
* the caller's object and later operations do not run; composition owns no
|
|
10
|
+
* rollback or copy of a native program.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/implementation.md#principled-implementation Sequentially invokes the registered operations on the same complete mutable shader input, preserving native fields and predecessor edits; operations must obey their own shader/key contract and a thrown operation propagates with earlier mutations intact.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns only ordered composition; patch-specific source edits and material hook/cache registration remain with their respective owners.
|
|
14
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Does not copy/project native fields, replace callbacks or repair operation failures; every registered operation is invoked by order without fixture filtering.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation States shared input identity, native-field preservation, registration order and nontransactional stop-on-throw behavior.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Visits P operations once with constant coordinator storage; dominant time is the sum of each patch's source/uniform editing work, with no redundant shader copy.
|
|
17
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the captured ordered list and same input object during one compilation; mutable shader effects are rerun for a new compile rather than sharing an already-edited foreign shader.
|
|
18
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows the list and shader only during the call, retains neither and launches no task; material/patch owners govern any resources captured by supplied operations.
|
|
19
|
+
*/
|
|
20
|
+
export declare const applyMaterialShaderPatches: <Shader>(patches: readonly {
|
|
21
|
+
apply: (shader: Shader) => void;
|
|
22
|
+
}[], shader: Shader) => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Apply the captured registration list to one shader in order. The material's
|
|
3
|
+
* native compile hook supplies this shader before compilation; each operation
|
|
4
|
+
* observes its predecessor's source and uniforms. The same complete input
|
|
5
|
+
* object passes to each operation; this owner neither projects its fields nor
|
|
6
|
+
* substitutes renderer configuration or material lifetime state.
|
|
7
|
+
*
|
|
8
|
+
* An operation's exception propagates immediately. Earlier edits remain on
|
|
9
|
+
* the caller's object and later operations do not run; composition owns no
|
|
10
|
+
* rollback or copy of a native program.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/implementation.md#principled-implementation Sequentially invokes the registered operations on the same complete mutable shader input, preserving native fields and predecessor edits; operations must obey their own shader/key contract and a thrown operation propagates with earlier mutations intact.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns only ordered composition; patch-specific source edits and material hook/cache registration remain with their respective owners.
|
|
14
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Does not copy/project native fields, replace callbacks or repair operation failures; every registered operation is invoked by order without fixture filtering.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation States shared input identity, native-field preservation, registration order and nontransactional stop-on-throw behavior.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Visits P operations once with constant coordinator storage; dominant time is the sum of each patch's source/uniform editing work, with no redundant shader copy.
|
|
17
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the captured ordered list and same input object during one compilation; mutable shader effects are rerun for a new compile rather than sharing an already-edited foreign shader.
|
|
18
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows the list and shader only during the call, retains neither and launches no task; material/patch owners govern any resources captured by supplied operations.
|
|
19
|
+
*/
|
|
20
|
+
export const applyMaterialShaderPatches = (patches, shader) => {
|
|
21
|
+
for (const patch of patches)
|
|
22
|
+
patch.apply(shader);
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=applyMaterialShaderPatches.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyMaterialShaderPatches.js","sourceRoot":"","sources":["../src/applyMaterialShaderPatches.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAG3B,CACV,OAAuD,EACvD,MAAc,EACR,EAAE;IACR,KAAK,MAAM,KAAK,IAAI,OAAO;QAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IAutoMovieClip } from "@automovie/interface";
|
|
2
|
+
import type * as THREE from "three";
|
|
3
|
+
/**
|
|
4
|
+
* Drive scene objects from a world-space node clip: a shot's `objectMotion` (a projectile's baked flight, a prop following a bone) or its `cameraMotion`. Sample the clip at `seconds` and write each node channel straight onto the `THREE.Object3D` that `resolve` returns for that node: translation, rotation and scale onto the object's local transform, `weights` onto the morph influences of every morphable mesh beneath it. A node with no object or a non-node channel is skipped. Light changes ride the shot's `lightMotions` through {@link applyLightMotion}; the artifact gate refuses pointer tracks on a transform clip.
|
|
5
|
+
*
|
|
6
|
+
* World-space clip values therefore require matching parent coordinates, or a host conversion before this writer; it does not invert parent matrices.
|
|
7
|
+
*
|
|
8
|
+
* The shared writer switches on all four current node paths, including morph
|
|
9
|
+
* weights (#1357). Its void-returning switch has no exhaustive-type assertion;
|
|
10
|
+
* adding a path to the interface still requires updating that writer.
|
|
11
|
+
*
|
|
12
|
+
* This is the render side of the engine's clip bakers ({@link compileLaunch},
|
|
13
|
+
* `compileAttach`, `cameraMove`): the object rides its clip each frame, no rig
|
|
14
|
+
* involved. Feeding a shot's `objectMotions` and `cameraMotion` through the
|
|
15
|
+
* same helper keeps every demo's projectile/prop/camera on one code path.
|
|
16
|
+
*
|
|
17
|
+
* Only channels the clip CARRIES are written: a channel absent from the current
|
|
18
|
+
* clip keeps the object's existing value, so a host that swaps clips mid-scene
|
|
19
|
+
* must restore staged bases itself (the engine's `resolveFrame` falls back to
|
|
20
|
+
* rest instead: it owns node rests; this helper does not).
|
|
21
|
+
*
|
|
22
|
+
* @evidence contracts/development/implementation.md#principled-implementation Uses the engine's sampleClip interpolation and applies its admitted node vectors to Three local transforms or indexed morph influences; clips must satisfy engine widths/quaternion conventions and the target parent frame must match their coordinates. Absent channels retain host state rather than restoring a rest pose.
|
|
23
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This single-clip entry delegates to the same sampled-channel writer as the sequence entry, so transform and morph semantics have one owner; it does not allocate or own a scene.
|
|
24
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Resolves each authored node id through the supplied scene lookup and skips unresolved/non-node channels by contract; no fixture ids, substituted methods or numeric compensations select behavior.
|
|
25
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents seconds, world-space clip intent, the four applied node paths, missing-node tolerance, unchanged absent channels and the shared writer's current exhaustiveness limitation.
|
|
26
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Sampling scans clip channels and their engine key lookup; writing is linear in sampled channels plus descendant meshes for each weights channel, with the engine sample table as request-local storage.
|
|
27
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the shared writer while sampling independently for the supplied clip/time; mutable scene targets and partial-channel effects make result caching unsafe here.
|
|
28
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows clip and resolved scene objects, retains no handles after the call and transfers no resource ownership; only temporary sample data and morph traversal callbacks are created.
|
|
29
|
+
*/
|
|
30
|
+
export declare const applyObjectMotion: (clip: IAutoMovieClip, seconds: number, resolve: (node: string) => THREE.Object3D | undefined) => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { sampleClip } from "@automovie/engine";
|
|
2
|
+
import { applySampledObjectMotion } from "./applySampledObjectMotion.js";
|
|
3
|
+
/**
|
|
4
|
+
* Drive scene objects from a world-space node clip: a shot's `objectMotion` (a projectile's baked flight, a prop following a bone) or its `cameraMotion`. Sample the clip at `seconds` and write each node channel straight onto the `THREE.Object3D` that `resolve` returns for that node: translation, rotation and scale onto the object's local transform, `weights` onto the morph influences of every morphable mesh beneath it. A node with no object or a non-node channel is skipped. Light changes ride the shot's `lightMotions` through {@link applyLightMotion}; the artifact gate refuses pointer tracks on a transform clip.
|
|
5
|
+
*
|
|
6
|
+
* World-space clip values therefore require matching parent coordinates, or a host conversion before this writer; it does not invert parent matrices.
|
|
7
|
+
*
|
|
8
|
+
* The shared writer switches on all four current node paths, including morph
|
|
9
|
+
* weights (#1357). Its void-returning switch has no exhaustive-type assertion;
|
|
10
|
+
* adding a path to the interface still requires updating that writer.
|
|
11
|
+
*
|
|
12
|
+
* This is the render side of the engine's clip bakers ({@link compileLaunch},
|
|
13
|
+
* `compileAttach`, `cameraMove`): the object rides its clip each frame, no rig
|
|
14
|
+
* involved. Feeding a shot's `objectMotions` and `cameraMotion` through the
|
|
15
|
+
* same helper keeps every demo's projectile/prop/camera on one code path.
|
|
16
|
+
*
|
|
17
|
+
* Only channels the clip CARRIES are written: a channel absent from the current
|
|
18
|
+
* clip keeps the object's existing value, so a host that swaps clips mid-scene
|
|
19
|
+
* must restore staged bases itself (the engine's `resolveFrame` falls back to
|
|
20
|
+
* rest instead: it owns node rests; this helper does not).
|
|
21
|
+
*
|
|
22
|
+
* @evidence contracts/development/implementation.md#principled-implementation Uses the engine's sampleClip interpolation and applies its admitted node vectors to Three local transforms or indexed morph influences; clips must satisfy engine widths/quaternion conventions and the target parent frame must match their coordinates. Absent channels retain host state rather than restoring a rest pose.
|
|
23
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This single-clip entry delegates to the same sampled-channel writer as the sequence entry, so transform and morph semantics have one owner; it does not allocate or own a scene.
|
|
24
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Resolves each authored node id through the supplied scene lookup and skips unresolved/non-node channels by contract; no fixture ids, substituted methods or numeric compensations select behavior.
|
|
25
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents seconds, world-space clip intent, the four applied node paths, missing-node tolerance, unchanged absent channels and the shared writer's current exhaustiveness limitation.
|
|
26
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Sampling scans clip channels and their engine key lookup; writing is linear in sampled channels plus descendant meshes for each weights channel, with the engine sample table as request-local storage.
|
|
27
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the shared writer while sampling independently for the supplied clip/time; mutable scene targets and partial-channel effects make result caching unsafe here.
|
|
28
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows clip and resolved scene objects, retains no handles after the call and transfers no resource ownership; only temporary sample data and morph traversal callbacks are created.
|
|
29
|
+
*/
|
|
30
|
+
export const applyObjectMotion = (clip, seconds, resolve) => {
|
|
31
|
+
applySampledObjectMotion(sampleClip(clip, seconds), resolve);
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=applyObjectMotion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyObjectMotion.js","sourceRoot":"","sources":["../src/applyObjectMotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAIlB,CACV,IAAoB,EACpB,OAAe,EACf,OAAqD,EAC/C,EAAE;IACR,wBAAwB,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AAC/D,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { IAutoMovieClip } from "@automovie/interface";
|
|
2
|
+
import type * as THREE from "three";
|
|
3
|
+
/**
|
|
4
|
+
* Apply a shot's object clips under the engine's per-channel authority rule. A future-only channel writes nothing. As with {@link applyObjectMotion}, a stateful host must restore staged bases before each seek/frame when no active authority should leave the staged value visible. Samples write parent-local transform fields, so their coordinate frame must match each resolved target.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation Samples the supplied sequence through the engine's per-channel authority rule, then applies only authoritative node channels to matching parent-local target coordinates; seconds and clip content use the engine convention, and future-only channels leave scene state untouched.
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Sequence authority belongs to sampleClipSequence and scene mutation belongs to applySampledObjectMotion; this adapter connects those existing owners without another frame or scene representation.
|
|
8
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses the actual clip sequence, time and resolver without node-name exceptions or replacement methods; skipped future authority is the engine rule rather than a hidden fallback clip.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the per-channel authority rule, future-only behavior and the host's responsibility to restore staged bases when seeking between partially authored clips.
|
|
10
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Engine sequence sampling visits candidate clip channels and resolves active authority; writing visits the authoritative table and descendant meshes for weights, retaining one temporary sample table rather than applying every candidate clip.
|
|
11
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shares the mutation writer with the single-clip entry; sequence samples are not cached because clips, time and mutable target state jointly determine this effectful call.
|
|
12
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows clips and resolved objects only for this invocation; stores no cross-frame state, running tasks or GPU handles and lets temporary sample data become unreachable on return or throw.
|
|
13
|
+
*/
|
|
14
|
+
export declare const applyObjectMotions: (clips: readonly IAutoMovieClip[], seconds: number, resolve: (node: string) => THREE.Object3D | undefined) => void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sampleClipSequence } from "@automovie/engine";
|
|
2
|
+
import { applySampledObjectMotion } from "./applySampledObjectMotion.js";
|
|
3
|
+
/**
|
|
4
|
+
* Apply a shot's object clips under the engine's per-channel authority rule. A future-only channel writes nothing. As with {@link applyObjectMotion}, a stateful host must restore staged bases before each seek/frame when no active authority should leave the staged value visible. Samples write parent-local transform fields, so their coordinate frame must match each resolved target.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation Samples the supplied sequence through the engine's per-channel authority rule, then applies only authoritative node channels to matching parent-local target coordinates; seconds and clip content use the engine convention, and future-only channels leave scene state untouched.
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Sequence authority belongs to sampleClipSequence and scene mutation belongs to applySampledObjectMotion; this adapter connects those existing owners without another frame or scene representation.
|
|
8
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses the actual clip sequence, time and resolver without node-name exceptions or replacement methods; skipped future authority is the engine rule rather than a hidden fallback clip.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the per-channel authority rule, future-only behavior and the host's responsibility to restore staged bases when seeking between partially authored clips.
|
|
10
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Engine sequence sampling visits candidate clip channels and resolves active authority; writing visits the authoritative table and descendant meshes for weights, retaining one temporary sample table rather than applying every candidate clip.
|
|
11
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shares the mutation writer with the single-clip entry; sequence samples are not cached because clips, time and mutable target state jointly determine this effectful call.
|
|
12
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows clips and resolved objects only for this invocation; stores no cross-frame state, running tasks or GPU handles and lets temporary sample data become unreachable on return or throw.
|
|
13
|
+
*/
|
|
14
|
+
export const applyObjectMotions = (clips, seconds, resolve) => {
|
|
15
|
+
applySampledObjectMotion(sampleClipSequence(clips, seconds), resolve);
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=applyObjectMotions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyObjectMotions.js","sourceRoot":"","sources":["../src/applyObjectMotions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAIvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAInB,CACV,KAAgC,EAChC,OAAe,EACf,OAAqD,EAC/C,EAAE;IACR,wBAAwB,CAAC,kBAAkB,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC;AACxE,CAAC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IAutoMovieJointAxes, IAutoMovieRestFrame } from "@automovie/engine";
|
|
2
|
+
import { AutoMovieHumanoidBone, IAutoMoviePose, IAutoMovieSkeleton } from "@automovie/interface";
|
|
3
|
+
import type { IAutoMovieModelObject } from "./IAutoMovieModelObject.js";
|
|
4
|
+
/**
|
|
5
|
+
* Apply a {@link IAutoMoviePose} to a built model by running the engine's
|
|
6
|
+
* forward kinematics and writing each bone's local rotation onto the
|
|
7
|
+
* corresponding `THREE.Bone`. The pose's root transform (if any) is applied to
|
|
8
|
+
* the model root.
|
|
9
|
+
*
|
|
10
|
+
* The engine owns the math (semantic angles → quaternions), so the viewer only
|
|
11
|
+
* copies results onto `three.js` objects, keeping rendering a thin, swappable
|
|
12
|
+
* layer over the deterministic core.
|
|
13
|
+
*
|
|
14
|
+
* `restFrames` optionally reads each joint angle as **clinical** and maps it
|
|
15
|
+
* into the rig's rest-relative space before articulating (e.g. abduction 180
|
|
16
|
+
* raises either arm overhead regardless of side); omit it to treat the pose's
|
|
17
|
+
* angles as raw rig-space, the historical behaviour.
|
|
18
|
+
*
|
|
19
|
+
* Morph targets that `buildModel` recorded as pose-driven take the weights
|
|
20
|
+
* `resolveMorphTargetWeights` computes from the same pose, so a corrective
|
|
21
|
+
* follows every applied pose; expression-written targets are left alone.
|
|
22
|
+
* Every skinned mesh then starts a new pose revision
|
|
23
|
+
* ({@link invalidateAutoMovieSkinnedPose}), so its bounds and vertex queries
|
|
24
|
+
* follow the pose the shader draws.
|
|
25
|
+
*
|
|
26
|
+
* Returns the skeleton bones the FK resolved but the model's bone map does not
|
|
27
|
+
* carry (#1051). A deliberately partial imported map (a VRM without toes)
|
|
28
|
+
* reports its unmapped bones every call: the host compares against what it
|
|
29
|
+
* MEANT to map, so a typo in the bone map is distinguishable from an
|
|
30
|
+
* intentional gap instead of both silently not articulating.
|
|
31
|
+
*
|
|
32
|
+
* @evidence contracts/development/implementation.md#principled-implementation Delegates admitted semantic/clinical joint angles and skeleton/rest-axis conventions to engine forward kinematics, writes resolved local quaternions by humanoid bone id, writes engine-resolved driven morph weights by exact target name, then applies root translation/rotation with unit scale; unmapped bones are reported and null root resets to identity rather than retaining the last pose.
|
|
33
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Keeps pose and driver mathematics in resolvePose and resolveMorphTargetWeights and only copies their outputs into borrowed model bones, morph influences and root; caller-supplied partial bone mapping remains explicit instead of inventing missing joints.
|
|
34
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unit root scale is the engine rig convention, not a visual compensation; all mapped bones follow one FK result and missing bones are returned without fixture-specific tolerances or replaced solvers.
|
|
35
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives local bone write, driven morph weights, optional clinical rest frames, unmapped-bone report, root reset and intentionally ignored root scale.
|
|
36
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Visits the engine's resolved bone list once with map lookups and fixed quaternion writes, then traverses the model's O objects once to resolve each driven mesh's targets and once more to start the skinned meshes' pose revision in constant time each; dominant work is engine FK over the skeleton, with temporary resolved/skipped records proportional to bones rather than vertex count.
|
|
37
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the model's existing Bone objects and one engine FK implementation; different pose/skeleton/axes/rest frames require fresh resolution and target state is rewritten rather than cached.
|
|
38
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows model/skeleton/pose and retains no solver or bone collection after return; skipped ids transfer to the caller and no GPU allocation or task is acquired.
|
|
39
|
+
*/
|
|
40
|
+
export declare const applyPose: (target: IAutoMovieModelObject, pose: IAutoMoviePose, skeleton: IAutoMovieSkeleton, jointAxes?: Partial<Record<AutoMovieHumanoidBone, IAutoMovieJointAxes>>, restFrames?: Partial<Record<AutoMovieHumanoidBone, IAutoMovieRestFrame>>) => AutoMovieHumanoidBone[];
|
package/lib/applyPose.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { resolveMorphTargetWeights, resolvePose, } from "@automovie/engine";
|
|
2
|
+
import { applyTransform } from "./applyTransform.js";
|
|
3
|
+
import { invalidateAutoMovieSkinnedPose } from "./invalidateAutoMovieSkinnedPose.js";
|
|
4
|
+
import { morphTargetDriversOf } from "./morphTargetDriversOf.js";
|
|
5
|
+
/**
|
|
6
|
+
* Apply a {@link IAutoMoviePose} to a built model by running the engine's
|
|
7
|
+
* forward kinematics and writing each bone's local rotation onto the
|
|
8
|
+
* corresponding `THREE.Bone`. The pose's root transform (if any) is applied to
|
|
9
|
+
* the model root.
|
|
10
|
+
*
|
|
11
|
+
* The engine owns the math (semantic angles → quaternions), so the viewer only
|
|
12
|
+
* copies results onto `three.js` objects, keeping rendering a thin, swappable
|
|
13
|
+
* layer over the deterministic core.
|
|
14
|
+
*
|
|
15
|
+
* `restFrames` optionally reads each joint angle as **clinical** and maps it
|
|
16
|
+
* into the rig's rest-relative space before articulating (e.g. abduction 180
|
|
17
|
+
* raises either arm overhead regardless of side); omit it to treat the pose's
|
|
18
|
+
* angles as raw rig-space, the historical behaviour.
|
|
19
|
+
*
|
|
20
|
+
* Morph targets that `buildModel` recorded as pose-driven take the weights
|
|
21
|
+
* `resolveMorphTargetWeights` computes from the same pose, so a corrective
|
|
22
|
+
* follows every applied pose; expression-written targets are left alone.
|
|
23
|
+
* Every skinned mesh then starts a new pose revision
|
|
24
|
+
* ({@link invalidateAutoMovieSkinnedPose}), so its bounds and vertex queries
|
|
25
|
+
* follow the pose the shader draws.
|
|
26
|
+
*
|
|
27
|
+
* Returns the skeleton bones the FK resolved but the model's bone map does not
|
|
28
|
+
* carry (#1051). A deliberately partial imported map (a VRM without toes)
|
|
29
|
+
* reports its unmapped bones every call: the host compares against what it
|
|
30
|
+
* MEANT to map, so a typo in the bone map is distinguishable from an
|
|
31
|
+
* intentional gap instead of both silently not articulating.
|
|
32
|
+
*
|
|
33
|
+
* @evidence contracts/development/implementation.md#principled-implementation Delegates admitted semantic/clinical joint angles and skeleton/rest-axis conventions to engine forward kinematics, writes resolved local quaternions by humanoid bone id, writes engine-resolved driven morph weights by exact target name, then applies root translation/rotation with unit scale; unmapped bones are reported and null root resets to identity rather than retaining the last pose.
|
|
34
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Keeps pose and driver mathematics in resolvePose and resolveMorphTargetWeights and only copies their outputs into borrowed model bones, morph influences and root; caller-supplied partial bone mapping remains explicit instead of inventing missing joints.
|
|
35
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unit root scale is the engine rig convention, not a visual compensation; all mapped bones follow one FK result and missing bones are returned without fixture-specific tolerances or replaced solvers.
|
|
36
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives local bone write, driven morph weights, optional clinical rest frames, unmapped-bone report, root reset and intentionally ignored root scale.
|
|
37
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Visits the engine's resolved bone list once with map lookups and fixed quaternion writes, then traverses the model's O objects once to resolve each driven mesh's targets and once more to start the skinned meshes' pose revision in constant time each; dominant work is engine FK over the skeleton, with temporary resolved/skipped records proportional to bones rather than vertex count.
|
|
38
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses the model's existing Bone objects and one engine FK implementation; different pose/skeleton/axes/rest frames require fresh resolution and target state is rewritten rather than cached.
|
|
39
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows model/skeleton/pose and retains no solver or bone collection after return; skipped ids transfer to the caller and no GPU allocation or task is acquired.
|
|
40
|
+
*/
|
|
41
|
+
export const applyPose = (target, pose, skeleton, jointAxes, restFrames) => {
|
|
42
|
+
const skipped = [];
|
|
43
|
+
for (const r of resolvePose(pose, skeleton, jointAxes, restFrames)) {
|
|
44
|
+
const bone = target.bones.get(r.bone);
|
|
45
|
+
if (bone === undefined) {
|
|
46
|
+
skipped.push(r.bone);
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
bone.quaternion.set(r.localRotation.x, r.localRotation.y, r.localRotation.z, r.localRotation.w);
|
|
50
|
+
}
|
|
51
|
+
// Pose-driven morph targets follow the same pose, written beside the bones.
|
|
52
|
+
target.object.traverse((object) => {
|
|
53
|
+
const drivers = morphTargetDriversOf(object);
|
|
54
|
+
const mesh = object;
|
|
55
|
+
if (drivers === null ||
|
|
56
|
+
mesh.morphTargetDictionary === undefined ||
|
|
57
|
+
mesh.morphTargetInfluences === undefined)
|
|
58
|
+
return;
|
|
59
|
+
for (const [name, weight] of resolveMorphTargetWeights(drivers, pose)) {
|
|
60
|
+
const index = mesh.morphTargetDictionary[name];
|
|
61
|
+
if (index !== undefined)
|
|
62
|
+
mesh.morphTargetInfluences[index] = weight;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
// Bones and correctives moved: skinned bounds and vertex queries take a new
|
|
66
|
+
// pose revision, so culling, shadows and picking read this pose.
|
|
67
|
+
invalidateAutoMovieSkinnedPose(target.object);
|
|
68
|
+
// A null root means "at the node's staged base", the engine's convention
|
|
69
|
+
// (`resolvePose`/`animatedBaseAt` default it to identity, #1046). Keeping
|
|
70
|
+
// the previous pose's root here would strand the model at the LAST rooted
|
|
71
|
+
// pose (e.g. a walk's destination) when a gesture clip with null roots
|
|
72
|
+
// takes over. Root SCALE is dropped (#1052): the engine's FK ignores it,
|
|
73
|
+
// so a rendered root scale would be invisible to every validator that
|
|
74
|
+
// measured the pose. The rig convention is rotation + translation only.
|
|
75
|
+
const root = pose.root ?? IDENTITY_ROOT;
|
|
76
|
+
applyTransform(target.object, { ...root, scale: UNIT_SCALE });
|
|
77
|
+
return skipped;
|
|
78
|
+
};
|
|
79
|
+
const UNIT_SCALE = { x: 1, y: 1, z: 1 };
|
|
80
|
+
const IDENTITY_ROOT = {
|
|
81
|
+
translation: { x: 0, y: 0, z: 0 },
|
|
82
|
+
rotation: { x: 0, y: 0, z: 0, w: 1 },
|
|
83
|
+
scale: UNIT_SCALE,
|
|
84
|
+
};
|
|
85
|
+
//# sourceMappingURL=applyPose.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyPose.js","sourceRoot":"","sources":["../src/applyPose.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,yBAAyB,EACzB,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAW3B,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAM,CAAC,MAAM,SAAS,GAMS,CAC7B,MAA6B,EAC7B,IAAoB,EACpB,QAA4B,EAC5B,SAAuE,EACvE,UAAwE,EAC/C,EAAE;IAC3B,MAAM,OAAO,GAA4B,EAAE,CAAC;IAC5C,KAAK,MAAM,CAAC,IAAI,WAAW,CAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC,EAAE,CAAC;QACnE,MAAM,IAAI,GAA+B,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAClE,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;YACvB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YACrB,SAAS;QACX,CAAC;QACD,IAAI,CAAC,UAAU,CAAC,GAAG,CACjB,CAAC,CAAC,aAAa,CAAC,CAAC,EACjB,CAAC,CAAC,aAAa,CAAC,CAAC,EACjB,CAAC,CAAC,aAAa,CAAC,CAAC,EACjB,CAAC,CAAC,aAAa,CAAC,CAAC,CAClB,CAAC;IACJ,CAAC;IACD,4EAA4E;IAC5E,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAsB,EAAQ,EAAE;QACtD,MAAM,OAAO,GAEF,oBAAoB,CAAC,MAAM,CAAC,CAAC;QACxC,MAAM,IAAI,GAAe,MAAoB,CAAC;QAC9C,IACE,OAAO,KAAK,IAAI;YAChB,IAAI,CAAC,qBAAqB,KAAK,SAAS;YACxC,IAAI,CAAC,qBAAqB,KAAK,SAAS;YAExC,OAAO;QACT,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,yBAAyB,CAAC,OAAO,EAAE,IAAI,CAAC,EAAE,CAAC;YACtE,MAAM,KAAK,GAAuB,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;YACnE,IAAI,KAAK,KAAK,SAAS;gBAAE,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC;QACtE,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,4EAA4E;IAC5E,iEAAiE;IACjE,8BAA8B,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAE9C,yEAAyE;IACzE,0EAA0E;IAC1E,0EAA0E;IAC1E,uEAAuE;IACvE,yEAAyE;IACzE,sEAAsE;IACtE,wEAAwE;IACxE,MAAM,IAAI,GAAwB,IAAI,CAAC,IAAI,IAAI,aAAa,CAAC;IAC7D,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;IAC9D,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,UAAU,GAAwC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AAC7E,MAAM,aAAa,GAIf;IACF,WAAW,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;IACjC,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;IACpC,KAAK,EAAE,UAAU;CAClB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import type { IAutoMovieRenderModeHandle } from "./IAutoMovieRenderModeHandle.js";
|
|
3
|
+
/**
|
|
4
|
+
* Hide meshes and draw actual bone-to-child-bone segments over black.
|
|
5
|
+
*
|
|
6
|
+
* Uses current world transforms from the real scene Bone hierarchy. Anonymous
|
|
7
|
+
* instanced members without Bone objects have no pose overlay. Returned restore
|
|
8
|
+
* retires line geometry/material and restores exact prior mesh visibility.
|
|
9
|
+
* Active or failed scene retirement refuses before setup; failed restore keeps
|
|
10
|
+
* its overlay resources, prior visibility and original cause reachable.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/implementation.md#principled-implementation Updates world matrices and joins each actual child Bone to its immediate Bone parent in world metres, hiding source meshes; root bones and nonbone parents create no segment, and anonymous instanced populations have no scene-bone representation to draw.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Reads the existing pose graph rather than constructing a second skeleton or inferred anatomical connectivity; one shared line material and a named temporary group own this guide projection.
|
|
14
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual world positions and parent identities without authored fixture joints or replacement matrix methods; missing bone graph is a reported representation gap, not filled by a guessed pose.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation States mesh hiding, parent-child world-space segment interpretation, instanced-member omission and exact visibility/resource restore ownership.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Collects M meshes, updates/traverses O scene nodes and allocates B two-point line geometries plus one material for B parent-child bone links; CPU/storage are O(M+O+B) and no mesh vertex buffers are copied.
|
|
17
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses current scene world transforms and one line material during this snapshot; scene pose can change, so separate installations rebuild world-space segments instead of retaining a stale graph-only overlay.
|
|
18
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Owns the temporary group/line geometries/material until memoized restore; independent cleanup removes/disposes them and restores borrowed visibility/background. Partial construction failure before returning the handle has no outer rollback here.
|
|
19
|
+
*/
|
|
20
|
+
export declare const applyPoseMode: (scene: THREE.Scene) => IAutoMovieRenderModeHandle;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { POSE_OVERLAY_NAME } from "./POSE_OVERLAY_NAME.js";
|
|
3
|
+
import { collectAutoMovieRenderModeMeshes } from "./collectAutoMovieRenderModeMeshes.js";
|
|
4
|
+
import { guardAutoMovieRenderModeRetirement } from "./guardAutoMovieRenderModeRetirement.js";
|
|
5
|
+
import { restoreAutoMovieRenderModeOnce } from "./restoreAutoMovieRenderModeOnce.js";
|
|
6
|
+
import { restoreAutoMovieRenderModeState } from "./restoreAutoMovieRenderModeState.js";
|
|
7
|
+
/**
|
|
8
|
+
* Hide meshes and draw actual bone-to-child-bone segments over black.
|
|
9
|
+
*
|
|
10
|
+
* Uses current world transforms from the real scene Bone hierarchy. Anonymous
|
|
11
|
+
* instanced members without Bone objects have no pose overlay. Returned restore
|
|
12
|
+
* retires line geometry/material and restores exact prior mesh visibility.
|
|
13
|
+
* Active or failed scene retirement refuses before setup; failed restore keeps
|
|
14
|
+
* its overlay resources, prior visibility and original cause reachable.
|
|
15
|
+
*
|
|
16
|
+
* @evidence contracts/development/implementation.md#principled-implementation Updates world matrices and joins each actual child Bone to its immediate Bone parent in world metres, hiding source meshes; root bones and nonbone parents create no segment, and anonymous instanced populations have no scene-bone representation to draw.
|
|
17
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Reads the existing pose graph rather than constructing a second skeleton or inferred anatomical connectivity; one shared line material and a named temporary group own this guide projection.
|
|
18
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual world positions and parent identities without authored fixture joints or replacement matrix methods; missing bone graph is a reported representation gap, not filled by a guessed pose.
|
|
19
|
+
* @evidence contracts/development/common.md#meaningful-documentation States mesh hiding, parent-child world-space segment interpretation, instanced-member omission and exact visibility/resource restore ownership.
|
|
20
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Collects M meshes, updates/traverses O scene nodes and allocates B two-point line geometries plus one material for B parent-child bone links; CPU/storage are O(M+O+B) and no mesh vertex buffers are copied.
|
|
21
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses current scene world transforms and one line material during this snapshot; scene pose can change, so separate installations rebuild world-space segments instead of retaining a stale graph-only overlay.
|
|
22
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Owns the temporary group/line geometries/material until memoized restore; independent cleanup removes/disposes them and restores borrowed visibility/background. Partial construction failure before returning the handle has no outer rollback here.
|
|
23
|
+
*/
|
|
24
|
+
export const applyPoseMode = (scene) => {
|
|
25
|
+
guardAutoMovieRenderModeRetirement(scene);
|
|
26
|
+
const background = scene.background;
|
|
27
|
+
scene.background = new THREE.Color(0x000000);
|
|
28
|
+
const hidden = collectAutoMovieRenderModeMeshes(scene).map((mesh) => {
|
|
29
|
+
const visible = mesh.visible;
|
|
30
|
+
mesh.visible = false;
|
|
31
|
+
return { mesh, visible };
|
|
32
|
+
});
|
|
33
|
+
scene.updateWorldMatrix(true, true);
|
|
34
|
+
const overlay = new THREE.Group();
|
|
35
|
+
overlay.name = POSE_OVERLAY_NAME;
|
|
36
|
+
const material = new THREE.LineBasicMaterial({
|
|
37
|
+
color: 0xffffff,
|
|
38
|
+
});
|
|
39
|
+
scene.traverse((object) => {
|
|
40
|
+
const bone = object;
|
|
41
|
+
if (bone.isBone !== true)
|
|
42
|
+
return;
|
|
43
|
+
const parent = bone.parent;
|
|
44
|
+
if (parent === null || parent.isBone !== true)
|
|
45
|
+
return;
|
|
46
|
+
const from = new THREE.Vector3().setFromMatrixPosition(parent.matrixWorld);
|
|
47
|
+
const to = new THREE.Vector3().setFromMatrixPosition(bone.matrixWorld);
|
|
48
|
+
const geometry = new THREE.BufferGeometry().setFromPoints([from, to]);
|
|
49
|
+
overlay.add(new THREE.Line(geometry, material));
|
|
50
|
+
});
|
|
51
|
+
scene.add(overlay);
|
|
52
|
+
return {
|
|
53
|
+
mode: "pose",
|
|
54
|
+
semantic: null,
|
|
55
|
+
restore: restoreAutoMovieRenderModeOnce(() => {
|
|
56
|
+
guardAutoMovieRenderModeRetirement(scene, {
|
|
57
|
+
run: () => {
|
|
58
|
+
restoreAutoMovieRenderModeState([
|
|
59
|
+
() => {
|
|
60
|
+
scene.remove(overlay);
|
|
61
|
+
},
|
|
62
|
+
...overlay.children.map((child) => () => {
|
|
63
|
+
child.geometry.dispose();
|
|
64
|
+
}),
|
|
65
|
+
() => {
|
|
66
|
+
material.dispose();
|
|
67
|
+
},
|
|
68
|
+
...hidden.map(({ mesh, visible, }) => () => {
|
|
69
|
+
mesh.visible = visible;
|
|
70
|
+
}),
|
|
71
|
+
() => {
|
|
72
|
+
scene.background = background;
|
|
73
|
+
},
|
|
74
|
+
]);
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
}),
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=applyPoseMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyPoseMode.js","sourceRoot":"","sources":["../src/applyPoseMode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAEvF;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,MAAM,aAAa,GAEQ,CAChC,KAAkB,EACU,EAAE;IAC9B,kCAAkC,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,UAAU,GAGL,KAAK,CAAC,UAAU,CAAC;IAC5B,KAAK,CAAC,UAAU,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,MAAM,GACV,gCAAgC,CAAC,KAAK,CAAC,CAAC,GAAG,CACzC,CACE,IAA6B,EACwB,EAAE;QACvD,MAAM,OAAO,GAAY,IAAI,CAAC,OAAO,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAC3B,CAAC,CACF,CAAC;IAEJ,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpC,MAAM,OAAO,GAAwC,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;IACvE,OAAO,CAAC,IAAI,GAAG,iBAAiB,CAAC;IACjC,MAAM,QAAQ,GAA4B,IAAI,KAAK,CAAC,iBAAiB,CAAC;QACpE,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;IACH,KAAK,CAAC,QAAQ,CAAC,CAAC,MAA8C,EAAQ,EAAE;QACtE,MAAM,IAAI,GAAuC,MAAoB,CAAC;QACtE,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI;YAAE,OAAO;QACjC,MAAM,MAAM,GACV,IAAI,CAAC,MAA2B,CAAC;QACnC,IAAI,MAAM,KAAK,IAAI,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI;YAAE,OAAO;QACtD,MAAM,IAAI,GAAkB,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC,qBAAqB,CACnE,MAAM,CAAC,WAAW,CACnB,CAAC;QACF,MAAM,EAAE,GAAkB,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC,qBAAqB,CACjE,IAAI,CAAC,WAAW,CACjB,CAAC;QACF,MAAM,QAAQ,GAGV,IAAI,KAAK,CAAC,cAAc,EAAE,CAAC,aAAa,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QACzD,OAAO,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IAClD,CAAC,CAAC,CAAC;IACH,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAEnB,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,8BAA8B,CAAC,GAAS,EAAE;YACjD,kCAAkC,CAAC,KAAK,EAAE;gBACxC,GAAG,EAAE,GAAS,EAAE;oBACd,+BAA+B,CAAC;wBAC9B,GAAS,EAAE;4BACT,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;wBACxB,CAAC;wBACD,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CACrB,CAAC,KAAqB,EAAgB,EAAE,CACtC,GAAS,EAAE;4BACR,KAAoB,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;wBAC3C,CAAC,CACJ;wBACD,GAAS,EAAE;4BACT,QAAQ,CAAC,OAAO,EAAE,CAAC;wBACrB,CAAC;wBACD,GAAG,MAAM,CAAC,GAAG,CACX,CAAC,EACC,IAAI,EACJ,OAAO,GAIR,EAAgB,EAAE,CACjB,GAAS,EAAE;4BACT,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;wBACzB,CAAC,CACJ;wBACD,GAAS,EAAE;4BACT,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC;wBAChC,CAAC;qBACF,CAAC,CAAC;gBACL,CAAC;aACF,CAAC,CAAC;QACL,CAAC,CAAC;KACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { AutoMovieGuidePass } from "@automovie/interface";
|
|
2
|
+
import * as THREE from "three";
|
|
3
|
+
import type { IAutoMovieRenderModeHandle } from "./IAutoMovieRenderModeHandle.js";
|
|
4
|
+
/**
|
|
5
|
+
* Apply one diffusion-guide render mode to a built scene, returning the restore
|
|
6
|
+
* handle. The override is applied at snapshot time and reversed right after, so
|
|
7
|
+
* the viewer stays a thin projection of the engine result:
|
|
8
|
+
*
|
|
9
|
+
* - `beauty`: no override (the ordinary shaded render).
|
|
10
|
+
* - `depth`: meshes use clamp(1-viewZ/range,0,1) with camera-space depth and a shared {@link DEPTH_NORMALIZATION_RANGE}, independent of near/far normalization. Camera changes can change a world point's viewZ; black is the far-range/background convention.
|
|
11
|
+
* - `mask`: the segmentation pass. A scene handed its palette by
|
|
12
|
+
* {@link attachAutoMovieSemanticMask} is painted by
|
|
13
|
+
* {@link applyAutoMovieSemanticMask}, so every colour is the one that entity's
|
|
14
|
+
* own semantic id earned and survives a rebuild in a different order. A scene
|
|
15
|
+
* handed none keeps the legacy ramp, where each top-level child gets a flat
|
|
16
|
+
* unlit colour by its index: readable as coverage and silhouette, never as
|
|
17
|
+
* identity, because inserting one node repaints everything after it.
|
|
18
|
+
* - `normal`: every mesh swapped to `MeshNormalMaterial`: the unlit
|
|
19
|
+
* surface-normal conditioning pass (#1166).
|
|
20
|
+
* - `outline`: black fills plus inverted-hull back-face shells extruded by {@link EDGE_WIDTH} in model space, leaving white contours on black. Object/instance scaling and camera projection affect world thickness and screen line weight.
|
|
21
|
+
* - `pose`: meshes hidden, and a line-segment overlay of every bone→child bone
|
|
22
|
+
* connection drawn over a black background: the skeleton pose pass.
|
|
23
|
+
*
|
|
24
|
+
* Every pass that swaps a material carries a formation's baked cycle onto the
|
|
25
|
+
* replacement, so a marching crowd marches in `depth`, `normal`, `mask` and
|
|
26
|
+
* `outline` exactly as it does in `beauty`. `pose` is the standing exception:
|
|
27
|
+
* an anonymous member has no bones in the scene for the overlay to draw, which
|
|
28
|
+
* is the same gap it had before the crowd could move at all.
|
|
29
|
+
*
|
|
30
|
+
* An unknown mode is a caller bug and throws.
|
|
31
|
+
* Active or failed scene retirement refuses every mode before setup, including
|
|
32
|
+
* beauty. Failed restoration retains its complete owner callback and cause;
|
|
33
|
+
* nested owned cleanup still runs independently beneath the active boundary.
|
|
34
|
+
*
|
|
35
|
+
* Direct embedders can override depthRange and edgeWidth. The bundled __afPass capture path uses the defaults, keeping the camera-space depth normalization consistent while preserving differences caused by camera pose. Depth beyond the default range clamps to black; changing that range requires a direct call.
|
|
36
|
+
*
|
|
37
|
+
* @evidence contracts/development/implementation.md#principled-implementation Selects the requested supported guide projection, excludes existing nonmesh beauty renderables, suspends fog/image lighting and returns a reversible handle; uses attached semantic masks when present and documented positional fallback otherwise. Depth/edge numeric options remain caller premises and anonymous instanced members have no bone graph for the pose overlay.
|
|
38
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This boundary owns temporary scene atmosphere/helper suspension and mode dispatch; each builder owns its pass resources and the shared restore coordinator attempts independent release without hiding failure.
|
|
39
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Resolves an unknown mode before mutation and restores boundary suspensions if its builder throws; default range/width and legacy mask are explicit supported conventions, not fixture branches or substitute foreign methods. Builder-internal partial mutations are not automatically undone by boundary suspension cleanup.
|
|
40
|
+
* @evidence contracts/development/common.md#meaningful-documentation Explains all six modes, semantic/legacy mask distinction, frame-independent depth default, outline extrusion, pose population gap, caller options and the returned restoration obligation.
|
|
41
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Structural installation traverses scene helpers plus builder mesh/bone populations; the generic override allocates per mesh, legacy masks/shells share by their declared child/cycle keys, and pose/outline overlays scale with the subject graph. Healthy beauty returns a constant no-op handle.
|
|
42
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the same mode builders for embedded/capture paths and builder-local equivalent materials; independent installs require separate original-state snapshots, so no scene/mode-only cached restoration is shared.
|
|
43
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Three boundary callbacks retain helper visibility, fog and environment/background snapshots; builders nest their own background transitions and own pass resources. Failed returned-handle restoration retains the complete boundary callback and cause under the scene guard. Builder throw still independently restores boundary snapshots with its primary error, while partial acquisition depends on that builder's rollback capability.
|
|
44
|
+
*/
|
|
45
|
+
export declare const applyRenderMode: (scene: THREE.Scene, mode: AutoMovieGuidePass, options?: {
|
|
46
|
+
depthRange?: number;
|
|
47
|
+
edgeWidth?: number;
|
|
48
|
+
}) => IAutoMovieRenderModeHandle;
|