Quaternion Julia set / SVX voxel file format example

Discussion in 'General Discussion' started by shawn_halayka, May 3, 2015.

  1. shawn_halayka
    shawn_halayka Well-Known Member
    I've attached a C++ example of how to generate a quaternion Julia set and output it to the manifest and PNG files needed for the SVX format (grayscale, 8-bit, 1 channel). You must zip up the manifest and PNG images yourself -- see: http://abfab3d.com/svx-format/ for an example of how the ZIP file is organized (ie. PNG files go into the density/ directory). The example uses the LodePNG library -- http://lodev.org/lodepng/ -- to save the PNG files used by the SVX format. Lode Vandevenne also helped me with some code.

    If you have any questions or problems, please let me know.

    Altered the code to use overloaded operators.

    Attached Files:

    Last edited: May 9, 2015
  2. flypig
    flypig Member
    Thanks for providing the nice example. I hope you don't mind, but I used the resulting model as one of the examples on the svx2vdb page?: http://www.flypig.co.uk/?to=svx2vdb

    It creates a really nice example, so I hope it's okay, but let me know otherwise and I'll remove it.
  3. shawn_halayka
    shawn_halayka Well-Known Member
    It's perfectly fine. The source is in the public domain; you're free to do with it as you like. :)
  4. flypig
    flypig Member
    Great, thank you! It'll be a permanent fixture then :) Thanks again for the nice example.
  5. shawn_halayka
    shawn_halayka Well-Known Member
    No problem. Thanks for helping me to fix those bugs so that it compiles using gcc. Time to install Ubuntu (or at least Cygwin). :)
    Last edited: May 4, 2015
  6. shawn_halayka
    shawn_halayka Well-Known Member
    I uploaded a new version and attached it to the original post. This new version uses a better isosurface finding algorithm.