Building a 3D Deep-Sea Game Prototype with a Code Generation Model in 37 Minutes

    A 37-minute experiment shows how a code generation model can go from a natural-language brief to a playable 3D deep-sea exploration prototype—and where rapid scaffolding still falls short of production-ready game systems.

    Intelligent coding models are moving beyond line-level completion toward understanding requirements, planning work, generating projects, and iterating from runtime feedback. They must read project structure, create or edit multiple files, run the result, and keep fixing issues.

    Generating code is not the same as shipping a playable game. A 3D prototype typically needs scene layout, meshes, materials, lighting and fog, camera control, input, collision, animation states, and performance management. If any of those fail, you get a demo that looks like a game rather than a closed gameplay loop.

    This article reviews a roughly 37-minute session that built a 3D deep-sea exploration prototype from scratch, then discusses strengths, limits, and a more reliable way to work with such models.

    1. Test goal: a full development path, not a few meshes

    The brief was a prototype named Deep-Sea Exploration Project. Art quality was not the target. The model had to:

    1. Create a layered seafloor environment
    2. Place a submersible, hydrothermal vents, wrecks, and research facilities
    3. Add underwater fog, searchlights, and sonar-style visuals
    4. Support camera orbit, zoom, and depth
    5. Implement basic submersible movement and heading
    6. Switch between first-person and third-person views
    7. Let the player click or scan targets and read info
    8. Leave room for later missions, resource gathering, and area unlocks

    These systems depend on each other: the scene serves movement, the camera follows the vehicle, interaction needs collision, and sonar needs scene data. The question was whether the model could form a coherent project and wire the modules together.

    2. Stage one: a scene you can actually look at

    Early on, models usually prioritize something visible, because a running scene is easier to verify than disconnected logic.

    Typical generated objects included:

    • Rolling seafloor terrain
    • Irregular rocks and trenches
    • Particle hydrothermal vents
    • A player submersible
    • Wrecks, debris, and a research station
    • Schools of fish or other fauna
    • Directional, point, and local search lights
    • Translucent fog, suspended particles, and color falloff

    Atmosphere often comes from stacking effects: distant objects lose contrast in fog, nearby walls light up under a beam, vents become focal points via particles and emissive materials, and height variation adds depth. Even simplified geometry can read as deep-sea exploration.

    Procedural scenes usually rely on primitives, noise, and rule-based placement. That is fast and controllable, but not equivalent to authored art. For a prototype the tradeoff is reasonable; a product still needs better assets, textures, skeletal animation, and lighting.

    The first version often shows a scene and some mouse or keyboard response, yet behaves like an interactive 3D gallery:

    • Orbit the camera
    • Zoom
    • Change viewing depth
    • Click seafloor targets
    • Show names and short descriptions
    • Play simple ambient animation

    Exploration still needs spatial agency and continuous feedback.

    If the submersible is locked in the center and the player only orbits it, complexity does not create exploration. If every click opens a panel, the player never has to approach a target.

    Typical first-pass issues:

    Vehicle has no independent motion

    Vehicle and camera are not separated. “Move” pans the camera instead of flying the craft, so collision, speed, and heading never form.

    Camera system is incomplete

    Third-person is for observing the vehicle; first-person is for piloting. Both must share position, orientation, and input—not two unrelated cameras.

    Interaction lacks state

    A text popup without highlight, scan progress, sonar return, or mission change does not feel continuous.

    The scene has no exploration bounds

    Without unknown areas, hazards, depth limits, or resource goals, the space is observable but not goal-driven.

    4. Stage two: a minimal playable loop

    Later work should prioritize move–look–interact–feedback, not more decoration.

    Independent submersible controller

    Minimum state:

    1. position
    2. rotation
    3. velocity
    4. depthVelocity
    5. forwardInput
    6. turnInput
    7. verticalInput

    Use acceleration toward a target speed rather than instant translation, which also leaves room for inertia, drag, and damage.

    A typical loop:

    1. read input
    2. compute target speed
    3. approach target speed with acceleration
    4. update displacement from current heading
    5. clamp max depth and bounds
    6. run collision
    7. update pose

    Displacement must follow the vehicle’s heading, not world axes, or turning will desync visuals and motion.

    First- and third-person cameras

    Do not merely hide one camera and show another. Share vehicle state:

    • First-person on the cockpit or sensor mount
    • Third-person behind and above
    • Both read position and heading
    • Short blend on switch
    • FOV, shake, and HUD depend on mode

    Third-person should pull in on collision with terrain or structures. First-person should not clip the hull and should aim lights and scanners correctly.

    Target scanning

    Each scannable object can hold:

    1. name
    2. type
    3. description
    4. scan range
    5. scan duration
    6. scan state
    7. linked mission

    Aim with a reticle or raycast, check range, show outline, distance, and progress, then update missions and a log or encyclopedia. Approaching and holding a scan is a better exploration loop than click-to-popup, and it supports later costs, upgrades, and branches.

    5. Sonar and searchlights as gameplay

    Deep-sea appeal comes from limited vision. Uniform brightness weakens depth, unknown, and danger.

    Searchlight logic can include:

    • Direction from vehicle heading
    • Higher intensity nearby, falloff at the beam edge
    • Beam follows look
    • Specular, outlines, or particles in the cone
    • Energy limiting continuous use

    Sonar can start simple:

    1. Player triggers a ping
    2. A wave expands from the vehicle
    3. Detect targets in range
    4. Different markers by type
    5. Delayed range and bearing
    6. Write results to UI or missions

    The point is decision-making: a wreck entrance only visible on sonar, or echoes that warn of a large obstacle. Unbound to goals, devices become decoration.

    6. Procedural scenes: speed versus limits

    Code-driven worlds shine as repeatable, editable testbeds.

    Common methods:

    • Noise for seafloor height
    • Rocks by depth and slope
    • Rule-based vents and resources
    • Region-specific color and fog
    • Distance-based spawn/hide
    • Seeds for reproducibility

    Without a seed, terrain changes every run and bugs are hard to reproduce. With a seed, you can pin down collisions, occlusion, and performance.

    Do not spawn unbounded geometry, particles, and lights in one frame. Safer patterns:

    • Low-LOD distant objects
    • Instancing for similar meshes
    • Distance-gated animation
    • Few dynamic lights
    • Particle caps
    • Streaming regions
    • Full interaction only near the player

    Models can draft this; developers still validate on real hardware.

    7. Why “37 minutes to a prototype” is not a finished project

    A runnable prototype quickly shows value:

    • Project layout and base scripts
    • Multiple related objects from natural language
    • Common input, camera, and interaction
    • Ideas turned into something you can see
    • Lower cost to test a concept

    Production still needs asset pipelines, error handling, saves, multiplayer, device support, UI, audio, accessibility, tests, and maintenance.

    Models may also:

    • Produce runnable but messy structure
    • Duplicate logic across files
    • Call APIs that do not match the runtime
    • Skip edge cases
    • Fix one bug by introducing another
    • Misread the brief
    • Stop before acceptance criteria are met

    Judge maintainability, reproducibility, interaction completeness, and whether the loop actually matches the spec—not only how pretty the frame looks.

    8. A more reliable workflow

    Prefer staged, testable work.

    Stage 1: smallest scene, with run conditions and acceptance tests. Stage 2: vehicle movement only. Stage 3: camera switch and collision. Stage 4: scan, sonar, and mission feedback. Run and log issues after each stage.

    Structure the prompt with:

    • Project goal
    • What already exists
    • Allowed change scope this round
    • Must-have features
    • Explicitly out of scope
    • How to run and accept
    • Rollback if errors appear

    That reduces unsolicited scope and extra polish before basics work.

    Conclusion

    A code-generated 3D deep-sea prototype already shows how these models help idea validation and multi-module scaffolding: scene, lighting, vehicle control, and interaction frames can appear in minutes so you can decide whether to invest further.

    The hard part is turning a static showcase into a playable system: natural motion, spatially consistent cameras, sonar and lights that serve exploration, scans with clear feedback, and a balance of performance and maintainability.

    Treat the model as a fast prototyper and collaborator, not a replacement for design, engineering, and QA. Combine natural-language planning, staged implementation, human review, and engineering optimization to grow a minutes-long demo into a reliable 3D interactive product.