Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Model Viewer Formatter

10 sites No security coverage Drupal 10–11
View on drupal.org

This module allows you to display interactive 3D models from file fields using Google's Model Viewer. It supports various 3D file formats and offers features like camera controls, auto-rotation, and augmented reality support.

Model Viewer Formatter

Provides a field formatter for displaying 3D model files using Google's Model Viewer web component.

Description

The Model Viewer Formatter module integrates Google's "model-viewer" web component into Drupal, enabling you to display interactive 3D models directly on your website. This formatter can be applied to any file field to render 3D models with a rich, interactive viewer that supports rotation, zooming, and even augmented reality (AR) on compatible devices.

Features

  • Multiple 3D Format Support: Display OBJ, GLTF, and GLB file formats
  • Interactive Controls: Enable camera controls for zooming, panning, and rotating models
  • Auto-rotation: Optionally enable automatic model rotation
  • Customizable Appearance: Configure viewer dimensions, background colors, and poster images
  • AR Support: Built-in support for augmented reality on compatible mobile devices (WebXR, Scene Viewer, Quick Look)
  • Loading State: Displays a loading spinner while the model loads
  • Fully Configurable: All viewer options are configurable per field formatter instance

Configuration Options

The formatter provides the following configurable settings:

  • Width & Height: Set custom dimensions (supports px, %, vh units)
  • Auto-rotate: Toggle automatic model rotation
  • Camera Controls: Enable/disable user interaction (zoom, pan, rotate)
  • Background Color: Set background color using hex values
  • Poster Image: Optional poster image displayed before model loads

Use Cases

  • Product visualization for e-commerce sites
  • Architectural and engineering model presentations
  • Museum and gallery 3D artifact displays
  • Educational content with 3D diagrams and models
  • Any content type requiring interactive 3D model display

Requirements

  • Drupal 10 or 11
  • File field on content type or entity
  • 3D model files in OBJ, GLTF, or GLB format

Usage

  1. Install and enable the module
  2. Navigate to the Manage Display settings for any content type with a file field
  3. Select "Model Viewer (Google)" as the formatter for your file field
  4. Configure the viewer settings as desired
  5. Upload 3D model files to the field when creating/editing content

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2025
Latest release
10 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Oct 28, 2025
1.x-dev Dev 10–11 Oct 28, 2025