Passthrough with Quest?

Original Discord Post by eggman28 | 2024-01-23 10:42:19

Has anyone added passthrough to their Unity scene with the Convai package from Asset Store ?
Seems like it should be possible with Met’s OpenXR support now - Explore cross-platform mixed reality development on Meta Quest 3
I followed these steps and I just see the scene with a black background instead of passthrough when I built to test on device - Project setup | Unity OpenXR Meta | 0.2.1
(I wasn’t able to change the “Tracked Pose Driver” compoent though as I don’t see the “centerEyePosition [XR HMD]” specified.

Embedded Content:
Cross-platform mixed reality development on Meta Quest 3 | Unity Blog
Link: Explore cross-platform mixed reality development on Meta Quest 3

Reply by k3kalinix | 2024-01-23 10:45:38

This is a question about Unity / Oculus MR rather than Convai.

Unfortunately, I personally haven’t started working on MR yet.

I think you can get an answer if you ask this question on the Unity forum channel or Discord channel.
Or if there is a tutorial about it on youtube, you can follow it.

Reply by eggman28 | 2024-01-23 10:53:24

OK, I’ve gotten regular Oculus MR working fine by itself without Convai.
I might try adding Convai package to a working MR scene then.

Reply by eggman28 | 2024-01-24 01:25:44

Got it working with that approach. Demo video - https://www.youtube.com/watch?v=_yEyT3AyRnk

Embedded Content:
Convai Avatar Mixed Reality Passthrough Demo on Quest 3
Link: https://www.youtube.com/watch?v=_yEyT3AyRnk

Reply by k3kalinix | 2024-01-24 06:30:04

Hello <@711465199001010298>, congratulations!

Reply by k3kalinix | 2024-01-24 06:30:16

How did you do it?
It will be useful for new users.

Reply by eggman28 | 2024-01-24 19:10:36

I created a new Unity project, added Meta’s SDK first via Package Mgr, configured it as per normal XR project, then added Convai SDK.
Loaded up a character scene, added Camera Rig and Passthrough via Meta’s Building Blocks.
Moved the Camera Rig to the “Convai Player Character”, disabled the camera there, added the “Convai NPC Manager” script that was on the previous camer to that gameobject.
Hid the plane mesh renderer and that was it.
I had to play around with the character’s scale (1.25 is shown in video) and transform (Y 1.08)

Images:

Reply by k3kalinix | 2024-01-24 19:14:53

Awesome!
Thank you <@711465199001010298> !

Reply by eggman28 | 2024-01-24 19:25:28

There would be more required to make it work better with Quest like adding touch controller button for talk trigger (demo recorded with connected BT keyboard and pressing T) , making the UIs visible with World Scale…

Replying to eggman28’s Message

Reply by eggman28 | 2024-01-24 19:25:28
There would be more required to make it work better with Quest like adding touch controller button for talk trigger (demo recorded with connected BT keyboard and pressing T) , making the UIs visible with World Scale…

Reply by k3kalinix | 2024-01-24 19:28:32

Yes you can use Convai Input Manager prefab

Reply by k3kalinix | 2024-01-24 19:28:35

It is pretty easy :slightly_smiling_face:

Reply by k3kalinix | 2024-01-24 19:28:48

Already you have it.

Reply by k3kalinix | 2024-01-24 19:29:31

Embedded Content:
Input Management
Link: Input Management | Documentation
Thumbnail

Reply by k3kalinix | 2024-01-24 19:29:35

Here is the documentation

Replying to eggman28’s Message

Reply by eggman28 | 2024-01-24 19:25:28
There would be more required to make it work better with Quest like adding touch controller button for talk trigger (demo recorded with connected BT keyboard and pressing T) , making the UIs visible with World Scale…

Reply by k3kalinix | 2024-01-24 19:30:00

You can use VR Transcript UI’s

Reply by eggman28 | 2024-01-24 19:30:09

Trying that now. I can add Gamepad button but don’t see anything for XR Controller. Will try that and see if it works.

Images:

Reply by k3kalinix | 2024-01-24 19:30:35

Embedded Content:
Building for VR
Link: Building for VR | Documentation
Thumbnail

Reply by k3kalinix | 2024-01-24 19:30:44

You can use manual installation method

Reply by k3kalinix | 2024-01-24 19:30:53

for VR package so you can get transcript ui.

Replying to eggman28’s Message

Reply by eggman28 | 2024-01-24 19:30:09
Trying that now. I can add Gamepad button but don’t see anything for XR Controller. Will try that and see if it works.

Reply by k3kalinix | 2024-01-24 19:31:16

Press xr controller