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

Gsoc2024 basic viewer glfw tgrillon #8444

Open
wants to merge 70 commits into
base: master
Choose a base branch
from

Commits on Jun 17, 2024

  1. Init Basic viewer project

    tgrillon committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    3bb23c9 View commit details
    Browse the repository at this point in the history
  2. fixing some include error

    tgrillon committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    602d96a View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Camera update (orbiter) + refactoring

    - Object rotation using quaternions
    - Object translation (with keys and mouse)
    - Zoom in/out
    - Reset camera (lctrl + r)
    - Center camera (right double click)
    tgrillon committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    2910090 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2024

  1. Configuration menu
    Copy the full SHA
    5ab957f View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. CMake modifications

    (new) Installation/cmake/modules/CGAL_setupCGAL_GLFWDependencies.cmake :
    - setup dependancies and target for GLFW (with glad and stb_image) -> work in progress
    - build GLFW GLAD libs and link them to the target
    
    (modif) Installation/lib/cmake/CGAL/CGALConfig.cmake :
    - creation of new targets : CGAL_Basic_viewer_Qt and CGAL_Basic_viewer_GLFW
    tgrillon committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    15b55b7 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Configuration menu
    Copy the full SHA
    a9e4282 View commit details
    Browse the repository at this point in the history
  2. cleanup

    gdamiand committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    26a6e45 View commit details
    Browse the repository at this point in the history
  3. add glfw option (NYF)

    gdamiand committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    aa164cc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7b6df25 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'gsoc2024-basic_viewer_glfw-tgrillon' of github.com:CGAL…

    …/cgal-public-dev into gsoc2024-basic_viewer_glfw-tgrillon
    tgrillon committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    2fe58b3 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2024

  1. Configuration menu
    Copy the full SHA
    e49da74 View commit details
    Browse the repository at this point in the history
  2. Free-fly type camera + other functionalities

    This commit add the free-fly type camera which can be toggle pressing [LCTRL+V].
    - [left mouse button] : rotate the camera orientation
    - [scroll] : zoom
    - [UP DOWN LEFT RIGHT] : move up/down/left/right
    - [LSHIFT+UP LSHIFT+DOWN] : move forward/backward
    
    Here some additional fixtures :
    
    - Fixing the FOV modification. Now the FOV can be increased/decreased using [LCTRL+SCROLL]
    - Smooth camera translation/rotation/zoom, smooth factors can be inc/dec :
      - ['+/-' numpad] : inc/dec rotation smooth factor
      - [LCTRL+'+/-' numpad] : inc/dec translation smooth factor
      - [LCTRL+scroll] : inc/dec zoom smooth factor
    - Align camera orientation to nearest axis [mouse double left click]
    - All change can be reset [LCTRL+R]
    tgrillon committed Jun 22, 2024
    Configuration menu
    Copy the full SHA
    5b10a3b View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2024

  1. refactoring

    tgrillon committed Jun 23, 2024
    Configuration menu
    Copy the full SHA
    d455aa1 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Fixes and improvements

    - Improvement of align-to-nearest-axis system
    - Rework of Line_renderer to avoid multiple calls to glDraw function
    - Now, we use Line_renderer to render the clipping plane
    
    Things that need to be done :
    - Rework the load_scene method to only reload the required buffers, not all of them.
    tgrillon committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    372b7b3 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Configuration menu
    Copy the full SHA
    9b84a56 View commit details
    Browse the repository at this point in the history
  2. Rework of the clipping plane implementation :

    A class Clipping_plane is used to manage the computation of rotation and translation and to return the 4x4 transformation
    matrix used as Model in ModelViewProjection Matrix. The implementation that follows is similar to the camera's transformation
    implementation.
    
    Clipping plane interactions :
    - Rotate using [LCTRL+LEFT MOUSE BUTTON]
    - Translate using [LCTRL+RIGHT MOUSE BUTTON]
    - Translate along camera forward direction using [LCTRL+MOUSE WHEEL]
    - Translate along clipping plane normal vector using [LCTRL+SCROLL]
    tgrillon committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    78cc838 View commit details
    Browse the repository at this point in the history
  3. small fix : const error

    tgrillon committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    417c50c View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. Configuration menu
    Copy the full SHA
    5bc671b View commit details
    Browse the repository at this point in the history
  2. Implementation of an animation controller (work in progress)

    - Save keyframe using [LALT+F1]
    - Run/Stop the animation using [F1]
    
    Still work to be done.
    tgrillon committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    9eb21c1 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Implementation of the animation controller completed.

    However this controller can be triggered and used only if you are using the
    orbiter-type camera.
    tgrillon committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    4b911ad View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Input rework

    + Refactoring of Input.h file
      + New file 'key_code.h' is use to define key code macros based on glfw3.h file : I chose to use the same key codes as glfw because lots of them are based on ASCII code which ease int/char conversion.
      + The right key mapping can be achieved by setting a keyboard layout with set_keyboard_layout(Keyboard Layout: AZERTY).
    + upgrade of 'Terminal Help' with sections and application state informations like FPS, translation/rotation speed, light color...
    tgrillon committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    b0d5db5 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Mainly refactoring

    - Remove key_code.h because it's useless. We direclty use CGLFW macros for key codes.
    + Shortcuts modifications to match Basic viewer Qt's ones
    + Adding position/direction/center to basic viewer setter methods, allowing user to set camera position/orientation and focus point.
    tgrillon committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    8f3f730 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89472b7 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. small fixes

    tgrillon committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    227bfa9 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Fix Screenshot feature

    tgrillon committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    88ba482 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Small fixes / refactoring

    tgrillon committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    9170f28 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    f9b16f9 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. Configuration menu
    Copy the full SHA
    e850189 View commit details
    Browse the repository at this point in the history
  2. Fullscreen fixes

    tgrillon committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    4dde322 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Lock camera rotation axis + fixing fullscreen issues + user can set t…

    …he camera orientation by providing forward direction and up angle
    tgrillon committed Jul 15, 2024
    Configuration menu
    Copy the full SHA
    557ea45 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c870d62 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Configuration menu
    Copy the full SHA
    074fdeb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    79d6b8a View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Rendering optimisation (we now draw the scene only when it's necessar…

    …y) + small fixes and additions
    tgrillon committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    2cf1ec6 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Configuration menu
    Copy the full SHA
    9798c3a View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. Configuration menu
    Copy the full SHA
    80c8ae7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    986343e View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. Configuration menu
    Copy the full SHA
    f60017c View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2024

  1. Configuration menu
    Copy the full SHA
    eb9af8b View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. Buffers implementations for GLFW + normal clipped from the clipping p…

    …lane (GLFW & Qt) + cylinder/sphere feature implemented to Qt viewer
    tgrillon committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    1a578bf View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. Align clipping plane to camera + Face normal for both GLFW and Qt vie…

    …wer (+ vertex attribute renaming)
    tgrillon committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    1c95379 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dcc7fc0 View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. Configuration menu
    Copy the full SHA
    bf28e8b View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2024

  1. Line width shaders

    tgrillon committed Aug 7, 2024
    Configuration menu
    Copy the full SHA
    59b1b3a View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2024

  1. Configuration menu
    Copy the full SHA
    afffdd6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0987d47 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

  1. Configuration menu
    Copy the full SHA
    7004ac9 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2024

  1. Configuration menu
    Copy the full SHA
    9db37f9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0ea06f2 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. Configuration menu
    Copy the full SHA
    bec0c38 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0545182 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    84ca770 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. Configuration menu
    Copy the full SHA
    b6e9e8e View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. Configuration menu
    Copy the full SHA
    ac14aef View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2024

  1. Default color display rework

    tgrillon committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    ce36178 View commit details
    Browse the repository at this point in the history
  2. clipping plane normal

    tgrillon committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    7dd8d35 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2024

  1. Configuration menu
    Copy the full SHA
    c88d2fa View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2024

  1. Configuration menu
    Copy the full SHA
    1634245 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eeecb61 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. removing cmake modules/files

    tgrillon committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    f21f74e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4403e97 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. Configuration menu
    Copy the full SHA
    136f4c9 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. Merge branch 'gsoc2024-basic_viewer_glfw-tgrillon' of github.com:tgri…

    …llon/cgal into gsoc2024-basic_viewer_glfw-tgrillon
    tgrillon committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    28f7e2a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    12e4173 View commit details
    Browse the repository at this point in the history
  3. small modifs

    tgrillon committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    c78e4b3 View commit details
    Browse the repository at this point in the history
  4. cosmetic

    gdamiand committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    8fed0fe View commit details
    Browse the repository at this point in the history
  5. test push

    gdamiand committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    82c9b70 View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Configuration menu
    Copy the full SHA
    d09dde6 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2024

  1. Configuration menu
    Copy the full SHA
    c0c318b View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2024

  1. Configuration menu
    Copy the full SHA
    2ec02f6 View commit details
    Browse the repository at this point in the history