PROJECT: THE LAST EMBER — A Photorealistic Forest Campfire Create a breathtaking, photorealistic 3D cinematic animation of a cozy campfire burning deep inside a forest at night. The final result must look like real footage captured with a professional cinema camera, not a video game, stylized animation, or a typical procedural Three.js demonstration. The scene should evoke warmth, peace, solitude, and comfort, with the beautiful contrast between the warm firelight and the cold, mysterious nighttime forest. This is a visual-quality benchmark. Push procedural 3D rendering as far as technically possible. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1. ABSOLUTE TECHNICAL CONSTRAINTS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Everything visible MUST be created entirely through code. STRICTLY PROHIBITED: - Blender or any 3D modeling software - Downloaded or imported 3D models - External textures, photographs, or images - HDRI files or premade environment maps - Stock assets, sprites, or particle textures - Pre-rendered backgrounds or footage - AI-generated images or video - External asset-generation services - Any audio or sound effects ALLOWED: - Three.js - WebGPU or WebGL2 - Custom GLSL/WGSL shaders - Procedural geometry and instancing - Mathematical noise functions - Procedural texture generation - GPU particle simulations - Custom post-processing - Browser-native rendering and video encoding - JavaScript/TypeScript libraries when necessary Every tree, rock, leaf, log, flame, spark, cloud, shadow, and environmental detail must originate from procedural algorithms written in code. Do not use flat images or billboard sprites as substitutes for the main volumetric elements. OUTPUT SPECIFICATIONS: - Duration: EXACTLY 30 seconds - Resolution: 1920 × 1080 - Aspect ratio: 16:9 - Frame rate: 30 FPS - Total frames: exactly 900 - Format: MP4, H.264 when supported - Audio: NONE - No subtitles, logos, text, or watermarks Build a deterministic frame-by-frame capture pipeline so the final result does not depend on real-time playback performance. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2. ART DIRECTION AND COMPOSITION ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SCENE: A small natural clearing deep within a dense, mature coniferous forest. It is a clear, peaceful night. At the center of the clearing, a beautifully detailed campfire burns inside a roughly circular arrangement of natural stones. The surrounding forest gradually disappears into darkness, with tall trees silhouetted against a deep blue night sky. The campfire is the visual and emotional centerpiece. The composition must feel intimate and believable. CAMERA: Use a professional cinematic camera aesthetic. - Camera positioned approximately 1.2 meters above the ground - Medium-wide framing - Campfire positioned around the lower central third - Tall forest trees visible behind it - Some foreground branches providing natural framing - Subtle depth of field - Natural lens behavior - No exaggerated wide-angle distortion The viewer should feel as though they are sitting peacefully near the fire. Avoid large empty areas, artificial symmetry, and obvious procedural repetition. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3. PHOTOREALISTIC CAMPFIRE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ The fire is THE MOST IMPORTANT element. Spend a significant proportion of implementation effort on making it physically convincing. LOGS: Generate 5–8 highly detailed firewood logs in a naturally irregular arrangement. Each log must have: - Irregular cylindrical geometry - Procedural bark with deep cracks - Different lengths and diameters - Broken branches and splintered ends - Darkened and partially burned surfaces - Localized glowing embers - Charcoal forming around burning regions - Realistic roughness and normal variation Do not create perfectly smooth cylinders. FLAMES: Implement a sophisticated procedural flame system using custom shaders, volumetric approximations, and animated noise fields. The fire must have: - Bright white-yellow hottest regions - Golden yellow inner flames - Rich orange middle regions - Deep reddish translucent flame edges - Irregular upward motion - Convincing turbulence - Constantly changing flame shapes - Thin tongues of flame splitting and merging - Naturally intermittent bursts - Small flames licking individual logs - Physically plausible flame opacity - Organic nonlinear movement Use layered 3D geometry, volumetric raymarching, or another technically justified rendering approach. Avoid obvious flat flame planes, repetitive sine-wave deformation, cartoonish shapes, and cheap-looking transparent polygons. The fire must feel genuinely three-dimensional from the camera's perspective. EMBERS: Simulate glowing charcoal between and underneath the logs. Embers should: - Glow at different intensities - Pulse gradually and irregularly - Reveal detailed cracked surfaces - Emit convincing orange-red light - Occasionally brighten as the fire evolves SPARKS: Create GPU-animated glowing particle…