Skip to content
experiments with zdog
JavaScript HTML
Branch: master
Clone or download
Latest commit abc3ce7 Jul 27, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets first commit Jun 10, 2019
complements add solar system + xwing Jul 27, 2019
js add solar system + xwing Jul 27, 2019
jsdatas first commit Jun 10, 2019
.gitignore
LICENSE Initial commit Jun 7, 2019
README.md add solar system + xwing Jul 27, 2019
index.html add solar system + xwing Jul 27, 2019
zdog_8cubes.html add 8cubes_linked Jun 14, 2019
zdog_8cubes.js fix bug + add parametric surfaces Jun 18, 2019
zdog_8cubes_click.html add 8 cubes clickable Jun 26, 2019
zdog_8cubes_click.js fix bug on 8 cubes + add mobius surface Jun 27, 2019
zdog_cube.html obj loading async Jun 12, 2019
zdog_cube.js fix bug + add parametric surfaces Jun 18, 2019
zdog_flake.html obj loading async Jun 12, 2019
zdog_flake.js fix bug + add parametric surfaces Jun 18, 2019
zdog_magnetcubes.html
zdog_magnetcubes.js add magnetic cubes Jun 28, 2019
zdog_obj.html obj loading async Jun 12, 2019
zdog_obj.js obj loading async Jun 12, 2019
zdog_obj_v2.html obj loading async Jun 12, 2019
zdog_obj_v2.js fix bug + add parametric surfaces Jun 18, 2019
zdog_obj_v3.html import obj v3 Jun 13, 2019
zdog_obj_v3.js fix bug + add parametric surfaces Jun 18, 2019
zdog_shapes.html obj loading async Jun 12, 2019
zdog_shapes.js fix bug + add parametric surfaces Jun 18, 2019
zdog_solarsystem.html add solar system + xwing Jul 27, 2019
zdog_solarsystem.js add solar system + xwing Jul 27, 2019
zdog_sponge.html obj loading async Jun 12, 2019
zdog_sponge.js fix bug + add parametric surfaces Jun 18, 2019
zdog_surf_param.html fix bug on 8 cubes + add mobius surface Jun 27, 2019
zdog_surf_param.js add 8 cubes clickable Jun 26, 2019
zdog_tunnel.html fix bug + add parametric surfaces Jun 18, 2019
zdog_tunnel.js first commit Jun 10, 2019
zdog_xwing.html add zoom buttons on xwing Jul 27, 2019
zdog_xwing.js

README.md

zdogXperiments

experiments with zdog

I discovered Zdog in the beginning of june 2019 and I liked it immediately. It's a really cool project, so I decided to make some experiments with it. This github repository is the result of those experiments. It's just the beginning, I have a lot of other ideas to test ;)

Note that for all shapes, it's possible to zoom with arrow keys, to reset the zoom with the escape key, and to "click & drag" to rotate the shape.

To test the algorithms, just download the zip of this repository, unzip it, double-click on "index.html", and follow the links.

The content of the project :

  • 3D Cube : cube generated programmatically, with two types of render : "wireframe" and "paint" (for the "paint" mode, colors are generated by Chroma.js)

  • 3D shapes : shapes generated programmatically => cube, sphere, icosahedron, pyramid, cylinder and cuboïd

  • Load wavefront obj files V1 (*) : cube, dodecahedron, icosahedron, and a lot of other objects, found on this site : http://people.sc.fsu.edu/~jburkardt/data/obj/obj.html

  • Load wavefront obj files V2 (*) : V1 with asynchronuous loading of the 3D objects (better practice using the Fetch API)

  • Load wavefront obj files V3 (*) : V2 plus a new "paint" mode (the same used for "3D Cube" and "3D shapes")

  • Menger Sponge & Flake generators : adaptation of algorithms of Frido Verweij (https://library.fridoverweij.com/codelab/menger_fractals/)

  • Tunnel 3D : shape generated using an algorithm of Niklas Knaack, found on this pen : https://codepen.io/NiklasKnaack/pen/WyWqja

  • 8 cubes linked

  • 8 cubes linked and clickable (new) : how to set a list of clickables shapes with Zdog and a ghost canvas (*2)

  • Parametric surfaces : Ellipsoid, Sphere, Torus, Hyperboloid, Cone, Pseudo-sphere, Helicoid, Katenoid, Möbius ribbon, Klein bottle, etc.

  • Magnetic cubes

  • Solar system (n-body algorithm) (=> experimental, for fun, not finalized)

  • XWing

(*) Note that the import OBJ algorithm is largely inspired by a similar algorithm found on Phoria.js, of Kevin Roast : http://www.kevs3d.co.uk/dev/phoria/

(*2) see improved version by José (thank's José): https://codepen.io/ncodefun/pen/aggZKP


The example "3D shapes" is visible on Codepen : https://codepen.io/gregja/pen/BgodWw

The example "8 cubes linked" is visible on Codepen : https://codepen.io/gregja/pen/rEVNvQ

The example "8 cubes linked and clickable" is visible on Codepen : https://codepen.io/gregja/pen/rEGmGB

Link to this github repository : https://github.com/gregja/zdogXperiments

Link to the official site of Zdog : https://zzz.dog/

You can’t perform that action at this time.