create-aura3d 1.0.9 → 1.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/dist/cli.js +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -4
- package/templates/cartoon-channel/README.md +38 -0
- package/templates/cartoon-channel/aura.assets.json +1364 -0
- package/templates/cartoon-channel/package.json +3 -2
- package/templates/cartoon-channel/public/aura-assets/luma.047f5e5f.glb +0 -0
- package/templates/cartoon-channel/public/aura-assets/luma.thumb.svg +1 -0
- package/templates/cartoon-channel/public/aura-assets/miko.047f5e5f.glb +0 -0
- package/templates/cartoon-channel/public/aura-assets/miko.thumb.svg +1 -0
- package/templates/cartoon-channel/public/aura-assets/moon-garden-feature-frame.png +0 -0
- package/templates/cartoon-channel/src/aura-assets.ts +5 -11
- package/templates/cartoon-channel/src/concept-episode-2-5d.css +159 -0
- package/templates/cartoon-channel/src/concept-episode-2-5d.ts +155 -0
- package/templates/cartoon-channel/src/image-puppet-episode.css +290 -0
- package/templates/cartoon-channel/src/image-puppet-episode.ts +139 -0
- package/templates/cartoon-channel/src/main.ts +89 -71
- package/templates/cartoon-channel/src/puppet-episode-2d.css +526 -0
- package/templates/cartoon-channel/src/puppet-episode-2d.ts +189 -0
- package/templates/cartoon-channel/src/render-plan.ts +1 -1
- package/templates/cartoon-channel/src/sample-episode-visual.css +457 -0
- package/templates/cartoon-channel/src/sample-episode-visual.ts +185 -0
- package/templates/cartoon-channel/test-results/.last-run.json +4 -0
- package/templates/cartoon-channel/tests/concept-2-5d-animation.spec.ts +18 -0
- package/templates/cartoon-channel/tests/concept-2-5d.spec.ts +30 -0
- package/templates/cartoon-channel/tests/image-puppet-animation.spec.ts +18 -0
- package/templates/cartoon-channel/tests/image-puppet.spec.ts +29 -0
- package/templates/cartoon-channel/tests/puppet-2d-animation.spec.ts +18 -0
- package/templates/cartoon-channel/tests/puppet-2d.spec.ts +26 -0
- package/templates/cartoon-channel/tests/reports/prompt-animation/cartoon-sample-episode.png +0 -0
- package/templates/cartoon-channel/tests/sample-episode-visual.spec.ts +45 -0
- package/templates/cartoon-channel/tests/storyboard-playback.spec.ts +1 -1
- package/templates/cartoon-studio/README.md +82 -0
- package/templates/cartoon-studio/aura.assets.json +157 -0
- package/templates/cartoon-studio/index.html +13 -0
- package/templates/cartoon-studio/package.json +32 -0
- package/templates/cartoon-studio/playwright.config.ts +13 -0
- package/templates/cartoon-studio/public/aura-assets/luma.047f5e5f.glb +0 -0
- package/templates/cartoon-studio/public/aura-assets/luma.humanoid-fixture.glb +0 -0
- package/templates/cartoon-studio/public/aura-assets/luma.thumb.svg +1 -0
- package/templates/cartoon-studio/public/aura-assets/miko.047f5e5f.glb +0 -0
- package/templates/cartoon-studio/public/aura-assets/miko.thumb.svg +1 -0
- package/templates/cartoon-studio/public/aura-assets/moonGarden.gltf +183 -0
- package/templates/cartoon-studio/scripts/episode.ts +276 -0
- package/templates/cartoon-studio/src/aura-assets.ts +61 -0
- package/templates/cartoon-studio/src/characters.ts +65 -0
- package/templates/cartoon-studio/src/contract.ts +1 -0
- package/templates/cartoon-studio/src/episode-renderer.ts +605 -0
- package/templates/cartoon-studio/src/episode.ts +306 -0
- package/templates/cartoon-studio/src/main.ts +333 -0
- package/templates/cartoon-studio/src/render-plan.ts +567 -0
- package/templates/cartoon-studio/src/review.ts +99 -0
- package/templates/cartoon-studio/src/sets.ts +14 -0
- package/templates/cartoon-studio/src/studio.ts +101 -0
- package/templates/cartoon-studio/test-results/.last-run.json +4 -0
- package/templates/cartoon-studio/tests/episode-render.spec.ts +44 -0
- package/templates/cartoon-studio/tests/motion-quality.spec.ts +45 -0
- package/templates/cartoon-studio/tests/route-health.spec.ts +7 -0
- package/templates/cartoon-studio/tests/storyboard-playback.spec.ts +99 -0
- package/templates/cartoon-studio/tests/visual-review.spec.ts +21 -0
- package/templates/cartoon-studio/tsconfig.json +12 -0
- package/templates/cinematic-scene/package.json +1 -1
- package/templates/episode-builder/README.md +46 -0
- package/templates/episode-builder/index.html +13 -0
- package/templates/episode-builder/package.json +21 -0
- package/templates/episode-builder/playwright.config.ts +13 -0
- package/templates/episode-builder/src/aura-assets.ts +14 -0
- package/templates/episode-builder/src/builder.ts +78 -0
- package/templates/episode-builder/src/characters.ts +28 -0
- package/templates/episode-builder/src/contract.ts +1 -0
- package/templates/episode-builder/src/episode.ts +300 -0
- package/templates/episode-builder/src/main.ts +265 -0
- package/templates/episode-builder/src/render-plan.ts +405 -0
- package/templates/episode-builder/src/sets.ts +14 -0
- package/templates/episode-builder/tests/route-health.spec.ts +7 -0
- package/templates/episode-builder/tests/storyboard-playback.spec.ts +98 -0
- package/templates/episode-builder/tsconfig.json +12 -0
- package/templates/fighting-game/package.json +1 -1
- package/templates/fighting-game/src/game/stage.ts +18 -4
- package/templates/fighting-game/src/main.ts +3 -2
- package/templates/mini-game/package.json +1 -1
- package/templates/product-viewer/package.json +1 -1
- package/templates/product-viewer/tests/screenshot.spec.ts +8 -16
- package/templates/prompt-cartoon-channel/package.json +1 -1
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
"typecheck": "tsc --noEmit",
|
|
9
9
|
"build": "npm run typecheck && vite build",
|
|
10
10
|
"preview": "vite preview --host 0.0.0.0",
|
|
11
|
-
"test": "playwright test tests/route-health.spec.ts tests/storyboard-playback.spec.ts --workers=1"
|
|
11
|
+
"test": "playwright test tests/route-health.spec.ts tests/storyboard-playback.spec.ts tests/sample-episode-visual.spec.ts tests/concept-2-5d.spec.ts tests/puppet-2d.spec.ts tests/image-puppet.spec.ts tests/concept-2-5d-animation.spec.ts tests/puppet-2d-animation.spec.ts tests/image-puppet-animation.spec.ts --workers=1",
|
|
12
|
+
"test:negative-failed-puppets": "playwright test tests/concept-2-5d.spec.ts tests/puppet-2d.spec.ts tests/image-puppet.spec.ts tests/concept-2-5d-animation.spec.ts tests/puppet-2d-animation.spec.ts tests/image-puppet-animation.spec.ts --workers=1"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@aura3d/engine": "1.0.
|
|
15
|
+
"@aura3d/engine": "1.0.10"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|
|
17
18
|
"@playwright/test": "^1.52.0",
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 180"><rect width="320" height="180" fill="#101720"/><path d="M80 126 160 46l80 80-80 28z" fill="#77a7ff"/><text x="160" y="160" text-anchor="middle" font-family="Arial" font-size="18" fill="#f4f7fb">luma 0.066x0.026x0.017</text></svg>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 180"><rect width="320" height="180" fill="#101720"/><path d="M80 126 160 46l80 80-80 28z" fill="#77a7ff"/><text x="160" y="160" text-anchor="middle" font-family="Arial" font-size="18" fill="#f4f7fb">miko 0.066x0.026x0.017</text></svg>
|
|
Binary file
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { defineAuraAssets } from "@aura3d/engine";
|
|
2
|
-
import { AURAVOICE_AURA3D_PROMPT_ANIMATION_CONTRACT_ID } from "./contract";
|
|
3
|
-
|
|
4
|
-
export const assetContractId = AURAVOICE_AURA3D_PROMPT_ANIMATION_CONTRACT_ID;
|
|
5
2
|
|
|
6
3
|
export const assets = defineAuraAssets({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* npx @aura3d/cli@latest assets validate-cartoon
|
|
13
|
-
*/
|
|
14
|
-
});
|
|
4
|
+
"luma": { type: "model", format: "glb", url: "/aura-assets/luma.047f5e5f.glb", hash: "sha256-047f5e5fb3bb6d378bd1df16ca6137f2a596c99b3a1b5690b4020c05aaf6f319", bounds: [0.066,0.026,0.017], sizeBytes: 463988, metadata: {"materials":["Grey","Main","Black"],"animations":["Dance","Death","Idle","Jump","No","Punch","Running","Sitting","Standing","ThumbsUp","Walking","WalkJump","Wave","Yes"],"animationClips":["Dance","Death","Idle","Jump","No","Punch","Running","Sitting","Standing","ThumbsUp","Walking","WalkJump","Wave","Yes"],"animationMetadata":{"clipCount":14,"clips":[{"index":0,"name":"Dance","channelCount":12,"samplerCount":12,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","UpperArm.L","LowerArm.L","UpperArm.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":1,"name":"Death","channelCount":18,"samplerCount":18,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Foot.L","Body","Shoulder.L","LowerArm.L","Shoulder.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","Foot.R"]},{"index":2,"name":"Idle","channelCount":7,"samplerCount":7,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":3,"name":"Jump","channelCount":18,"samplerCount":18,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Foot.L","Body","Neck","UpperArm.L","LowerArm.L","UpperArm.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","Foot.R"]},{"index":4,"name":"No","channelCount":7,"samplerCount":7,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":5,"name":"Punch","channelCount":15,"samplerCount":15,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","UpperArm.L","LowerArm.L","Shoulder.R","UpperArm.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","Foot.R"]},{"index":6,"name":"Running","channelCount":18,"samplerCount":18,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Foot.L","Body","Neck","UpperArm.L","LowerArm.L","Shoulder.R","UpperArm.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","Foot.R"]},{"index":7,"name":"Sitting","channelCount":10,"samplerCount":10,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","LowerArm.L","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":8,"name":"Standing","channelCount":10,"samplerCount":10,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","LowerArm.L","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":9,"name":"ThumbsUp","channelCount":15,"samplerCount":15,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","LowerArm.L","UpperArm.R","LowerArm.R","Middle1.R","Thumb.R","Thumb2.R","Index.R","Ring1.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":10,"name":"Walking","channelCount":20,"samplerCount":20,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Foot.L","Body","Neck","UpperArm.L","LowerArm.L","Shoulder.R","UpperArm.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","PoleTarget.L","Foot.R","PoleTarget.R"]},{"index":11,"name":"WalkJump","channelCount":18,"samplerCount":18,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Foot.L","Body","Neck","UpperArm.L","LowerArm.L","Shoulder.R","UpperArm.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","Foot.R"]},{"index":12,"name":"Wave","channelCount":18,"samplerCount":18,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","Shoulder.R","UpperArm.R","LowerArm.R","Middle1.R","Middle2.R","Thumb.R","Thumb2.R","Index.R","Index2.R","Ring1.R","Ring2.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":13,"name":"Yes","channelCount":7,"samplerCount":7,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]}],"messages":["Detected 14 embedded animation clips."]},"humanoid":true,"humanoidStatus":"humanoid","humanoidConfidence":"high","skeleton":{"skinCount":2,"jointCount":43,"skins":[{"index":0,"name":"skin-0","jointCount":43,"joints":["Bone","Foot.L","Body","Hips","Abdomen","Torso","Neck","Head","Shoulder.L","UpperArm.L","LowerArm.L","Palm2.L","Middle1.L","Middle2.L","Thumb.L","Thumb2.L","Palm1.L","Index.L","Index2.L","Palm3.L","Ring1.L","Ring2.L","Shoulder.R","UpperArm.R","LowerArm.R","Palm2.R","Middle1.R","Middle2.R","Thumb.R","Thumb2.R","Palm1.R","Index.R","Index2.R","Palm3.R","Ring1.R","Ring2.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","PoleTarget.L","Foot.R","PoleTarget.R"],"skeleton":"Bone"},{"index":1,"name":"skin-1","jointCount":43,"joints":["Bone","Foot.L","Body","Hips","Abdomen","Torso","Neck","Head","Shoulder.L","UpperArm.L","LowerArm.L","Palm2.L","Middle1.L","Middle2.L","Thumb.L","Thumb2.L","Palm1.L","Index.L","Index2.L","Palm3.L","Ring1.L","Ring2.L","Shoulder.R","UpperArm.R","LowerArm.R","Palm2.R","Middle1.R","Middle2.R","Thumb.R","Thumb2.R","Palm1.R","Index.R","Index2.R","Palm3.R","Ring1.R","Ring2.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","PoleTarget.L","Foot.R","PoleTarget.R"],"skeleton":"Bone"}],"messages":["Detected 2 skins with 43 unique joints."]},"morphTargets":{"targetCount":3,"targetNames":["Angry","Surprised","Sad"],"meshes":[{"index":2,"name":"Head","targetNames":["Angry","Surprised","Sad"]}],"messages":["Detected 3 morph targets."]},"provenance":{"sourcePath":"../../../engine/src/agent-api/assets/player-fixture.glb","checkedAt":"2026-06-06T23:36:54.694Z"},"sourcePath":"../../../engine/src/agent-api/assets/player-fixture.glb","outputPath":"public/aura-assets/luma.047f5e5f.glb","boundsMetadata":{"min":[-0.033,-0.013,-0.009],"max":[0.033,0.013,0.008],"size":[0.066,0.026,0.017],"center":[0,0,0],"maxDimension":0.066,"grounded":true},"materialMetadata":[{"name":"Grey","visible":true,"readable":true,"opacity":1,"alphaMode":"OPAQUE","reasons":[]},{"name":"Main","visible":true,"readable":true,"opacity":1,"alphaMode":"OPAQUE","reasons":[]},{"name":"Black","visible":true,"readable":true,"opacity":1,"alphaMode":"OPAQUE","reasons":[]}],"orientation":{"source":"unknown","messages":["No orientation metadata detected; facing direction cannot be proven."]},"nodeNames":["RootNode","RobotArmature","Bone","Foot.L","Foot.L","Foot.L_end","Body","Torso","Hips","Abdomen","Torso","Neck","Head","Head","Head_end","Shoulder.L","Shoulder.L","UpperArm.L","Arm.L","LowerArm.L","Palm2.L","Middle1.L","Middle2.L","Middle2.L_end","Thumb.L","Thumb2.L","Thumb2.L_end","Palm1.L","Index.L","Index2.L","Index2.L_end","Palm3.L","Ring1.L","Ring2.L","Ring2.L_end","Shoulder.R","Shoulder.R","UpperArm.R","Arm.R","LowerArm.R","Palm2.R","Middle1.R","Middle2.R","Middle2.R_end","Thumb.R","Thumb2.R","Thumb2.R_end","Palm1.R","Index.R","Index2.R","Index2.R_end","Palm3.R","Ring1.R","Ring2.R","Ring2.R_end","UpperLeg.L","Leg.L","LowerLeg.L","LowerLeg.L","LowerLeg.L_end","UpperLeg.R","Leg.R","LowerLeg.R","LowerLeg.R","LowerLeg.R_end","PoleTarget.L","PoleTarget.L_end","Foot.R","Foot.R","Foot.R_end","PoleTarget.R","PoleTarget.R_end","Hand.R","Hand.L"],"textures":[],"dependencies":[],"thumbnailUrl":"/aura-assets/luma.thumb.svg"} },
|
|
5
|
+
"miko": { type: "model", format: "glb", url: "/aura-assets/miko.047f5e5f.glb", hash: "sha256-047f5e5fb3bb6d378bd1df16ca6137f2a596c99b3a1b5690b4020c05aaf6f319", bounds: [0.066,0.026,0.017], sizeBytes: 463988, metadata: {"materials":["Grey","Main","Black"],"animations":["Dance","Death","Idle","Jump","No","Punch","Running","Sitting","Standing","ThumbsUp","Walking","WalkJump","Wave","Yes"],"animationClips":["Dance","Death","Idle","Jump","No","Punch","Running","Sitting","Standing","ThumbsUp","Walking","WalkJump","Wave","Yes"],"animationMetadata":{"clipCount":14,"clips":[{"index":0,"name":"Dance","channelCount":12,"samplerCount":12,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","UpperArm.L","LowerArm.L","UpperArm.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":1,"name":"Death","channelCount":18,"samplerCount":18,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Foot.L","Body","Shoulder.L","LowerArm.L","Shoulder.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","Foot.R"]},{"index":2,"name":"Idle","channelCount":7,"samplerCount":7,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":3,"name":"Jump","channelCount":18,"samplerCount":18,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Foot.L","Body","Neck","UpperArm.L","LowerArm.L","UpperArm.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","Foot.R"]},{"index":4,"name":"No","channelCount":7,"samplerCount":7,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":5,"name":"Punch","channelCount":15,"samplerCount":15,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","UpperArm.L","LowerArm.L","Shoulder.R","UpperArm.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","Foot.R"]},{"index":6,"name":"Running","channelCount":18,"samplerCount":18,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Foot.L","Body","Neck","UpperArm.L","LowerArm.L","Shoulder.R","UpperArm.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","Foot.R"]},{"index":7,"name":"Sitting","channelCount":10,"samplerCount":10,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","LowerArm.L","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":8,"name":"Standing","channelCount":10,"samplerCount":10,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","LowerArm.L","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":9,"name":"ThumbsUp","channelCount":15,"samplerCount":15,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","LowerArm.L","UpperArm.R","LowerArm.R","Middle1.R","Thumb.R","Thumb2.R","Index.R","Ring1.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":10,"name":"Walking","channelCount":20,"samplerCount":20,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Foot.L","Body","Neck","UpperArm.L","LowerArm.L","Shoulder.R","UpperArm.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","PoleTarget.L","Foot.R","PoleTarget.R"]},{"index":11,"name":"WalkJump","channelCount":18,"samplerCount":18,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Foot.L","Body","Neck","UpperArm.L","LowerArm.L","Shoulder.R","UpperArm.R","LowerArm.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","Foot.R"]},{"index":12,"name":"Wave","channelCount":18,"samplerCount":18,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","Shoulder.R","UpperArm.R","LowerArm.R","Middle1.R","Middle2.R","Thumb.R","Thumb2.R","Index.R","Index2.R","Ring1.R","Ring2.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]},{"index":13,"name":"Yes","channelCount":7,"samplerCount":7,"targetPaths":["weights","translation","rotation"],"targetNodes":["Head","Body","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R"]}],"messages":["Detected 14 embedded animation clips."]},"humanoid":true,"humanoidStatus":"humanoid","humanoidConfidence":"high","skeleton":{"skinCount":2,"jointCount":43,"skins":[{"index":0,"name":"skin-0","jointCount":43,"joints":["Bone","Foot.L","Body","Hips","Abdomen","Torso","Neck","Head","Shoulder.L","UpperArm.L","LowerArm.L","Palm2.L","Middle1.L","Middle2.L","Thumb.L","Thumb2.L","Palm1.L","Index.L","Index2.L","Palm3.L","Ring1.L","Ring2.L","Shoulder.R","UpperArm.R","LowerArm.R","Palm2.R","Middle1.R","Middle2.R","Thumb.R","Thumb2.R","Palm1.R","Index.R","Index2.R","Palm3.R","Ring1.R","Ring2.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","PoleTarget.L","Foot.R","PoleTarget.R"],"skeleton":"Bone"},{"index":1,"name":"skin-1","jointCount":43,"joints":["Bone","Foot.L","Body","Hips","Abdomen","Torso","Neck","Head","Shoulder.L","UpperArm.L","LowerArm.L","Palm2.L","Middle1.L","Middle2.L","Thumb.L","Thumb2.L","Palm1.L","Index.L","Index2.L","Palm3.L","Ring1.L","Ring2.L","Shoulder.R","UpperArm.R","LowerArm.R","Palm2.R","Middle1.R","Middle2.R","Thumb.R","Thumb2.R","Palm1.R","Index.R","Index2.R","Palm3.R","Ring1.R","Ring2.R","UpperLeg.L","LowerLeg.L","UpperLeg.R","LowerLeg.R","PoleTarget.L","Foot.R","PoleTarget.R"],"skeleton":"Bone"}],"messages":["Detected 2 skins with 43 unique joints."]},"morphTargets":{"targetCount":3,"targetNames":["Angry","Surprised","Sad"],"meshes":[{"index":2,"name":"Head","targetNames":["Angry","Surprised","Sad"]}],"messages":["Detected 3 morph targets."]},"provenance":{"sourcePath":"../../../../fixtures/threejs-parity/assets/character/robot-expressive.glb","checkedAt":"2026-06-06T23:22:20.212Z"},"sourcePath":"../../../../fixtures/threejs-parity/assets/character/robot-expressive.glb","outputPath":"public/aura-assets/miko.047f5e5f.glb","boundsMetadata":{"min":[-0.033,-0.013,-0.009],"max":[0.033,0.013,0.008],"size":[0.066,0.026,0.017],"center":[0,0,0],"maxDimension":0.066,"grounded":true},"materialMetadata":[{"name":"Grey","visible":true,"readable":true,"opacity":1,"alphaMode":"OPAQUE","reasons":[]},{"name":"Main","visible":true,"readable":true,"opacity":1,"alphaMode":"OPAQUE","reasons":[]},{"name":"Black","visible":true,"readable":true,"opacity":1,"alphaMode":"OPAQUE","reasons":[]}],"orientation":{"source":"unknown","messages":["No orientation metadata detected; facing direction cannot be proven."]},"nodeNames":["RootNode","RobotArmature","Bone","Foot.L","Foot.L","Foot.L_end","Body","Torso","Hips","Abdomen","Torso","Neck","Head","Head","Head_end","Shoulder.L","Shoulder.L","UpperArm.L","Arm.L","LowerArm.L","Palm2.L","Middle1.L","Middle2.L","Middle2.L_end","Thumb.L","Thumb2.L","Thumb2.L_end","Palm1.L","Index.L","Index2.L","Index2.L_end","Palm3.L","Ring1.L","Ring2.L","Ring2.L_end","Shoulder.R","Shoulder.R","UpperArm.R","Arm.R","LowerArm.R","Palm2.R","Middle1.R","Middle2.R","Middle2.R_end","Thumb.R","Thumb2.R","Thumb2.R_end","Palm1.R","Index.R","Index2.R","Index2.R_end","Palm3.R","Ring1.R","Ring2.R","Ring2.R_end","UpperLeg.L","Leg.L","LowerLeg.L","LowerLeg.L","LowerLeg.L_end","UpperLeg.R","Leg.R","LowerLeg.R","LowerLeg.R","LowerLeg.R_end","PoleTarget.L","PoleTarget.L_end","Foot.R","Foot.R","Foot.R_end","PoleTarget.R","PoleTarget.R_end","Hand.R","Hand.L"],"textures":[],"dependencies":[],"thumbnailUrl":"/aura-assets/miko.thumb.svg"} },
|
|
6
|
+
} as const);
|
|
7
|
+
|
|
8
|
+
export type AuraGeneratedAssets = typeof assets;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
body[data-cartoon-view="concept-2-5d"] {
|
|
2
|
+
background:
|
|
3
|
+
radial-gradient(circle at 50% 22%, rgba(169, 255, 225, 0.16), transparent 34%),
|
|
4
|
+
linear-gradient(180deg, #081118 0%, #11241f 56%, #081216 100%);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
body[data-cartoon-view="concept-2-5d"] #caption-overlay {
|
|
8
|
+
display: none !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
body[data-cartoon-view="concept-2-5d"] #app {
|
|
12
|
+
opacity: 0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.concept-2-5d {
|
|
16
|
+
--parallax: 0;
|
|
17
|
+
--image: url("/aura-assets/moon-garden-feature-frame.png");
|
|
18
|
+
position: fixed;
|
|
19
|
+
inset: 0;
|
|
20
|
+
display: grid;
|
|
21
|
+
place-items: center;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
padding: 28px;
|
|
24
|
+
background:
|
|
25
|
+
radial-gradient(circle at 50% 32%, rgba(255, 232, 170, 0.11), transparent 28%),
|
|
26
|
+
linear-gradient(180deg, rgba(9, 25, 22, 0.58), rgba(1, 8, 10, 0.88));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.concept-2-5d__frame {
|
|
30
|
+
position: relative;
|
|
31
|
+
width: min(1320px, calc(100vw - 56px));
|
|
32
|
+
aspect-ratio: 16 / 9;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
border: 1px solid rgba(255, 232, 170, 0.28);
|
|
35
|
+
border-radius: 22px;
|
|
36
|
+
background: #06100f;
|
|
37
|
+
box-shadow:
|
|
38
|
+
0 36px 94px rgba(0, 0, 0, 0.58),
|
|
39
|
+
0 0 90px rgba(64, 255, 191, 0.12);
|
|
40
|
+
isolation: isolate;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.concept-2-5d__layer {
|
|
44
|
+
position: absolute;
|
|
45
|
+
inset: 0;
|
|
46
|
+
background-image: var(--image);
|
|
47
|
+
background-repeat: no-repeat;
|
|
48
|
+
background-position: 50% 50%;
|
|
49
|
+
background-size: cover;
|
|
50
|
+
will-change: transform;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.concept-2-5d__layer--far {
|
|
54
|
+
z-index: 1;
|
|
55
|
+
transform: translate3d(calc(var(--parallax) * -10px), 0, 0) scale(1.02);
|
|
56
|
+
filter: saturate(1.02) brightness(0.94);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.concept-2-5d__layer--mid {
|
|
60
|
+
z-index: 2;
|
|
61
|
+
transform: translate3d(calc(var(--parallax) * 8px), 0, 0);
|
|
62
|
+
filter: saturate(1.08) brightness(1.02);
|
|
63
|
+
opacity: 0.42;
|
|
64
|
+
mask-image: radial-gradient(ellipse at 54% 54%, black 0 36%, rgba(0, 0, 0, 0.82) 48%, transparent 70%);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.concept-2-5d__layer--characters {
|
|
68
|
+
z-index: 3;
|
|
69
|
+
transform: translate3d(calc(var(--parallax) * 26px), calc(var(--parallax) * -2px), 0);
|
|
70
|
+
filter: saturate(1.14) brightness(1.04) drop-shadow(0 28px 28px rgba(0, 0, 0, 0.34));
|
|
71
|
+
mask-image: radial-gradient(ellipse at 50% 62%, black 0 29%, rgba(0, 0, 0, 0.74) 43%, transparent 62%);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.concept-2-5d__layer--foreground {
|
|
75
|
+
z-index: 4;
|
|
76
|
+
transform: translate3d(calc(var(--parallax) * 44px), 0, 0);
|
|
77
|
+
filter: saturate(1.22) brightness(1.08) drop-shadow(0 -24px 34px rgba(8, 24, 22, 0.34));
|
|
78
|
+
mask-image: linear-gradient(180deg, transparent 0 56%, rgba(0, 0, 0, 0.34) 66%, black 82%);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.concept-2-5d__grain {
|
|
82
|
+
position: absolute;
|
|
83
|
+
z-index: 7;
|
|
84
|
+
inset: 0;
|
|
85
|
+
background:
|
|
86
|
+
linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 100% 4px,
|
|
87
|
+
radial-gradient(circle at 45% 30%, transparent 0 40%, rgba(2, 8, 8, 0.22) 74%, rgba(2, 8, 8, 0.52) 100%);
|
|
88
|
+
mix-blend-mode: soft-light;
|
|
89
|
+
pointer-events: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.concept-2-5d__hud,
|
|
93
|
+
.concept-2-5d__caption {
|
|
94
|
+
position: absolute;
|
|
95
|
+
z-index: 8;
|
|
96
|
+
left: 28px;
|
|
97
|
+
right: 28px;
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: 14px;
|
|
101
|
+
color: #f8fff2;
|
|
102
|
+
text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.concept-2-5d__hud {
|
|
106
|
+
top: 24px;
|
|
107
|
+
justify-content: space-between;
|
|
108
|
+
font: 700 13px/1.2 ui-sans-serif, system-ui, sans-serif;
|
|
109
|
+
letter-spacing: 0.08em;
|
|
110
|
+
text-transform: uppercase;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.concept-2-5d__hud span,
|
|
114
|
+
.concept-2-5d__hud strong {
|
|
115
|
+
padding: 8px 12px;
|
|
116
|
+
border: 1px solid rgba(248, 255, 242, 0.18);
|
|
117
|
+
border-radius: 999px;
|
|
118
|
+
background: rgba(1, 10, 10, 0.58);
|
|
119
|
+
backdrop-filter: blur(8px);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.concept-2-5d__caption {
|
|
123
|
+
bottom: 42px;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
text-align: center;
|
|
126
|
+
font: 800 clamp(18px, 2.2vw, 30px) / 1.24 ui-rounded, "Trebuchet MS", system-ui, sans-serif;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.concept-2-5d__caption::before {
|
|
130
|
+
content: "";
|
|
131
|
+
position: absolute;
|
|
132
|
+
inset: -14px auto auto 50%;
|
|
133
|
+
width: min(880px, calc(100vw - 120px));
|
|
134
|
+
height: calc(100% + 28px);
|
|
135
|
+
transform: translateX(-50%);
|
|
136
|
+
border-radius: 18px;
|
|
137
|
+
background: linear-gradient(180deg, rgba(1, 10, 10, 0.18), rgba(1, 10, 10, 0.68));
|
|
138
|
+
z-index: -1;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.concept-2-5d__timeline {
|
|
142
|
+
position: absolute;
|
|
143
|
+
z-index: 9;
|
|
144
|
+
left: 28px;
|
|
145
|
+
right: 28px;
|
|
146
|
+
bottom: 20px;
|
|
147
|
+
height: 4px;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
border-radius: 999px;
|
|
150
|
+
background: rgba(248, 255, 242, 0.16);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.concept-2-5d__timeline-fill {
|
|
154
|
+
display: block;
|
|
155
|
+
width: var(--progress, 0%);
|
|
156
|
+
height: 100%;
|
|
157
|
+
border-radius: inherit;
|
|
158
|
+
background: linear-gradient(90deg, #ffdd87, #65ffc6);
|
|
159
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { episode, episodeSampleDescription, youtubeDraftMetadata } from "./episode";
|
|
2
|
+
import type { CartoonRouteSampleForVisual } from "./sample-episode-visual";
|
|
3
|
+
import "./concept-episode-2-5d.css";
|
|
4
|
+
|
|
5
|
+
export interface ConceptEpisode2_5DOptions {
|
|
6
|
+
readonly sampleAt: (time: number) => CartoonRouteSampleForVisual;
|
|
7
|
+
readonly duration: number;
|
|
8
|
+
readonly fixedTime?: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ConceptEpisode2_5DProof {
|
|
12
|
+
readonly contractId: string;
|
|
13
|
+
readonly episodeId: string;
|
|
14
|
+
readonly title: string;
|
|
15
|
+
readonly route: string;
|
|
16
|
+
readonly mode: "2.5d-parallax-concept";
|
|
17
|
+
readonly sourceImage: string;
|
|
18
|
+
readonly notTrue3D: true;
|
|
19
|
+
readonly screenshotTarget: "#concept-episode-2-5d";
|
|
20
|
+
readonly sample: CartoonRouteSampleForVisual;
|
|
21
|
+
readonly parallax: number;
|
|
22
|
+
readonly layers: readonly {
|
|
23
|
+
readonly id: string;
|
|
24
|
+
readonly role: string;
|
|
25
|
+
readonly depth: number;
|
|
26
|
+
readonly source: "same-concept-frame";
|
|
27
|
+
}[];
|
|
28
|
+
readonly aura3dRole: readonly string[];
|
|
29
|
+
readonly limitations: readonly string[];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const sourceImage = "/aura-assets/moon-garden-feature-frame.png";
|
|
33
|
+
const layers = [
|
|
34
|
+
{ id: "far-background", role: "moonlit sky and set backdrop", depth: 0.12, source: "same-concept-frame" },
|
|
35
|
+
{ id: "midground-set", role: "garden stage and central character space", depth: 0.42, source: "same-concept-frame" },
|
|
36
|
+
{ id: "character-plane", role: "painted character/action plane", depth: 0.72, source: "same-concept-frame" },
|
|
37
|
+
{ id: "foreground-garden", role: "front flowers/path edge", depth: 1, source: "same-concept-frame" }
|
|
38
|
+
] as const;
|
|
39
|
+
|
|
40
|
+
export function installConceptEpisode2_5D(options: ConceptEpisode2_5DOptions) {
|
|
41
|
+
document.body.dataset.cartoonView = "concept-2-5d";
|
|
42
|
+
const root = document.createElement("section");
|
|
43
|
+
root.id = "concept-episode-2-5d";
|
|
44
|
+
root.className = "concept-2-5d";
|
|
45
|
+
root.setAttribute("aria-label", "Aura3D 2.5D cartoon concept episode preview");
|
|
46
|
+
root.innerHTML = `
|
|
47
|
+
<div class="concept-2-5d__frame">
|
|
48
|
+
<div class="concept-2-5d__layer concept-2-5d__layer--far" data-layer-id="far-background" aria-hidden="true"></div>
|
|
49
|
+
<div class="concept-2-5d__layer concept-2-5d__layer--mid" data-layer-id="midground-set" aria-hidden="true"></div>
|
|
50
|
+
<div class="concept-2-5d__layer concept-2-5d__layer--characters" data-layer-id="character-plane" aria-hidden="true"></div>
|
|
51
|
+
<div class="concept-2-5d__layer concept-2-5d__layer--foreground" data-layer-id="foreground-garden" aria-hidden="true"></div>
|
|
52
|
+
<div class="concept-2-5d__aura-host-slot" data-aura-host-slot></div>
|
|
53
|
+
<div class="concept-2-5d__grain" aria-hidden="true"></div>
|
|
54
|
+
<div class="concept-2-5d__hud">
|
|
55
|
+
<span>2.5D concept frame</span>
|
|
56
|
+
<strong data-concept-shot-label>Shot 1 / 3</strong>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="concept-2-5d__caption" data-concept-caption></div>
|
|
59
|
+
<div class="concept-2-5d__timeline" aria-hidden="true">
|
|
60
|
+
<span class="concept-2-5d__timeline-fill" data-concept-progress></span>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
`;
|
|
64
|
+
document.body.appendChild(root);
|
|
65
|
+
|
|
66
|
+
const hostSlot = root.querySelector<HTMLElement>("[data-aura-host-slot]");
|
|
67
|
+
const appHost = document.querySelector<HTMLElement>("#app");
|
|
68
|
+
if (hostSlot && appHost) {
|
|
69
|
+
hostSlot.replaceWith(appHost);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const caption = root.querySelector<HTMLElement>("[data-concept-caption]");
|
|
73
|
+
const shotLabel = root.querySelector<HTMLElement>("[data-concept-shot-label]");
|
|
74
|
+
const progress = root.querySelector<HTMLElement>("[data-concept-progress]");
|
|
75
|
+
const query = new URLSearchParams(window.location.search);
|
|
76
|
+
const queryTime = query.get("sampleTime");
|
|
77
|
+
const queryParallax = query.get("parallax");
|
|
78
|
+
const animateParallax = query.get("animateParallax") === "1";
|
|
79
|
+
const fixedTime = options.fixedTime ?? (queryTime ? Number(queryTime) : undefined);
|
|
80
|
+
const fixedParallax = queryParallax ? Number(queryParallax) : undefined;
|
|
81
|
+
const start = performance.now();
|
|
82
|
+
|
|
83
|
+
function render(time: number, parallax: number) {
|
|
84
|
+
const clampedParallax = Math.max(-1, Math.min(1, Number.isFinite(parallax) ? parallax : 0));
|
|
85
|
+
const sample = options.sampleAt(clampTime(time, options.duration));
|
|
86
|
+
const shotIndex = Math.max(0, episode.shotTimeline.shots.findIndex((shot) => shot.shotId === sample.shotId));
|
|
87
|
+
const progressPercent = Math.max(0, Math.min(100, (sample.time / options.duration) * 100));
|
|
88
|
+
|
|
89
|
+
root.dataset.shotId = sample.shotId ?? "";
|
|
90
|
+
root.dataset.captionId = sample.captionId ?? "";
|
|
91
|
+
root.dataset.conceptEpisode = "moon-garden-cleanup";
|
|
92
|
+
root.style.setProperty("--parallax", String(clampedParallax));
|
|
93
|
+
|
|
94
|
+
if (caption) {
|
|
95
|
+
caption.textContent = sample.captionText ?? "The image is treated as layered source art, not a true 3D mesh.";
|
|
96
|
+
}
|
|
97
|
+
if (shotLabel) {
|
|
98
|
+
shotLabel.textContent = `Shot ${shotIndex + 1} / ${episode.shotTimeline.shots.length}`;
|
|
99
|
+
}
|
|
100
|
+
if (progress) {
|
|
101
|
+
progress.style.setProperty("--progress", `${progressPercent}%`);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
window.__AURA3D_CARTOON_2_5D_PROOF__ = {
|
|
105
|
+
contractId: episodeSampleDescription.contractId,
|
|
106
|
+
episodeId: episode.episodePlan.episodeId,
|
|
107
|
+
title: episode.episodePlan.title,
|
|
108
|
+
route: "/?view=concept-2-5d",
|
|
109
|
+
mode: "2.5d-parallax-concept",
|
|
110
|
+
sourceImage,
|
|
111
|
+
notTrue3D: true,
|
|
112
|
+
screenshotTarget: "#concept-episode-2-5d",
|
|
113
|
+
sample,
|
|
114
|
+
parallax: clampedParallax,
|
|
115
|
+
layers,
|
|
116
|
+
aura3dRole: [
|
|
117
|
+
"episode contract and shot timing",
|
|
118
|
+
"caption timing",
|
|
119
|
+
"camera/parallax plan",
|
|
120
|
+
"proof metadata",
|
|
121
|
+
"optional foreground Aura3D scene graph"
|
|
122
|
+
],
|
|
123
|
+
limitations: [
|
|
124
|
+
"This is not mesh reconstruction from a still image.",
|
|
125
|
+
"The camera can pan, push, and create depth parallax, but it cannot orbit behind the painted characters.",
|
|
126
|
+
"Production-quality 2.5D needs actual masks/depth maps or separated PSD-style layers."
|
|
127
|
+
]
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (Number.isFinite(fixedTime) && !animateParallax) {
|
|
132
|
+
render(Number(fixedTime), Number.isFinite(fixedParallax) ? Number(fixedParallax) : 0);
|
|
133
|
+
return root;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const tick = () => {
|
|
137
|
+
const elapsed = (performance.now() - start) / 1000;
|
|
138
|
+
const sampleTime = Number.isFinite(fixedTime) ? Number(fixedTime) : elapsed % options.duration;
|
|
139
|
+
render(sampleTime, Math.sin(elapsed * 0.82));
|
|
140
|
+
requestAnimationFrame(tick);
|
|
141
|
+
};
|
|
142
|
+
tick();
|
|
143
|
+
return root;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare global {
|
|
147
|
+
interface Window {
|
|
148
|
+
__AURA3D_CARTOON_2_5D_PROOF__?: ConceptEpisode2_5DProof;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function clampTime(time: number, duration: number) {
|
|
153
|
+
if (!Number.isFinite(time)) return 0;
|
|
154
|
+
return Math.max(0, Math.min(duration - 1 / 30, time));
|
|
155
|
+
}
|