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

Smooth transition between 2d and 3d #2

Open
ahocevar opened this issue Jul 11, 2014 · 3 comments
Open

Smooth transition between 2d and 3d #2

ahocevar opened this issue Jul 11, 2014 · 3 comments

Comments

@ahocevar
Copy link
Member

Idea: A la google map, share the bottom line and tilt. Forward and Backward.

Some thoughts about the camera movement: https://gist.github.com/tonio/750dbc843ef95601c4be (might be outdated with the experience of the following POCs)

Ongoing work:

Remarks:

  • all directions must be handled (not just NS and EW);
  • all tilted situations must be handled (starting from an arbitrary tilted angle);
  • always keep center of bottom line fixed in general, whole line for NS and EW.
@klokan
Copy link
Member

klokan commented Aug 8, 2014

It seems the diagram shows rotation around fixed center point with (an optional?) variable distance of camera:
rotation
This may be quite easy to do right now with camera from #8 - just to implement animation with setTilt() and setDistance() calls. All directions (NS, etc) should be handled automatically by OLCesium.

If the implementation should be more closer to what is visible if clicking on Tilt control or switch to maps in Google Maps WebGL globe:
https://www.google.com/maps/@24.5168465,0.2099982,69709a,20y,71.85t/data=!3m1!1e3
Then the diagram is wrong, because the center poing should be moving significantly and altitude of camera should be fixed.

Google Earth plugin integrated with Google Maps V2 had a different animation I think.

@gberaudo
Copy link
Member

gberaudo commented Aug 8, 2014

Indeed, Google Map V2 behaviour seems to do a simple rotation around the bottom line center. As a consequence, the intersection of the camera direction with the terrain is moving in the direction of the horizon. It is this transformation which we want to implement.

@klokan
Copy link
Member

klokan commented Aug 8, 2014

Do you have a demo with Google Maps V2 online to have it here?

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

No branches or pull requests

3 participants