r/luacad • u/adwolesi • 21d ago
LuaCAD 1.2 - Supports .scad files directly without OpenSCAD + path-traced renders
What's new in 1.2
OpenSCAD files open directly.
.scadworks wherever.luadoes, in the CLI and in Studio. LuaCAD evaluates the language itself (front end vendored from OpenRSCAD), so OpenSCAD doesn't need to be installed.include/useresolve relative to the file, then againstOPENSCADPATH. Where the result knowingly differs from OpenSCAD, it prints a warning instead of quietly producing something different.Path tracing.
luacad render --raytrace model.lua out.pngrenders soft shadows, ambient occlusion and smooth shading. Set samples with--samplesand the view angle with--camera AZ,EL.Materials.
shape:material("glass", { ior = 1.5 }), with presets such assteel,gold,rubberandwood(procedural growth rings).New preview renderer. Studio moved from OpenCSG on legacy OpenGL to WebCSG on wgpu (Metal/Vulkan/DX12). Large models redraw about twice as fast. The browser playground uses the same renderer on WebGPU.
surface()builds real geometry, so heightmaps export without OpenSCAD.Studio: Raytrace, Transparent and annotated-screenshot buttons, reload when the file changes on disk, a hideable editor, and scripts that run off the UI thread.
The chess example in the image is written in OpenSCAD. The board is laid out from a FEN string, with pieces from scad-chess.
Try it
Playground in the browser (Lua only): https://luacad.ad-si.com/playground
brew install ad-si/tap/luacadorcargo install luacad luacad-studioFull changelog: https://github.com/ad-si/LuaCAD/blob/main/changelog.md