brettmorrisonAO5ANNEX / 3D_modeling_animations

0 stars 0 forks source link

Tracker Interpolation Issue #4

Closed brettmorrisonAO5ANNEX closed 7 months ago

brettmorrisonAO5ANNEX commented 7 months ago

Currently the tracker for 'recursive interpolations' is animating along its original direction (RED) vector (makes sense the way I implemented the LIVis class since the direction vector is only calculated once at initialization). I need it to animate along the tracker line (YELLOW) instead, which may require adding an updater to the direction vector to update as the lines move.

Screenshot 2024-01-14 at 12 15 40 AM

brettmorrisonAO5ANNEX commented 7 months ago

I might need to update how I am animating the trackers altogether to include an actual 't' value. Doing so might make updating the positions of each tracker easier since they are all moving based on the same 't' value.

brettmorrisonAO5ANNEX commented 7 months ago

If I use the 't' value from a fixed-length line (along one segment of the control polygon), I can map it to a position along the length of even a changing length line (like the 'recursive interpolations'). Regardless of if the line changes length, 't' represents the proportional distance along the line so it will map properly.

Now I just need to figure out how to implement this the best way. Currently, there isn't really a global 't' to use, so I will need to figure that out.

brettmorrisonAO5ANNEX commented 7 months ago

Instead of using a global t, I have decided to create an actual line representing the Bezier curve and then animate the tracker moving along that line since I needed to have the line eventually anyway, I think this is a much better approach.

Screenshot 2024-01-14 at 11 13 02 PM