gregja / zdogXperiments

experiments with zdog
MIT License
45 stars 7 forks source link

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.

Follow this link to watch the live demo of this project :

http://ledefrichoir.com/labo/zdogXperiments/

The content of the project :


(*) 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

(*3) recreation with zdog of : https://library.fridoverweij.com/codelab/3d_wireframe/

(*4) recreation with zdog of : https://codepen.io/hankuro/pen/QMVLJZ

(*5) inspired by an example excerpt of the book of Nikolaus Gradwohl : "Processing 2: Creative Programming Hotshot", Packt Publishing 2013

(*6) inspired by a pen of Hankuro : https://codepen.io/hankuro/pen/LrbVrx

(*7) inspired by this tutorial : https://observablehq.com/@sw1227/calabi-yau-manifold-3d

(*8) inspired by the book : "Foundation HTML5 Animation with JavaScript" of Billy Lamberta and Keith Peters (ed. Apress), http://lamberta.github.io/html5-animation/

(*9) you'll find different links (docs and tutorials) in the beginning of the JS code

(*10) Source of the Delaunay algorithm : https://github.com/ironwallaby/delaunay.git

(*11) Adaptation for Javascript of an algorithm excerpt from the book : "Graphisme 3D en Turbo Pascal", Gérald Grandpierre and Richard Cotté, édiTests 1988

(*12) Link to the project csg.js : http://evanw.github.io/csg.js/


A lot of examples of this project are visible on my pens : https://codepen.io/gregja/

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

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