We’re using Cesium with Google’s Photorealistic Tiles to create a XR Map for Vision Pro. The most persistent issue we’re facing are very visible seams between the tiles. Any ideas where this problem originates from and how to address it?
Visible Seams:
1 Like
Really cool to see Cesium for Unity running on the Vision Pro!
I’m not sure what might cause those artifacts. My first guess was a depth-buffer precision problem of some sort, but on further consideration I’m not so sure. I think the first step is to share the changes you made to get Cesium for Unity running on the device, preferably as a pull request into the cesium-unity repo. There may be something in those changes that jumps out at us at the cause of those seams.
hei, developer here.
I just figuered it out. somehow I needed to manually specify the sampler state wrap mode and set it to “clamp” in the shader.
now it looks good.
The things we had to modify in the cesium code are the following:
- we manually specify a camera, that is used to calculate the LOD and culling range of the tiles. AVP doesnt give access to the camera position (head) of the player.
- Oddly we hadd to flip the normals of the generated tile meshes. I dont know why this was necessary. maybe AVP uses a right handed coordinate system or something like that and it did not automatically migrate the generated meshes.
Also we do the following
- we also had to duplicate the “_baseColorTexture” because it was not read write enabled and the SDK need to mirror it into the Poly Spatial world.
- also there seems to be a memory leak,thats why we reduced the Level of Detail, so it only crashed after aboutan hour of usage. But I think that leakmight very well also be an Apple issue
- we wrote som custom controller scripts that modify Longitude Lattitude and height, so the correct section is inside the “Volume Camera” of the Vision Pro SDK
- we analyse the meshes of the Anchors that are added to estimate the “ground heigh”
1 Like
Hello! My name is Guillermo, Im trying to do the same thing that you guys did in the AVP but in the quest 3. My approach was to check the scale each x seconds, if its bigger it lerps his position in to another object. Then I use a collider in my camera to change the object position of the earth so it wont go trough my head. It kind of works but its not that smooth. My biggest impediment its how do you keep the cesium surface fixed in a surface even if you can scale up the object? Any tips from you would be awesome guys. Thanks a lot for your time!
Hey,
That looks great, can you share your step to get the plugin to work on the VisionPro please?