mirror of
https://github.com/iamlukethedev/Claw3D.git
synced 2026-07-30 11:12:32 +00:00
Co-authored-by: Luke The Dev <iamlukethedev@users.noreply.github.com>
3.0 KiB
3.0 KiB
Claw3D Studio Local Test Script
This script verifies the current Claw3D Studio builders.
Important.
- The world builder and image-guided asset builder work locally.
- No gateway connection is required for any steps in this document.
- If the app shows any gateway-related controls in the header, they can be ignored for Studio testing.
Preconditions
- Install dependencies.
- Start Claw3D locally.
- Open the app in a browser.
- Navigate to
/studio.
Commands.
npm installnpm run dev
Test A: Text world builder
Goal.
- Confirm prompt-only world generation works without a gateway.
Steps.
- Open
/studio. - Do not upload an image.
- Enter a project name.
- Enter a generation brief describing a world or asset set.
- Choose style, scale, focus, and optionally seed.
- Click
Generate scene.
Expected.
- A new project appears in the project library.
- The 3D preview renders.
- Scene notes appear.
- The project card shows
Export GLB,Export manifest, andApply to office.
Extra checks.
- Click
Export GLBand confirm a.glbdownload starts. - Click
Export manifestand confirm a.jsondownload starts. - Click
Apply to officeand confirm a success status message appears.
Test B: Image-guided avatar builder
Goal.
- Confirm image upload and image-guided avatar proxy generation works locally.
Steps.
- Open
/studio. - Click
Upload image. - Select a PNG, JPEG, or WEBP reference image.
- Wait for the upload to finish.
- Confirm the reference image preview appears.
- Confirm palette chips are extracted and displayed.
- Keep or update the project name and prompt.
- Click
Generate from image.
Expected.
- A new project appears in the project library.
- The project shows the
image avatarmode tag. - The 3D preview renders an avatar-like proxy.
- The preview shows the reference image overlay.
- The project card shows a thumbnail of the uploaded source image.
Extra checks.
- Click
Export GLBand confirm a.glbdownload starts. - Click
Export manifestand confirm a.jsondownload starts. - Confirm the status line reports successful generation and export.
Test C: Local-only behavior
Goal.
- Confirm Studio generation does not depend on any gateway.
Steps.
- Keep the app on
/studio. - Do not connect any gateway.
- Run both Test A and Test B.
Expected.
- Text world generation still works.
- Image-guided avatar generation still works.
- GLB export still works.
- No gateway connection is required at any point.
Automated checks
Run these after code changes.
npm run typechecknpm run buildnpm run test -- --run tests/unit/studioWorldRoute.test.tsnpx eslint src/app/api/studio-world/route.ts src/features/studio-world/**/*.tsx src/features/studio-world/**/*.ts src/lib/studio-world/**/*.ts tests/unit/studioWorldRoute.test.ts
Current scope note
The image builder currently creates a stylized 3D proxy guided by the uploaded image. It does not yet perform full neural image-to-mesh reconstruction.