Incorrect timing of animated masks in the Video Sequence Editor #68700

Closed
opened 2019-08-15 17:56:49 +02:00 by Dietrich · 6 comments

System Information
Operating system: Linux-4.18.0-25-generic-x86_64-with-debian-buster-sid 64 Bits
Graphics card: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2) Intel Open Source Technology Center 4.5 (Core Profile) Mesa 18.2.8

Blender Version
Broken: version: 2.81 (sub 2), branch: master, commit date: 2019-08-14 22:18, hash: cb7ead2e3b
Worked: (optional)

Short description of error
The mask modifier in the VSE displays mask animations one frame too early when "Mask Time" is set to "Absolute".

Exact steps for others to reproduce the error

  1. Create a mask in the Movie Clip Editor with a shape key animation.
  2. Add a Color strip in the Video Sequence Editor.
  3. Add a Mask modifier to the strip and set the "Mask Input Type" to "Mask", select the mask created in 1. and set the "Mask Time" to "Absolute".
  4. Go through the animation frame by frame. In the VSE the mask will be animated one frame ahead of the actual shape keys. Other keyframes (like the mask layer opacity) will be timed correctly.

bug.jpg

VSEMaskBug.blend

**System Information** Operating system: Linux-4.18.0-25-generic-x86_64-with-debian-buster-sid 64 Bits Graphics card: Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2) Intel Open Source Technology Center 4.5 (Core Profile) Mesa 18.2.8 **Blender Version** Broken: version: 2.81 (sub 2), branch: master, commit date: 2019-08-14 22:18, hash: `cb7ead2e3b` Worked: (optional) **Short description of error** The mask modifier in the VSE displays mask animations one frame too early when "Mask Time" is set to "Absolute". **Exact steps for others to reproduce the error** 1. Create a mask in the Movie Clip Editor with a shape key animation. 2. Add a Color strip in the Video Sequence Editor. 3. Add a Mask modifier to the strip and set the "Mask Input Type" to "Mask", select the mask created in 1. and set the "Mask Time" to "Absolute". 4. Go through the animation frame by frame. In the VSE the mask will be animated one frame ahead of the actual shape keys. Other keyframes (like the mask layer opacity) will be timed correctly. ![bug.jpg](https://archive.blender.org/developer/F7666088/bug.jpg) [VSEMaskBug.blend](https://archive.blender.org/developer/F7666091/VSEMaskBug.blend)
Author

Added subscriber: @Salatfreak

Added subscriber: @Salatfreak

This issue was referenced by b77da65e8c

This issue was referenced by b77da65e8c4d8deb5a27e29f5ba518f02fc1c35d
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2019-08-15 20:34:14 +02:00
Member

Can confirm (in a way), this is weird.

we have:

  • Mask Settings (start / end)
    • introduced in bdf9e02346
    • tbh, I dont really get the usecase for start/end here, seems to only be used as an offset?
  • Strip Time Settings (start / end)
  • scene current frame

code in seq_render_mask will effectively do BKE_mask_evaluate(mask_temp, mask->sfra + (cfra - fra_offset), true) where fra_offset is zero for absolute and seq->start for relative.

If we really want the scene's current frame (as advertised) if Mask Time is set to Absolute (effectively ignoring the Masks) we would need to change the fra_offset from zero to mask->sfra...

Can confirm (in a way), this is weird. we have: - `Mask Settings` (start / end) - introduced in bdf9e02346 - tbh, I dont really get the usecase for start/end here, seems to only be used as an offset? - `Strip Time Settings` (start / end) - scene current frame code in `seq_render_mask` will effectively do `BKE_mask_evaluate(mask_temp, mask->sfra + (cfra - fra_offset), true)` where `fra_offset` is `zero` for absolute and `seq->start` for relative. If we really want the scene's current frame (as advertised) if `Mask Time` is set to `Absolute` (effectively ignoring the Masks) we would need to change the `fra_offset` from zero to `mask->sfra`...
Author

I overlooked the start/end settings of the masks before. Thanks for the fix. So for the current build, setting the masks start frame to 0 gets the mask and the VSE back in sync.

I overlooked the start/end settings of the masks before. Thanks for the fix. So for the current build, setting the masks start frame to 0 gets the mask and the VSE back in sync.
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#68700
No description provided.