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

[Feature Request] Add a perspective view #17

Closed
Conobi opened this issue Jan 24, 2020 · 2 comments
Closed

[Feature Request] Add a perspective view #17

Conobi opened this issue Jan 24, 2020 · 2 comments

Comments

@Conobi
Copy link

Conobi commented Jan 24, 2020

It would be really cool if we cool see the lines in a 3d way, a bit like on Google Earth, would be very interesting for renders. Thanks!

@anvaka
Copy link
Owner

anvaka commented Mar 1, 2020

This is possible now via console API. If you type this:

scene.queryLayer().lines.rotateX(-Math.PI/4)

It will add the perspective to the city

image

A bit cumbersome admittedly. I'm still trying to crystalize the intuitive UI for all 3d manipulations along with better navigation in 3D

@anvaka
Copy link
Owner

anvaka commented Apr 4, 2020

This is now enabled for all. Announcement: https://twitter.com/anvaka/status/1246534725088362496

It supports all input devices that I could test:

Mouse

Use Alt + Mouse Drag to change perspective

Touch

  • Two fingers rotation
  • Two fingers scale
  • Two fingers when moved up at the same time - change perspective

Keyboard

  • standard arrow keys should work
  • W - move up
  • A - move left
  • D - move right
  • S - move down
  • Q - rotate left
  • E - rotate right
  • F - incline down
  • R - incline up
  • - - zoom out
  • = - zoom in

Please let me know if there are any issues found.

@anvaka anvaka closed this as completed Apr 4, 2020
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