DEV Community

Cover image for Turning a Terminal Into a Test Bed: A 3D Simulation Pipeline
Future Built AI
Future Built AI

Posted on

Turning a Terminal Into a Test Bed: A 3D Simulation Pipeline

Most 3D modeling jobs end when the render looks right. This one started there. The task was to build a digital environment of Maher Terminals in Elizabeth, New Jersey, for a simulation study developed with Moffatt & Nichol, and then use it to analyze how terminal equipment and transport flow interact. That means the model had to be correct in ways a render never tests: distances, travel envelopes, lane widths, turnaround space.
Here's the pipeline I used, in the order I'd use it again.

The brief, in one paragraph

Build a full terminal scene — container yard, ship-to-shore cranes, rubber-tyred gantries, berthed vessels, internal roads — accurate enough that a simulation engine can push equipment through it and produce results someone would trust. Five things the model has to support: the overall scene, the yard and crane structures, berth positions, container handling flow, and equipment and transport route analysis.

Step 1: Lock the coordinate system

Before any geometry, I fixed one origin and one datum for the entire scene and wrote it down. Every source — survey, as-builts, imagery — got transformed into that frame on import. This sounds trivial and is the single highest-leverage decision in the project.
When your yard block, crane rail, and road centerline all live in the same space, conflicts are real. When they don't, every bug looks like a simulation bug and none of them are.

Step 2: Build the static scene in layers

I modeled in four layers:
• Ground: pavement, quay edge, rail, drainage, markings
• Fixed structures: crane rails, gates, light towers, buildings on site
• Equipment: STS cranes, RTGs, yard tractors as separate objects
• Routes: lane centerlines and turning paths as editable curves
Layering paid off during debugging. If a truck clipped a container, I could hide the routes, check geometry, then hide geometry and check paths. Most of my "simulation errors" were my own offsets, and layers made that obvious in minutes.

Step 3: Get the cranes and yard right

The STS cranes needed their real boom reach, trolley travel, and rail gauge. The RTGs needed believable two-axis travel and the ability to cross lanes. The yard needed blocks with capacity and access geometry rather than decorative stacks.
I checked crane reach against vessel offsets at several berth positions, because a crane that can reach the ship on paper but not in the model will poison every scenario downstream.

Step 4: Fill in the context without hand-modeling it

The terminal sits inside a working port and a dense industrial edge. The study doesn't analyze those buildings, but the scene looks wrong without them, and route plausibility depends on the surrounding street geometry.
For this I used GenAnywhere. You draw a box on a map around the area you care about, and the AI generates 3D building and scene models for that region. I boxed the surrounding blocks, generated the massing, imported it, and cleaned up only what the camera or the routes would touch.

Notes from doing it:

• Box slightly larger than you think; cropping later is cheaper than regenerating.
• Treat generated buildings as context, not survey. Don't attach analytic assumptions to them.
• Keep generated context in its own layer so you can strip it for headless simulation runs.
The simulation engine doesn't need a skyline, so keeping context separable means fast batch runs and a clean review scene.

Step 5: Convert geometry into moving parts

The handoff to the simulation team was a set of logical objects: equipment with type-specific movement rules, yard blocks with capacity and access, routes with allowed equipment classes, and berth positions as explicit anchors.
The rule I kept coming back to: if a constraint exists in the real terminal, it has to exist in the model as a constraint, not as an accident of geometry. If a lane is too narrow for an RTG, that should be a property of the lane, not a thing we discover when something clips.

Step 6: Instrument it and iterate

Then we ran days. The simulation produced equipment utilization, queue lengths, and route conflicts, and the modeling team's job became responding to what those numbers exposed. Some fixes were geometric — a turning radius too tight. Some were logical — a route allowed for the wrong equipment. The loop was fast once the scene was layered and the coordinate frame was stable.

What broke, and what I'd change

Two things. First, I under-modeled gate approach space early on, and it made every morning peak look worse than it should. Second, I trusted imagery for pavement edges longer than I should have; as-builts won every disagreement.
If I ran it again, I'd spend the first day building nothing but the coordinate frame and a test route, then verify that a single tractor could complete a lap before adding a thousand containers. The pipeline above is what I'd hand to the next person.

Top comments (0)