Colombia has an annual celebration called Dia de las Velitas (Day of the candles). This tradition invites every colombian to light up a candle and wish something before Christmas. Regardless, the religious connotation that this celebration may have, I wanted to use this metaphor again to bring colombians together before presidential elections 27 May, 2018. This virtual space will save all the wishes and promises that anyone want to ask for in promotion of a better Colombia.
Technologies used: Javascript, bulma.css, Node.js, Three.js, MongoDB.
In the first stage, there is a simple form:
Every submit form is store in a non relational data base mondoDB, getting the name, email, wish, promise and an autogenerated id, which we will use to retrieve the data afterwards.
The second stage is to display the information in a 3D space. This environment was develop with three.js and its example codes:
https://threejs.org/examples/#webgl_octree_raycasting
https://threejs.org/examples/#webgl_interactive_cubes_gpu
Each sphere is an object placed in this place with a random position and every-time the page is reload, the database is checked again and the spheres created with an Id. The raycasting algorithm what is the ID of each sphere and when a key is pressed the sketch will query the entry per ID, which is the default index, getting the data as fast as possible.
Code can be found at: https://github.com/trafalmejo/dwd