/webgl_playground

Experiments with webgl

Primary LanguageJavaScript

WebGL Experiments

A little playground for testing things with webGL.

The goal is to re-learn 3D (I did a 3D game, with friends, more than 10 years ago) via a little project, involving procedural modelling.

Goals :

  • Realtime vizualisation of the growing thing
  • constraints and collision detection (I'd want to make things growing inside forms or solids)
  • export the generated model (to print it ^^);

Links, references & ideas

Some tricks (merge geometries & local / global coordinates)

http://learningthreejs.com/blog/2013/08/02/how-to-do-a-procedural-city-in-100lines/

Tree data structures in JS

https://github.com/afiore/arboreal

A micro-library for traversing and manipulating tree-like data structures in JavaScript; works with both node.js and the browser.

http://jnuno.com/tree-model-js/
https://github.com/joaonuno/tree-model-js

Manipulate and traverse tree-like structures in javascript.

https://github.com/aaronj1335/t-js

t.js is a tree-traversal library. its only assumption is that the trees it traverses are made up of objects with 'children' arrays.

Octrees - space partionning, raycasting & collision detection

https://github.com/collinhover/threeoctree

https://www.google.fr/search?q=threejs+octree

http://stackoverflow.com/questions/17666404/how-to-get-other-3d-objects-within-a-radius-of-a-position-in-three-js