Show HN: Agents infer Lego mechanisms from sources, then animate them github.com...
HN Best 200 @best
Show HN: Agents infer Lego mechanisms from sources, then animate them github.com · 16 points · 0 comments · HN thread
TL;DR LDraw Mecha is an open-source toolset where an AI agent reads an annotated LDraw (.mpd) LEGO model, infers its mechanisms from part descriptions and connections, plans motions, and generates Blender Python scripts that rig and animate them into a .blend file. The author presents v0.5.0 as a proof of concept, noting it works imperfectly, mainly on complex models and with weaker LLMs. The post has 16 points and no comments yet.
- Input is a specially annotated LDraw .mpd source file; the agent infers submodels, selects those that are mechanisms, plans animations and executes them in Blender.
- Output is a rigged, animated Blender (.blend) file, with pivots per moving body and sliders as controls.
- The pipeline converts the model to glTF via mpd2glb, tagging each Blender object with a mecha_id that traces back to its source line.
- A custom visual tool, ldraw-xray (a LeoCAD wrapper), renders hidden mechanisms so the agent can check its work visually.
- Listed limitations: large or complex models take too long, agents get lost in rabbit holes, flexible parts like hoses and cables animate badly, weaker models produce visible defects, and there is no physics such as gravity, forces or inertia.
- Gallery samples include a UNICEF car, a Bugatti Chiron, a Land Rover Defender and a Technic Grand Prix Racer; the author says the animations come from original models, not AI-generated ones.
Links in the post
- Show HN: LDraw Nova (original post): The author's earlier Show HN post about LDraw Nova, the sibling agentic tool for generating LDraw LEGO models; this page could not be read.
- LDraw Mecha gallery: Gallery of animated sample models with videos and summaries, from a UNICEF car and Fabuland plane to a Bugatti Chiron and a mecha robot rebuild.
- LDraw Mecha process guide: Step-by-step guide to the five-stage annotate, convert, plan, animate and verify workflow, illustrated with an example car model.
Discussion The comment thread is empty so far: the post has 16 points and no comments, so there is no discussion or community reaction to summarise yet. The author's text asks for feedback from the community.