Skip to content

How do I import 3d models into my scene? #255

Answered by jbaicoianu
jbaicoianu asked this question in FAQs
Discussion options

You must be logged in to vote

You can import a 3d object into your scene by defining it as an <AssetObject> asset in the <assets> section of your Janus markup. For example:

<janus-viewer>
  <assets>
    <assetobject id="my_house" src="https://example.com/models/myhouse.glb" />
  </assets>
  <room>
    <object id="my_house" />
  </room>
</janus-viewer>

Replies: 1 comment

Comment options

jbaicoianu
Apr 7, 2023
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by jbaicoianu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
FAQs
Labels
None yet
1 participant