There are 31 architecture nodes (prefix ARCH).
They cover everything around buildings, from planning a district to houses, roofs, stairs, stone towers and log fences.
Kinds of nodes
Roughly, they split like this:
- Planning:
ARCH_District(places houses and supports, and searches for walking routes),ARCH_Mass(rough massing),ARCH_Assembly - Buildings:
ARCH_Building(a modular facade),ARCH_House(reads a JSON design document and outputs the timber frame, roof and joints),ARCH_Wall,ARCH_Window,ARCH_Pillar - Roofs and foundations:
ARCH_Roof,ARCH_RoofJunction,ARCH_Tent,ARCH_Foundation - Stairs:
ARCH_Stair(a stair asset moved straight into C++, with no asset or Python at cook time) - Stone:
ARCH_CastleBase(a stone-masonry cylinder with a conical roof, corbels and a foundation),ARCH_StoneCube - Parts:
ARCH_LogFence(a fence of logs and rope),ARCH_Rope,ARCH_Stake
Roofs are lifted from a skeleton
A roof is built by lifting a closed planar footprint at an equal pitch (a straight-skeleton method).
Edges are handled as five kinds, eave, verge, ridge, valley and abutment, and a house roof is composed using valleys.
Skip the finishing while dragging
A stone tower has so many stones that rebuilding everything on every move is too heavy.
So while you drag a handle, stone subdivision is skipped and a shell stands in. Position and foundation dimensions still update. When you let go, the node returns to full quality from a separate cache. Touching only the roof does not rebuild the walls.
In the roof-moving test (initially 2,219 tiles), it went like this:
| Operation | Result |
|---|---|
| While dragging | about 27 to 31 ms (median) |
| Back to full quality (generate stones) | about 0.21 to 0.27 s |
| Back to full quality (fit to shape) | about 0.30 to 0.43 s |
| Back to full quality (fit to box) | about 2.12 to 2.39 s (was about 14.21 to 16.34 s) |
Keeping heavy finishing out of the drag path was the rule that paid off most.
Finishing the junction
Where a roof meets a stone cylinder wall, stones have to be cut and re-formed.
The finishing steps are:
- Pick the neighboring stone with the same course, height and radius, even across the 0 and 360 degree seam.
- Re-form a thin leftover stone together with that neighbor.
- Extend the stones and clip them to the footprint of the original two stones.
- Rebuild cut boundary stones as closed solids.
- Generate normals and planar UVs only on the new faces.
- Remove only isolated micro-chips whose volume is below 0.001 of the main stone and whose smallest dimension is below 0.02.
UVs and normals that were on points are saved as plain values before the vertex attributes are created (the fix for the mix-up in article 9).
Verify the output itself
I tested four conditions: roofs crossing, wrapping around the angle seam, a tilted placement, and a roof joining a tall cylinder wall.
The cylinder side had 105, 95, 105 and 162 stones. Before the fix, an original arc of about 0.663 could leave a sliver of only about 0.162 (5 of them), plus 15 open stones. After the fix, slivers, open stones and unresolved cases were all 0.
The tests look at the shape of the output stones themselves (arc width, whether they are closed, volume, face orientation), not their names.
Renaming cannot dodge the sliver check. A separate connectivity check also finds small separated islands that a rename would hide.
I also wrote down the measurement conditions.
Houdini 22.0.459, a Release build, 6 cores and 12 threads, and the time from the parameter change to fetching the mesh. I did not measure drawing time or FPS, and I do no strength or waterproofing calculations.
The log fence: speed and identical results
I rebuilt the original asset's random numbers (an integer-seeded MT19937) in C++.
The same seed gives the same result. The default cook went from 0.674 s as an asset to 0.021 s natively, with zero position differences across 10 cases (one run on my PC).
Summary
What helped most with buildings was not clever tricks but rules.
Keep heavy finishing out of the drag path. Verify by the shape of the output, not by names. Write down the conditions you measured and what you did not measure.
Next: water and clouds.
Comments