From e2f801dc47114d55627f1c5043b6b116d113d60c Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Mon, 8 Jan 2024 13:56:49 +0000 Subject: [PATCH] test xr fragments --- app/manual.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/manual.js b/app/manual.js index e80fdb8..46f7ef9 100644 --- a/app/manual.js +++ b/app/manual.js @@ -4,14 +4,14 @@ AFRAME.registerComponent('manual', { }, init: function () { - + //AFRAME.XRF.navigator.to("https://coderofsalvation.github.io/xrsh-media/assets/background.glb") }, requires:{ - html: "https://unpkg.com/aframe-htmlmesh@2.1.0/build/aframe-html.js", // html to AFRAME - winboxjs: "https://unpkg.com/winbox@0.2.82/dist/winbox.bundle.min.js", // deadsimple windows: https://nextapps-de.github.io/winbox - winboxcss: "https://unpkg.com/winbox@0.2.82/dist/css/winbox.min.css", // deadsimple windows: https://nextapps-de.github.io/winbox - stylis: "https://unpkg.com/stylis@4.3.1/dist/umd/stylis.js", // modern CSS (https://stylis.js.org) + html: "https://unpkg.com/aframe-htmlmesh@2.1.0/build/aframe-html.js", // html to AFRAME + winboxjs: "https://unpkg.com/winbox@0.2.82/dist/winbox.bundle.min.js", // deadsimple windows: https://nextapps-de.github.io/winbox + winboxcss: "https://unpkg.com/winbox@0.2.82/dist/css/winbox.min.css", // deadsimple windows: https://nextapps-de.github.io/winbox + xrfragments: "https://xrfragment.org/dist/xrfragment.aframe.js", }, dom: { @@ -71,6 +71,8 @@ AFRAME.registerComponent('manual', { }); }, 500 ) + this.el.setAttribute("xrf","https://coderofsalvation.github.io/xrsh-media/assets/background.glb") + // navigate with: AFRAME.XRF.navigator.to("https://xrfragment.org/index.glb") }, DOMready: function( ){