@automovie/viewer 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +140 -0
- package/lib/index.js +141 -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/raster/AutoMovieRasterLighting.d.ts +43 -0
- package/lib/raster/AutoMovieRasterLighting.js +179 -0
- package/lib/raster/AutoMovieRasterLighting.js.map +1 -0
- package/lib/raster/AutoMovieRasterSheet.d.ts +68 -0
- package/lib/raster/AutoMovieRasterSheet.js +141 -0
- package/lib/raster/AutoMovieRasterSheet.js.map +1 -0
- package/lib/raster/AutoMovieRasterTarget.d.ts +87 -0
- package/lib/raster/AutoMovieRasterTarget.js +227 -0
- package/lib/raster/AutoMovieRasterTarget.js.map +1 -0
- package/lib/raster/IAutoMovieSceneRaster.d.ts +52 -0
- package/lib/raster/IAutoMovieSceneRaster.js +2 -0
- package/lib/raster/IAutoMovieSceneRaster.js.map +1 -0
- package/lib/raster/IRasterizeAutoMovieSceneProps.d.ts +28 -0
- package/lib/raster/IRasterizeAutoMovieSceneProps.js +2 -0
- package/lib/raster/IRasterizeAutoMovieSceneProps.js.map +1 -0
- package/lib/raster/encodeAutoMovieRasterPng.d.ts +17 -0
- package/lib/raster/encodeAutoMovieRasterPng.js +71 -0
- package/lib/raster/encodeAutoMovieRasterPng.js.map +1 -0
- package/lib/raster/index.d.ts +8 -0
- package/lib/raster/index.js +9 -0
- package/lib/raster/index.js.map +1 -0
- package/lib/raster/rasterizeAutoMovieScene.d.ts +33 -0
- package/lib/raster/rasterizeAutoMovieScene.js +409 -0
- package/lib/raster/rasterizeAutoMovieScene.js.map +1 -0
- package/lib/raster/stampAutoMovieRasterLabel.d.ts +19 -0
- package/lib/raster/stampAutoMovieRasterLabel.js +88 -0
- package/lib/raster/stampAutoMovieRasterLabel.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 +140 -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/raster/AutoMovieRasterLighting.ts +221 -0
- package/src/raster/AutoMovieRasterSheet.ts +175 -0
- package/src/raster/AutoMovieRasterTarget.ts +282 -0
- package/src/raster/IAutoMovieSceneRaster.ts +62 -0
- package/src/raster/IRasterizeAutoMovieSceneProps.ts +34 -0
- package/src/raster/encodeAutoMovieRasterPng.ts +77 -0
- package/src/raster/index.ts +8 -0
- package/src/raster/rasterizeAutoMovieScene.ts +594 -0
- package/src/raster/stampAutoMovieRasterLabel.ts +120 -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,39 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
import { DETAIL_NORMAL_TARGET } from "./DETAIL_NORMAL_TARGET.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Insert code into the tangent-space branch of three's normal-map chunk,
|
|
7
|
+
* just before the frame turns `mapN` into the normal, expanding the chunk
|
|
8
|
+
* first unless an earlier patch already did, so patches that bend the
|
|
9
|
+
* tangent-space normal compose in the order they run.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/implementation.md#principled-implementation Expands the installed native normal-map chunk when still included and inserts code immediately before its supported tangent-to-surface line, retaining that line for later ordered patches; exact pinned chunk/anchor compatibility is required and absence throws rather than silently applying a different projection.
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One insertion owner serves detail/relief normal operations and composes with an already-expanded shader, avoiding competing custom tangent-frame solvers.
|
|
13
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Reads the real installed ShaderChunk and exact supported projection marker rather than fixture shader text or a patched global chunk; no default-normal or different branch hides a missing compatibility boundary.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation Explains native expansion, preserved tangent boundary and ordered composition; the thrown error identifies the unsupported native projection point.
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed includes/replacements visit shader bytes linearly and expand one constant native chunk, O(source+injected-code) result storage; no mesh, texture or renderer traversal is performed.
|
|
16
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Detects and reuses prior native chunk expansion while retaining the target marker so successive distinct patches compose once in registration order; repeated identical patch insertion is not deduplicated by this primitive.
|
|
17
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Acquires no native shader/program/texture handle and retains no caller input; returned text owns only source bytes, with temporary expansion strings released after the call.
|
|
18
|
+
*/
|
|
19
|
+
export const spliceTangentNormal: (
|
|
20
|
+
fragmentShader: string,
|
|
21
|
+
code: string,
|
|
22
|
+
) => string = (fragmentShader: string, code: string): string => {
|
|
23
|
+
const expanded: string = fragmentShader.includes(
|
|
24
|
+
"#include <normal_fragment_maps>",
|
|
25
|
+
)
|
|
26
|
+
? fragmentShader.replace(
|
|
27
|
+
"#include <normal_fragment_maps>",
|
|
28
|
+
THREE.ShaderChunk.normal_fragment_maps,
|
|
29
|
+
)
|
|
30
|
+
: fragmentShader;
|
|
31
|
+
if (!expanded.includes(DETAIL_NORMAL_TARGET))
|
|
32
|
+
throw new Error(
|
|
33
|
+
"The normal-map chunk no longer has the tangent-space line normal blends splice into.",
|
|
34
|
+
);
|
|
35
|
+
return expanded.replace(
|
|
36
|
+
DETAIL_NORMAL_TARGET,
|
|
37
|
+
`${code}\n\t${DETAIL_NORMAL_TARGET}`,
|
|
38
|
+
);
|
|
39
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
import { AutoMovieDissolveCompositorState as states } from "./AutoMovieDissolveCompositorState.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Release renderer-owned dissolve copies and quad resources once. Success
|
|
7
|
+
* removes the entry so a later dissolve can acquire a fresh compositor; failure
|
|
8
|
+
* retains the closed owner and its original completion, refusing further draws.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Retires the actual renderer-keyed compositor before removing ownership; successful release permits a fresh later owner, while failed release retains its closed resource references and original disposal cause rather than producing false success on repetition.
|
|
11
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The WeakMap joins existing dissolve draw/release paths to one compositor; this boundary owns registry transfer and the class owns independent resource release/completion sharing.
|
|
12
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No native disposer is replaced, retried or treated as successful after throwing; absence means no registered owner, while real failed ownership remains observable to subsequent draw/release calls.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation States successful-entry removal, fresh later acquisition and failed closed-owner retention/refusal, distinguishing public completion from physical GPU retirement.
|
|
14
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Performs one WeakMap lookup, one fixed five-resource owner retirement and successful deletion, constant adapter work/storage independent of frames or raster dimensions.
|
|
15
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Repeated failed releases reuse the compositor's stored cause without native calls; repeated successful releases see no entry, and a later supported draw creates an independent fresh owner.
|
|
16
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Renderer-keyed WeakMap retains the failed compositor/resources only while the renderer key is reachable; successful release removes the entry after all public operations fulfill. This primitive neither disposes the renderer nor certifies its physical context lifetime.
|
|
17
|
+
*/
|
|
18
|
+
export const disposeCrossDissolve: (renderer: THREE.WebGLRenderer) => void = (
|
|
19
|
+
renderer: THREE.WebGLRenderer,
|
|
20
|
+
): void => {
|
|
21
|
+
const state: ReturnType<typeof states.get> = states.get(renderer);
|
|
22
|
+
if (state === undefined) return;
|
|
23
|
+
state.dispose();
|
|
24
|
+
states.delete(renderer);
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
import { AutoMovieFadeCompositorState as states } from "./AutoMovieFadeCompositorState.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Release one renderer's fade resources with the compositor's shared outcome.
|
|
7
|
+
* Only successful disposal removes its registry entry. A failed owner remains
|
|
8
|
+
* closed and retained until renderer lifetime ends; later draws cannot reopen it.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Calls the registered fade compositor's one-attempt retirement before WeakMap deletion; a throwing native listener leaves the closed owner/cause registered, so later release cannot report an absent-owner success or reallocate under uncertain lifetime.
|
|
11
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns fade registry transfer separately from the class's five-resource release, using the same renderer identity already consumed by the fade draw path.
|
|
12
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No failure is suppressed, cache entry prematurely erased or physical disposer retried; supported success/no-owner branches depend on actual owner state rather than a fixture renderer.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives successful removal, failed-owner closure/retention and later draw refusal instead of promising recovery by discarding an unresolved allocation owner.
|
|
14
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One renderer lookup and successful delete wrap the class's fixed resource list, constant CPU storage/time apart from those actual native listener operations.
|
|
15
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the class's memoized disposal outcome for repeats, and success allows later fade to create a separate lifetime; failure never becomes a fresh native retry or a fake quiet-cache completion.
|
|
16
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Successful compositor retirement relinquishes this WeakMap owner; failed resource/cause references remain reachable only with the renderer key, and host renderer/context release is still the separate physical lifetime boundary.
|
|
17
|
+
*/
|
|
18
|
+
export const disposeFadeToBlack: (renderer: THREE.WebGLRenderer) => void = (
|
|
19
|
+
renderer: THREE.WebGLRenderer,
|
|
20
|
+
): void => {
|
|
21
|
+
const state: ReturnType<typeof states.get> = states.get(renderer);
|
|
22
|
+
if (state === undefined) return;
|
|
23
|
+
state.dispose();
|
|
24
|
+
states.delete(renderer);
|
|
25
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
import type { IFormationTierRepresentation } from "./IFormationTierRepresentation.js";
|
|
4
|
+
import { reportAutoMovieResourceRetirement } from "./reportAutoMovieResourceRetirement.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Release owned tier geometry, material objects and every declared gait table.
|
|
8
|
+
* Host-owned promoted heroes and model input declarations are never disposed.
|
|
9
|
+
* Shared material identities are released once across the supplied tiers.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/implementation.md#principled-implementation Collects actual owned tier geometry, shadow handles, visible materials and every declared gait texture by native identity, then independently invokes each release; iterable tiers must represent resources this owner may retire, and physical GPU release is not certified by public listener completion.
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One tier retirement projection serves both constructor rollback and runtime close, with shadow-pair ownership delegated to its own independent disposer and no hero/input model disposal.
|
|
13
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No first throwing geometry/material can skip later resource roles, and shared identities are not retried within this attempt; callbacks are actual public disposers rather than replaced methods or synthetic success counters.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives all owned resource roles, all declared takes rather than active-only texture, shared identity dedup and borrowed-hero/input exclusions.
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Visits tier/material/take entries once to build identity Sets and then R unique resource operations, O(entries+R) time and O(R) temporary references independent of anonymous member count.
|
|
16
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work One attempt deduplicates shared geometry/material/shadow/texture objects; constructor and runtime callers reuse this implementation, while their lifetime owner must memoize completion rather than re-invoking this effectful primitive.
|
|
17
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Acquires no new GPU resource and borrows the tier collection only for snapshot/retirement; attempts every role before reporting failures, and the calling lifetime owner must retain failed/indeterminate handles until its supported physical boundary ends.
|
|
18
|
+
*/
|
|
19
|
+
export const disposeFormationRepresentations: (
|
|
20
|
+
representations: Iterable<IFormationTierRepresentation>,
|
|
21
|
+
) => void = (representations: Iterable<IFormationTierRepresentation>): void => {
|
|
22
|
+
const geometries: Set<THREE.BufferGeometry> = new Set<THREE.BufferGeometry>();
|
|
23
|
+
const shadows: Set<NonNullable<IFormationTierRepresentation["shadows"]>> =
|
|
24
|
+
new Set<NonNullable<IFormationTierRepresentation["shadows"]>>();
|
|
25
|
+
const materials: Set<THREE.Material> = new Set<THREE.Material>();
|
|
26
|
+
const textures: Set<THREE.Texture> = new Set<THREE.Texture>();
|
|
27
|
+
for (const representation of representations) {
|
|
28
|
+
geometries.add(representation.geometry);
|
|
29
|
+
for (const material of representation.materials) materials.add(material);
|
|
30
|
+
if (representation.shadows !== null) shadows.add(representation.shadows);
|
|
31
|
+
if (representation.cycle !== null)
|
|
32
|
+
for (const take of representation.cycle.takes.values())
|
|
33
|
+
textures.add(take.texture);
|
|
34
|
+
}
|
|
35
|
+
reportAutoMovieResourceRetirement([
|
|
36
|
+
...[...geometries].map(
|
|
37
|
+
(geometry: THREE.BufferGeometry): (() => void) =>
|
|
38
|
+
(): void =>
|
|
39
|
+
geometry.dispose(),
|
|
40
|
+
),
|
|
41
|
+
...[...shadows].map(
|
|
42
|
+
(
|
|
43
|
+
shadow: NonNullable<IFormationTierRepresentation["shadows"]>,
|
|
44
|
+
): (() => void) =>
|
|
45
|
+
(): void =>
|
|
46
|
+
shadow.dispose(),
|
|
47
|
+
),
|
|
48
|
+
...[...materials].map(
|
|
49
|
+
(material: THREE.Material): (() => void) =>
|
|
50
|
+
(): void =>
|
|
51
|
+
material.dispose(),
|
|
52
|
+
),
|
|
53
|
+
...[...textures].map(
|
|
54
|
+
(texture: THREE.Texture): (() => void) =>
|
|
55
|
+
(): void =>
|
|
56
|
+
texture.dispose(),
|
|
57
|
+
),
|
|
58
|
+
]);
|
|
59
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
import { addMaterialShaderPatch } from "../addMaterialShaderPatch.js";
|
|
4
|
+
import { createDualQuaternionSkinningShaderPatch } from "./createDualQuaternionSkinningShaderPatch.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Make a material draw skinned meshes with dual quaternion skinning instead of
|
|
8
|
+
* Three's linear blend. A mesh drawn without skinning compiles the patch away,
|
|
9
|
+
* because every replacement sits under `USE_SKINNING`. Register it before the
|
|
10
|
+
* material first compiles; the composer sets no `needsUpdate`.
|
|
11
|
+
*
|
|
12
|
+
* @evidence contracts/development/implementation.md#principled-implementation Registers the dual quaternion vertex patch through the shared ordered compile hook, so it composes with relief and detail patches and enters the program key.
|
|
13
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A one-line owner gives buildModel a named step, while the descriptor and GLSL stay in their own files.
|
|
14
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses the existing patch mechanism rather than replacing SkinnedMesh or Three's chunks globally, so plain materials keep linear skinning.
|
|
15
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the effect, the no-skinning behaviour and the register-before-compile premise.
|
|
16
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Adds one descriptor; compile-time cost is the vertex transformation's string work.
|
|
17
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The stable key lets equivalent materials reuse one compiled program.
|
|
18
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The material retains the descriptor until its owner disposes it; no GPU resource is acquired here.
|
|
19
|
+
*/
|
|
20
|
+
export const applyDualQuaternionSkinning: (material: THREE.Material) => void = (
|
|
21
|
+
material: THREE.Material,
|
|
22
|
+
): void => {
|
|
23
|
+
addMaterialShaderPatch(material, createDualQuaternionSkinningShaderPatch());
|
|
24
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IMaterialShaderPatch } from "../IMaterialShaderPatch.js";
|
|
2
|
+
import { dualQuaternionSkinningVertex } from "./dualQuaternionSkinningVertex.js";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* One dual quaternion skinning operation for the material compile hook. It
|
|
6
|
+
* rewrites the vertex source only; uniforms, fragment source and the native
|
|
7
|
+
* program configuration stay with the caller and the other registered patches.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/implementation.md#principled-implementation Pairs the stable key "automovie-dual-quaternion-skinning" with the vertex transformation that replaces Three's linear blend chunks, so a patched program never shares a cache entry with a plain one.
|
|
10
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One descriptor in the common material patch protocol, leaving the GLSL to the vertex transformation and registration to the material owner.
|
|
11
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No renderer callback or Three method is replaced; a shader without the skinning chunks throws through the vertex transformation, and the descriptor certifies no pixels.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the stable cache contribution and that only the vertex source changes.
|
|
13
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Constant allocation; apply delegates a fixed set of linear string replacements.
|
|
14
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The constant key lets every dual quaternion material with the same native features share one compiled program.
|
|
15
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned callback retains only module functions; the material that registers it bounds its lifetime.
|
|
16
|
+
*/
|
|
17
|
+
export const createDualQuaternionSkinningShaderPatch: () => IMaterialShaderPatch =
|
|
18
|
+
(): IMaterialShaderPatch => ({
|
|
19
|
+
key: "automovie-dual-quaternion-skinning",
|
|
20
|
+
apply: (shader: { vertexShader: string }): void => {
|
|
21
|
+
shader.vertexShader = dualQuaternionSkinningVertex(shader.vertexShader);
|
|
22
|
+
},
|
|
23
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Whether `buildModel` bound this mesh with a dual-quaternion skin, so a pass
|
|
5
|
+
* that swaps its material must patch the replacement the same way or draw the
|
|
6
|
+
* skin linearly blended. The flag is an internal typed handoff from the
|
|
7
|
+
* builder; a foreign userData value is not admitted by this lookup.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/implementation.md#principled-implementation Reads the exact automovieDualQuaternionSkinning flag buildModel sets on a dual-quaternion SkinnedMesh and treats anything else as linear, the interface default.
|
|
10
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One lookup lets every guide pass decide the patch the way formationCycleOf lets it decide the cycle, without inspecting shader patch lists.
|
|
11
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses the builder's structural flag, not mesh names or material keys, so a pass cannot mistake a plain material for a skinning choice.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the writer, why material-swapping passes need it and the trusted-handoff premise.
|
|
13
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One property read in constant time with no allocation.
|
|
14
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reads the flag stored once at build instead of re-deriving it from the model per pass.
|
|
15
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows the object and retains nothing.
|
|
16
|
+
*/
|
|
17
|
+
export const dualQuaternionSkinningOf: (object: THREE.Object3D) => boolean = (
|
|
18
|
+
object: THREE.Object3D,
|
|
19
|
+
): boolean => object.userData.automovieDualQuaternionSkinning === true;
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Replace a vertex shader's linear blend skinning with dual quaternion
|
|
3
|
+
* skinning, the formula `skinAutoMovieMesh` evaluates in the engine.
|
|
4
|
+
*
|
|
5
|
+
* Three's bone matrix for joint `j` is `G P_j R_j^-1`, with `G` the model's
|
|
6
|
+
* world placement at draw time, and its attached bind gives
|
|
7
|
+
* `bindMatrixInverse = (G T)^-1` for the part transform `T`. The shader
|
|
8
|
+
* therefore blends `K_j = bindMatrixInverse * boneMatrix_j * bindMatrix =
|
|
9
|
+
* T^-1 P_j R_j^-1 T`, which cancels `G` and stays rigid for a rigid or
|
|
10
|
+
* uniformly scaled `T`. Each `K_j` becomes a unit dual quaternion through
|
|
11
|
+
* Shepperd's matrix-to-quaternion method; the four are aligned to the hemisphere
|
|
12
|
+
* of the largest weight (the lowest slot on a tie), summed by weight, divided by
|
|
13
|
+
* the length of the rotation part and applied to the morphed position. Normals
|
|
14
|
+
* and tangents turn by the blended rotation alone. The result is already in the
|
|
15
|
+
* part's frame, so no `bindMatrixInverse` follows.
|
|
16
|
+
*
|
|
17
|
+
* The blend is computed once after `skinbase_vertex` and read by the normal and
|
|
18
|
+
* position chunks, so depth and distance shaders, which skip the normal chunk,
|
|
19
|
+
* still skin their positions. A shader missing the skinning parameter, base or
|
|
20
|
+
* position chunk is refused rather than left on linear skinning.
|
|
21
|
+
*
|
|
22
|
+
* @evidence contracts/development/implementation.md#principled-implementation Dual quaternion skinning (Kavan et al. 2008) over joint transforms conjugated by Three's attached bind matrices, which cancels the world placement exactly; rigidity premises a uniform part scale, which model admission enforces, and Shepperd's branches keep the matrix-to-quaternion division away from zero.
|
|
23
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Source transformation only: three chunk replacements plus helper functions beside Three's skinning parameters, while registration and program keys stay with the patch owner.
|
|
24
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Missing required chunks throw instead of silently drawing linear skinning; the skinning normal chunk is optional only because depth shaders legitimately omit it.
|
|
25
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the matrix identity that cancels the placement, the blend, the pivot rule, the frame of the result, the shared blend across chunks and the refusal.
|
|
26
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of string replacements over S shader bytes; on the GPU each skinned vertex does eight 4x4 products and four matrix-to-quaternion conversions, constant per vertex.
|
|
27
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The blended dual quaternion is computed once per vertex and shared by the normal, tangent and position chunks; identical source text lets the material's stable key reuse one program.
|
|
28
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only strings are created and returned; no uniform, texture or program is acquired.
|
|
29
|
+
*/
|
|
30
|
+
export const dualQuaternionSkinningVertex: (vertexShader: string) => string = (
|
|
31
|
+
vertexShader: string,
|
|
32
|
+
): string => {
|
|
33
|
+
for (const marker of REQUIRED)
|
|
34
|
+
if (!vertexShader.includes(marker))
|
|
35
|
+
throw new Error(
|
|
36
|
+
`Dual quaternion skinning needs the ${marker} chunk in the vertex shader.`,
|
|
37
|
+
);
|
|
38
|
+
return vertexShader
|
|
39
|
+
.replace(
|
|
40
|
+
"#include <skinning_pars_vertex>",
|
|
41
|
+
`#include <skinning_pars_vertex>\n${PARS}`,
|
|
42
|
+
)
|
|
43
|
+
.replace(
|
|
44
|
+
"#include <skinbase_vertex>",
|
|
45
|
+
`#include <skinbase_vertex>\n${BASE}`,
|
|
46
|
+
)
|
|
47
|
+
.replace("#include <skinnormal_vertex>", NORMAL)
|
|
48
|
+
.replace("#include <skinning_vertex>", POSITION);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const REQUIRED: readonly string[] = [
|
|
52
|
+
"#include <skinning_pars_vertex>",
|
|
53
|
+
"#include <skinbase_vertex>",
|
|
54
|
+
"#include <skinning_vertex>",
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
const PARS: string = /* glsl */ `
|
|
58
|
+
#ifdef USE_SKINNING
|
|
59
|
+
|
|
60
|
+
vec4 automovieRotationQuaternion( const in mat3 m ) {
|
|
61
|
+
float trace = m[ 0 ][ 0 ] + m[ 1 ][ 1 ] + m[ 2 ][ 2 ];
|
|
62
|
+
if ( trace > 0.0 ) {
|
|
63
|
+
float s = 0.5 / sqrt( trace + 1.0 );
|
|
64
|
+
return vec4( ( m[ 1 ][ 2 ] - m[ 2 ][ 1 ] ) * s, ( m[ 2 ][ 0 ] - m[ 0 ][ 2 ] ) * s, ( m[ 0 ][ 1 ] - m[ 1 ][ 0 ] ) * s, 0.25 / s );
|
|
65
|
+
}
|
|
66
|
+
if ( m[ 0 ][ 0 ] > m[ 1 ][ 1 ] && m[ 0 ][ 0 ] > m[ 2 ][ 2 ] ) {
|
|
67
|
+
float s = 2.0 * sqrt( 1.0 + m[ 0 ][ 0 ] - m[ 1 ][ 1 ] - m[ 2 ][ 2 ] );
|
|
68
|
+
return vec4( 0.25 * s, ( m[ 1 ][ 0 ] + m[ 0 ][ 1 ] ) / s, ( m[ 2 ][ 0 ] + m[ 0 ][ 2 ] ) / s, ( m[ 1 ][ 2 ] - m[ 2 ][ 1 ] ) / s );
|
|
69
|
+
}
|
|
70
|
+
if ( m[ 1 ][ 1 ] > m[ 2 ][ 2 ] ) {
|
|
71
|
+
float s = 2.0 * sqrt( 1.0 + m[ 1 ][ 1 ] - m[ 0 ][ 0 ] - m[ 2 ][ 2 ] );
|
|
72
|
+
return vec4( ( m[ 1 ][ 0 ] + m[ 0 ][ 1 ] ) / s, 0.25 * s, ( m[ 2 ][ 1 ] + m[ 1 ][ 2 ] ) / s, ( m[ 2 ][ 0 ] - m[ 0 ][ 2 ] ) / s );
|
|
73
|
+
}
|
|
74
|
+
float s = 2.0 * sqrt( 1.0 + m[ 2 ][ 2 ] - m[ 0 ][ 0 ] - m[ 1 ][ 1 ] );
|
|
75
|
+
return vec4( ( m[ 2 ][ 0 ] + m[ 0 ][ 2 ] ) / s, ( m[ 2 ][ 1 ] + m[ 1 ][ 2 ] ) / s, 0.25 * s, ( m[ 0 ][ 1 ] - m[ 1 ][ 0 ] ) / s );
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
vec4 automovieQuaternionProduct( const in vec4 a, const in vec4 b ) {
|
|
79
|
+
return vec4( a.w * b.xyz + b.w * a.xyz + cross( a.xyz, b.xyz ), a.w * b.w - dot( a.xyz, b.xyz ) );
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
void automovieJointDualQuaternion( const in mat4 bone, out vec4 rotation, out vec4 dual ) {
|
|
83
|
+
mat4 joint = bindMatrixInverse * bone * bindMatrix;
|
|
84
|
+
rotation = automovieRotationQuaternion( mat3( joint ) );
|
|
85
|
+
dual = 0.5 * automovieQuaternionProduct( vec4( joint[ 3 ].xyz, 0.0 ), rotation );
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
void automovieBlendDualQuaternion( const in mat4 bx, const in mat4 by, const in mat4 bz, const in mat4 bw, const in vec4 weights, out vec4 blendRotation, out vec4 blendDual ) {
|
|
89
|
+
vec4 rx; vec4 dx; automovieJointDualQuaternion( bx, rx, dx );
|
|
90
|
+
vec4 ry; vec4 dy; automovieJointDualQuaternion( by, ry, dy );
|
|
91
|
+
vec4 rz; vec4 dz; automovieJointDualQuaternion( bz, rz, dz );
|
|
92
|
+
vec4 rw; vec4 dw; automovieJointDualQuaternion( bw, rw, dw );
|
|
93
|
+
vec4 pivot = rx;
|
|
94
|
+
float best = weights.x;
|
|
95
|
+
if ( weights.y > best ) { best = weights.y; pivot = ry; }
|
|
96
|
+
if ( weights.z > best ) { best = weights.z; pivot = rz; }
|
|
97
|
+
if ( weights.w > best ) { best = weights.w; pivot = rw; }
|
|
98
|
+
float wx = dot( rx, pivot ) < 0.0 ? - weights.x : weights.x;
|
|
99
|
+
float wy = dot( ry, pivot ) < 0.0 ? - weights.y : weights.y;
|
|
100
|
+
float wz = dot( rz, pivot ) < 0.0 ? - weights.z : weights.z;
|
|
101
|
+
float ww = dot( rw, pivot ) < 0.0 ? - weights.w : weights.w;
|
|
102
|
+
blendRotation = wx * rx + wy * ry + wz * rz + ww * rw;
|
|
103
|
+
blendDual = wx * dx + wy * dy + wz * dz + ww * dw;
|
|
104
|
+
float norm = length( blendRotation );
|
|
105
|
+
blendRotation /= norm;
|
|
106
|
+
blendDual /= norm;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
vec3 automovieRotate( const in vec4 q, const in vec3 v ) {
|
|
110
|
+
return v + 2.0 * cross( q.xyz, cross( q.xyz, v ) + q.w * v );
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
#endif
|
|
114
|
+
`;
|
|
115
|
+
|
|
116
|
+
const BASE: string = /* glsl */ `
|
|
117
|
+
#ifdef USE_SKINNING
|
|
118
|
+
|
|
119
|
+
vec4 automovieSkinRotation;
|
|
120
|
+
vec4 automovieSkinDual;
|
|
121
|
+
automovieBlendDualQuaternion( boneMatX, boneMatY, boneMatZ, boneMatW, skinWeight, automovieSkinRotation, automovieSkinDual );
|
|
122
|
+
|
|
123
|
+
#endif
|
|
124
|
+
`;
|
|
125
|
+
|
|
126
|
+
const NORMAL: string = /* glsl */ `
|
|
127
|
+
#ifdef USE_SKINNING
|
|
128
|
+
|
|
129
|
+
objectNormal = automovieRotate( automovieSkinRotation, objectNormal );
|
|
130
|
+
|
|
131
|
+
#ifdef USE_TANGENT
|
|
132
|
+
|
|
133
|
+
objectTangent = automovieRotate( automovieSkinRotation, objectTangent );
|
|
134
|
+
|
|
135
|
+
#endif
|
|
136
|
+
|
|
137
|
+
#endif
|
|
138
|
+
`;
|
|
139
|
+
|
|
140
|
+
const POSITION: string = /* glsl */ `
|
|
141
|
+
#ifdef USE_SKINNING
|
|
142
|
+
|
|
143
|
+
transformed = automovieRotate( automovieSkinRotation, transformed ) + 2.0 * ( automovieSkinRotation.w * automovieSkinDual.xyz - automovieSkinDual.w * automovieSkinRotation.xyz + cross( automovieSkinRotation.xyz, automovieSkinDual.xyz ) );
|
|
144
|
+
|
|
145
|
+
#endif
|
|
146
|
+
`;
|
package/src/effect.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type { IAutoMovieEffectViewerStats } from "./IAutoMovieEffectViewerStats.js";
|
|
2
|
+
export type { IAutoMovieEffectViewerObject } from "./IAutoMovieEffectViewerObject.js";
|
|
3
|
+
export { buildInstancedEffect } from "./buildInstancedEffect.js";
|
|
4
|
+
export { sampleCompiledEffect } from "@automovie/engine";
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { IAutoMovieCamera } from "@automovie/interface";
|
|
2
|
+
import type * as THREE from "three";
|
|
3
|
+
|
|
4
|
+
import type { IAutoMovieViewerCameraDepthPrecisionReport } from "./IAutoMovieViewerCameraDepthPrecisionReport.js";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Observe the currently bound draw framebuffer and compare it with one
|
|
8
|
+
* resolved camera.
|
|
9
|
+
*
|
|
10
|
+
* The engine's metric is conservative at `minimumDepthBits`; a standard viewer
|
|
11
|
+
* with at least that many actual bits can only provide equal or finer adjacent
|
|
12
|
+
* steps. Logarithmic and reversed projection are refused because they implement
|
|
13
|
+
* a different metric rather than silently appearing as extra capability.
|
|
14
|
+
*
|
|
15
|
+
* This compares near/far properties and the currently bound framebuffer's bits,
|
|
16
|
+
* not the camera matrix contents, shader depth writes or measured surface error.
|
|
17
|
+
* The caller must have installed the declared standard projection before use.
|
|
18
|
+
*
|
|
19
|
+
* @evidence contracts/development/implementation.md#principled-implementation Queries WebGL DEPTH_BITS on the current draw target and accepts integer capability at least the declared fixed-point minimum only with exact near/far parity and standard renderer mode; validates finite positive source distances/budget, but does not re-evaluate the engine's maximum-step bound or inspect a stale/custom projection matrix.
|
|
20
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Returns one portable report with ordered refusal statuses; framebuffer observation and admission stay together, while the throwing wrapper only renders that result as a caller error.
|
|
21
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual WebGL state and renderer capabilities with no host-name whitelist or fallback 24-bit value; unavailable bits remain null and nonstandard projection is refused rather than compensated.
|
|
22
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents the current draw-target query, standard fixed-point comparison, nonstandard modes and the distinction between property/capability parity and measured scene/projection correctness.
|
|
23
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Performs one WebGL capability query plus fixed-count scalar checks and report construction; CPU space is constant, though getParameter may synchronize with the driver and is intended as a capability gate rather than per-pixel work.
|
|
24
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shares the report with the assertion wrapper; no cache is retained because framebuffer binding, capabilities and camera clips jointly determine the observation and may change between requests.
|
|
25
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows renderer/context/camera for one synchronous query and returns scalars; no framebuffer ownership, GPU allocation, retained browser handle or running task is acquired.
|
|
26
|
+
*/
|
|
27
|
+
export const evaluateAutoMovieViewerCameraDepthPrecision: (props: {
|
|
28
|
+
renderer: THREE.WebGLRenderer;
|
|
29
|
+
source: Pick<IAutoMovieCamera, "id" | "near" | "far" | "depthPrecision">;
|
|
30
|
+
realized: THREE.PerspectiveCamera;
|
|
31
|
+
}) => IAutoMovieViewerCameraDepthPrecisionReport = (props: {
|
|
32
|
+
/** Viewer renderer whose currently bound draw framebuffer receives the shot. */
|
|
33
|
+
renderer: THREE.WebGLRenderer;
|
|
34
|
+
/** Portable resolved camera declaration. */
|
|
35
|
+
source: Pick<IAutoMovieCamera, "id" | "near" | "far" | "depthPrecision">;
|
|
36
|
+
/** Three camera built from that declaration. */
|
|
37
|
+
realized: THREE.PerspectiveCamera;
|
|
38
|
+
}): IAutoMovieViewerCameraDepthPrecisionReport => {
|
|
39
|
+
const logarithmic: boolean =
|
|
40
|
+
props.renderer.capabilities.logarithmicDepthBuffer;
|
|
41
|
+
const reversed: boolean = props.renderer.capabilities.reversedDepthBuffer;
|
|
42
|
+
const projection: IAutoMovieViewerCameraDepthPrecisionReport["projection"] =
|
|
43
|
+
logarithmic
|
|
44
|
+
? reversed
|
|
45
|
+
? "logarithmic-reversed"
|
|
46
|
+
: "logarithmic"
|
|
47
|
+
: reversed
|
|
48
|
+
? "reversed"
|
|
49
|
+
: "standard";
|
|
50
|
+
const context: WebGLRenderingContext | WebGL2RenderingContext =
|
|
51
|
+
props.renderer.getContext();
|
|
52
|
+
const observed: unknown = context.getParameter(context.DEPTH_BITS) as unknown;
|
|
53
|
+
const observedDepthBits: number | null =
|
|
54
|
+
typeof observed === "number" && Number.isFinite(observed) ? observed : null;
|
|
55
|
+
const base: {
|
|
56
|
+
camera: string;
|
|
57
|
+
sourceNear: number | null;
|
|
58
|
+
sourceFar: number | null;
|
|
59
|
+
realizedNear: number | null;
|
|
60
|
+
realizedFar: number | null;
|
|
61
|
+
minimumDepthBits: number | null;
|
|
62
|
+
observedDepthBits: number | null;
|
|
63
|
+
projection:
|
|
64
|
+
| "standard"
|
|
65
|
+
| "logarithmic"
|
|
66
|
+
| "reversed"
|
|
67
|
+
| "logarithmic-reversed";
|
|
68
|
+
} = {
|
|
69
|
+
camera: props.source.id,
|
|
70
|
+
sourceNear: finiteOrNull(props.source.near),
|
|
71
|
+
sourceFar: finiteOrNull(props.source.far),
|
|
72
|
+
realizedNear: finiteOrNull(props.realized.near),
|
|
73
|
+
realizedFar: finiteOrNull(props.realized.far),
|
|
74
|
+
minimumDepthBits: finiteOrNull(
|
|
75
|
+
props.source.depthPrecision.minimumDepthBits,
|
|
76
|
+
),
|
|
77
|
+
observedDepthBits,
|
|
78
|
+
projection,
|
|
79
|
+
};
|
|
80
|
+
const levels: number = 2 ** props.source.depthPrecision.minimumDepthBits - 1;
|
|
81
|
+
if (
|
|
82
|
+
props.source.id.trim().length === 0 ||
|
|
83
|
+
!Number.isFinite(props.source.near) ||
|
|
84
|
+
props.source.near <= 0 ||
|
|
85
|
+
!Number.isFinite(props.source.far) ||
|
|
86
|
+
props.source.far <= props.source.near ||
|
|
87
|
+
!Number.isSafeInteger(props.source.depthPrecision.minimumDepthBits) ||
|
|
88
|
+
props.source.depthPrecision.minimumDepthBits <= 0 ||
|
|
89
|
+
!Number.isSafeInteger(levels) ||
|
|
90
|
+
!Number.isFinite(props.source.depthPrecision.maximumStepMeters) ||
|
|
91
|
+
props.source.depthPrecision.maximumStepMeters <= 0
|
|
92
|
+
)
|
|
93
|
+
return { ...base, status: "invalid-source", passed: false };
|
|
94
|
+
if (
|
|
95
|
+
props.realized.near !== props.source.near ||
|
|
96
|
+
props.realized.far !== props.source.far
|
|
97
|
+
)
|
|
98
|
+
return { ...base, status: "projection-mismatch", passed: false };
|
|
99
|
+
if (projection !== "standard")
|
|
100
|
+
return { ...base, status: "nonstandard-projection", passed: false };
|
|
101
|
+
if (
|
|
102
|
+
observedDepthBits === null ||
|
|
103
|
+
!Number.isSafeInteger(observedDepthBits) ||
|
|
104
|
+
observedDepthBits < 0
|
|
105
|
+
)
|
|
106
|
+
return { ...base, status: "invalid-capability", passed: false };
|
|
107
|
+
if (observedDepthBits < props.source.depthPrecision.minimumDepthBits)
|
|
108
|
+
return { ...base, status: "insufficient-capability", passed: false };
|
|
109
|
+
return { ...base, status: "satisfied", passed: true };
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
const finiteOrNull: (value: number) => number | null = (
|
|
113
|
+
value: number,
|
|
114
|
+
): number | null => (Number.isFinite(value) ? value : null);
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { IAutoMovieModel } from "@automovie/interface";
|
|
2
|
+
import * as THREE from "three";
|
|
3
|
+
|
|
4
|
+
import type { IAutoMovieFormationCycle } from "./IAutoMovieFormationCycle.js";
|
|
5
|
+
import type { IAutoMovieFormationCycleTake } from "./IAutoMovieFormationCycleTake.js";
|
|
6
|
+
import type { IAutoMovieInstancedGeometry } from "./IAutoMovieInstancedGeometry.js";
|
|
7
|
+
import type { IAutoMovieInstancedModelRepresentation } from "./IAutoMovieInstancedModelRepresentation.js";
|
|
8
|
+
import type { IBakeFormationCycleProps } from "./IBakeFormationCycleProps.js";
|
|
9
|
+
import { bakeFormationCycle } from "./bakeFormationCycle.js";
|
|
10
|
+
import { buildModel } from "./buildModel.js";
|
|
11
|
+
import { collectAutoMovieOwnedResources } from "./collectAutoMovieOwnedResources.js";
|
|
12
|
+
import { flattenRigidParts } from "./flattenRigidParts.js";
|
|
13
|
+
import { instancedModelParts } from "./instancedModelParts.js";
|
|
14
|
+
import { reportAutoMovieResourceRetirement } from "./reportAutoMovieResourceRetirement.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Flatten one runtime model for a chunked instancing consumer.
|
|
18
|
+
*
|
|
19
|
+
* buildModel creates this entry's materials; the returned representation hands
|
|
20
|
+
* them to the consumer along with the owned merged geometry. Lower-level
|
|
21
|
+
* flattening retains those objects rather than allocating a second material.
|
|
22
|
+
*
|
|
23
|
+
* The merge produces one geometry per LOD tier with a group and retained material for each source part, so one chunk can require several renderer submissions. Every vertex also carries a Float32 rigid-part index for the cycle shader, costing four bytes per vertex of shared geometry rather than per member; actual submission counts belong to renderer observation.
|
|
24
|
+
*
|
|
25
|
+
* Passing `bake` additionally bakes the model's whole repertoire
|
|
26
|
+
* ({@link bakeFormationCycle}); a model that declares no gait, or carries no
|
|
27
|
+
* skeleton to move, returns a null cycle and renders exactly as before.
|
|
28
|
+
* The generated model's original geometries/skeletons are temporary extraction
|
|
29
|
+
* inputs and retire after successful merge/bake; materials and emitted tables
|
|
30
|
+
* transfer to the returned representation. Refusal independently rolls back
|
|
31
|
+
* all acquisitions that this child completed before its parent receives a result.
|
|
32
|
+
*
|
|
33
|
+
* @evidence contracts/development/implementation.md#principled-implementation Builds the declared model, captures rigid world-rest part order, merges buffers before optional canonical gait bake and returns matching part/cycle identity; admitted rigid source and valid rest matrices are premises, and no skeleton/gait or unrequested bake produces null rather than synthetic motion.
|
|
34
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns the generated-source-to-resident representation transaction; lower rigid flattening borrows materials, while this owner transfers those generated materials and retires temporary source geometries/skeletons without another material clone.
|
|
35
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses actual model/gaits and canonical geometry-before-bake order with no source-id exception or replaced native methods; failed children release their own unreturned work instead of shifting hidden leaks to the parent runtime.
|
|
36
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives source/generated material ownership, affine part indexing, optional bake/null semantics and temporary/source versus transferred geometry/table lifetime.
|
|
37
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Adds source-resource snapshot and temporary identity collection around model build, V-vertex rigid merge and G*S*P bake work; peak storage includes generated and flattened geometry plus temporary clones/tables, not anonymous formation-member buffers.
|
|
38
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Transfers generated source material objects directly and reuses canonical build/flatten/bake routines; separate prototype requests remain independent mutable owner transactions, while the parent shares a returned tier across chunks.
|
|
39
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources This child owns generated source geometry/material/skeleton resources and any completed merged geometry until success; refusal independently retires them and later bake refusal rolls its own take textures back. Success retires temporary source geometry/skeletons and transfers merged geometry/material/tables; temporary-release failure retires all otherwise transferable resources before refusing.
|
|
40
|
+
*/
|
|
41
|
+
export const flattenInstancedModel: (
|
|
42
|
+
model: IAutoMovieModel,
|
|
43
|
+
owner?: string,
|
|
44
|
+
bake?: Pick<IBakeFormationCycleProps, "samples">,
|
|
45
|
+
) => IAutoMovieInstancedModelRepresentation = (
|
|
46
|
+
model: IAutoMovieModel,
|
|
47
|
+
owner: string = `Instanced runtime model "${model.id}"`,
|
|
48
|
+
bake?: Pick<IBakeFormationCycleProps, "samples">,
|
|
49
|
+
): IAutoMovieInstancedModelRepresentation => {
|
|
50
|
+
const built: ReturnType<typeof buildModel> = buildModel(model);
|
|
51
|
+
const sourceResources: readonly { dispose(): void }[] =
|
|
52
|
+
collectAutoMovieOwnedResources(built.object);
|
|
53
|
+
const temporary: Set<THREE.BufferGeometry | THREE.Skeleton> = new Set();
|
|
54
|
+
built.object.traverse((object: THREE.Object3D): void => {
|
|
55
|
+
if (!(object instanceof THREE.Mesh)) return;
|
|
56
|
+
temporary.add(object.geometry);
|
|
57
|
+
if (object instanceof THREE.SkinnedMesh) temporary.add(object.skeleton);
|
|
58
|
+
});
|
|
59
|
+
let representation: IAutoMovieInstancedGeometry | undefined;
|
|
60
|
+
let cycle: IAutoMovieFormationCycle | null = null;
|
|
61
|
+
try {
|
|
62
|
+
built.object.updateMatrixWorld(true);
|
|
63
|
+
const parts: ReturnType<typeof instancedModelParts> = instancedModelParts(
|
|
64
|
+
built.object,
|
|
65
|
+
);
|
|
66
|
+
representation = flattenRigidParts(parts, owner);
|
|
67
|
+
// Geometry first, then the bake: baking poses the built object, and the
|
|
68
|
+
// flattened vertices above are the rest-space ones the bake's matrices are
|
|
69
|
+
// measured against.
|
|
70
|
+
cycle =
|
|
71
|
+
bake === undefined
|
|
72
|
+
? null
|
|
73
|
+
: bakeFormationCycle({
|
|
74
|
+
model,
|
|
75
|
+
built,
|
|
76
|
+
parts,
|
|
77
|
+
samples: bake.samples,
|
|
78
|
+
});
|
|
79
|
+
} catch (error) {
|
|
80
|
+
// The source collection already holds the skinned meshes' skeletons.
|
|
81
|
+
reportAutoMovieResourceRetirement(
|
|
82
|
+
[
|
|
83
|
+
...sourceResources.map(
|
|
84
|
+
(resource: { dispose(): void }): (() => void) =>
|
|
85
|
+
(): void =>
|
|
86
|
+
resource.dispose(),
|
|
87
|
+
),
|
|
88
|
+
...(representation === undefined
|
|
89
|
+
? []
|
|
90
|
+
: [(): void => representation!.geometry.dispose()]),
|
|
91
|
+
],
|
|
92
|
+
{ error },
|
|
93
|
+
);
|
|
94
|
+
throw error;
|
|
95
|
+
}
|
|
96
|
+
try {
|
|
97
|
+
reportAutoMovieResourceRetirement(
|
|
98
|
+
[...temporary].map(
|
|
99
|
+
(resource: THREE.BufferGeometry | THREE.Skeleton): (() => void) =>
|
|
100
|
+
(): void =>
|
|
101
|
+
resource.dispose(),
|
|
102
|
+
),
|
|
103
|
+
);
|
|
104
|
+
} catch (error) {
|
|
105
|
+
const transferred: Set<{ dispose(): void }> = new Set([
|
|
106
|
+
representation!.geometry,
|
|
107
|
+
...representation!.materials,
|
|
108
|
+
...(cycle === null
|
|
109
|
+
? []
|
|
110
|
+
: [...cycle.takes.values()].map(
|
|
111
|
+
(take: IAutoMovieFormationCycleTake): THREE.Texture => take.texture,
|
|
112
|
+
)),
|
|
113
|
+
]);
|
|
114
|
+
reportAutoMovieResourceRetirement(
|
|
115
|
+
[
|
|
116
|
+
...[...transferred].map(
|
|
117
|
+
(resource: { dispose(): void }): (() => void) =>
|
|
118
|
+
(): void =>
|
|
119
|
+
resource.dispose(),
|
|
120
|
+
),
|
|
121
|
+
],
|
|
122
|
+
{ error },
|
|
123
|
+
);
|
|
124
|
+
throw error;
|
|
125
|
+
}
|
|
126
|
+
return { ...representation!, cycle };
|
|
127
|
+
};
|