“Zwerg” Distance Field Editor

screenshotI've been working on an editor/modeller for distance field based models/scenes that can be rendered with a raymarcher/sphere tracer, for example in a fragment shader. The scene can be saved to and loaded from XML but more important is the generated scene source code for your (or my) raymarcher. Tired of modelling in code? Try Zwerg!

Customisable
All function definitions are loaded from an external XML file and can be modified to your needs. Mercury SDF Library functions are integrated (most of it).

Feel free to fork the project on github.

Source Code (1.4)
https://github.com/movAX13h/zwerg

Binary download (1.4)
http://thrill-project.com/archiv/coding/Zwerg14.zip (754kb)
(Windows only, requires .NET4.5)

WebGL Version (experimental)
Zwerg WebGL

Screenshots

Example scene in Zwerg 1.1
Example scene in Zwerg 1.1
Example scene in Zwerg 1.1
Example scene in Zwerg 1.1


Example
Here you can see how Zwerg is used to create a raymarched scene for a fragment shader (SIGGRAPH 2015, Shadertoy competition)

Related Topics:

Tool

12 thoughts on ““Zwerg” Distance Field Editor

  1. Bishop31

    Hi,
    looks like a nice tool, but I'm getting glCreateShader entry point not found in opengl32.dll. This happens in load shader .
    have you noticed such problems ? does it need a specific opengl32.dll version ? If so can you provide yours for a test ?

    my version of gl is 4.4 based on Opengl extensions viewer

    Reply
    1. movAX13h

      Post author

      Hi, no, it does not require a special version. I'm using win8/nvidia, never noticed such problems.
      Here's a copy of the opengl32.dll from my system32 folder: thrill-project.com/archiv/opengl32.zip

      Reply
        1. movAX13h

          Post author

          A new version (1.4) is available now that contains the mercury sdf lib. Please read the change log on github.
          I will do some improvements on the shader next (shadows, edges, SDF analysis colors, ...).

          Reply
  2. Hey,

    thanks, Zwerg is a really great tool! If you have a newer version with working load/save, could you please send me a download-link?

    Thanks again,
    Olli

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *