-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Implement Lazy Picking for POINTERMOVE #13044
Implement Lazy Picking for POINTERMOVE #13044
Conversation
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). |
Snapshot stored with reference name: Test environment: To test a playground add it to the URL, for example: https://babylonsnapshots.z22.web.core.windows.net/refs/pull/13044/merge/index.html#WGZLGJ#4600 Links to test babylon tools with this snapshot: https://playground.babylonjs.com/?snapshot=refs/pull/13044/merge To test the snapshot in the playground with a playground ID add it after the snapshot query string: https://playground.babylonjs.com/?snapshot=refs/pull/13044/merge#BCU1XR#0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not many big concerns, but there is quite a bit of new code introduced when switching cameras from input manager to device source manager. Is that expected?
packages/dev/core/src/Cameras/Inputs/BaseCameraMouseWheelInput.ts
Outdated
Show resolved
Hide resolved
packages/dev/core/src/Cameras/Inputs/BaseCameraMouseWheelInput.ts
Outdated
Show resolved
Hide resolved
packages/dev/core/src/Cameras/Inputs/BaseCameraPointersInput.ts
Outdated
Show resolved
Hide resolved
packages/dev/core/src/Cameras/Inputs/BaseCameraPointersInput.ts
Outdated
Show resolved
Hide resolved
packages/dev/core/src/Cameras/Inputs/BaseCameraPointersInput.ts
Outdated
Show resolved
Hide resolved
packages/dev/core/src/Cameras/Inputs/BaseCameraPointersInput.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor issues, but overall, looking good.
packages/dev/core/src/Cameras/Inputs/BaseCameraMouseWheelInput.ts
Outdated
Show resolved
Hide resolved
packages/dev/core/src/Cameras/Inputs/BaseCameraMouseWheelInput.ts
Outdated
Show resolved
Hide resolved
packages/dev/core/src/Cameras/Inputs/BaseCameraPointersInput.ts
Outdated
Show resolved
Hide resolved
packages/dev/core/src/Cameras/Inputs/BaseCameraPointersInput.ts
Outdated
Show resolved
Hide resolved
packages/dev/core/src/Cameras/Inputs/arcRotateCameraMouseWheelInput.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Lazy Pick on Move * Change to account for undefined * cameras using DSM * Check for reasons to pick before picking * Addressed some feedback (missing meshUnderPointer) * Modified get meshUnderPointer * Add frame awareness picking for move * Caching Test * format * import fix * Removed test code * PR Feedback * fixed import * removed gesture recognizer and reverted inputs * Revert videoDome because it uses picking info * formatting * Changed to just MOVE Lazy Picking * Format * Removed comment * PR Feedback * Re-added meshunderpointer code back * More feedback * Comment * PR Feedback part 1 * comment Former-commit-id: 41bb2ae6975b3373d6f111e8b13d8261f1034569
This PR changes the code for picking during a move event to only pick when the user (or mechanism like the ActionManager) require it.