Using Mozzila's brilliant AFrame, a web-based Virtual Reality model of a planet with rings and include a moon with an image on it. Step 1. Basic Planet The first step is to set a new site in Glitch.com and then add a white sphere on a black background. <html> <head> <script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script> </head> <body> <a-scene> <a-sphere position="0 1.25 -5" radius="3" color="white" > </a-sphere> <a-sky color="black"></a-sky> </a-scene> </body> </html> Using the Aframe 'tags' to create a white sphere and to create a black background Step 2: Rotate the planet and add some colour Now we can add a surface to the ...
Robots and getting computers to work with the physical world is fun; this blog looks at my own personal experimenting and building in this area.