mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

Zoomable Tabletop map staying on plane

Open campeezjesse opened this issue 8 years ago • 12 comments

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 avatar Apr 16 '18 19:04 campeezjesse

@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

abhishektrip avatar Apr 16 '18 19:04 abhishektrip

I added the new script in: screen shot 2018-04-16 at 2 11 13 pm 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.

campeezjesse avatar Apr 16 '18 21:04 campeezjesse

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

campeezjesse avatar Apr 17 '18 00:04 campeezjesse

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

campeezjesse avatar Apr 17 '18 02:04 campeezjesse

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 avatar Apr 17 '18 15:04 campeezjesse

@campeezjesse We just released v1.4.1 have you tried with the updated version of the SDK?

jordy-isaac avatar Apr 18 '18 12:04 jordy-isaac

I have tried to update a couple of times but keep getting the same 4.0 SDK.

campeezjesse avatar Apr 18 '18 17:04 campeezjesse

@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/

jordy-isaac avatar Apr 19 '18 21:04 jordy-isaac

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 avatar Apr 20 '18 05:04 campeezjesse

@campeezjesse Can you please post screenshots of your build and player settings? What are the error messages that you're getting?

jordy-isaac avatar Apr 25 '18 05:04 jordy-isaac

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 avatar May 01 '18 02:05 campeezjesse

@campeezjesse the issue with terrain with elevation is a bug on our end. We will prioritize to fix the issue in subsequent release

abhishektrip avatar May 01 '18 02:05 abhishektrip