Three.js

Some of our APIs provide support for graphics using the Three.js library. Here are some useful links.

  
  
  

3D models in Three.js

Some of our APIs support 3D models using Three.js.

Pre-built 3D models (with pre-built covering materials) may be uploaded and inserted into Worlds.

The APIs that use Three.js may include some or all of the following libraries for loading 3D models:

If there is a library missing you can include it yourself.

Here are sample Three.js Worlds containing 3D models plus materials:


Castle World
491 runs ♦ 3 likes
By Starter user  
Created: 11 Nov 2016
Modified: 13 Dec 2019
Demo of how to insert 3d model into World. Mind-controlled agent, actively-pursuing enemy. Splas...
Model World
566 runs ♦ 2 likes
By Starter user  
Created: 8 Nov 2016
Modified: 13 Dec 2019
Demo of how to insert 3d models into World. Mind-controlled agent, actively-pursuing enemy. Skybox.

Warning: MTL files and Three.js versions

Some MTL files work with old Three.js versions (old APIs on this site) but not with new Three.js versions (new APIs).

One known issue is the line "Tr 1" in MTL files. The solution is to either use an old API, or edit the MTL file to change "Tr 1" to "Tr 0" or remove the line. See discussion.