Printed N-scale roadbed driven by software

Oct 16, 2026 Last reply: 3 hours ago 2 Replies
Jump to replies (2)

This one started small: a guide template for laying flex track. Along the way it grew into a software-defined geometry planner for N-scale flex track, with printed roadbed, piers and viaducts built up around that original idea.



The system came together through a vibe-coded viewer app that displays the whole layout in 3D and generates complete print plates ready to send straight to a Bambulab printer. The same app doubles as an assembly guide with exploded views, and it offers Explore, Assembly and Print plates modes for examining the loop, pulling roadbed parts apart and zooming into joints. Part codes and joint tags keep the plates organized, and one build plate even carries a SkyTrain station label.



Some details stand out. Variable curvature radius works quite well with no discontinuous curvature, and grade parameterization works too, with test prints of piers and viaducts already done. The printed track beds carry nickel silver or steel rails with plastic ties, and a double-track crossover climbs onto a curved elevated bed supported by printed piers. Flex track snaps onto compliant retaining walls, and glue will hold those joints down as well.



There are trade-offs and open ends, as expected at this stage. Printing the piers and viaducts turned out tricky, so banked curves are switched off for now. The sunken retainer was removed so the sleepers sit the way they would on cork, and ballasting stays possible later. The elevated passenger station, modeled with GPT 6 Astra, is judged not bad and will be printed now, then redesigned if needed. Printing is about 30% done, and a layout editor that turns pen-and-paper sketches into track curves via computer vision is the next step, with a demo planned for the next update.


The choice to remove the sunken retainer seems clever to me. With it gone, the sleepers rest the way they would on cork, and ballasting remains an option down the line. On a modular roadbed like this, keeping that door open feels like the right trade, even if it means one less molded-in detail.

One improvement worth considering: since the roadbed sections are printed and the geometry is parameterized anyway, channels for power or comms cabling could be built into the profiles. Wiring routed inside the modular sections would keep the elevated piers and viaduct runs tidy instead of leaving cable management as an afterthought.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required