Blender Git Loki

Git Commits -> Revision c20caec

Revision c20caec by Sybren A. Stüvel (master)
February 27, 2020, 16:44 (GMT)
Fix T70381: Motion Paths off by one

The apparent off-by-one error was caused by a few factors:

- The 'blend base' colour was green for the two frames directly
surrounding the current frame, but black for the current frame itself.
- For the frames before the current one, the 'blend base' was mixed with
black, making the green stand out clearly, but fading to black again
for the current frame. This looks like an off-by-one, even though it
was just bad mixing.
- For the frames after the current one, the 'blend base' was mixed with
cyan, which already has a strong green component, so mixing it there
was much less visible, making the entire thing look like an off-by-one
error where it actually wasn't.

I have simplified the code, so now it only chooses green as the 'blend
base' for the current frame, and simplified the mixing for the current
frame.

Commit Details:

Full Hash: c20caec7f0b39b7d15bd600880ea9534c31f6732
Parent Commit: f48ad37
Lines Changed: +4, -5

1 Modified Path:

/source/blender/draw/engines/overlay/shaders/motion_path_line_vert.glsl (+4, -5) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021