cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot access scene model entities at runtime on UE5.2 / Quest 3

BreakMaker
Explorer
Hi there,

I cannot access the scene model which I previously captured using Scene Capture. For my test, I have added the table of my PC workstation.

Following the documentation I have added an OculusXRScene actor and configured it.

This has definitely worked, as I can see the box shape representing the table when I hit "play in VR". Also, I can see the SceneMesh which I recorded with the depth scanner on the Quest3.

When I call GetActorsBySemanticLabel and specify "TABLE" as per the semantic label list on the documentation page, I get zero actors.

I am wondering if this is because I use link (for fast testing) but it would surprise me since I can access the scene mesh. 

Thanks for any hint!!

1 ACCEPTED SOLUTION

Accepted Solutions

I am not sure where in the documentation they say that, but if so, it is outdated. You can get the scene mesh using Link and even see it in the PIE output. What you cannot see in the PIE output is the passthrough layer.

View solution in original post

13 REPLIES 13

Jeebius
Honored Guest

Hi,

How do you see the scene mesh? I've been trying to preview in when play in VR but I do not see anything.

apricity.shen
Honored Guest

Hi, I'm using scene api in quest3. But scene api doesnt work in built apk, while does work in quest link.
Do you know the reason? Appreciate it!

Aeromixx
Expert Protege

I have not messed with Scene API yet, but common Android/Quest build issue is permissions. Check the Sample project if there is special permissions in the Android settings to copy and maybe even a node to request permissions. Just a shot in the dark guess.

kampfz
Honored Guest

Not sure why you are even able to see something when you use preview in VR. It is stated directly in the documentation that the Scene API only works in a packaged APK. I've had no issues using it in a packaged APK

Hi,

If you scan the room previously, the scene mesh will be stored locally on your device. You can then get the scene mesh from the OculusXRActor.

Hi, are you sure you set up the Project Settings correctly? There is a variable you must set in order for the scene mesh to be supported. Also do not forget to ask for the android permission when you start.

I am not sure where in the documentation they say that, but if so, it is outdated. You can get the scene mesh using Link and even see it in the PIE output. What you cannot see in the PIE output is the passthrough layer.

BreakMaker
Explorer

By the way I have solved the issue: This is not covered in the documentation so I if you run into the same problem, try this: You have to initialize the various components inside the OculusXRSceneActor placed in the level. Otherwise they never get spawned.

 

By the way, I have created this spatial UI using what I have learned, check it out 🙂
https://youtu.be/3nkdo9VH89w 

Looks incredible!