Glitch Sandbox Examples
We prepared projects on glitch that can be remixed to create your own artifact for the Artificial Museum.
@artificialmuseum glitchCurrently, there are two projects on glitch that can be remixed
ArmSandbox
This is the general purpose arm sandbox for placements anywhere on earth.
ArmSandboxArmMoonPortal
This is a special sandbox for artifacts that should be exhibited on the moon.
ArmMoonPortalUsage
Usage of both sandboxes is quite similar. There is an artifact.js and a CustomScene.js file. Those files can be used to configure the Artifact (artifact.js) and to build custom javascript runtime code using three.js (CustomScene.js).
artifact.js
The artifact.js file contains quite a few configuration settings, some of them optional, some required.
You can have a look at the ArmSandbox artifact.js to get an overview.
CustomScene.js
This is a javascript with various functions that allow you to implement custom code at various points of the program runtime. For more details, the ArmSandbox CustomScene.js File contains the documentation of the various hooks you can use.
Assets
Glitch provides an assets area for your static (glb (3d model), audio and video) files. To use them, just upload them in the assets area of your glitch, then replace the corresponding url in the artifact.js file with your link.