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

use CameraControls and move camera on select #11

Merged
merged 7 commits into from
Jan 23, 2024

Conversation

nils-mathieu
Copy link
Collaborator

Fixes #6

This pull request introduces the use of CameraControls instead of OrbitalControls.

It allows moving the camera to the selected item within the 3D scene.

Pending Problems

When the camera does not need to move at all when an item is selected, the scene is not updated and the item does not appear until the camera is manually moved (thus updating the scene).

selfsigned and others added 4 commits January 22, 2024 05:35
* Refactor shelf data

* Refactor product list to enable ID-based lookup

* Add category data and UI elements

* Implement filtering logic
@nils-mathieu nils-mathieu marked this pull request as ready for review January 22, 2024 20:53
src/lib/3dmap/cameracontrols.svelte Outdated Show resolved Hide resolved
src/routes/app/+page.svelte Outdated Show resolved Hide resolved
@selfsigned selfsigned merged commit 86d443c into master Jan 23, 2024
1 check passed
@selfsigned selfsigned deleted the move-camera-on-select branch January 23, 2024 00:34
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.

Improved camera system
2 participants