Skip to content

[WIP] Add rotation moves + make a new folder for path changes #14

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

asinghvi17
Copy link
Collaborator

This PR moves each path change into its own file for simplicity / searchability. It will also add three new moves:

  • RotateCamera(duration, axis, angle) - rotate the camera around axis
  • OrbitCamera(duration, axis, angle) - similar to RotateCamera in implementation, but rotates the camera around its lookat while keeping that lookat constant.
  • CompoundMove: apply multiple moves simultaneously, so you can e.g. rotate the camera while translating. Moves are applied in order.

Copy link

codecov bot commented Jul 14, 2024

Codecov Report

Attention: Patch coverage is 62.06897% with 33 lines in your changes missing coverage. Please review.

Project coverage is 56.25%. Comparing base (b78e858) to head (8730991).

Files with missing lines Patch % Lines
src/pathchanges/slerpmove.jl 0.00% 28 Missing ⚠️
src/pathchanges/pause.jl 78.57% 3 Missing ⚠️
src/pathchanges/constrainedmove.jl 93.75% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (b78e858) and HEAD (8730991). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (b78e858) HEAD (8730991)
4 2
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #14      +/-   ##
==========================================
- Coverage   65.00%   56.25%   -8.75%     
==========================================
  Files           5        9       +4     
  Lines         180      208      +28     
==========================================
  Hits          117      117              
- Misses         63       91      +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lazarusA
Copy link

I started using this package. Is really convenient, great. However, the functions defined in this PR are definitely something I'm kinda doing in a more cumbersome way 😄 . How can I help to make this go into master ?

@asinghvi17
Copy link
Collaborator Author

More use cases would be nice, I wrote these path changes for myself but not 100% sure how people are using them / if there is a more general strategy!

asinghvi17 added 2 commits May 3, 2025 16:38
This is still pretty hacky, but it works.  The idea is that you can slerp every aspect of the view state, and you can also center it about some point so that you can rotate about that point.

This is not meant to be necessarily immediately user-usable, but rather a more foundational move for e.g. orbiting around a point or rotating a camera.  You can use e.g. Rotations.AngleAxis to set the final point and then this will go there but on the surface of a sphere parameterized by the original and final points, and the center point.
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