dsh-pico-lab 0.0.0-stage → 0.2.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.md +77 -0
- package/NOTICE.md +6 -0
- package/README.md +86 -2
- package/bin/cli.mjs +2 -0
- package/cordis.patch.yml +3 -0
- package/examples/llm-lesson/ART.md +183 -0
- package/examples/llm-lesson/Course/Ch0Corpus.cs +398 -0
- package/examples/llm-lesson/Course/Ch0Corpus.cs.meta +2 -0
- package/examples/llm-lesson/Course/Ch10Machine.cs +721 -0
- package/examples/llm-lesson/Course/Ch10Machine.cs.meta +2 -0
- package/examples/llm-lesson/Course/Ch1Tokens.cs +535 -0
- package/examples/llm-lesson/Course/Ch1Tokens.cs.meta +2 -0
- package/examples/llm-lesson/Course/Ch2Embeddings.cs +697 -0
- package/examples/llm-lesson/Course/Ch2Embeddings.cs.meta +2 -0
- package/examples/llm-lesson/Course/Ch3Directions.cs +607 -0
- package/examples/llm-lesson/Course/Ch3Directions.cs.meta +2 -0
- package/examples/llm-lesson/Course/Ch4Position.cs +476 -0
- package/examples/llm-lesson/Course/Ch4Position.cs.meta +2 -0
- package/examples/llm-lesson/Course/Ch5Attention.cs +666 -0
- package/examples/llm-lesson/Course/Ch5Attention.cs.meta +2 -0
- package/examples/llm-lesson/Course/Ch6Layers.cs +636 -0
- package/examples/llm-lesson/Course/Ch6Layers.cs.meta +2 -0
- package/examples/llm-lesson/Course/Ch7Output.cs +547 -0
- package/examples/llm-lesson/Course/Ch7Output.cs.meta +2 -0
- package/examples/llm-lesson/Course/Ch8Generation.cs +503 -0
- package/examples/llm-lesson/Course/Ch8Generation.cs.meta +2 -0
- package/examples/llm-lesson/Course/Ch9Training.cs +902 -0
- package/examples/llm-lesson/Course/Ch9Training.cs.meta +2 -0
- package/examples/llm-lesson/Course/ChIntro.cs +925 -0
- package/examples/llm-lesson/Course/ChIntro.cs.meta +2 -0
- package/examples/llm-lesson/Course/Course.cs +18 -0
- package/examples/llm-lesson/LESSON.md +31 -0
- package/examples/llm-lesson/Narration/c0_a.mp3 +0 -0
- package/examples/llm-lesson/Narration/c0_b.mp3 +0 -0
- package/examples/llm-lesson/Narration/c0_c.mp3 +0 -0
- package/examples/llm-lesson/Narration/c0_hint.mp3 +0 -0
- package/examples/llm-lesson/Narration/c10_a.mp3 +0 -0
- package/examples/llm-lesson/Narration/c10_b.mp3 +0 -0
- package/examples/llm-lesson/Narration/c10_hint.mp3 +0 -0
- package/examples/llm-lesson/Narration/c1_a.mp3 +0 -0
- package/examples/llm-lesson/Narration/c1_b.mp3 +0 -0
- package/examples/llm-lesson/Narration/c1_c.mp3 +0 -0
- package/examples/llm-lesson/Narration/c1_d.mp3 +0 -0
- package/examples/llm-lesson/Narration/c1_e.mp3 +0 -0
- package/examples/llm-lesson/Narration/c1_hint.mp3 +0 -0
- package/examples/llm-lesson/Narration/c1_hint2.mp3 +0 -0
- package/examples/llm-lesson/Narration/c2_a.mp3 +0 -0
- package/examples/llm-lesson/Narration/c2_b.mp3 +0 -0
- package/examples/llm-lesson/Narration/c2_c.mp3 +0 -0
- package/examples/llm-lesson/Narration/c2_d.mp3 +0 -0
- package/examples/llm-lesson/Narration/c2_hint.mp3 +0 -0
- package/examples/llm-lesson/Narration/c2_hint2.mp3 +0 -0
- package/examples/llm-lesson/Narration/c3_a.mp3 +0 -0
- package/examples/llm-lesson/Narration/c3_b.mp3 +0 -0
- package/examples/llm-lesson/Narration/c3_c.mp3 +0 -0
- package/examples/llm-lesson/Narration/c3_hint.mp3 +0 -0
- package/examples/llm-lesson/Narration/c4_a.mp3 +0 -0
- package/examples/llm-lesson/Narration/c4_b.mp3 +0 -0
- package/examples/llm-lesson/Narration/c4_c.mp3 +0 -0
- package/examples/llm-lesson/Narration/c4_hint.mp3 +0 -0
- package/examples/llm-lesson/Narration/c5_a.mp3 +0 -0
- package/examples/llm-lesson/Narration/c5_b1.mp3 +0 -0
- package/examples/llm-lesson/Narration/c5_b2.mp3 +0 -0
- package/examples/llm-lesson/Narration/c5_c.mp3 +0 -0
- package/examples/llm-lesson/Narration/c5_d.mp3 +0 -0
- package/examples/llm-lesson/Narration/c5_e.mp3 +0 -0
- package/examples/llm-lesson/Narration/c5_hint.mp3 +0 -0
- package/examples/llm-lesson/Narration/c5_hint2.mp3 +0 -0
- package/examples/llm-lesson/Narration/c6_a.mp3 +0 -0
- package/examples/llm-lesson/Narration/c6_b.mp3 +0 -0
- package/examples/llm-lesson/Narration/c6_c.mp3 +0 -0
- package/examples/llm-lesson/Narration/c6_hint.mp3 +0 -0
- package/examples/llm-lesson/Narration/c7_a.mp3 +0 -0
- package/examples/llm-lesson/Narration/c7_b.mp3 +0 -0
- package/examples/llm-lesson/Narration/c7_c1.mp3 +0 -0
- package/examples/llm-lesson/Narration/c7_c2.mp3 +0 -0
- package/examples/llm-lesson/Narration/c7_d.mp3 +0 -0
- package/examples/llm-lesson/Narration/c7_e.mp3 +0 -0
- package/examples/llm-lesson/Narration/c7_hint.mp3 +0 -0
- package/examples/llm-lesson/Narration/c7_hint2.mp3 +0 -0
- package/examples/llm-lesson/Narration/c8_a.mp3 +0 -0
- package/examples/llm-lesson/Narration/c8_b.mp3 +0 -0
- package/examples/llm-lesson/Narration/c8_hint.mp3 +0 -0
- package/examples/llm-lesson/Narration/c9_a.mp3 +0 -0
- package/examples/llm-lesson/Narration/c9_b.mp3 +0 -0
- package/examples/llm-lesson/Narration/c9_c.mp3 +0 -0
- package/examples/llm-lesson/Narration/c9_d.mp3 +0 -0
- package/examples/llm-lesson/Narration/c9_e.mp3 +0 -0
- package/examples/llm-lesson/Narration/c9_hint.mp3 +0 -0
- package/examples/llm-lesson/Narration/i_a.mp3 +0 -0
- package/examples/llm-lesson/Narration/i_b.mp3 +0 -0
- package/examples/llm-lesson/Narration/i_c.mp3 +0 -0
- package/examples/llm-lesson/Narration/i_hint.mp3 +0 -0
- package/examples/llm-lesson/SCRIPT.md +102 -0
- package/examples/llm-lesson/audio-src/lines.json +332 -0
- package/examples/llm-lesson/audio-src/voice_ref.wav +0 -0
- package/icon.svg +1 -0
- package/lib/cli.mjs +49 -0
- package/lib/client.js +1041 -0
- package/lib/core-CqdMbmvD.mjs +1 -0
- package/lib/core-RKJbGowf.mjs +612 -0
- package/lib/index.mjs +171 -0
- package/lib/tools-DIoSAX2i.mjs +244 -0
- package/package.json +84 -4
- package/template/starter/Course/Ch0Touch.cs +44 -0
- package/template/starter/Course/Ch1Place.cs +52 -0
- package/template/starter/Course/Course.cs +23 -0
- package/template/starter/SCRIPT.md +17 -0
- package/template/starter/WORLD.md +16 -0
- package/template/unity/ART.md +183 -0
- package/template/unity/AUTHORING.md +92 -0
- package/template/unity/Assets/InputSystem_Actions.inputactions +1057 -0
- package/template/unity/Assets/InputSystem_Actions.inputactions.meta +14 -0
- package/template/unity/Assets/PicoWorld/Editor/WorldSetup.cs +441 -0
- package/template/unity/Assets/PicoWorld/Editor/WorldSetup.cs.meta +2 -0
- package/template/unity/Assets/PicoWorld/Editor.meta +8 -0
- package/template/unity/Assets/PicoWorld/Fonts/NotoSansSC-Medium.ttf +0 -0
- package/template/unity/Assets/PicoWorld/Fonts/NotoSansSC-Medium.ttf.meta +21 -0
- package/template/unity/Assets/PicoWorld/Fonts.meta +8 -0
- package/template/unity/Assets/PicoWorld/Resources/Audio/ambient.wav +0 -0
- package/template/unity/Assets/PicoWorld/Resources/Audio/ambient.wav.meta +23 -0
- package/template/unity/Assets/PicoWorld/Resources/Audio.meta +8 -0
- package/template/unity/Assets/PicoWorld/Resources/Narration.meta +8 -0
- package/template/unity/Assets/PicoWorld/Resources/SFX/done.wav +0 -0
- package/template/unity/Assets/PicoWorld/Resources/SFX/done.wav.meta +23 -0
- package/template/unity/Assets/PicoWorld/Resources/SFX/error.wav +0 -0
- package/template/unity/Assets/PicoWorld/Resources/SFX/error.wav.meta +23 -0
- package/template/unity/Assets/PicoWorld/Resources/SFX/pop.wav +0 -0
- package/template/unity/Assets/PicoWorld/Resources/SFX/pop.wav.meta +23 -0
- package/template/unity/Assets/PicoWorld/Resources/SFX/snap.wav +0 -0
- package/template/unity/Assets/PicoWorld/Resources/SFX/snap.wav.meta +23 -0
- package/template/unity/Assets/PicoWorld/Resources/SFX/whoosh.wav +0 -0
- package/template/unity/Assets/PicoWorld/Resources/SFX/whoosh.wav.meta +23 -0
- package/template/unity/Assets/PicoWorld/Resources/SFX.meta +8 -0
- package/template/unity/Assets/PicoWorld/Resources.meta +8 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/Art.cs +561 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/Art.cs.meta +2 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/Backdrop.cs +90 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/Backdrop.cs.meta +2 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/Effects.cs +82 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/Hands.cs +210 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/Hands.cs.meta +2 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/Interactables.cs +770 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/Interactables.cs.meta +2 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/Lesson.cs +542 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/Lesson.cs.meta +2 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/WorldKit.cs +154 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core/WorldKit.cs.meta +2 -0
- package/template/unity/Assets/PicoWorld/Scripts/Core.meta +8 -0
- package/template/unity/Assets/PicoWorld/Scripts.meta +8 -0
- package/template/unity/Assets/PicoWorld/Shaders/Plate.shader +86 -0
- package/template/unity/Assets/PicoWorld/Shaders/Plate.shader.meta +9 -0
- package/template/unity/Assets/PicoWorld/Shaders/Sky.shader +113 -0
- package/template/unity/Assets/PicoWorld/Shaders/Sky.shader.meta +9 -0
- package/template/unity/Assets/PicoWorld/Shaders/SubtitleOnTop.shader +250 -0
- package/template/unity/Assets/PicoWorld/Shaders/SubtitleOnTop.shader.meta +9 -0
- package/template/unity/Assets/PicoWorld/Shaders.meta +8 -0
- package/template/unity/Assets/PicoWorld.meta +8 -0
- package/template/unity/Assets/Resources/PXR_DebuggerPanel.prefab +23313 -0
- package/template/unity/Assets/Resources/PXR_DebuggerPanel.prefab.meta +7 -0
- package/template/unity/Assets/Resources/PXR_PICODebugger.prefab +143 -0
- package/template/unity/Assets/Resources/PXR_PICODebugger.prefab.meta +7 -0
- package/template/unity/Assets/Resources/PXR_PICODebuggerActions.inputactions +300 -0
- package/template/unity/Assets/Resources/PXR_PICODebuggerActions.inputactions.meta +14 -0
- package/template/unity/Assets/Resources/PXR_PicoDebuggerSO.asset +24 -0
- package/template/unity/Assets/Resources/PXR_PicoDebuggerSO.asset.meta +8 -0
- package/template/unity/Assets/Resources/PXR_PlatformSetting.asset +19 -0
- package/template/unity/Assets/Resources/PXR_PlatformSetting.asset.meta +8 -0
- package/template/unity/Assets/Resources/PXR_ProjectSetting.asset +62 -0
- package/template/unity/Assets/Resources/PXR_ProjectSetting.asset.meta +8 -0
- package/template/unity/Assets/Resources.meta +8 -0
- package/template/unity/Assets/Scenes/SampleScene.unity +687 -0
- package/template/unity/Assets/Scenes/SampleScene.unity.meta +7 -0
- package/template/unity/Assets/Scenes.meta +8 -0
- package/template/unity/Assets/Settings/DefaultVolumeProfile.asset +986 -0
- package/template/unity/Assets/Settings/DefaultVolumeProfile.asset.meta +8 -0
- package/template/unity/Assets/Settings/Mobile_RPAsset.asset +143 -0
- package/template/unity/Assets/Settings/Mobile_RPAsset.asset.meta +8 -0
- package/template/unity/Assets/Settings/Mobile_Renderer.asset +52 -0
- package/template/unity/Assets/Settings/Mobile_Renderer.asset.meta +8 -0
- package/template/unity/Assets/Settings/PC_RPAsset.asset +143 -0
- package/template/unity/Assets/Settings/PC_RPAsset.asset.meta +8 -0
- package/template/unity/Assets/Settings/PC_Renderer.asset +95 -0
- package/template/unity/Assets/Settings/PC_Renderer.asset.meta +8 -0
- package/template/unity/Assets/Settings/SampleSceneProfile.asset +159 -0
- package/template/unity/Assets/Settings/SampleSceneProfile.asset.meta +8 -0
- package/template/unity/Assets/Settings/UniversalRenderPipelineGlobalSettings.asset +447 -0
- package/template/unity/Assets/Settings/UniversalRenderPipelineGlobalSettings.asset.meta +8 -0
- package/template/unity/Assets/Settings.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt +46 -0
- package/template/unity/Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Fonts/LiberationSans.ttf +0 -0
- package/template/unity/Assets/TextMesh Pro/Fonts/LiberationSans.ttf.meta +19 -0
- package/template/unity/Assets/TextMesh Pro/Fonts.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat +106 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset +348 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat +104 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF.asset +8095 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF.asset.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Fonts & Materials.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt +1 -0
- package/template/unity/Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt +1 -0
- package/template/unity/Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset +659 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Sprite Assets.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset +81 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Resources/Style Sheets.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Resources/TMP Settings.asset +52 -0
- package/template/unity/Assets/TextMesh Pro/Resources/TMP Settings.asset.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Resources.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/SDFFunctions.hlsl +178 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/SDFFunctions.hlsl.meta +10 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_Bitmap-Custom-Atlas.shader +145 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_Bitmap-Custom-Atlas.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_Bitmap-Mobile.shader +155 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_Bitmap-Mobile.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_Bitmap.shader +145 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_Bitmap.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF Overlay.shader +326 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF Overlay.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF SSD.shader +321 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF SSD.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-HDRP LIT.shadergraph +12074 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-HDRP LIT.shadergraph.meta +10 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-HDRP UNLIT.shadergraph +11759 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-HDRP UNLIT.shadergraph.meta +10 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile Masking.shader +258 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile Masking.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile Overlay.shader +252 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile Overlay.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile SSD.shader +106 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile SSD.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile-2-Pass.shader +389 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile-2-Pass.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile.shader +250 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Mobile.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Surface-Mobile.shader +139 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Surface-Mobile.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Surface.shader +159 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-Surface.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-URP Lit.shadergraph +11932 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-URP Lit.shadergraph.meta +10 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-URP Unlit.shadergraph +11629 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF-URP Unlit.shadergraph.meta +10 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF.shader +326 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_SDF.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_Sprite.shader +131 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMP_Sprite.shader.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMPro.cginc +84 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMPro.cginc.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMPro_Mobile.cginc +165 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMPro_Mobile.cginc.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMPro_Properties.cginc +80 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMPro_Properties.cginc.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMPro_Surface.cginc +99 -0
- package/template/unity/Assets/TextMesh Pro/Shaders/TMPro_Surface.cginc.meta +9 -0
- package/template/unity/Assets/TextMesh Pro/Shaders.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt +3 -0
- package/template/unity/Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt.meta +7 -0
- package/template/unity/Assets/TextMesh Pro/Sprites/EmojiOne.json +156 -0
- package/template/unity/Assets/TextMesh Pro/Sprites/EmojiOne.json.meta +8 -0
- package/template/unity/Assets/TextMesh Pro/Sprites/EmojiOne.png +0 -0
- package/template/unity/Assets/TextMesh Pro/Sprites/EmojiOne.png.meta +431 -0
- package/template/unity/Assets/TextMesh Pro/Sprites.meta +8 -0
- package/template/unity/Assets/TextMesh Pro.meta +8 -0
- package/template/unity/Assets/XR/Loaders/PXR_Loader.asset +14 -0
- package/template/unity/Assets/XR/Loaders/PXR_Loader.asset.meta +8 -0
- package/template/unity/Assets/XR/Loaders.meta +8 -0
- package/template/unity/Assets/XR/Settings/PXR_Settings.asset +20 -0
- package/template/unity/Assets/XR/Settings/PXR_Settings.asset.meta +8 -0
- package/template/unity/Assets/XR/Settings.meta +8 -0
- package/template/unity/Assets/XR/XRGeneralSettingsPerBuildTarget.asset +79 -0
- package/template/unity/Assets/XR/XRGeneralSettingsPerBuildTarget.asset.meta +8 -0
- package/template/unity/Assets/XR.meta +8 -0
- package/template/unity/Assets/XRI/Settings/Resources/InteractionLayerSettings.asset +47 -0
- package/template/unity/Assets/XRI/Settings/Resources/InteractionLayerSettings.asset.meta +8 -0
- package/template/unity/Assets/XRI/Settings/Resources/XRDeviceSimulatorSettings.asset +17 -0
- package/template/unity/Assets/XRI/Settings/Resources/XRDeviceSimulatorSettings.asset.meta +8 -0
- package/template/unity/Assets/XRI/Settings/Resources/XRInteractionRuntimeSettings.asset +17 -0
- package/template/unity/Assets/XRI/Settings/Resources/XRInteractionRuntimeSettings.asset.meta +8 -0
- package/template/unity/Assets/XRI/Settings/Resources.meta +8 -0
- package/template/unity/Assets/XRI/Settings/XRInteractionEditorSettings.asset +15 -0
- package/template/unity/Assets/XRI/Settings/XRInteractionEditorSettings.asset.meta +8 -0
- package/template/unity/Assets/XRI/Settings.meta +8 -0
- package/template/unity/Assets/XRI.meta +8 -0
- package/template/unity/Packages/manifest.json +48 -0
- package/template/unity/ProjectSettings/AudioManager.asset +19 -0
- package/template/unity/ProjectSettings/ClusterInputManager.asset +6 -0
- package/template/unity/ProjectSettings/DynamicsManager.asset +36 -0
- package/template/unity/ProjectSettings/EditorBuildSettings.asset +15 -0
- package/template/unity/ProjectSettings/EditorSettings.asset +50 -0
- package/template/unity/ProjectSettings/GraphicsSettings.asset +69 -0
- package/template/unity/ProjectSettings/InputManager.asset +487 -0
- package/template/unity/ProjectSettings/MemorySettings.asset +35 -0
- package/template/unity/ProjectSettings/MultiplayerManager.asset +7 -0
- package/template/unity/ProjectSettings/NavMeshAreas.asset +91 -0
- package/template/unity/ProjectSettings/PackageManager.policy +1 -0
- package/template/unity/ProjectSettings/PackageManagerSettings.asset +43 -0
- package/template/unity/ProjectSettings/Physics2DSettings.asset +56 -0
- package/template/unity/ProjectSettings/PresetManager.asset +7 -0
- package/template/unity/ProjectSettings/ProjectSettings.asset +957 -0
- package/template/unity/ProjectSettings/ProjectVersion.txt +2 -0
- package/template/unity/ProjectSettings/QualitySettings.asset +134 -0
- package/template/unity/ProjectSettings/SceneTemplateSettings.json +121 -0
- package/template/unity/ProjectSettings/ShaderGraphSettings.asset +19 -0
- package/template/unity/ProjectSettings/TagManager.asset +76 -0
- package/template/unity/ProjectSettings/TimeManager.asset +9 -0
- package/template/unity/ProjectSettings/URPProjectSettings.asset +15 -0
- package/template/unity/ProjectSettings/UnityConnectSettings.asset +40 -0
- package/template/unity/ProjectSettings/VFXManager.asset +12 -0
- package/template/unity/ProjectSettings/VersionControlSettings.asset +8 -0
- package/template/unity/ProjectSettings/XRSettings.asset +10 -0
- package/template/unity/gitignore +11 -0
- package/template/unity/tools/audio_report.py +124 -0
- package/template/unity/tools/autoplay.sh +91 -0
- package/template/unity/tools/deploy.sh +80 -0
- package/template/unity/tools/make_ambient.py +212 -0
- package/template/unity/tools/make_sfx.py +143 -0
- package/template/unity/tools/normalize_narration.py +51 -0
- package/template/unity/tools/split_narration.py +89 -0
- package/template/unity/tools/world.py +168 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# PolyForm Noncommercial License 1.0.0
|
|
2
|
+
|
|
3
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
4
|
+
|
|
5
|
+
## Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
8
|
+
|
|
9
|
+
## Copyright License
|
|
10
|
+
|
|
11
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
12
|
+
|
|
13
|
+
## Distribution License
|
|
14
|
+
|
|
15
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
16
|
+
|
|
17
|
+
## Notices
|
|
18
|
+
|
|
19
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
20
|
+
|
|
21
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
22
|
+
|
|
23
|
+
## Changes and New Works License
|
|
24
|
+
|
|
25
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
26
|
+
|
|
27
|
+
## Patent License
|
|
28
|
+
|
|
29
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
30
|
+
|
|
31
|
+
## Noncommercial Purposes
|
|
32
|
+
|
|
33
|
+
Any noncommercial purpose is a permitted purpose.
|
|
34
|
+
|
|
35
|
+
## Personal Uses
|
|
36
|
+
|
|
37
|
+
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
38
|
+
|
|
39
|
+
## Noncommercial Organizations
|
|
40
|
+
|
|
41
|
+
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
42
|
+
|
|
43
|
+
## Fair Use
|
|
44
|
+
|
|
45
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
46
|
+
|
|
47
|
+
## No Other Rights
|
|
48
|
+
|
|
49
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
50
|
+
|
|
51
|
+
## Patent Defense
|
|
52
|
+
|
|
53
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
54
|
+
|
|
55
|
+
## Violations
|
|
56
|
+
|
|
57
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
58
|
+
|
|
59
|
+
## No Liability
|
|
60
|
+
|
|
61
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
62
|
+
|
|
63
|
+
## Definitions
|
|
64
|
+
|
|
65
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
66
|
+
|
|
67
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
68
|
+
|
|
69
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
70
|
+
|
|
71
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
72
|
+
|
|
73
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
|
74
|
+
|
|
75
|
+
## Required Notice
|
|
76
|
+
|
|
77
|
+
Required Notice: Copyright 2026 CocoSgt (https://github.com/CocoSgt/dsh-vidi)
|
package/NOTICE.md
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# 第三方素材
|
|
2
|
+
|
|
3
|
+
- **Noto Sans SC**(`template/unity/Assets/PicoWorld/Fonts/NotoSansSC-Medium.ttf`):Google / Adobe,SIL Open Font License 1.1。
|
|
4
|
+
- **Unity 模板文件**(`template/unity/Assets/Settings`、`XR`、`XRI`、`TextMesh Pro`、`Scenes/SampleScene.unity` 等):来自 Unity 与 PICO 的 PICOXR 工程模板,随 Unity 和 PICO XR SDK 的许可使用。
|
|
5
|
+
- **示例旁白**(`examples/llm-lesson/Narration`、`audio-src/voice_ref.wav`):作者用字节 Seed Audio 1.5(经 LibTV)为《走进大模型》生成的 AI 配音。示例的参考音色可以直接用来给自己的课配音;它不是任何真人的声音。
|
|
6
|
+
- **音效**(`Resources/SFX`):`tools/make_sfx.py` 用代码合成。
|
package/README.md
CHANGED
|
@@ -1,3 +1,87 @@
|
|
|
1
|
-
#
|
|
1
|
+
# PICO Lab · PICO 世界工坊(dsh-pico-lab)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
DeepSeek Harness 插件:在对话里一句话搭出一个**能走进去的世界**——在 PICO 头显里上的一堂十分钟互动课,然后装进头显。
|
|
4
|
+
|
|
5
|
+
一堂课一章一章往下走:纪录片式的旁白引导视线,每一章的关键一步由你的手完成(碰、捏、搬、推、拧),动作本身就是那个概念。框架、部署、自动试玩、字体烘焙、旁白切分和响度统一都是现成的;**一堂新课 = 新的章节代码 + 新的台词表 + 旁白录音**。
|
|
6
|
+
|
|
7
|
+
自带完整示例《走进大模型》:开场 + 11 章,给大学文科生讲大模型是怎么工作的(语料、切词、向量、方向、位置、注意力、层、输出、生成、训练、全景),61 句旁白都已配好(含开场 4 句)。
|
|
8
|
+
|
|
9
|
+
## 装
|
|
10
|
+
|
|
11
|
+
DSH 里 **插件 → 安装第三方插件**,填 `dsh-pico-lab`(还没发布到 npm 时用本地路径 link)。装好后直接在对话里说:
|
|
12
|
+
|
|
13
|
+
> 帮我做一堂能在 PICO 头显里上的互动课,讲光合作用,给初中生。
|
|
14
|
+
|
|
15
|
+
Agent 会:查依赖、缺什么引导装什么 → 从模板生成 Unity 工程 → 在 Unity 里打开 → 写章节和台词 → 自动试玩、看截图、改 → 配音(先问你,花积分)→ 装进头显。
|
|
16
|
+
|
|
17
|
+
也可以不用对话:侧栏点 **PICO Lab** 打开图形界面——
|
|
18
|
+
|
|
19
|
+
- **准备环境**:每个依赖一行,缺的点“安装”;要你自己做的(Homebrew、git 命令行工具)给出命令,一键复制。
|
|
20
|
+
- **新建世界**:填课名、英文名、给谁上、一句话,选起步课或完整示例。
|
|
21
|
+
- **世界页**:编辑器、PICO XR SDK、旁白录音、台词表、头显的状态一眼看到;按钮“在 Unity 里打开 / 自动试玩 / 打包 APK / 装进头显”,进度和日志实时显示;“试玩”里是每句旁白一张的截图墙(点开大图、左右翻);“台词”里按章列出每句、能试听;“写课和配音”给出交给 Agent 的写课指令和每章 Seed Audio 提示词,一键复制。
|
|
22
|
+
|
|
23
|
+
写课本身(章节代码和台词)还是交给对话里的 Agent。
|
|
24
|
+
|
|
25
|
+
需要 DSH 0.2.2 以上、macOS(Apple 芯片),一台 PICO 头显(开发者模式,USB 连电脑)。
|
|
26
|
+
|
|
27
|
+
## 依赖(插件会逐项检查,能装的问过你再装)
|
|
28
|
+
|
|
29
|
+
| 依赖 | 用来 | 怎么装 |
|
|
30
|
+
|---|---|---|
|
|
31
|
+
| Homebrew | 装下面几样 | 要你自己在终端里装(会要开机密码) |
|
|
32
|
+
| git | Unity 从 GitHub 取 PICO XR SDK | `xcode-select --install`(你自己点) |
|
|
33
|
+
| Unity 命令行 `unity` | 装编辑器、打开工程、编译、试玩、打包 | 插件代装:`curl -fsSL https://unity.com/install.sh \| bash` |
|
|
34
|
+
| Unity 编辑器 6000.3.29f1 + Android 模块 | 这套框架就在这个版本上做的 | 插件代装:`unity install 6000.3.29f1 -m android`(约 8 GB);第一次要用 Unity 账号登录、领取免费的个人版许可(你自己) |
|
|
35
|
+
| PICO XR SDK | 头显、手部追踪 | 工程第一次打开时 Unity 自动从 GitHub 取;取不到会提示你检查网络 |
|
|
36
|
+
| adb | 装进头显 | 插件代装:`brew install --cask android-platform-tools`(Unity 的 Android 模块也自带) |
|
|
37
|
+
| ffmpeg | 旁白切分、响度 | 插件代装:`brew install ffmpeg` |
|
|
38
|
+
| Python 3 + numpy | 台词表、音效合成、音频测量 | numpy 装在插件自己的目录里,不动系统 Python |
|
|
39
|
+
| whisper.cpp + 模型(可选) | 切完旁白自动听一遍核对 | 插件代装:`brew install whisper-cpp`,模型约 550 MB |
|
|
40
|
+
|
|
41
|
+
## 配音
|
|
42
|
+
|
|
43
|
+
旁白用字节 Seed Audio 1.5(经 LibTV,花 LibLib 积分)。插件按台词表给每章写好一段提示词(纪录片旁白、同一个参考音色、句间两秒停顿);有 DSH 创作台插件(`creation_generate`)时 Agent 用它生成,**花积分前一定先问你**;没有就请你在 LibTV 网页上生成、把文件给它。整章音频回来后自动按停顿切成每句一个文件、用 whisper 核对、统一到 -16 LUFS。没有配音时课也能跑:字幕按字数停留。
|
|
44
|
+
|
|
45
|
+
## 工具
|
|
46
|
+
|
|
47
|
+
| 工具 | 做什么 |
|
|
48
|
+
|---|---|
|
|
49
|
+
| `pico_world_setup` | 查依赖 / 装一个依赖 |
|
|
50
|
+
| `pico_world_create` | 从模板生成世界(`starter` 两章起步课,`llm-lesson` 完整示例) |
|
|
51
|
+
| `pico_world_list` | 已有的世界和连着的头显 |
|
|
52
|
+
| `pico_world_check` | 台词表、代码、录音三方核对;SDK、编辑器状态 |
|
|
53
|
+
| `pico_world_open` | 在 Unity 里打开 |
|
|
54
|
+
| `pico_world_autoplay` | 编辑器里自动试玩整堂课,出报告和每句一张截图 |
|
|
55
|
+
| `pico_world_voice` | 配音提示词 / 切分整章旁白 / 响度统一 / 重新合成音效 |
|
|
56
|
+
| `pico_world_deploy` | 打 APK、装进头显、启动 |
|
|
57
|
+
| `pico_world_jobs` | 看后台任务(安装、打开、试玩、打包) |
|
|
58
|
+
|
|
59
|
+
命令行(给 Claude Code / Codex 用):`pico-lab <工具> '<JSON>'`(或 `node bin/cli.mjs`),如 `node bin/cli.mjs create '{"title":"光合作用","slug":"photosynthesis"}'`。
|
|
60
|
+
|
|
61
|
+
## 世界长什么样
|
|
62
|
+
|
|
63
|
+
每个世界是一个独立的 Unity 工程(默认在 `~/PICO-Worlds/<slug>`)。写课先读工程里的 `AUTHORING.md`(框架用法、课的调性、流程)和 `ART.md`(美术规范)。
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
WORLD.md 课纲
|
|
67
|
+
SCRIPT.md 台词表(每句旁白一行,唯一来源)
|
|
68
|
+
world.json 课名、包名
|
|
69
|
+
Assets/PicoWorld/Scripts/Course/ Course.cs(章节顺序)+ 每章一个类
|
|
70
|
+
Assets/PicoWorld/Scripts/Core/ 框架:Lesson、Art、手、可交互物、背景
|
|
71
|
+
Assets/PicoWorld/Editor/WorldSetup.cs 一键搭场景
|
|
72
|
+
tools/ autoplay.sh、deploy.sh、world.py、split_narration.py、normalize_narration.py、make_sfx.py …
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 开发
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
pnpm install && pnpm build && npm test
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
测试用独立的 DSH:`DSH_HOME=~/.dsh-pico-world-test dsh pw-headless "…"`,不要在 `~/.dsh` 上起第二个 DSH。`scripts/extract-template.py` 是当初从《走进大模型》工程抽模板的一次性脚本,模板之后手改过,重跑要 `--force`。
|
|
82
|
+
|
|
83
|
+
字体、示例音色等第三方素材见 `NOTICE.md`。
|
|
84
|
+
|
|
85
|
+
## 许可
|
|
86
|
+
|
|
87
|
+
[PolyForm Noncommercial 1.0.0](LICENSE.md):除商业用途外,可以随意使用、修改、分享。
|
package/bin/cli.mjs
ADDED
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
# 美术方向 · 《走进大模型》
|
|
2
|
+
|
|
3
|
+
一句话:**夜里的一间阅览室——深墨蓝的空间,石墨色的字牌,纸白的字,一盏琥珀色的灯。**
|
|
4
|
+
|
|
5
|
+
观众是大学文科生,调性是科普纪录片。画面要像一本排得很好的书被搬进了空间里:字是主角,形体安静,颜色很少,光只落在此刻该看的那一处。不卡通、不霓虹、不“科技感粒子”。
|
|
6
|
+
|
|
7
|
+
代码入口:`Assets/LLMWorld/Scripts/Core/Art.cs`(色板、字号、材质、字牌、底板、线、动效)。各章不自己发明颜色和材质。
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. 三条总规则
|
|
12
|
+
|
|
13
|
+
1. **字永远清楚。** 字不发光,字的底不发光。高亮从不靠“把整块提亮”,而是靠底色偏向强调色(颜料,不发光)加一条细光线。
|
|
14
|
+
2. **一屏只有一处琥珀。** 琥珀色只表示“现在看这里 / 现在碰这里 / 这是被选中的那个”。它出现在第二处,第一处就要退掉。
|
|
15
|
+
3. **颜色有固定含义,全片不换。** 见下表。没有含义的东西一律石墨色(Slate)加纸白字。
|
|
16
|
+
|
|
17
|
+
## 2. 色板与语义
|
|
18
|
+
|
|
19
|
+
| 名称 | `Art.` | sRGB | 含义 / 用在哪 |
|
|
20
|
+
|---|---|---|---|
|
|
21
|
+
| 夜墨 | `Void` | 5,7,13 | 背景、字幕底板、转场暗幕 |
|
|
22
|
+
| 石墨 | `Slate` | 43,52,73 | 所有字牌、面板、器物的本体 |
|
|
23
|
+
| 亮石墨 | `SlateHi` | 66,79,105 | 悬停 / 抬起的字牌,次要柱体 |
|
|
24
|
+
| 线灰 | `Line` | 84,99,133 | 细线:边框、坐标轴、网格、结构连线 |
|
|
25
|
+
| 纸白 | `Paper` | 219,214,201 | 主文字(刻意低于辉光阈值) |
|
|
26
|
+
| 雾灰 | `Mist` | 153,166,189 | 次级文字:数值、轴标、章节英文 |
|
|
27
|
+
| 暗灰 | `Dim` | 102,113,138 | 三级文字:“示意”、脚注、未激活项 |
|
|
28
|
+
| **琥珀** | `Amber` | 255,179,84 | **焦点**:要看的、要碰的、被选中的、你的手造成的结果 |
|
|
29
|
+
| 天青 | `Azure` | 110,168,255 | **模型自己的数据**:向量、权重、概率、流动 |
|
|
30
|
+
| 玉绿 | `Jade` | 92,199,166 | 正确、收敛、损失变小;分类色之一 |
|
|
31
|
+
| 朱砂 | `Vermilion` | 230,102,79 | 错误、损失、猜错的词。少用 |
|
|
32
|
+
| 藤紫 | `Violet` | 163,143,240 | 第二数据序列:负值、另一组注意力头、第三个分类 |
|
|
33
|
+
|
|
34
|
+
三种用法,只有这三种:
|
|
35
|
+
|
|
36
|
+
- **颜料** `Art.Ink(c)` / `Art.Tinted(c)`:不发光。文字、填充、字牌底色。`Tinted` 是把强调色混进石墨,得到“带这个颜色的深色面”。
|
|
37
|
+
- **光** `Art.Lit(c)`:最亮通道推到 1.0,会被 Bloom 拾起。**只给细的东西**:字牌下的细线、连线、小圆点、指针。面积超过一枚指甲盖的面不许用。
|
|
38
|
+
- 需要分三类(第 2 章):天青 / 玉绿 / 藤紫,同明度。需要正负(向量条):正 = 天青,负 = 藤紫。需要对错:玉绿 / 朱砂。
|
|
39
|
+
|
|
40
|
+
## 3. 材质
|
|
41
|
+
|
|
42
|
+
| 用途 | 做法 |
|
|
43
|
+
|---|---|
|
|
44
|
+
| 实体(字牌、柱、球、旋钮、开关) | `Art.Solid(c)`:URP Lit,哑光、无高光、无反射;自带 80% 自发光,所以转身时颜色不变,形体靠顶光和三色环境光读出来(正面约为所给颜色的 85%,顶面约 110%)。自发光一律经 `Art.Emit` 换算:工程是线性色彩空间,`_EmissionColor` 不会自动从 sRGB 转换,直接塞色板值会让所有实体亮两三倍、发灰(上一版“字牌偏浅、字不够清楚”的原因) |
|
|
45
|
+
| 圆角实体 | `Art.Slab(...)`:圆角板网格(按尺寸缓存),取代默认 Cube。字牌圆角 = 短边 14% |
|
|
46
|
+
| 平面卡片 | `Art.Plate(...)`:一张 Quad,圆角和细边在 shader 里算(`Shaders/Plate.shader`)。字幕底板、读数底板、面板、分类区域都用它 |
|
|
47
|
+
| 细线、光条 | `Art.Flat(c)`(URP Unlit)或 `Art.Rule(...)`、`Art.Stroke(...)`(LineRenderer,圆头)。不透明的 Stroke 颜色在材质里(URP Unlit 不读顶点色),要淡出的用加色版 |
|
|
48
|
+
| 会淡出的线、柔光 | `Art.Additive(c)`(粒子加色材质),靠 alpha 淡出 |
|
|
49
|
+
| 半透明面 | 平的半透明面用 `Art.Plate`(不受光、alpha 是真的;叠在别的透明物前面时关掉 `_ZWrite`)。`Art.Glass(c, alpha)` 只留给需要受光的立体玻璃:alpha ≤ 0.2,同一视线上最多叠三层 |
|
|
50
|
+
|
|
51
|
+
不用的东西:默认 Cube 的直角、高光反射、整面自发光、彩虹配色、粒子庆祝。
|
|
52
|
+
|
|
53
|
+
## 4. 字
|
|
54
|
+
|
|
55
|
+
只有一个字体(Noto Sans SC Medium)。层级靠字号、颜色、字距,不靠粗细。TextMeshPro 世界文字 `fontSize 1 ≈ 10 cm`。
|
|
56
|
+
|
|
57
|
+
| 层级 | 常量 | 字号 | 距离 | 颜色 |
|
|
58
|
+
|---|---|---|---|---|
|
|
59
|
+
| 章节标题 | — | 0.80 | 1.15 m | 纸白,字距 +10 |
|
|
60
|
+
| 章节序号 / 英文 | — | 0.24 | 1.15 m | 雾灰,字距 +18,全大写 |
|
|
61
|
+
| 字幕 | — | 0.32 | 1.1 m | 纸白,夜墨底板,每行最多约 28 字 |
|
|
62
|
+
| 场景主句(公式、整句诗) | `Art.ReadTitle` | 0.42 | 0.85 m | 纸白 |
|
|
63
|
+
| 阅读距离的标签 | `Art.ReadBody` | 0.26 | 0.85 m | 纸白 / 雾灰 |
|
|
64
|
+
| 阅读距离的注脚、“示意” | `Art.ReadSmall` | 0.20 | 0.85 m | 暗灰 → 雾灰 |
|
|
65
|
+
| 字牌上的字 | `Art.TileChar` | 0.28 | 0.38 m | 纸白 |
|
|
66
|
+
| 手边的数值、百分比 | `Art.ReachBody` | 0.13 | 0.38 m | 雾灰;焦点项用琥珀颜料 |
|
|
67
|
+
| 手边最小字(编号、刻度) | `Art.ReachSmall` | 0.095 | 0.38 m | 雾灰 |
|
|
68
|
+
|
|
69
|
+
- 下限:任何汉字不小于 1.3° 视角。拿不准用 `Art.SizeAt(距离, 角度)`。
|
|
70
|
+
- 文字颜色一律经过 `Art.Ink`(`WorldKit.Text` 和 `Art.Label` 已自动处理),最亮通道不超过 0.86,所以字不会被 Bloom 洗白。**不要再写 `Color.white`。**
|
|
71
|
+
- 数字读数压在复杂形体上时,用 `Art.Chip(...)`(字 + 贴身小底板),不要靠描边硬撑。
|
|
72
|
+
- 排版:同一组标签左对齐或居中统一;数值和单位之间留半个字;“(示意)”永远是最小一级、暗灰。
|
|
73
|
+
|
|
74
|
+
## 5. 光与辉光
|
|
75
|
+
|
|
76
|
+
- 渲染目标是 LDR(移动端没开 HDR),Bloom 只看得见“比 0.95 更亮”的像素。于是规则很简单:**纸白 0.86 不起辉,`Art.Lit` 的 1.0 起辉。** Bloom 阈值 0.95、强度 1.6、散射 0.45、4 级迭代。
|
|
77
|
+
- 起辉的只有:字牌下的状态细线、注意力连线、位移箭头、指针、小光点、章节标题下的琥珀短线。
|
|
78
|
+
- 场景只有一盏正上方的方向光(不投影)和三色环境光(天 / 地平 / 地)。布局跟着观众朝向转,光照不能跟着变,所以不用斜光。
|
|
79
|
+
- 高亮的三级强度(字牌用 `Tile.Tint` / `Tile.Rule` / `Tile.Focus`):
|
|
80
|
+
1. 提示可碰:底色向琥珀偏 20–35%,随 `Art.Breath()` 缓慢呼吸(约 2.4 秒一次)。不闪。
|
|
81
|
+
2. 手靠近:再亮一点(Grabbable 自带,把本体自发光乘到 2 倍;只在有手靠近时写,以靠近那一刻的颜色为基准,所以静止时章节可以随意给它染色)。
|
|
82
|
+
3. 选中 / 完成:`Focus(Art.Amber, 1)`,底色全偏 + 细光线亮起。
|
|
83
|
+
- 退场用 `Tile.Dim`:非主角字牌退到 25% 字、近背景色的底,让主角自己显出来,而不是把主角提亮。
|
|
84
|
+
|
|
85
|
+
## 6. 背景与空间
|
|
86
|
+
|
|
87
|
+
**背景是“夜里的语料”。** 大模型的宇宙就是它读过的文字,所以阅览室窗外的夜空不是星星,是极远处的句子。第 0 章从身边流过的那条字的河,退远以后就是这片天。背景只有质感,没有内容:全部压暗、低对比,任何一处都不超过前景标签亮度的三分之一,不起辉。
|
|
88
|
+
|
|
89
|
+
从远到近(`Shaders/Sky.shader`、`Core/Backdrop.cs`、`WorldSetup.BuildStars / BuildHaze`):
|
|
90
|
+
|
|
91
|
+
| 层 | 是什么 | 怎么动 | 成本 |
|
|
92
|
+
|---|---|---|---|
|
|
93
|
+
| 天底 | 三段渐变:天顶近黑的靛蓝,地平线略亮一档,脚下再暗下去,带抖动防色带。给空间一个上下 | 不动 | — |
|
|
94
|
+
| 雾带 | 一条斜跨天空、断断续续的冷色雾带,里面有暗缝,最浓处透一点暖色(那盏灯的余光)。是“字的河”远到看不清字的样子。烘成 256² 立方体贴图(`LLMHaze.cubemap`,程序生成) | 绕竖轴整体缓转,0.2°/秒 | 每像素一次采样 |
|
|
95
|
+
| 远点 | 雾带里密、别处疏的小光点,冷色为主,少数暖色 | 跟雾带一起转;每个点按自己的节奏慢慢呼吸,不闪 | 着色器里每像素一个格子,无循环 |
|
|
96
|
+
| 远处的句子 | 三圈极淡的句子(6 m / 9 m / 13 m,共 36 行,用的就是第 0 章那些句子,不新增字形)。字约 0.6–0.95°,不为了读 | 三圈各自缓转(0.45 / −0.30 / 0.20 °/秒),近圈和远圈相对滑动,这是景深的来源;每隔几秒有一句慢慢亮起再沉下去(5 秒一次起伏,最多到静止亮度的 2.4 倍) | 36 个 TMP,约 700 个字 |
|
|
97
|
+
| 微尘 | 3–11 m 之间约 260 粒小点,真有远近 | 每粒每秒漂几厘米,半分钟里淡入淡出一次 | 一个粒子系统 |
|
|
98
|
+
|
|
99
|
+
规矩:
|
|
100
|
+
- 背景的运动只有“缓转、漂、呼吸”三种,都慢到要盯着看才发现;没有快闪、没有流星、没有朝观众来或离观众去的运动(防晕)。
|
|
101
|
+
- 背景里不出现琥珀;暖色只在雾带最浓处有一点,饱和度很低。
|
|
102
|
+
- 调强弱只动 `LLMSky.mat` 的 `_HazeAmount`、`_StarAmount`、`_Turn`(数值在 `WorldSetup` 里设),和 `Backdrop.Rings` 里的 alpha;不要给背景加新的种类。
|
|
103
|
+
- 三个固定的深度层,全片不变:
|
|
104
|
+
- **手边层**(`L.Reach`,约 0.38 m,略低于视线):要碰的东西。距离不动。
|
|
105
|
+
- **阅读层**(`L.ReadAt`,约 0.85 m,略高于视线):只读的标题、图注、图表。
|
|
106
|
+
- **字幕层**(1.1 m,卡片**顶边**固定在视线下方 24°,第二行往下长):字幕,带底板,画在最上层。
|
|
107
|
+
- 手边层的东西不往下长过本章原点下方 16 cm(约 23°,再往下就是字幕)。需要更多空间就往两侧和上方长。字幕画在最上层,一旦盖住更近的物体,头显里就是“远的东西挡住近的东西”,眼睛会不舒服,所以靠错开,不靠透明。
|
|
108
|
+
- 例外只有一处:第 9 章的损失地形必须又低又宽,从地形出现起字幕改挂在地形上方(`L.SubtitleDrop = 0.17f`,每章开始自动复位)。其他章不要用这个开关。
|
|
109
|
+
|
|
110
|
+
## 7. 字幕、章节标题、转场(已在 `Lesson.cs` 落地)
|
|
111
|
+
|
|
112
|
+
- **字幕**:纸白字 + 夜墨圆角底板(不透明度 90%,线灰细边),底板随每句自动贴合、从顶边往下挂;ZTest Always,画在所有物体之上。宽 0.92 m,长句自动折成两行。超时才出现的动作提示(示),底板边线变琥珀——“该你动手了”。
|
|
113
|
+
- **章节标题**:暗幕上先出一行小字 `03 DIRECTIONS`,再出大字标题,下面一条琥珀短线自己画出来;停 1.5 秒,淡出。
|
|
114
|
+
- **转场**:章末字淡出,暗幕合上(0.7 秒);标题在暗幕上出现;新一章随暗幕拉开(0.8 秒)。不再有“整体缩小后突然消失”。章节播放期间暗幕关闭,不占透明层。
|
|
115
|
+
|
|
116
|
+
## 8. 动效原则
|
|
117
|
+
|
|
118
|
+
1. **来得稳,走得快。** 出现 0.35–0.6 秒,淡入的同时上移约 1.2 cm 落位,ease-out;消失 0.25–0.4 秒。`Art.Arrive` / `Art.Leave`。
|
|
119
|
+
2. **不弹。** `EaseOutBack` 的过冲已压到几乎看不出;`Wobble` 改成一下轻让,不抖。
|
|
120
|
+
3. **一次只动一件事。** 多个物体依次出现,间隔 0.06–0.12 秒,不同时炸开。
|
|
121
|
+
4. **动作有因果。** 前景的物体只因为手、或因为旁白正在讲的那件事而动。自己动的只有背景(§6),而且慢到不引人看。
|
|
122
|
+
5. **等待时只有呼吸。** 等观众动手的物体用 `Art.Breath()` 做琥珀偏色的慢呼吸,不闪烁、不跳动。
|
|
123
|
+
6. **光尘是标点,不是烟花。** `Burst.Spawn` 已全局收敛成 3–18 粒细尘,只在“切开 / 合上 / 落位”这类瞬间用,一次交互最多一处。
|
|
124
|
+
|
|
125
|
+
## 9. 每章一句视觉概念
|
|
126
|
+
|
|
127
|
+
| # | 章 | 概念 | 关键色 |
|
|
128
|
+
|---|---|---|---|
|
|
129
|
+
| 0 | 语料 | **文字的河。** 远近不同、明暗不同的纸白句子缓缓流过,像深夜里一条字的河;被抽出的那一句是唯一带琥珀的。 | 雾灰 / 暗灰的流,一句琥珀 |
|
|
130
|
+
| 1 | 切词 | **活字。** 一句话裂成一排石墨活字牌,整齐、等高、只有字;合并时两块之间亮起一条琥珀线,编号像铅字的号码压在牌下。 | 石墨 + 琥珀 |
|
|
131
|
+
| 2 | 向量 | **抽屉里的一串刻度。** 编号拉开成一根天青 / 藤紫的刻度条(正负);三个分类区是三块带细边的暗色台面,各有一个颜色。 | 天青 / 藤紫;三类 = 天青、玉绿、藤紫 |
|
|
132
|
+
| 3 | 方向 | **星图。** 词是星图上的点,细线坐标轴;“男→女”是一根琥珀箭头,被你拿起来搭到“国王”上,终点落下“王后”。 | 线灰的图,琥珀的箭 |
|
|
133
|
+
| 4 | 位置 | **座次牌。** 三块字牌各坐在带序号的底座上;对调时字牌走弧线换位,底座不动;位置编码是底座上亮起的一排天青细条。 | 石墨 + 天青 |
|
|
134
|
+
| 5 | 注意力 | **视线。** 一排石墨字牌,“她”是唯一的琥珀牌(等手时呼吸);指对了,“小红”偏玉绿。捏住“她”,牌上方拉出琥珀弧线,粗细 = 权重,百分比压在牌下,没被看的词按权重退暗。多头 = 三种颜色、三种高度的三组弧线,图例在阅读层。 | 琥珀(指代)、天青(远近)、藤紫(语法);答对 = 玉绿 |
|
|
135
|
+
| 6 | 层 | **一叠玻璃底片。** 向量穿过一片片极淡的玻璃片,每过一片,天青刻度条变一次;片数读数在侧面。玻璃要淡,最多同时看见三四片的边。 | 天青,玻璃 = 线灰边 |
|
|
136
|
+
| 7 | 输出 | **天平上的候选。** 五根概率柱,石墨柱身、顶端一条天青光边,数值在柱顶;被取下的“霜”变琥珀;温度旋钮是一个哑光圆盘加一根琥珀指针。 | 天青柱,琥珀选中 |
|
|
137
|
+
| 8 | 生成 | **一字一字排版。** 句尾的光标是一条琥珀竖线,等手时呼吸;每捏一次,一道天青细线从左到右扫过整行(整句送回模型),三枚候选带着天青小柱出现在光标上方,选中的变琥珀、落进行尾,冷却成略偏天青的石墨(模型写的字),光标后移。 | 石墨 + 琥珀光标;天青 = 读入与概率 |
|
|
138
|
+
| 9 | 训练 | **地形图。** 损失曲面是线灰等高线网格,高处偏朱砂、低处偏玉绿;小球是唯一的琥珀点;“损失”读数随下降从朱砂走向玉绿。 | 朱砂 → 玉绿,琥珀小球 |
|
|
139
|
+
| 10 | 全景 | **一条装配线的总览图。** 前面每章的器物缩成五个小站(活字、正负刻度条、三片玻璃加视线、概率柱、一块字牌),一根线灰导轨串起来;旁白念到哪一站,哪一站才从暗处显出来。开关的圆头等手时是唯一的琥珀;扳下后圆头回到石墨,一粒琥珀光沿导轨一遍遍走,经过时站下的短线亮一下,每走一遍上方的句子多一个词元。 | 石墨站点,琥珀流;开关接通 = 天青 |
|
|
140
|
+
|
|
141
|
+
## 10. 性能约束(美术必须遵守)
|
|
142
|
+
|
|
143
|
+
- 不加实时灯;不投影(`Art.NoShadows` 已在所有工厂方法里做了)。
|
|
144
|
+
- 透明:同一视线上最多三层;大面积半透明面 alpha ≤ 0.2;字幕底板和转场暗幕是仅有的两个画在最上层的面,暗幕只在转场时存在。
|
|
145
|
+
- 粒子:背景微尘同屏约 260 粒;`Burst` 每次 ≤ 18 粒;章节自己的粒子系统同屏不超过 150 粒。
|
|
146
|
+
- 每个 `Art.Solid` / `Art.Flat` 调用都会新建一个材质:成排相同的东西共用一个材质(`sharedMaterial`),只有需要单独变色的才单独建。
|
|
147
|
+
- 后处理只有 Bloom(4 级、低质量滤波)。不加景深、色差、暗角。
|
|
148
|
+
|
|
149
|
+
## 11. `Art` 速查
|
|
150
|
+
|
|
151
|
+
```csharp
|
|
152
|
+
// 颜色
|
|
153
|
+
Art.Paper / Mist / Dim // 文字三级
|
|
154
|
+
Art.Slate / SlateHi / Line / Void // 本体、细线、背景
|
|
155
|
+
Art.Amber / Azure / Jade / Vermilion / Violet
|
|
156
|
+
Art.Lit(c) // 当“光”用:只给细的东西,会起辉
|
|
157
|
+
Art.Ink(c) // 当“颜料”用:不起辉
|
|
158
|
+
Art.Tinted(c, k) // 强调色混进石墨,做填充色
|
|
159
|
+
Art.A(c, alpha)
|
|
160
|
+
|
|
161
|
+
// 材质
|
|
162
|
+
Art.Solid(c) Art.Flat(c) Art.Additive(c) Art.Glass(c, alpha) Art.Paint(mat, c)
|
|
163
|
+
|
|
164
|
+
// 构件(都已去掉碰撞体和阴影)
|
|
165
|
+
Tile t = Art.Tile(parent, "床", pos, w, h, d); // 字牌:t.body / t.label / t.Tint / t.Rule / t.Focus / t.Dim
|
|
166
|
+
Renderer r = Art.Slab(parent, pos, w, h, d, Art.Slate); // 圆角板
|
|
167
|
+
Renderer r = Art.Prim(PrimitiveType.Sphere, parent, pos, size, Art.Solid(Art.Slate));
|
|
168
|
+
Plate p = Art.Plate(parent, pos, w, h, radius, fill, border); // 圆角卡片:p.Size / Fill / Border / Alpha
|
|
169
|
+
Art.Rule(parent, pos, length, thickness, Art.Lit(Art.Amber)); // 细线
|
|
170
|
+
LineRenderer l = Art.Stroke(parent, width, color, additive); // 曲线
|
|
171
|
+
TextMeshPro x = Art.Label("文字", parent, pos, Art.ReadBody, Art.Mist);
|
|
172
|
+
Chip c = Art.Chip("0.78", parent, pos, Art.ReachBody); // 带底板的读数:c.Set / c.SetAlpha
|
|
173
|
+
|
|
174
|
+
// 动效
|
|
175
|
+
Art.Arrive(tr) Art.Leave(tr) Art.Tween(dur, k => …) Art.EaseOut / EaseIn Art.Breath()
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## 12. 自测方法与这一轮定下的事
|
|
179
|
+
|
|
180
|
+
- 编辑器自动试玩时相机下俯 9°(头显视场比编辑器宽得多,这样截图能同时看到手边层和字幕),每句旁白和每张章节标题各存一张图。要看互动中途的画面:进入 play 后把 `LLMWorld.Lesson.AutoShotEvery` 设成秒数,会按间隔连续截图。
|
|
181
|
+
- 自动试玩会跳过互动。要看“做完之后”的画面,在 play 中用 `unity command script eval` 通过反射调用章节里的私有方法(例如第 6 章 `Push`、第 7 章 `Fill`、第 2 章 `Snap`、第 10 章 `ThrowLever`),不改章节代码。
|
|
182
|
+
- 字牌是深石墨(约 37,45,62),字是纸白,对比约 11:1。任何“把字牌提亮”的需求都先想 `Tile.Tint` / `Tile.Rule`。
|
|
183
|
+
- 一屏一处琥珀在各章的落点:0 被抽出的句子;1 合并中的“明月”;2 编号;3 位移箭头;4 对调后的整句;5 “她”;6 “推我”细线;7 空位 → 选中的字 → 旋钮指针;8 光标 ↔ 选中的候选;9 小球;10 开关圆头 → 导轨上的光点。
|