Conversational AI Development: Building a 3D Rainy Night City Scene
This article explores how to leverage conversational AI programming tools to rapidly prototype a 3D rainy night city scene. It covers decomposing visual concepts into technical specs, driving scene generation through multi-round iterative prompting, and implementing core rendering techniques for rain, lighting, and wet surfaces. Additionally, it shares strategies for performance optimization and reflects on how conversational development accelerates creative validation for both teams and indie developers.
A convenience store on a rainy night, with warm yellow light spilling through the glass windows and casting long reflections on the wet streets; the cold glow of neon signs diffusing through the rain; raindrops turning into silver lines under the streetlights, splashing into small bursts upon hitting the ground. Such scenes are highly cinematic, but building a 3D scene from scratch—covering geometric modeling, material definition, lighting layout, and particle effects—often takes days or even weeks. However, by using AI coding tools and describing requirements through natural language, you can obtain a runnable initial version within hours. More importantly, the process is not “generate once and it’s perfect”; rather, it involves repeated communication and multiple rounds of iteration to gradually refine a vague idea into a truly interactive work.
1. Turning Mental Images into Executable Technical Specs
To build a rainy night city, you first need to break down visual feelings into independently implementable subsystems. The framework of a 3D scene typically consists of geometry, materials, lighting, particles, and cameras. Taking the convenience store scene as an example, it can be decomposed as follows:
- Geometry: The main convenience store structure (walls, doors, windows, roof), signage, streets, streetlights, and curbs.
- Materials: Glass reflection and light transmission, metal frame roughness, wet road highlights, and concrete bump textures.
- Lighting: Store warm light, neon lights, streetlight cones, and ambient reflected light.
- Particles: Falling raindrops, ground ripples, and atmospheric mist.
- Camera: An orbital observation angle around the scene.
Once these elements are clearly broken down, the goal of each round of conversation with the AI coding tool becomes very specific. For example, the first round might only ask to “build the basic structure of the convenience store,” and the second round to “add rain particles,” rather than dumping all requirements at once. The latter approach often leads to chaotic results and makes troubleshooting extremely difficult.
2. Progressive Building: Driving Scene Generation through Multi-Round Conversations
Practice shows that the output of AI coding tools rarely hits the mark on the first try. After the initial generation, the scene often exhibits classic issues: disproportionate doors and signage, lag caused by too many raindrops, a lack of wetness on the ground, and an overall tone that is too bright for a late-night setting. The feedback in each round dictates the correction direction for the next.
Round 1: Build the basic scene. Describe the general volume and spatial relationship of the convenience store to the tool. After generation, manually verify the camera field of view and overall scale to ensure there is no obvious floating or clipping.
Round 2: Add the rainy night atmosphere. This includes rain particles, fog effects, streetlight illumination, and wet ground effects. Pay special attention to the frame rate in this round. If the particle count is too high, lower the values first to confirm the visual effect, then gradually increase it.
Round 3: Enrich convenience store details. Adding small objects like sign text, door steps, window frames, and outdoor AC units enhances the scene’s realism. However, higher detail density isn’t always better; severe geometry overlap can actually ruin the visual effect.
Round 4: Proportion and composition correction. Using a “person standing at the convenience store door” as a reference, check the door height, sign position, and road width. If necessary, lock the camera angle to keep the convenience store at the visual center.
The more specific the feedback, the more accurate the tool’s modifications. For instance, comments like “raindrop falling speed is too slow,” “neon sign glow is too strong,” or “wall color is too light” are much more effective than vague expressions like “the effect is not good.”
3. Core Rendering Techniques for Rainy Night Atmosphere
The rainy night atmosphere relies on three key elements: rain, light, and wetness.
The design focus of the raindrop system is quantity control and object pool reuse. The update logic can be described using pseudocode:
// Initialize particle poolconst pool = createParticlePool(3000);for (const p of pool) {p.position = randomInBox(-20, 20, 0, 15, -20, 20);p.speed = random(18, 35);p.alpha = random(0.4, 0.8);}// Update per framefunction update(delta) {for (const p of pool) {p.position.y -= p.speed * delta;if (p.position.y < 0) {p.position.y = random(10, 15);p.position.x = random(-20, 20);spawnGroundRipple(p.position.x, p.position.z);}}}
This design avoids high-frequency creation and destruction of objects. Meanwhile, through particle quantity budgeting, it ensures the scene runs smoothly on most devices.
In terms of lighting, a rainy night should avoid a “bright night” feel. Ambient light should be suppressed, leaving the main brightness to the warm light source inside the convenience store and the signage. You can use point lights to simulate neon glow and semi-transparent glowing planes to simulate light boxes; streetlight cones can be approximated using cone-shaped semi-transparent bodies or projection maps. Ground reflections can be achieved economically using low-resolution reflection maps combined with alpha blending.
Fog is key to creating depth in distant views. Adjusting the fog’s start distance and color allows distant buildings to gradually fade into a blue-grey background, simulating how the rain curtain blocks the field of view. The nearby convenience store thus stands out more, enhancing the scene’s depth perception.
4. From Prototype to Product: Performance Optimization and Detail Polishing
During the iteration process, performance is an unavoidable variable. The most common performance bottlenecks in 3D scenes include:
- Uncontrolled particle counts: Start with one or two thousand particles instead of jumping straight to tens of thousands.
- Excessively high shadow resolution: Shadow map resolution should match the object’s importance; shadows can be disabled for distant streetlights.
- Excessive draw calls: A large number of independent small objects significantly increases submission counts; static geometries should be merged.
- Transparent object blending: Multi-layer transparency overlap wastes a lot of fill rate and should be limited to a finite coverage area.
Beyond performance, detail polishing also involves adjustments at the “feel” level. For example, giving the ripples a short duration after raindrops hit the ground can significantly enhance realism. The blur level of reflections on wet roads should approximate human perception during a rainy night, rather than being overly sharp. These details might only be a line or two of parameters in the code, but they have a massive impact on the final presentation.
5. Efficiency Insights from Conversational Development
This practice demonstrates the unique value of AI coding tools in rapid prototype validation. Developers who previously spent a significant amount of time on modeling and debugging can now describe their ideas in natural language, let the tool generate a runnable initial version, and then use professional judgment to refine the direction.
However, it cannot completely replace developer experience. Generated code requires manual review and refactoring if the structure is unreasonable; rendering effects need repeated human visual confirmation; and performance data must be tested in practice. The so-called “repeated communication” is essentially optimizing the human-AI collaboration feedback loop.
For teams, this model significantly shortens the creative confirmation cycle. An idea can become a clickable interactive prototype in a few hours, allowing all relevant members to experience and provide feedback directly, rather than waiting for a complete implementation before making centralized revisions. For individual developers, the barrier to entry for creating 3D interactive works independently has been drastically lowered.
The story of the rainy night city continues. With each additional round of conversation, the scene moves one step closer to the ideal world—this is the most promising evolutionary direction of today’s development paradigms.
