#Directus 3D Model Viewer Extension

12 messages · Page 1 of 1 (latest)

novel bison
#

Directus 3D Model Viewer

This extension embeds <model-viewer> into Directus as interface, display, panel andf endpoint (for use with live previews). These extensions will all render a 3d model in various places of the Directus UI.
All of the extensions expect the 3d model files to be uploaded to the Directus File storage.

Note: I've only tested this with *.glb 3d files! It may work with other formats but no guarantees.

https://github.com/br41nslug/directus-extension-3d-viewer

GitHub

Contribute to br41nslug/directus-extension-3d-viewer development by creating an account on GitHub.

#

Model Viewer Endpoint

With this endpoint you'll get a full page 3d model viewer which can be embedded as an iframe almost anywhere. The model viewer settings are configured based on url query parameters.

GET /3d-viewer/viewer/<file-uuid>?options

Options:

  • camera_controls boolean
  • auto_rotate boolean
  • shadow_intensity number
  • scale string

Example:

GET /3d-viewer/viewer/bedfcb8b-1463-43e9-831e-45fd60f985f8
    ?camera_controls
    &auto_rotate
    &shadow_intensity=2
    &scale=2 2 2
#

Model Viewer Interface

This interface enables you to render 3d models on a Directus detail page. When setting values directly in the interface on an item detail page these will be leading and overwrite the set interface options.

Model Viewer Display

This display enables you to render 3d models on a Directus overview page. This takes a fair amount of resources so would not recommend this for pages with more than a few 3d model refrences.

Model Viewer Panel

This panel enables you to render 3d models on a Directus insights panel.

clear sedge
#

First off. This is dope. Second I’ll have to talk to you sometime about this volumetric data I have been working with

silk crystal
tacit night
clear sedge
#

@novel bison if you look here this is what I've been doing as a CMO (chief matrix) for one company

#

I was using hypernova (for server side rendering), but it looks like as of Oct 9 this year, they ceased dev on it 😦

#

umm... didnt mean to upload 5 min of nothing lol

#

might use your extension as a basis to move them to Directus now haha

novel bison