Use CDN threejs
This module is based on https://github.com/eneus/drupal_threejs (but it's not totally the same I reuse about 30%).
How to use:

  1. Enable modules Threejs + Threejs field
  2. Configuration Threejs
  3. Configuration field Threejs formatter

Support some format 3d like obj dae gltf stl....

some issue:
- camera fit to object (i set for scanner box)
- texture not work some case
- autorotation

the module uses cdn version r149 because threejs from r150+ will use script type=importmap. but Drupal does not support these attributes yet.

You can modify version by yourself in threejs.libraries.yml
example:
//cdn.jsdelivr.net/npm/three@0.160.0/build/three.min.js: { external, minified: true, crossorigin: anonymous}
it still works but you will see a warning message in the console log

Do you like this module? Show your appreciation by buying me ☕.

Supporting organizations: 

Project information

Releases