With Cycles, Freestyle lines render one frame ahead for object with driver #50066

Closed
opened 2016-11-17 21:30:17 +01:00 by Michael Malahe · 8 comments

With Cycles, if an animated object has a property that is driven, Freestyle lines are drawn based on the value of that property at the next frame.

In the attached example, the z rotation of the cube is driven by its x location. At each frame, Freestyle renders the lines based on the correct location for the cube, but based on the rotation at the next frame.

Example .blend: example.blend
Output from example .blend: example.avi

Generic reproducibility steps:

  1. Switch to Cycles Render.
  2. Enable Freestyle.
  3. Add driver to object that modifies its location or rotation in time.
  4. Render Animation.

This does not happen:

  • When rendering stills.
  • When Blender Render is used.
  • For properties that are not driven.

System:

  • Blender: 2.78a
  • OS: Ubuntu 16.04
  • CPU: Intel Core i7-2630QM
  • RAM: 12GB
  • GFX: NVIDIA GeForce GTX 560M, 1.5GB
  • Graphics driver version: 367.57
  • System info file: system-info.txt
With Cycles, if an animated object has a property that is driven, Freestyle lines are drawn based on the value of that property at the next frame. In the attached example, the z rotation of the cube is driven by its x location. At each frame, Freestyle renders the lines based on the correct location for the cube, but based on the rotation at the next frame. Example .blend: [example.blend](https://archive.blender.org/developer/F402791/example.blend) Output from example .blend: [example.avi](https://archive.blender.org/developer/F402793/example.avi) Generic reproducibility steps: 1. Switch to Cycles Render. 2. Enable Freestyle. 3. Add driver to object that modifies its location or rotation in time. 4. Render Animation. This does not happen: - When rendering stills. - When Blender Render is used. - For properties that are not driven. System: - Blender: 2.78a - OS: Ubuntu 16.04 - CPU: Intel Core i7-2630QM - RAM: 12GB - GFX: NVIDIA GeForce GTX 560M, 1.5GB - Graphics driver version: 367.57 - System info file: [system-info.txt](https://archive.blender.org/developer/F402794/system-info.txt)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @MichaelMalahe

Added subscriber: @MichaelMalahe

Added subscribers: @kjym3, @mont29

Added subscribers: @kjym3, @mont29

@kjym3 Care to check this one? thanks :)

@kjym3 Care to check this one? thanks :)

Thanks Bastien for the triage, and I confirmed the issue on my side. I will look into it as soon as time permits.

Thanks Bastien for the triage, and I confirmed the issue on my side. I will look into it as soon as time permits.

Added subscriber: @Sergey

Added subscriber: @Sergey

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2017-08-23 15:47:14 +02:00

This is a dependency graph issue.

What happens here is you're using own location in the driver source, but the way you're using it assume you're trying to access final object transform (after all animation, parenting and constraints applied). This will work fine to driver some, say, modifier property but using that source for rotation component causes chicken-and-egg situation: rotation driver wants final object transform to be already evaluated, but rotation is required to calculate that transformation. You can see that if you hit shift-right arrow twice.

What you can do for now is to change your x variable to use "Single Property", and use location- [x] as the path. here's a file: example_workaround.blend

Surely would be nice if such situation was handled correctly, but this is not currently considered a bug. However, noted this issue here https://wiki.blender.org/index.php/Dev:Source/Development/Todo/Animation#Dependency_Graph

So thanks for the report, but archiving it for now.

This is a dependency graph issue. What happens here is you're using own location in the driver source, but the way you're using it assume you're trying to access final object transform (after all animation, parenting and constraints applied). This will work fine to driver some, say, modifier property but using that source for rotation component causes chicken-and-egg situation: rotation driver wants final object transform to be already evaluated, but rotation is required to calculate that transformation. You can see that if you hit shift-right arrow twice. What you can do for now is to change your `x` variable to use "Single Property", and use `location- [x]` as the path. here's a file: [example_workaround.blend](https://archive.blender.org/developer/F722504/example_workaround.blend) Surely would be nice if such situation was handled correctly, but this is not currently considered a bug. However, noted this issue here https://wiki.blender.org/index.php/Dev:Source/Development/Todo/Animation#Dependency_Graph So thanks for the report, but archiving it for now.
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#50066
No description provided.