Comments (6)
Hello @kmay30.
The way you should be using the conversion class is to first set a fixed point ("origin") to your 3D scene with setOrigin
method, for example:
IndoorAtlas.WGSConversion temp = new IndoorAtlas.WGSConversion ();
temp.setOrigin (63.357219, 27.403592);
Then you can compute relative (east, north) transitions with WGStoEN
method, for example:
Vector2 eastNorth = temp.WGStoEN (63.357860, 27.402245);
Debug.Log ("East-North transition: " + eastNorth.x + ", " + eastNorth.y);
This gives me a transition of (-67.42091, 71.45055) from origin, that is, a transition of ~67 meters to West and ~71 meters to North from origin.
This makes sense to me: The origin (in this example) is at the beginning line of a 100 meters track and the end is at the finish line. The length of the transition vector is 98.2 meters.
I hope this helps.
from unity-plugin.
This was helpful and things are now functioning as expected, thanks!
from unity-plugin.
I'm glad to hear that the comment above helped you to solve your problems. I merged the changes to master branch and, based on this discussion, added a numerical example to README.md
file.
from unity-plugin.
There is a question related to this issue, how to know the origin coordinates once we do a setOrigin() on the indoor atlas with respect to our coordinates. The reason behind asking this question is, I need to place my camera facing north and also want it to be at the origin.
from unity-plugin.
from unity-plugin.
That is correct.
IndoorAtlas Unity plugin is unaware of your 3D environment / map so we decided to implement a coordinate transformation utility, which maps (latitude, longitude) coordinates to metric (east, north) coordinates. These coordinates can be used further to find the location in (Unity's) 3D space.
The origin can be (theoretically) any point in the world but algorithm's approximation error increases when you compute metric transformations far away from the origin. In many applications it makes sense to set the origin as a "landmark point" whose GPS coordinates can be determined accurately (e.g. from map). This makes it easier to place 3D environments to physically correct places.
from unity-plugin.
Related Issues (19)
- Hardware not supported, despite building app to Nexus 6P HOT 4
- [Unity] IABehavious.cs Error on Play NullReferenceException HOT 1
- [Unity]WGSConversion difference HOT 1
- Build Failed: Multiple dex files HOT 5
- [Android][IOS]WWW requests blocked HOT 1
- Raw pos is off in-app comparing to MapCreator2 HOT 1
- Example doesn't work! Can not callback any data! HOT 3
- unity example error HOT 1
- onLocationChanged does not return value HOT 1
- Can't find "artifacts dropdown" to extract indooratlas.unitypackage HOT 1
- Cocoapods / Podfile not working on iOS Unity builds HOT 1
- Indoor Navigation System is not displayed. HOT 1
- Geofencing Not working HOT 2
- Add Path With Augmented reality, Need Z- coordinate HOT 2
- Your hardware does not support this application. HOT 1
- Wayfinding HOT 2
- [Android] IndoorAtlas blocks other WWW and HttpAPIService when activated.
- How to use this plugin with Mapbox in unity?
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 unity-plugin.