Getting started with Three.js


Getting started getting to grips with Three.js this week.

To start off with Three.js I began by creating a simple rotating normal material cube. The ‘Hello World’ of Three.js, this is important as it gives me a chance to play around with setting up the camera, rendering my scene and adding geometry’s and so on. I created an array of four blocks in a line. I also experimented with materials I took from some example code found here: https://threejs.org/examples/?q=mater#webgl_materials

Eventually my game will become Christmas themed, so I kept this transparent blue material, as I felt It could become useful later (for ice cubes perhaps) I also added a plane. This gives us a platform to work on. Four three.js cubes

experimenting with three.js