Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module provides integration for Three.js, a JavaScript library for creating and displaying 3D graphics, within Drupal. It allows you to load and display 3D models and scenes on your website using common formats and offers extensive support for various other 3D file types.

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

Commonly Supported Formats:

  • OBJ: A widely used format for describing 3D object geometry.
  • glTF (and GLB): A royalty-free specification for the transmission and loading of 3D scenes and models. GLB is the binary version.
  • STL: A standard format for 3D printing and CAD/CAM applications.
  • PLY: A format primarily used for storing 3D data, especially point clouds.
  • 3MF: A 3D manufacturing format designed for 3D printing.
  • FBX: A popular format for exchanging 3D data between different software packages, though support has been discontinued.

Another format can load:

  • 3DM Rhino 3D Model
  • AMF Additive Manufacturing Format
  • BVH Biovision Hierarchy
  • DDS DirectDraw Surface
  • DRC Draco compressed format
  • EXR OpenEXR
  • GCode G-code CNC
  • KMZ Google Earth zip
  • KTX/KTX2 Khronos Texture
  • LWO LightWave Object
  • MMD MikuMikuDance
  • MD2 Quake II Model
  • Mpd LDraw Model
  • MTL Material Template Library
  • NRRD Nearly Raw Raster Data
  • TIFF 3D image data in scientific and medical imaging
  • Tilt Tilt Brush
  • TGA Targa
  • TTF Text 3D
  • PCD Point Cloud Data
  • PVR PowerVR Texture
  • PRWM Compressed geometry
  • PDB Protein Data Bank
  • RGBM/RGBE High-dynamic range textures
  • VOX MagicaVoxel
  • WRL VRML (Virtual Reality Modeling Language)
  • VTK Visualization Toolkit
  • XYZ Point Cloud

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

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/[email protected]/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 ☕.

Activity

Total releases
2
First release
Apr 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Release date
1.0.9 Stable Jul 2, 2025
1.0.8 Stable Apr 21, 2025