Another experiment with three.js, this time using a grid of cubes and an Intel RealSense depth camera. Movement in front of the camera flips the cubes on screen.

CubeGrid's browser renderer showing a grid of blue, green and yellow cube faces
The browser version, before any camera input.

The camera talks to a small C# server, which sends tracking data to the browser over WebSockets. The browser handles the drawing and animation. This was also a workaround for the JavaScript support in the RealSense SDK at the time.

I also packaged it as an Electron app and made an openFrameworks version with support for multiple RealSense sensors. Same idea, a few different ways of connecting the camera to the graphics.