Building for Oculus Quest 2

I’m trying to prove that Cesium for Unreal works on a Quest 2, as an apk, not being streamed from the PC so to speak. Unreal did an expose on Cesium for Unreal a month ago, and there was a question specifically about Cesium for Unreal running the Oculus Quest. The speaker said it was possible. The video with the timestamp for the question is here.

I’m able to build VR applications from Unreal to the Quest 2, so I believe that my general android build settings in Unreal are correct to get something onto the quest. I am also able to build an Unreal project with Cesium and VR for desktop that works and streams the world data correctly, so I believe that it’s not a problem with Cesium in a build in a general sense. But when I try and run an apk with Cesium on the Quest 2, I just get a black screen.

I was wondering if there were any special settings Cesium requires order to get this to work on the Quest 2 as an .apk.

Thanks!

Hi @nbaja,

Great question. We are currently working on building Cesium for Unreal for the Android platform. Our progress is being tracked here: XR/Android Build issue with Cesium Unreal · Issue #190 · CesiumGS/cesium-unreal · GitHub

The main issue is that the Cesium for Unreal plugin is built on top of an external, engine-agnostic C++ library called Cesium Native, and there are seems to be some errors when compiling Cesium Native for the Android platform.

I would use the documentation in that issue as a starting point, and please let us know what you find by commenting on the issue. If you find a way to successfully compile, we would very much appreciate a pull request! I may have some time in the near future to look into this as well.

Ok, I was actually able to get it to compile. I recognize one of the errors that was posted on github, so I replied there. I hope things get moving again and we can figure this out.