Image Target demo with live view is broken

The Image Target sample project does not work when trying live view and throws:

| Error: No valid session manager to handle this session. at https://cdn.8thwall.com/xr-simd-24.1.5.2165.js:18:441305 at Generator.next () at E (https://cdn.8thwall.com/xr-simd-24.1.5.2165.js:1:5189)

All other image target projects on my account also show the same error

Are you trying to test the image target experience using your computer’s camera? By default xrweb uses the back camera (which isn’t present on desktop). You can try configuring the camera the use the front camera:

<a-scene ...   xrconfig="cameraDirection: front; allowedDevices: any" xrweb>

I am getting the same error in my image target project, I have to disable auto loading of targets to get the scene/xrweb to load.

If I then call to load them via
XR8.XrController.configure({ imageTargets: [...] });,

I get a warning:
[XR] Image Targets are not supported in the current session. [xr-simd-24.1.5.2165.js:18](https://cdn.8thwall.com/xr-simd-24.1.5.2165.js)

Worth noting that I’m running locally in dev mode on a laptop.

Are you trying to use the front camera or the back camera on desktop? What are you trying to do?

Thanks, I’m just beginning a new project, at the moment just running locally in dev, a self-hosted Vue project served up securely at https://127.0.0.1:5173.

I’m a little rusty, it’s been a bit since my last image-tracking 8th wall project, I believe I used to be able to do this and immediately get the camera feed, but currently I get the grid world when scene loads up.

My xrconfig looks like:

xrconfig="cameraDirection: front; allowedDevices: any; disableWorldTracking: true;"

But when I run this, I see a warning:

8th Wall XR Version: 24.1.5.2165s xr-simd-24.1.5.2165.js:18:470211
core:schema:warn Unknown property `disableWorldTracking` for component/system `xrconfig`.

On reality ready event, I run:

if (XR8) {
    XR8.XrController.configure({ imageTargets: ['IMAGE_ID1', 'IMAGE_ID2'] });
    console.log('should now be tracking image targets');
  }

but I get this warning when that executes:

[XR] Image Targets are not supported in the current session. xr-simd-24.1.5.2165.js:18:183013

I am running with the following includes (my key replaced with XXXX):

<script crossorigin="anonymous" src="//cdn.8thwall.com/web/aframe/8frame-1.4.1.min.js"></script>
<script crossorigin="anonymous" src="//cdn.8thwall.com/web/xrextras/xrextras.js?s=1"></script>
<script src="//cdn.8thwall.com/web/aframe/aframe-extras-6.1.1.min.js"></script>
<!-- 8thWall Key -->
<script async crossorigin="use-credentials" src="//apps.8thwall.com/xrweb?appKey=XXXX"></script>

disableWorldTracking is a parameter of xrweb:

xrconfig="cameraDirection: front; allowedDevices: any" xrweb="disableWorldTracking: true"
2 Likes

Ah, whoops! Embarrassing mistake.

Thanks so much, that addressed everything. Camera loads up, image targets activate without errors. Appreciate your time and help!

2 Likes

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.