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

Make zoom functions more intuitive, allow animating zoom? #24

Open
rgrams opened this issue Feb 17, 2018 · 0 comments
Open

Make zoom functions more intuitive, allow animating zoom? #24

rgrams opened this issue Feb 17, 2018 · 0 comments

Comments

@rgrams
Copy link
Owner

rgrams commented Feb 17, 2018

Refer to this forum post (Space Shooter dev diary)

  • Instead of "set_ortho_scale" and "get_ortho_scale", it should probably just be "set_zoom" and "get_zoom".
    • Would then need to flip the scale/zoom value. 1/x.
  • Stop trying to have a zoom function that works for ortho and perspective cameras? Let people using perspective cameras change the Z position themselves?
    • Or make it work the same way for perspective cameras - figure out the necessary Z-movement to multiply the rendered area by the specified zoom value (at the camera's view distance).
      • (Or change FOV?...)
  • See about allowing users to animate zoom.
    • The camera's zoom must be a property that gets updated with the module every frame.
    • Then users could animate this property directly - but it's not the most convenient. (have to get the right URL)
    • Have helper functions/messages? (animate and cancel_animations)
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

1 participant