Skip to content

fix: Updating the samples for vneinteraction fixes. - #39

Merged
ajeetsinghyadav merged 14 commits into
mainfrom
VNE_TESTBED_INTERACTION_FIXING_ARCBALL_ROTATION
Mar 30, 2026
Merged

ajeetsinghyadav merged 14 commits into
mainfrom
VNE_TESTBED_INTERACTION_FIXING_ARCBALL_ROTATION

Conversation

@ajeetsinghyadav

@ajeetsinghyadav ajeetsinghyadav commented Mar 28, 2026 •

Copy link
Copy Markdown
Member
  • Included the ortho_2d_behavior header to enhance interaction capabilities in the demo.
  • This addition supports improved 2D interaction handling within the OpenGL context.

Description

Release notes: Use a Conventional Commits–style PR title (e.g. feat: add X, fix: resolve Y, docs: update Z) so release-please can include this change in the changelog. If you squash-merge, use the PR title as the commit message.

Checklist

  • Project builds (e.g. cmake -B build and cmake --build build, or platform script).
  • Tests pass (e.g. ctest --test-dir build or script -a test).
  • Code is formatted (e.g. run clang-format as configured for this repo); CI clang-format will check.
  • Docs updated if you changed behavior or public API.

Additional notes

…ology

- Updated the vneinteraction subproject to the latest commit.
- Revised comments and documentation across multiple demo files to replace "orbit-arcball" with "orbit/trackball" for consistency.
- Adjusted controller types and method names to reflect the new Inspect3DController, enhancing clarity in interaction handling.
…tion

- Removed unused ortho_pan_zoom_behavior include and replaced references with ortho2DBehavior for consistency.
- Updated method calls in InteractionTestLayer and InteractionSettingsLayer to align with the new behavior naming, enhancing clarity in interaction handling.
- Included the ortho_2d_behavior header to enhance interaction capabilities in the demo.
- This addition supports improved 2D interaction handling within the OpenGL context.
Copilot AI review requested due to automatic review settings March 28, 2026 22:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GLFW/OpenGL sample demos to match recent vne::interaction API changes (Inspect3DController + orbital/trackball + updated Ortho2D behavior naming), and refreshes sample docs/UI text accordingly.

Changes:

  • Replace InspectController usage with Inspect3DController in shared sample layers and the interaction demo.
  • Update behavior accessors/usages (e.g., orbitArcballBehavior() → orbitalCameraBehavior(), orthoPanZoomBehavior() → ortho2DBehavior()), and add trackball projection UI controls.
  • Refresh sample READMEs and inline comments to reflect “orbit / trackball” terminology.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
samples/glfw_opengl/common/base_scene_layer.h Switches interaction include/types to Inspect3DController; updates interaction layer comment text.
samples/glfw_opengl/common/base_scene_layer.cpp Updates controller instantiation and accessors to Inspect3DController.
samples/glfw_opengl/03_test_interaction/demo_test_interaction.h Updates inspect controller types and renames the inspect mode enum value to trackball.
samples/glfw_opengl/03_test_interaction/demo_test_interaction.cpp Updates behavior includes/usages; adds trackball projection UI; updates controller switching logic for trackball.
samples/glfw_opengl/03_test_interaction/README.md Updates documentation to describe trackball + projection options.
samples/glfw_opengl/02_test_scene/demo_test_scene.cpp Updates interaction layer comment text to “orbit/trackball”.
samples/glfw_opengl/01_test_events/demo_test_events.cpp Updates interaction layer comment text to “orbit/trackball”.
samples/glfw_opengl/00_hello_testbed/demo_hello_testbed.cpp Updates interaction layer comment text to “orbit/trackball”.
samples/glfw_opengl/00_hello_testbed/README.md Updates documentation text to reflect orbit/trackball inspect terminology.

Comment thread samples/glfw_opengl/03_test_interaction/demo_test_interaction.cpp
Comment thread samples/glfw_opengl/03_test_interaction/demo_test_interaction.h
- Eliminated the scene scale application logic from the onUpdate method, streamlining the update process.
- This change enhances code clarity by removing unnecessary conditional checks related to the mesh layer's scale.
- Added logic to check and synchronize orthographic projection bounds based on viewport size and UI settings, preventing unnecessary updates.
- Introduced new member variables to track the last applied orthographic projection settings, enhancing performance during rendering.
- Updated comments to clarify the purpose of the new synchronization mechanism.
Copilot AI review requested due to automatic review settings March 30, 2026 02:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Comment thread samples/glfw_opengl/common/base_scene_layer.cpp
…_test_interaction

- Changed the order of zoom method options in the UI for better user experience.
- Updated descriptions for each zoom method to provide clearer explanations of their functionality.
…raction demo

- Renamed instances of the Ortho controller to Ortho2D for consistency across the codebase.
- Updated method names and comments to reflect the new controller type, ensuring clarity in interaction handling.
- Adjusted UI elements and documentation to accurately describe the Ortho2D controller's requirements and functionality.
@ajeetsinghyadav
ajeetsinghyadav merged commit be8f57f into main Mar 30, 2026
10 checks passed
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

Successfully merging this pull request may close these issues.

2 participants