Zoomable Tabletop map staying on plane
Note: If this is a bug or support ticket, please provide the following information:
- Unity version: 2017.3
- Mapbox SDK version: 4.0
- The platform you're building to: iOS
I am trying to use a zoomable map in the tabletop example. Everything works with the exception of the anchor point resets everytime I touch the screen to pan or zoom. In the Mapbox #D map app this does not happen. Once the map is placed it stays and can be zoomed panned etc. The only change I have made to the tabletop example is to add the Quadtree Camera Movement to the map.
@campeezjesse This is being addressed in v1.4.1 , due to release sometime this week. In the meantime you can check out the release candidate here https://github.com/mapbox/mapbox-unity-sdk/tree/release/v1.4.1
We added a new camera script specifically for AR Table top, https://github.com/mapbox/mapbox-unity-sdk/blob/release/v1.4.1/sdkproject/Assets/MapboxAR/Examples/ARTabletop/Scripts/ARTableTopCameraMovement.cs
I added the new script in:
So far it works great. I will play with it some more with our app now and let you know if I find any issues there. Thank you.
Not sure what I am doing but I can only build and run once. If I make any changes the map responds as before moving every time I touch to zoom. Even once I set all the changes back to the same as the screenshot it will not work. If I open a new scene, add the script again even with the changes, build and run it works. Once
I have been testing different settings and I have narrowed it down to when the map is set to terrain with elevation the map nolonger anchors
I have also not succeeded in getting the pan to work on touch or keyboard. I also tried a camera script to pan that works on other scenes but does not work in the table top scene.
@campeezjesse We just released v1.4.1 have you tried with the updated version of the SDK?
I have tried to update a couple of times but keep getting the same 4.0 SDK.
@campeezjesse where are you trying to get the package? You can find the latest which is v1.4.1 here: https://www.mapbox.com/install/unity/
Finally got 4.1 to open. Still all the same issues as 4.0. Build fails on Xcode. due to Mapbox mobile events. Add in libz etc.
Still can not use zoom or scroll on terrain with elevation.
@campeezjesse Can you please post screenshots of your build and player settings? What are the error messages that you're getting?
i have changed build and player settings multiple times attempting to get this to work. Currently, i do not have it set up anymore. Every style of map works other than terrain with elevation. With that one as soon as I attempt to zoom the map comes off plane and floats mid screen. The XCode errors are figured out with adding in libz. That is an old issue that has a workaround. I moved on to a different portion of my build for a week but will start on the map again over the next few days. If I find a solution to the terrain mao I will post it here.
@campeezjesse the issue with terrain with elevation is a bug on our end. We will prioritize to fix the issue in subsequent release