Gallery: 3D stuff

TEST There should be a 3D scene below

A red cube orbiting two other shapes

This 3D scene is from a Pluralsight course on WebGL/three.js fundamentals by Alex Mackey. I have included this example here for testing purposes. I want to have a reference, or a simpler alternative, for verifying that exporting 3D plots from the R package \(threejs\) works.

In the future I want to include more complex renderings. In particular I want to experiment with light and camera settings, because of my other hobby, photography.

// Some javascript for debugging (try in devtools console):
// demo.scene.getObjectByName("cube"); // or plane, cube2

Links to threejs stuff: