Viewing the Globe through Augmented Reality

Hello everyone,

I would like to know if it is possible to visualize a globe using Unity and Cesium, and then project it onto a Meta 3 augmented reality headset.

Thanks.

Hi @tx_rx, welcome to the community!

Yes, that should be possible. The Cesium for Unity Samples project has two demo levels targeting the Quest 2. These should work well on the Quest 3 as well.

Thank you very much @Kevin_Ring for your response. I have an additional question: do we always need an internet connection to use Cesium for Unity? Can’t it be used offline?

Cesium for Unity can be used offline as long as all of the datasets it’s streaming are also available offline. For example, if all of your Cesium3DTileset and raster overlay components are using file:/// or localhost URLs.

Cesium has a number of datasets that can be licensed for offline use. But unfortunately, Google Photorealistic 3D Tiles and Bing Maps can only be used online, due to their license terms.

Thank you, @Kevin_Ring . I have another issue: I want to zoom out to observe the entire globe in front of me, but when I move the camera, everything disappears, and I get the following message: *“Due to floating-point precision limitations, it is recommended to keep the world coordinates of the game object within a smaller range”.

Is there a way to observe the entire globe first and then zoom in on a specific area?

Hey @tx_rx,

Can you share a screenshot of your camera’s settings? It sounds like the camera’s frustum isn’t large enough to see the globe from a distance. I would try to increase the value of the Far clip plane if your AR setup allows it. :smile:

Hi @janine ,

yes of course, here are the settings of my camera, and the two images that I get when I move away. ,When I activate “Disable Eye Anchor Cameras” in the Camera RIG, I can see the entire planet with the dynamic camera. However, when it is deactivated, everything appears black, and I can only see the Earth when I am very close to it.

I have sent you the photos, but the replies are pending approval.

Hi @janine ,

yes of course, here are the settings of my camera, and the two images that I get when I move away.


image

@janine ,When I activate “Disable Eye Anchor Cameras” in the Camera RIG, I can see the entire planet with the dynamic camera. However, when it is deactivated, everything appears black, and I can only see the Earth when I am very close to it.