mapbox / mapbox-unity-sdk

Mapbox Unity SDK - https://www.mapbox.com/unity/
Other
716 stars 213 forks source link

WorldScaleAR - SpawnOnMap : Aligment , AR camera or objects spawn Rotated #1464

Open tpaslou opened 4 years ago

tpaslou commented 4 years ago

Hello So i am opening this thread since similar ones were closed and i cant see any update in WorldScareAr issues . Regarding your earlier replies i understand that WorldscaleAR is not your main concern right now , but this project is very important for me and any help would be much appreciated . Even if there were some other ways to achieve my project goal . So based on these

https://github.com/mapbox/mapbox-unity-sdk/blob/50c474fd556f78b50923cc28c6768a380d5875aa/sdkproject/Assets/Mapbox/Examples/6_ZoomableMap/Scripts/SpawnOnMap.cs

and after a lot of work i managed to spawn my points in the desired location and connect them with cylinders .

image

The alignment as we can see in the editor mode seems to be good enough . Although on runtime the pipe system appears totally different .

Screenshot_20190917-151732_Gallery

I would say about 90 degrees , maybe more . Also there might be some translation in my model too .

Thank you

AAKLebanon commented 4 years ago

hey, can u share with me how you successfully spawned your points in the correct places ? for me I added a single place, but my prefab (AR object to spawn) is always spawned very very far away