Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Model Viewer

JanisJanis3k downloads

View and embed interactive 3D models directly in your vault, powered by Google's <model-viewer> component. Supports the glTF and GLB file formats.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates10

This plugin allows you to view and embed interactive 3D models directly in your Obsidian vault, powered by Google’s <model-viewer> component.

Screenshot

<model-viewer> supports and plans to support only glTF/GLB 3D models. It is the Khronos standard known as the JPEG of 3D and the first format to standardize Physically-Based Rendering (PBR), making your models look realistic under any lighting, on any renderer. It is also compact, compressible, and loads rapidly into the GPU.

<model-viewer> FAQ

Features

  • .glb and .gltf file support with most popular glTF extensions (including Draco compression, KTX2 textures and PBR materials)
  • Supports most of the features of the <model-viewer> component
  • Obsidian-style embed syntax with custom attributes

File View

Using this plugin, Obsidian automatically recognizes the .glb and .gltf files in your vault, allowing you to browse them and open them in a tab.

Hover Preview

When combined with Obsidian's page preview plugin (enabled by default), you can view 3D models using the hover preview.

Embed models in Markdown

You can embed 3D models in your notes using Obsidian's native embed syntax. This allows you to view and interact with the models directly within your notes.

The simplest embed looks like this:

![[DamagedHelmet.glb]]

If you want to specify the height of the model, you can do so like this:

![[Duck.glb#height=400]]

Or alternatively, you can specify the aspect ratio:

![[Sponza.gltf#aspect=16:9]]

The embed will automatically fill the entire width of the container. As with other embed types, you can also specify the width after the pipe character:

![[StainedGlassLamp.gltf#aspect=1|320]]

You can even place models side by side on a single line:

![[A.glb|160]] ![[B.glb|160]] ![[C.glb|160]]

Using code blocks

For more complex embeds, use a model-viewer code block. It takes src and the same options as an embed, written as YAML. It can also add annotations to the model:

```model-viewer
src: Thor.glb
aspect: 16:9
auto-rotate: true
annotations:
  - position: "-0.0569m 0.0969m -0.1398m"
    normal: "-0.5829775m 0.2863482m -0.7603565m"
    text: "[[The Fighters]] at sea"
```

Annotations appear as rings on the model. Hovering over one shows the first paragraph of its text, which you can move the pointer onto to follow its links, and clicking it shows the full text. The text can use Markdown, including links. The <model-viewer> editor can help you find positions and normals.

  • src and a text that is only a link can be written as [[name]], with or without quotes. Text with more than a link needs quotes, as YAML would otherwise read the brackets as a list.
  • src, annotations, aspect, height and overlay are options of the plugin. Every other key is passed to <model-viewer> as an attribute, except event handlers such as onclick.
  • Each annotation can have an id. Without a normal, it faces up (0m 1m 0m).

Using <model-viewer> attributes

You can also use any of the attributes supported by the <model-viewer> component. To do this, you can use the following syntax:

![[Fox.glb#autoplay&camera-controls=false&camera-orbit=30deg+80deg+80%]]

The documentation for all available attributes can be found here: https://modelviewer.dev/docs/index.html

Defaults for all models, the file view and embeds can be edited in the plugin settings.

To build an embed visually, open a model and run the Customize embed command. It lets you frame the model in a live preview, try out attributes and copy the finished embed.

Network access and bundled binaries

The plugin doesn't collect data or contact any server on its own. It fetches only what your models and embeds reference: the model file, its textures and buffers, and any images you set in attributes such as skybox-image or poster. Files in your vault are loaded locally. If a model or attribute points to a URL on the web, that URL is fetched.

main.js includes these decoders. At load, the plugin writes them into its own folder (.obsidian/plugins/model-viewer/lib/) and <model-viewer> loads them from there, rather than from Google's servers:

File What it decodes Source
lib/draco/draco_decoder.wasm, draco_wasm_wrapper.js Draco-compressed meshes Draco 1.5.9
lib/basis/basis_transcoder.wasm, basis_transcoder.js KTX2/Basis Universal textures Basis Universal, as shipped with three.js r183

meshopt-compressed meshes are decoded by the meshoptimizer decoder that three.js includes in main.js. <model-viewer> still loads a script before it uses that decoder, so lib/meshopt_decoder.js is a placeholder without code.

Automated scans of main.js may also report the following. They come from <model-viewer> and three.js:

  • www.gstatic.com and cdn.jsdelivr.net: <model-viewer>'s default decoder and Lottie loader locations. The plugin replaces the decoder locations with the local files above. The Lottie loader is only used by <model-viewer>'s JavaScript API, not by embeds.
  • Script elements: <model-viewer> adds a script element to load lib/meshopt_decoder.js, and a JSON-LD element for structured data if the generate-schema attribute is set.
  • Clipboard: the Copy embed with current view command writes the embed to the clipboard.
HealthExcellent
ReviewSatisfactory
About
View and embed interactive glTF/GLB 3D models directly in your vault using Google's model-viewer. Browse and preview .glb/.gltf files, place interactive models in notes with native embed syntax, and support common glTF extensions like Draco and KTX2 for compressed assets and PBR materials.
VisualizationFilesFormats
Details
Current version
1.2.0
Last updated
Last week
Created
2 years ago
Updates
10 releases
Downloads
3k
Compatible with
Obsidian 1.7.6+
Platforms
Desktop, Mobile
License
0BSD
Report bugRequest featureReport plugin
Author
JanisJanisjanispritzkau
GitHubjanispritzkau
  1. Community
  2. Plugins
  3. Visualization
  4. Model Viewer

Related plugins

tldraw

Integration with tldraw, allowing users to draw and edit content on a virtual whiteboard.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Importer

Convert your data to Markdown files you can use in Obsidian. Works with Apple Notes, OneNote, Evernote, Notion, Google Keep, and many other formats.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.

Claudian

Embeds Claude Code/Codex and other local Agents as AI collaborators in your vault.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Advanced URI

Control everything with URI.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.