Let me start by setting up the project structure and exploring what we have.
Now let me install Three.js and its types:
Good. Now let me update the index.html title, then create the complete Three.js scene. This is a complex scene, so I'll build it as a React component with all the articulated parts.
Now let me create the main Three.js scene. I'll build a comprehensive scene with:
- A stone wall with individual brick/ledge geometry (protrusions)
- An articulated assassin figure with: head (hooded), torso, upper/lower arms, hands, upper/lower legs, feet
- A flowing cape with cloth-like animation
- Proper posing so hands and feet align with wall protrusions
- Lighting and camera setup
Now let's build the project to make sure everything compiles:
The build succeeds. Now let me review the scene once more and refine it. The current scene has all the key elements, but I want to make sure the hand/foot placement works anatomically. Let me also enhance a few visual aspects — adding a bit more detail to the wall ledges and ensuring the geometry is robust.
Let me check the current implementation carefully and refine it further with some improvements to the hood, the cape, and the wall geometry to ensure everything looks great:
The code is solid and comprehensive. Let me do a final build to confirm everything is working properly:
Build is clean. Here's a summary of what was created:
Assassin Free-Running 3D Scene
The complete Three.js scene is in src/App.tsx and includes:
🧱 Stone Wall with Protrusions
- Main wall panel with per-vertex displacement for an uneven stone surface
- 5 rows of ledge bricks at different heights with randomized protrusion depths, slight rotations, and varied materials (light/dark stone, ledge material)
- Corner pillar as a vertical protrusion element
🥷 Articulated Assassin Figure
Built from distinct geometric parts (not a single capsule):
- Pelvis with a red sash/belt
- Torso (cylinder, flattened front-back) with leather chest straps, leaning forward into the wall
- Head (sphere with jaw taper) + hood (extruded shape geometry with a pointed beak) + neck
- Left arm: Upper arm → forearm → hand with 4 curled fingers + thumb, reaching up to grip a ledge at row 4 (~y=1.5m)
- Right arm: Mirror structure with a hidden blade on the wrist, reaching higher to grip row 5 (~y=2.7m)
- Left leg: Thigh → shin → boot with toe, foot planted on a row 3 ledge
- Right leg: Spread wider, foot planted on a lower row 1 ledge
- Each limb uses
CapsuleGeometry with proper parent-child joint hierarchy for natural posing
🌊 Flowing Cape
- Two layered cape meshes (subdivided planes) attached to the torso
- Cloth-like sway animation: vertices oscillate based on their distance from the attachment point, creating realistic bottom-heavy billowing with sinusoidal motion at different phases
💡 Lighting & Atmosphere
- Ambient + key moon light with soft shadows (PCFSoft)
- Rim light and warm fill light for depth
- Floating dust particle system (200 particles with additive blending)
🎥 Camera
- Orbit-style controls via mouse drag + scroll wheel (touch support included)
- Auto-rotates around the assassin for dynamic viewing
🎬 Animation Loop
- Cape vertices update each frame for cloth simulation
- Subtle body sway and hood movement for a living, breathing feel
- Particle drift for atmospheric dust
Files built: index.html, src/App.tsx