“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!

Note
Zwerg is limited to only the very basics of SDF modelling and is missing many useful features any 3D editor should have. It's a helpful tool for a small group of programmers.
If you're an artist or are looking for a tool for SDF/CSG based modelling, I highly recommend MagicaCSG.

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.1)
https://github.com/movAX13h/zwerg

Binary download (1.4.1)
https://thrill-project.com/archiv/coding/Zwerg141.zip (3MB)
(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

15 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

            Thank you ... I'll try on my notebook ... still not running win10 on my desktop pc 😉

            I'll probably remove the opentk dependency entirely.
            Anyway... meanwhile you can try it out the js version here: http://www.trickundtronic.at/zwerg/

            It's basically the same (less operators because I've not entered the new ones in the database). Just right click the scene item in the tree view on the left.

          2. movAX13h

            Post author

            I've released a new version 1.4.1 now with updated OpenTK. I had no problems with the old version on my notebook running Win10 but still the update might help in your case. Please find the download link in the post or on github.

        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 *