tornavis/scripts
Christoph Lendenfeld 79f84775f2 Anim: Motion Paths in camera space
Animators (especially for film and TV) often need
to track the movement of things in screenspace.
At the end of the day, the pixel motion is what counts.
But motion paths were always in world space,
which made it hard to use when the camera
is also animated (during action scenes e.g.)

This PR introduces the feature of projecting a motion path into the screen space of the active scene camera.

Limitations
This makes the motion path only useful when looking through the active scene camera.
Switching the scene camera using markers is not yet supported.

Technical Implementation
This is achieved by baking the motion path points into the
camera space on creation. For every point calculated,
the camera is evaluated through the depsgraph and
the resulting world matrix is used.
Then I pass in the current frame's world matrix of the
camera into the shader to make sure the points follow it.
As can be seen in the video, it looks quite odd when
viewed at another angle but this is expected.
I mentioned that in the tooltip, so it shouldn't be an issue

Pull Request: https://projects.blender.org/blender/blender/pulls/117593
2024-02-06 23:14:17 +01:00
..
freestyle Cleanup: spelling in comments 2023-09-05 11:04:27 +10:00
modules I18n: extract and disambiguate a few messages 2024-02-06 17:06:30 +01:00
presets GPv3: Separate operator 2024-02-06 12:06:48 +01:00
site Cleanup: spelling in comments, update dictionary 2023-09-03 21:35:07 +10:00
startup Anim: Motion Paths in camera space 2024-02-06 23:14:17 +01:00
templates_osl License headers: remove GPL header from OSL template script 2023-08-04 13:24:15 +10:00
templates_py Cleanup: Grammar in comments 2024-01-11 11:01:50 -05:00