LookUpGroup27 / LookUp

0 stars 1 forks source link

Add Labels to Objects in OpenGL #179

Open AdrienBousquieEPFL opened 1 day ago

AdrienBousquieEPFL commented 1 day ago

Description

Implement a feature to display labels (e.g., star or planet names) on objects rendered in the OpenGL screen. Labels should dynamically adjust their position based on the camera's view and remain readable regardless of zoom level.

Objectives

Technical Considerations

  1. Text Rendering

    • Use bitmap fonts or a library like FreeType for text generation.
    • Create texture atlases to store character bitmaps efficiently.
  2. Positioning

    • Use OpenGL's projection matrix to map 3D object coordinates to 2D screen space.
    • Update label positions dynamically as the camera moves or the user zooms in/out.
  3. Scaling and Visibility

    • Adapt label size based on zoom level to ensure readability.
    • Hide labels for objects that are too small or far away to reduce clutter.

Proposed Steps

Deliverables

Note

As this task seems quite hard we aim to do it on this Sprint but it's realist to try it on next Sprint.