ThreeJs king

Prompt

Create a complete, standalone 3D interactive scene in a single HTML file using Three.js (via CDN ES Modules or import maps) and OrbitControls. Subject: A stylized 3D Medieval Knight wearing metallic armor. Technical Requirements: 1. Modeling & Hierarchy: - Construct the knight by assembling multiple primitive geometries structured inside nested groups (THREE.Group) separating head/helmet, torso/breastplate, limbs, shield, and sword. 2. PBR Materials & Lighting: - Apply MeshStandardMaterial or MeshPhysicalMaterial with realistic metal parameters: high metalness (0.85–0.95) and low-to-medium roughness (0.2–0.35) for the armor. - Set up a 3-point lighting scheme: a main key directional light casting soft shadows (pcfSoft), a warm side point light (torch effect), and a cool rim light to define contours. 3. Environment & Particles: - A ground plane or stone pedestal configured to receive shadows (receiveShadow = true). - A floating particle system (THREE.Points) simulating airborne embers or dust with upward movement. 4. Procedural Animations: - An "Idle" breathing animation inside the render loop: gentle Y-axis floating and subtle shoulder/arm rotation driven by Math.sin(time). - Subtle intensity flickering on the torch point light and continuous movement/rotation for the particle system. 5. Controls & Responsiveness: - Implement OrbitControls with smooth damping and polar angle limits to prevent the camera from passing below the ground plane. - Window 'resize' event listener updating camera aspect ratio and WebGLRenderer size. - Clean, well-commented ES6+ code executable immediately upon opening the .html file in a browser.

Response not available

Drag to resize

Response not available

Drag to resize

Response not available

Drag to resize