I have a threejs Hologram project that currently only works on phones. I am trying to get it working on a desktop. I havent been able to find any documentation on this besides adding this line of code:
allowedDevices: XR8.XrConfig.device().ANY
which did not work for my project. Is there a way to get desktop view working for a threejs Hologram?
Yes, I added it as a parameter to XR8.run(), but when I open the link on desktop it still shows the QR code for my project, the projects you linked work on my end and comparing the app.js files between my project and the example projects they are nearly the same.
The only non-standard thing I see at a glance are the extra html elements youβve added to head.html - can you try removing those temporarily and see if that helps?
Also, if you share your project with the support workspace, my team can look further:
I tried commenting out the extra elements in head.html, but it still was not working on the desktop. I also shared the project with the support workspace.
Looks like there were a number of issues, not actually related to the allowedDevices config. Something else in your code was erroring out, basically causing initialization to fail, so the landing page would display. If you completely removed the landing page component, youβd just get a blank page.
There were DOM elements being added in head.html β moved to camerafeed.html (head.html should really only be used to pull in external libraries via tags, etc)
pipeline code was referencing these DOM elements, but they were being added until below. Put the document.body.insertAdjacentHTML('beforeend', camerafeedHtml) line above the addCameraPipelineModules block so they are loaded before your code that references them
Also, there was an extra three.min.js library loaded via script tag in head.html - should not be needed since you already have <meta name="8thwall:renderer" content="threejs:123"> above.