Skip to content

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

Description

@rgrams

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions