I'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
Here you can see how Zwerg is used to create a raymarched scene for a fragment shader (SIGGRAPH 2015, Shadertoy competition)
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
movAX13h
Post authorHi, 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
Bishop31
Hi,
thanks for the follow up.
Unfortunately it doesn't help.
I'm on win10/nvidia 1080 ti
This threqd seems to mention a similar problem with opentk:
http://community.monogame.net/t/solved-recent-nvidia-update-broke-win-opengl-version/8728
troxmo
3 years later, but I have the same issue here, just wanted to try out Zwerg... Any help?
movAX13h
Post authorThank 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.
movAX13h
Post authorI'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.
Jochen
Nice Tool!
You should include the Mercury sdf library. Would be awesome!
movAX13h
Post authorOk, I will put the hg_sdf functions in soon.
Jochen
Great 🙂
movAX13h
Post authorA 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, ...).
Jochen
You´re awesome!
Alexander Seel
Hello,
I would give the editor a try, can you send me a link.
Thanks in advance
Alex
Cyrus
Hi - I would really like to try Zwerg. Can you send me the link? thx!
Ruofei Du
Hi, movAX13h,
That's great work! Could you please send me a download link to me [at] duruofei [dot] com ?
Thanks a lot!
Ruofei
Olli
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