Cycles doesn't interpolate material properties driven by a frame driver when rendering motion blur #84753

Closed
opened 2021-01-15 17:41:16 +01:00 by Leon Schittek · 4 comments
Member

System Information
Operating system: Darwin-18.7.0-x86_64-i386-64bit 64 Bits
Graphics card: Intel Iris OpenGL Engine Intel Inc. 4.1 INTEL-12.10.16

Blender Version
Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: 0f45cab862
(same behaviour with 2.93 LTS and 2.92 alpha build)
Worked: -

Short description of error
When setting up a material with its color (or other properties) driven by a frame driver cycles doesn't seem to interpolate the frame driver when calculating motion blur. This is inconsistent with how the motion blur in Eevee behaves.
Example: Rendering a material with color change driven by frame:

With Cycles: The cube and the motion blur trail have a consistent color:
cycles_no-subframe-color-change.png

Same scene with Eevee: As expected the motion blur accounts for the color change of the object:
eevee_subframe-color-change.png

Exact steps for others to reproduce the error
You can open the provided blend file and render the current frame with cycles. To confirm the desired effect with Eevee change the render engine to Eevee and render the frame again.
cycles_no-motion-blur-color-change.blend

Exact steps for others to reproduce the error from startup file

  1. open new default startup file
  2. animate the position of the default cube (two keyframes are enough, but the effect is more obvious, when the cube is moving a lot between frames)
  3. change the material of the default cube, so that it colors change based on the frame. e.g:
    Add a Value Node Add a driver to the Value Node by typing '#frame' into the value field.
    Add a Math Node set to Fraction and plug the value node into it. Add a Color Ramp and create a colorful gradient to make the effect more obvious
    Feed the Math Node into the Color Ramp Plug the Color Ramp into an Emission Shader and plug that into the Material Output
  4. Change render engine to Cycles and activate motion blur (optional: increase the motion blur steps in the object properties of the cube to confirm that limited steps isn't the issue)
  5. Render a frame of the cube in motion:
    ** Result: The cube and its motion blur trail will have one constant color
  6. Optional: recreate expected behavour in Eevee:
    change render engine to Eevee activate motion blur in the render settings
    ** increase the number of motion blur steps to 20 or higher to make the effect more noticeable
**System Information** Operating system: Darwin-18.7.0-x86_64-i386-64bit 64 Bits Graphics card: Intel Iris OpenGL Engine Intel Inc. 4.1 INTEL-12.10.16 **Blender Version** Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: `0f45cab862` (same behaviour with 2.93 LTS and 2.92 alpha build) Worked: - **Short description of error** When setting up a material with its color (or other properties) driven by a frame driver cycles doesn't seem to interpolate the frame driver when calculating motion blur. This is inconsistent with how the motion blur in Eevee behaves. Example: Rendering a material with color change driven by frame: With Cycles: The cube and the motion blur trail have a consistent color: ![cycles_no-subframe-color-change.png](https://archive.blender.org/developer/F9580606/cycles_no-subframe-color-change.png) Same scene with Eevee: As expected the motion blur accounts for the color change of the object: ![eevee_subframe-color-change.png](https://archive.blender.org/developer/F9580599/eevee_subframe-color-change.png) **Exact steps for others to reproduce the error** You can open the provided blend file and render the current frame with cycles. To confirm the desired effect with Eevee change the render engine to Eevee and render the frame again. [cycles_no-motion-blur-color-change.blend](https://archive.blender.org/developer/F9580609/cycles_no-motion-blur-color-change.blend) **Exact steps for others to reproduce the error from startup file** 1. open new default startup file 2. animate the position of the default cube (two keyframes are enough, but the effect is more obvious, when the cube is moving a lot between frames) 3. change the material of the default cube, so that it colors change based on the frame. e.g: **Add a *Value Node*** Add a driver to the Value Node by typing '#frame' into the value field. **Add a *Math Node* set to *Fraction* and plug the value node into it.** Add a *Color Ramp* and create a colorful gradient to make the effect more obvious **Feed the *Math Node* into the *Color Ramp*** Plug the *Color Ramp* into an *Emission Shader* and plug that into the *Material Output* 4. Change render engine to Cycles and activate motion blur (optional: increase the motion blur steps in the object properties of the cube to confirm that limited steps isn't the issue) 5. Render a frame of the cube in motion: ** Result: The cube and its motion blur trail will have one constant color 6. *Optional:* recreate expected behavour in Eevee: **change render engine to Eevee** activate motion blur in the render settings ** increase the number of motion blur steps to 20 or higher to make the effect more noticeable
Author
Member

Added subscriber: @lone_noel

Added subscriber: @lone_noel

Added subscriber: @rocketman

Added subscriber: @rocketman

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

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

This is a known issue. Whereas Eevee will actually render subframes for each step, Cycles uses a different method which unfortunately does not account for material changes between frames.

It's disappointing, but not a bug per se. Sorry to shoot you down

This is a known issue. Whereas Eevee will actually render subframes for each step, Cycles uses a different method which unfortunately does not account for material changes between frames. It's disappointing, but not a bug per se. Sorry to shoot you down
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
2 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#84753
No description provided.