Comments (2)
For example, the map is currently being scaled according to latitude (which is a hack).
Adding a bit of background information as this is not a hack per se, but common practice in GIS because of the distortions of the WebMercator projection and its inability to be useful for any type of measurement (distance, direction, area).
Unfortunately that implementation doesn't seem to play well with our SDK, Unity or AR.
Not tested:
A quick fix/workaround/hack for the SDK might be to always scale as if the current tile (data) were positioned at the equator, passing 0
for latitude.
GIS StackExchange: What's the accuracy of Web Mercator EPSG:3857?
As a first step, you could look at the distortions of the Mercator projection, which is a conformal projection. Distance with this projection is only correct along the equator, then the error increase with the latitude. Indeed, as you can see on a global view, the parallels keep the same legnth on the maps. For example, the horizontal scale factor, which is 1 at the equator, is equal to 1.15 at a latitude of 30° (15% error), 2 at a latitude of 60° (200% error) and 11.5 at a latitude of 85° (11,500% error) (scale factor 1/cos(latitude) )
Wikipedia: Mercator projection
Web Mercator distortion shown via Tissot's indicatrices:
The Mercator projection portrays Greenland as larger than Australia; in actuality, Australia is more than three and a half times as large as Greenland.
Geospatiality: The Web Mercator Visual and Data Analysis Fallacy
Cylindrical Projection: The Cause for Distortion in a Web Mercator:
ESRI: Why are my map, distance and area measurements wrong when using WGS 1984 Web Mercator?
Aitoff projection ("realistic" shape and area, poles are points):
Web Mercator (extreme distortion, poles cannot even be displayed, Antarctica appears larger than the land masses of the other six continents combined):
from mapbox-ar-unity.
Current map scaling is done with MapAtWorldScale
component. Note that RelativeScale
needs to be checked.
from mapbox-ar-unity.
Related Issues (20)
- World scale ar experience demo HOT 32
- Weird changes in camera euler angles at runtime (observed on Android) HOT 5
- Use Alignment for ARInterface, rather than transforming Map Root HOT 1
- Location permissions on Android [Fix] HOT 1
- Investigate using a lookup table + constants to assist with drift. HOT 3
- Use compass for initial alignment HOT 3
- Throw out first location provider location update HOT 1
- Create a basic UX to encourage proper calibration HOT 4
- ARCore preview support? HOT 6
- Fix know Android issues
- Aligning AR to 3D Terrain HOT 4
- AutomaticSynchronizationContext example not working HOT 7
- How to place an object using a predefined lat and long? HOT 30
- Object Syncing HOT 1
- Multi-user example HOT 4
- Inaccurate positions when you are far accurate when you are near HOT 1
- Zoomable Map in AR HOT 4
- POI Vector Map does not show POI HOT 1
- Building prefabs on maps from Mapbox for Unity3d HOT 2
- Add 3D object to specific LatLong in Mapbox Unity3D HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbox-ar-unity.