Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct conversion of altitude? #155

Open
SignpostMarv opened this issue Jun 1, 2015 · 2 comments
Open

correct conversion of altitude? #155

SignpostMarv opened this issue Jun 1, 2015 · 2 comments

Comments

@SignpostMarv
Copy link

Presently, I'm doing altitude * city.geo.pixelsPerMeter, but this leaves things floating quite a ways higher than they should; https://www.youtube.com/watch?v=7dqPg8RJBuA

Any hints on passing the correct altitude to THREE.Vector3 ?

@antont
Copy link

antont commented Jun 1, 2015

Perhaps what happens is that the altitude you give for buildings may be correct, but the ground is always at zero.

AFAIK Vizi doesn't currently handle altitude for the ground at all, there's just a plane at 0.

Also, I think you are using master but the 0.2.0 branch is nowadays more advanced. The situation with the ground is the same there too though I think.

@SignpostMarv
Copy link
Author

Is the plane at 0 considered "sea level"? For blips where I've got altitude data, I've noticed the exif tags saying the reference point is sea level (anything else I hard-code at 100m).

Some of the blips over the water are from the bridge & sunborn yacht presently docked there; if the buildings are to scale then I'm not sure whuts going on with the altitude of the royal victoria dock.

p.s. the map is of the ExCel center in London.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants