3d-modular-buildings

Installation
SKILL.md

3D modular buildings

Give each building a job and a route to its front door. A ferry terminal needs a weathered landing, a sheltered queue and a roof visible from the water. A freight hall needs truck clearance and a loading face. A relay station needs service access and a recognizable antenna. Those decisions give a district its identity before signage and neon. Compare the approach, entrance and roof views.

Set the footprint and circulation first

Block out the footprint, entrance threshold, floor heights, roof envelope and neighboring street or water level in one coordinate system. Check the approach camera, eye-height walk-up and a rear or roof view. Place a human-scale reference by the opening. If the building is traversable, fit landings, stair runs, headroom and collision proxies before dressing the entrance. For a distant facade, model only the interior depth the camera can reveal.

Build the base, occupied floors and crown as separate masses. Assign one silhouette feature that describes the use, such as a trussed shed roof, stepped mechanical penthouse or framed signal mast. Give the roof a back, underside, drainage edge and connection to the walls wherever the camera can see them.

Define a bay in its own coordinates

Use local X across a facade, Y up, and local +Z facing out. With this convention, the same function can generate front, side and rear elevations by changing the parent transform. Derive the bay span from the face width and the end margins.

const count = Math.max(1, Math.round((faceWidth - 2 * endMargin) / targetBay));
const span = (faceWidth - 2 * endMargin) / count;
const centerX = i => -faceWidth / 2 + endMargin + (i + 0.5) * span;
Installs
439
Repository
mengto/skills
GitHub Stars
8.7K
First Seen
10 days ago