LookUpGroup27 / LookUp

0 stars 1 forks source link

Implement Zoom In/Out Functionality on OpenGL Screen #178

Open AdrienBousquieEPFL opened 1 day ago

AdrienBousquieEPFL commented 1 day ago

Description

Add the ability to zoom in and out on the OpenGL screen using touch gestures. This will enhance user interaction by allowing users to explore the starmap more dynamically. The zoom effect will be achieved by modifying the camera's field of view (FOV) based on user input.

Objectives

Technical Considerations

  1. Gesture Detection

    • Surely use Android's ScaleGestureDetector to track pinch gestures.
    • Map scale factor to a suitable FOV adjustment range.
  2. FOV Modification

    • Ensure the FOV is clamped to a predefined range (e.g., 30° to 90°) to maintain usability and visual clarity.
  3. Performance

    • Ensure FOV updates are efficient to avoid stuttering or frame drops.
    • Test responsiveness on various device configurations.
  4. Edge Cases

    • Handle interruptions during gestures (e.g., a finger lifted mid-gesture).
    • Reset zoom level if required during app reloads or navigation.

Steps