Absolutely! Below is a comprehensive prompt / product requirements document (PRD) that you can use to guide a coding model (e.g., GPT-4-based codex, another developer, or even yourself) to generate a visually stunning 3D rabbit-friendly environment using Three.js. The focus is on procedural generation and user exploration.
🎮 PRD: Procedural 3D Meadow Environment in Three.js — “Rabbit World”
🎯 Objective:
Create a visually stunning, interactive, and immersive 3D environment using Three.js where virtual rabbits could live, roam, and interact with natural and semi-rural surroundings — such as meadows, forests, burrows, and farmhouses. The world will be procedurally generated and allow human users to explore freely in first- or third-person view.
🌿 High-Level Vision:
This game environment should bring to life a peaceful, idyllic, and naturally vibrant ecosystem where rabbits would realistically make their home. The scene should balance realism and stylized charm, enriched with fluttering leaves, moving grass, ambient animal sounds, dynamic weather patterns, and soft lighting.
🔧 Tools & Technologies:
- Three.js (latest stable version)
- JavaScript / ES6+
- Optionally: WebGL 2, dat.GUI, GLTF loader, Noise libraries (Simplex/Perlin), PointerLockControls / FirstPersonControls
- Optional: Post-processing via
EffectComposer for bloom, DOF, etc.
1️⃣ Core Features
🌍 ENVIRONMENT GENERATION — “Rabbit Habitat”
Procedural Terrain:
- Use noise-based height generation (simplex / perlin) for hilly terrain.
- Terrain types: grassy meadow (majority), patch of forest (30%), tiny stream/pond (1–2%), and patches of bushes or farms.
- Slope-based effects: trees only grow on flat-ish terrain; burrows avoid steep inclines.
Vegetation & Natural Objects (all placed procedurally):
- Grass Blades: Thousands, generated via instancing (thin geometry or billboarding).
- Trees & Bushes: Low-poly with varied canopies (oak, pine, birch), randomly rotated/sized.
- Flowers: Random clusters of different types (poppies, daisies, clover).
- Rocks: Small boulders placed near tree roots and streams.
Animal Habitats:
- Rabbit Dens: Modeled mounds with small openings, mostly under big trees or near bushes.
- Paths: Faint dirt trails between burrows and food sources (procedurally generated via pathfinding or raymarched direction flow).
- Optional: Include birds, squirrels, butterflies for ambiance.
Far Landmarks:
- A Farmhouse / Barn placed far in the distance, not detailed but low-poly, with smoke rising.
- Optional: Fence line separating 'wild' and 'domestic'.
2️⃣ INTERACTIVITY & CONTROLS
Exploration:
- User can explore via:
- First-person controls (
PointerLockControls)
- Or third-person camera that follows a placeholder character
- Basic physics — can climb over small slopes, can’t walk through rocks
Time of Day Simulation (Optional Starter Feature):
- Skybox changes colors dynamically — sunrise, noon, dusk, night
- Directional sunlight updates color and angle
- Fog and wind (configurable)
Optional Features:
- User can “follow a rabbit” mode — camera smoothly locks onto a simulated rabbit.
- User can place their own tree, flower, or rabbit den – to encourage sandbox interaction.
3️⃣ VISUALS / AESTHETICS
Overall Style:
- Nature-forward, lush, high-fidelity but stylized (like Ori and the Blind Forest, or a Ghibli film).
- Use post-processing for:
- Bloom (light glow)
- Depth of Field (distant blur)
- Ambient Occlusion (contact shadows)
- Add volumetric lighting coming through trees if possible
Sky:
- Shader-based dynamic sky + clouds
- Sun source matches directional light
Material Design:
- All objects should use PBR materials or stylized shaders
- Light wind effect shader on grass and leaves
4️⃣ PERFORMANCE CONSIDERATIONS
- Instanced meshes for repeated assets: grass, flowers, rocks, trees
- Efficient octree or LOD logic for terrain and objects far away
- Use compressed models (glTF with Draco)
- Generate terrain in chunks, and load/unload dynamically based on camera position
5️⃣ TECHNICAL LAYOUT (Suggested Scene Tree)
Scene
├── Terrain (Mesh or instanced terrain chunks)
│
├── Vegetation
│ ├── Grass (Instanced)
│ ├── Trees (Instanced or grouped)
│ ├── Flowers
│ └── Bushes
│
├── Rabbits (Animated Models or Placeholders)
├── Dens (Mounds or tunnels)
│
├── Landmarks
│ ├── FarmhouseModel (mesh + billboarding effects)
│ └── Fences / Signs
│
├── Effects
│ ├── Fog
│ ├── Wind Shader (grass/trees)
│ └── Bloom / DOF / SSAO
│
├── Environment
│ ├── Skybox or Sky shader
│ └── Lighting (Directional + ambient + sunlight)
│
└── Player Controls
├── FirstPersonControls
└── (Optional) ThirdPersonController + camera
6️⃣ PLANNED IMPROVEMENTS (Optional Stretch Features)
- Simulated rabbit behaviors: eat, rest, run, shelter
- Weather system: light rain, snow, seasonal changes
- Procedural cave or underground tunnel generation for dens
- Ability to “grow” new areas over time (dynamic terrain stitching)
- UI that shows object types / rabbit stats / day/night cycle
🧠 PROMPT TEMPLATE FOR A CODING MODEL
You can feed the following to a model:
"Using Three.js, create a procedurally generated 3D rabbit ecosystem with dynamic terrain, forests, rivers, and rabbit burrows. Include interactive first-person controls for exploration. Populate the terrain with instanced grass, randomized low-poly trees, rocks, and flowers using simplex or perlin noise. Place forest patches and a distant farmhouse procedurally. Add ambient natural lighting, time-of-day transition, and light wind effects on vegetation. Optimize performance through instancing and chunk-based terrain loading. Add fog and bloom for a soft artistic look. Everything must be generated at runtime. Focus on realism and peaceful immersion and keep code modular."
✅ Deliverables
- One HTML/JS file with Three.js implementation + assets
- All assets either procedural or loaded from CDN or GLTF
- Documentation for how features were procedurally generated
- Configurable variables for size of world, vegetation density, time of day, etc.
Would you like me to now convert this prompt into starter code or break it down into implementation steps/phases?