microsoft / MapsSDK-Unity

This repository contains samples, documentation, and supporting scripts for Maps SDK, a Microsoft Garage project.
MIT License
648 stars 127 forks source link

Elevation Offseting #192

Closed PetrTech closed 1 year ago

PetrTech commented 1 year ago

Hi, we are currently trying to implement MapsSDK in our game but we ran into a problem. Whenever we would load few new chunks the map elevation will offset/adjust itself. Is it possible to turn this off or alteast make it not be visible? If so, how? Thanks for any kind of help. I've attached a video that showcases what we're trying to disable.

https://user-images.githubusercontent.com/55279432/211211967-a310394d-ce72-452b-8bf5-fd9bef402361.mp4 (It's that subtle movement up and down when I move the terrain)

kircher1 commented 1 year ago

I believe the behavior can be overridden by setting MapRenderer.ElevationBaselineOverride to a value that works for your scene.

PetrTech commented 1 year ago

Yes, it indeed works, thanks!