3D Embed Plugin Showcase

Hi Everyone,

Two months ago I made a forum post showing how to include locally saved 3D models in your obsidian notes in combination with the dataview plugin, since all implementations thus far required uploading your model to a website and using an iframe to see them.

So I turned it into a plugin and it has been approved and added to the actual obsidian community plugins list!

It currently supports .STL and .GLB files. And some basic modification settings such as position rotation and scene color. Here is a short video showing you how it looks.
Untitled video (4)

The plugin contains orbitcontrols, so you can freely move around in your scenes and look at your models.

You will need to enable all file type extensions to be able to see 3d model file types in your vault. But if you follow the guide provided with the plugin it should all speak for itself. You can also read the README on github to get the basic information!

Please feel free to report any bugs, or request more features, and I hope this helps some people!

Note and precautions:

  1. A lot of models in one note will probably not work. Obsidian is limited in its amount of ram so a lot of models or very heavy models will be laggy.
  2. Currently the settings include a standard scale, since people tend to model in either meters, centimeters or mm, so if your model does not show up. Try playing around with the scale of the model!
4 Likes

Showcase of the orbit controls I forgot to include in the original post:
Untitled video (10)

Fucking awesome, thanks!

2 Likes

It works fine, but can I use the file from another source? for example from “D:/object.obj”

Apologies for the late reply, i dont check the forum too often. If you want to have quicker replies might i suggest doing so via github issues.

But beside that: Do you mean accessing from outside of the obsidian vault?

If that is what you mean. Currently no there is no way for that, since i am looking through the vault for you 3D file.

I can look into it, but idk how comfortable obsidian is with me accessing files outside of the vault. This means i have to go through files outside of it, which is a bit of a violation of privacy i can assume. I will look into what the rules are about accessing files outside of the vault.