Open chrislatorres opened 5 years ago
This should be booting to gl with no errors now, but it doesn’t draw the scene yet. I suspect it’s waiting on some Dom event somewhere.
We are now at the point of the GLTF's loading.
Failed to load glTF model SyntaxError: Unexpected token in JSON at position 0
at JSON.parse (<anonymous>)
at GLTFLoader._parse (/assets/js/engine-e09011c21b70db7e9dac.js:39180:20)
at Object.onLoad (/assets/js/engine-e09011c21b70db7e9dac.js:39114:12)
at XMLHttpRequest.<anonymous> (/assets/js/engine-e09011c21b70db7e9dac.js:71020:39)
at handleListener (C:\Users\kbiedrzycki\Documents\GitHub\exokit4\node_modules\window-xhr\lib\eventtarget.js:91:23)
at Array.some (<anonymous>)
at XMLHttpRequest._invoke (C:\Users\kbiedrzycki\Documents\GitHub\exokit4\node_modules\window-xhr\lib\eventtarget.js:89:20)
at XMLHttpRequest._dispatch (C:\Users\kbiedrzycki\Documents\GitHub\exokit4\node_modules\window-xhr\lib\eventtarget.js:109:13)
at XMLHttpRequest.dispatchEvent (C:\Users\kbiedrzycki\Documents\GitHub\exokit4\node_modules\window-xhr\lib\eventtarget.js:152:22)
at IncomingMessage.stream.on (C:\Users\kbiedrzycki\Documents\GitHub\exokit4\node_modules\window-xhr\lib\xmlhttprequest.js:146:10)
However, it seems that Hubs/WDS/AWS serves illegal gzip data in response to a non-gzip request, so we need to more craftfully handle that spec inconsistency.
With the latest changes we have initial XR booting into Hubs as a reality tab.
From @netpro2k :
Fwiw you should be able to get a local hubs client working against our dev server pretty easily. This might help to let you just hack apart the client a bit to pave over any roadbumps to get further down the line.
Just check out https://github.com/mozilla/hubs,
npm ci
andnpm start
then map hubs.local in your hosts file and openhubs.local:8080
?vr_entry_type=vr_now
is needed to auto-enter
With https://github.com/exokitxr/exokit/pull/1322, we have a boot into xr with the tracked model.
The command for the above was:
node . -x none "https://hubs.local:8080/hub.html?hub_id=ziCzppo&vr_entry_type=2d_now&disable_telemetry=true"
using node . -x none "https://hubs.mozilla.com/DBVvfHs/lets-run-and-cycle-in-vr/?vr_entry_type=2d_now&disable_telemetry=true" > log
with exokit 0.0.525 on node v12.9.0 on Linux I get
fabien@fabien-CORSAIR-ONE-i160:~/Prototypes/exokit$ grep Error log | sort | uniq
core:a-node:error Failure loading node: TypeError: Cannot read property 'physicsSystem' of undefined
core:a-node:error Failure loading node: TypeError: Cannot set property 'raycast' of undefined
ErrorEvent {
Failed to load glTF model TypeError: Cannot read property 'store' of undefined
TypeError: MediaRecorder.isTypeSupported is not a function
'TypeError: MediaRecorder.isTypeSupported is not a function\n' +
unhandled rejection: TypeError: Cannot read property 'batchManagerSystem' of undefined
unhandled rejection: TypeError: Cannot read property 'store' of undefined
unhandled rejection: TypeError: Cannot read property 'transforming' of undefined
Full logs https://gist.github.com/Utopiah/2761dd6bd26cbb45163b317490fa58ff
Issue related to #595 , but this was tested on windows desktop.
Windows 10 Enterprise 2016 LTSB Node v11.0.0 Exokit v0.0.517
Command ran in administrative powershell:
node . https://hubs.mozilla.com/4COe4uH/definitive-modern-get-together/ -x webvr