Code Monkey home page Code Monkey logo

Comments (6)

webocs avatar webocs commented on May 17, 2024 1

I'm working on an 3D editor that will be able to write/read zdog drawings, It'll be super cool to have an official format, or even several illos. I think the JSON needs, a name for each Illustration

[
  illustration:{
    name: "SomeName"
    children:[
       shape:{
         children:[
           {...},
           {...}
        ]
      }
   ]
  },
...
]

I'm thinking about something like this..

from zdog.

natemoo-re avatar natemoo-re commented on May 17, 2024

This could be accomplished using the native JSON methods, although I'm not sure if there's a particular structure that would be the most efficient.

For serialization, a toJSON method could be added to Anchor (and Illustration?). For deserialization, a method could be exposed (Zdog.parse?) which extends JSON.parse by using a custom reviver parameter.

from zdog.

desandro avatar desandro commented on May 17, 2024

Add a 👍 reaction to this issue if you would like to see this feature added. Do not add +1 comments — They will be deleted.

Yeah, this one makes lots of sense.

from zdog.

newbold avatar newbold commented on May 17, 2024

It would also be super cool if there was a way to generate an STL file from a Zdog illustration (imagine 3D printing your Zdog creations!) or other formats (USDZ for ARKit fun!). I wouldn't imagine that kind of specialized output being a Zdog feature per se, but I'm adding this note here in case smart people can figure out how to harvest the 3D data from Zdog illustrations (or from the proposed JSON export, if that's added). ❤️

from zdog.

gut4 avatar gut4 commented on May 17, 2024

Maybe its possible to import .vox files from MagicaVoxel? - https://ephtracy.github.io/
File format - https://github.com/ephtracy/voxel-model/blob/master/MagicaVoxel-file-format-vox.txt
https://github.com/tommyettinger/IsoVoxel

from zdog.

loreanvictor avatar loreanvictor commented on May 17, 2024

I'm working on an 3D editor that will be able to write/read zdog drawings, It'll be super cool to have an official format, or even several illos. I think the JSON needs, a name for each Illustration

[
  illustration:{
    name: "SomeName"
    children:[
       shape:{
         children:[
           {...},
           {...}
        ]
      }
   ]
  },
...
]

I'm thinking about something like this..

I don't know if you are still working on this, but just in case you are, why not a format close to SVG, for potential interops?

from zdog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.