A real-time 3D character animation system built with Svelte, Threlte, and Three.js.
# Install dependencies
bun install
# Start development server
bun run dev
# Build for production
bun run build
src/
├── lib/
│ ├── components/
│ │ ├── Character.svelte # Main character component
│ │ ├── Ground.svelte # Ground plane with reflections
│ │ ├── Scene.svelte # Main scene setup
│ │ └── World.svelte # Environment and lighting
│ ├── workers/
│ │ └── worker.ts # Animation computation worker
│ └── types.ts # Types Definition
└── routes/
└── +page.svelte # Main page with controls
The project uses a Web Worker to handle heavy animation computations, enabling smooth transitions between different character states. Animations are loaded from a GLTF model and include:
Features a dynamic environment system that changes based on time of day:
MIT