Hi,
I just did a build of Platform::EmscriptenApplication and it works just fine with the default "myApplication" project and the triangle example, displaying them correctly in the browser. However, I run into an issue when I attempt to build the WebXR example.
The project compiles just fine without any errors, and when I run it on a local server, it displays the expected page in the browser, even showing the correct scene in the small window. But when I try to enter the scene in VR, I just get an infinite loading screen, and the console outputs this error:
Uncaught (in promise) ReferenceError: dynCall is not defined
at onSessionStart (magnum-webxr.js:6534)
at onSessionStarted (magnum-webxr.js:6597)
onSessionStart @ magnum-webxr.js:6534
onSessionStarted @ magnum-webxr.js:6597
Promise.then (async)
Module.webxr_request_session_func @ magnum-webxr.js:6620
_webxr_request_session @ magnum-webxr.js:6638
$func216 @ magnum-webxr.wasm:0x6812
$func308 @ magnum-webxr.wasm:0x9c50
mouseEventHandlerFunc @ magnum-webxr.js:4677
jsEventHandler @ magnum-webxr.js:4499
I also get a similar error when I exit the session. I'm attempting to view this using port forwarding on a Quest 2, and the CMake commands I'm using are:
mkdir build-emscripten && cd build-emscripten
cmake ..
-DCMAKE_TOOLCHAIN_FILE="../toolchains/generic/Emscripten-wasm.cmake"
-DCMAKE_PREFIX_PATH="/home/tseppala/.emsdk/upstream/emscripten/system"
-DCMAKE_INSTALL_PREFIX=/mnt/h/CodeTests/MagServer
cmake --build .
cmake --build . --target install
Did I forget to include something in my build? Is this a problem with my Emscripten installation? Or am I just typing the wrong commands?
Any help would be greatly appreciated.
Hi,
I just did a build of Platform::EmscriptenApplication and it works just fine with the default "myApplication" project and the triangle example, displaying them correctly in the browser. However, I run into an issue when I attempt to build the WebXR example.
The project compiles just fine without any errors, and when I run it on a local server, it displays the expected page in the browser, even showing the correct scene in the small window. But when I try to enter the scene in VR, I just get an infinite loading screen, and the console outputs this error:
Uncaught (in promise) ReferenceError: dynCall is not defined
at onSessionStart (magnum-webxr.js:6534)
at onSessionStarted (magnum-webxr.js:6597)
onSessionStart @ magnum-webxr.js:6534
onSessionStarted @ magnum-webxr.js:6597
Promise.then (async)
Module.webxr_request_session_func @ magnum-webxr.js:6620
_webxr_request_session @ magnum-webxr.js:6638
$func216 @ magnum-webxr.wasm:0x6812
$func308 @ magnum-webxr.wasm:0x9c50
mouseEventHandlerFunc @ magnum-webxr.js:4677
jsEventHandler @ magnum-webxr.js:4499
I also get a similar error when I exit the session. I'm attempting to view this using port forwarding on a Quest 2, and the CMake commands I'm using are:
mkdir build-emscripten && cd build-emscripten
cmake ..
-DCMAKE_TOOLCHAIN_FILE="../toolchains/generic/Emscripten-wasm.cmake"
-DCMAKE_PREFIX_PATH="/home/tseppala/.emsdk/upstream/emscripten/system"
-DCMAKE_INSTALL_PREFIX=/mnt/h/CodeTests/MagServer
cmake --build .
cmake --build . --target install
Did I forget to include something in my build? Is this a problem with my Emscripten installation? Or am I just typing the wrong commands?
Any help would be greatly appreciated.