/xrfragment-helloworld

XR Fragment example experience

Primary LanguageHTMLMozilla Public License 2.0MPL-2.0

Hello world xrfragments

Auto-Hosted XR Fragment-compatible XR viewer

Getting started:

  • download index.glb
  • edit in your favorite 3D editor (blender e.g.), and play with the embedded properties of objects (custom property-tab in blender)

  • familiarize yourself with XR Fragments using these youtube video's and the documentation
  • create/update/add gltf/fbx/stl/uszd) models (and link them using href or src, see below)

see embedded properties

Quick testing

To test modifications quickly, click the 'load 3D asset'-button in the sandbox after pressing the XRF-button:

Publishing to the web

  • Press the fork button, and it will automatically host an experience at your own URL
  • in the github 'Actions'-tab figure out the url(https://yourusername.github.io/xrfragment-helloworld e.g.) and visit it
  • profit!

now upload more .glb or .gltf files (new.glb e.g.):

In another scene (index.glb e.g.) link to that asset (new.glb) by selecting an object in blender, and add a custom href property to it:

Or if you want to embed a scene into another, use src instead of href

Profit! now you can click/teleport from one scene to another! (see the docs at xrfragment.org for more features)

Selfhosting (only advanced users)

If you don't like free hosting, then you can selfhost as well:

More info

Credits