VSE: Frame Overlay incorrectly applies Transform to reference frame, ignores keyframes #90829

Open
opened 2021-08-21 15:30:15 +02:00 by Lukas W · 9 comments

System Information
Operating system: Ubuntu 20.04.2
Graphics card: AMD® Verde

Blender Version
Broken: 2.93.3
Worked: don't know

While Frame Overlay is active and set to "Reference" or "Rectange", the video sequencer applies transformations to the reference frame even when that frame has a different transformation keyframed. The expected behaviour is that the reference frame looks exactly as it does when that particular frame is active.

  • Open attached file vseoverlaytransform.blend
  • Note that Frame Overlay is active and Overlay Type set to "Reference"
  • Alter the Rotation parametre of the text strip
  • Note that the displayed frame transforms as you change the value
  • Disable Frame Overlay and jump to the first frame
  • Note that the transformation parametre has a keyframe at 0 deg, but the displayed text is still rotated
  • Press Ctrl-R (Refresh All) and note that the text jumps back into its unrotated state
**System Information** Operating system: Ubuntu 20.04.2 Graphics card: AMD® Verde **Blender Version** Broken: 2.93.3 Worked: don't know While Frame Overlay is active and set to "Reference" or "Rectange", the video sequencer applies transformations to the reference frame even when that frame has a different transformation keyframed. The expected behaviour is that the reference frame looks exactly as it does when that particular frame is active. - Open attached file [vseoverlaytransform.blend](https://archive.blender.org/developer/F10300476/vseoverlaytransform.blend) - Note that Frame Overlay is active and Overlay Type set to "Reference" - Alter the Rotation parametre of the text strip - Note that the displayed frame transforms as you change the value - Disable Frame Overlay and jump to the first frame - Note that the transformation parametre has a keyframe at 0 deg, but the displayed text is still rotated - Press Ctrl-R (Refresh All) and note that the text jumps back into its unrotated state
Author

Added subscriber: @geloescht

Added subscriber: @geloescht
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Can confirm the behavior.

Can confirm the behavior.

Added subscriber: @tintwotin

Added subscriber: @tintwotin

Frame Overlay is generally a very poorly designed tool. An attempt to improve it: https://developer.blender.org/D10503

Frame Overlay is generally a very poorly designed tool. An attempt to improve it: https://developer.blender.org/D10503
Author

I've investigated the source a bit and think I have found the culprit. In this line of input_preprocess()
https://developer.blender.org/diffusion/B/browse/master/source/blender/sequencer/intern/render.c$615
the timeline_frame is lost since sequencer_preprocess_transform_crop() doesn't take a parametre for the frame to render. Then in sequencer_image_crop_transform_matrix() the transform is retrieved for the current frame. I guess we would need to pass timeline_frame through to those functions so the correct transform can be retrieved.

I've investigated the source a bit and think I have found the culprit. In this line of `input_preprocess()` https://developer.blender.org/diffusion/B/browse/master/source/blender/sequencer/intern/render.c$615 the `timeline_frame` is lost since `sequencer_preprocess_transform_crop()` doesn't take a parametre for the frame to render. Then in `sequencer_image_crop_transform_matrix()` the transform is retrieved for the current frame. I guess we would need to pass `timeline_frame` through to those functions so the correct transform can be retrieved.

Added subscriber: @iss

Added subscriber: @iss

You can't really pass timeline_frame to transform function so they can lookup animation at that particular frame. It is possible technically, but it violates principles of how these values are evaluated. In past VSE did evaluate strip animation internally. Now this should be done by dependency graph only. But this would require either VSE to modify current frame and re-evaluate scene, which also violates these principles. Another option is for VSE to have own dependency graph, that it has full control of. This could resolve some other issues too, but I am not quite sure at what level(s) this should be implemented.

I will classify this as known issue, since this is not trivial to resolve and it does require design change and approval

You can't really pass `timeline_frame` to transform function so they can lookup animation at that particular frame. It is possible technically, but it violates principles of how these values are evaluated. In past VSE did evaluate strip animation internally. Now this should be done by dependency graph only. But this would require either VSE to modify current frame and re-evaluate scene, which also violates these principles. Another option is for VSE to have own dependency graph, that it has full control of. This could resolve some other issues too, but I am not quite sure at what level(s) this should be implemented. I will classify this as known issue, since this is not trivial to resolve and it does require design change and approval
Philipp Oeser removed the
Interest
VFX & Video
label 2023-02-10 09:31:44 +01:00
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
4 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#90829
No description provided.