Skip to content

Turning 3d scenes into Escher-style woodcuts for plotting

Notifications You must be signed in to change notification settings

locusartworks/LumberSharp

 
 

Repository files navigation

LumberSharp

Stylized 3d -> SVG converter for plotters, inspired by Escher's woodcuts.

Dependencies

Installation

Ensure dependencies are installed.

git clone https://github.com/daeken/LumberSharp

Running

From the Lightness directory under LumberSharp:

dotnet run tests/test.lua test.svg

Lua Files

LumberSharp uses Lua to define scenes and rendering parameters. The format is largely straightforward:

  • Set page parameters (defaults to A4 in portrait mode with 10mm margins on all sides)
  • Define a camera
  • Load some number of meshes
  • Add them to the scene
  • Specify the rendering size (default 1000x1000px -- you'll want to go higher, e.g. 4000-8000)

Setting scene.preview = true; will cause LumberSharp to emit a file called preview.png which will be the rendering of the normals of the scene. This is useful for setting up just the right shot.

About

Turning 3d scenes into Escher-style woodcuts for plotting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 97.4%
  • Python 2.6%