Motion blur drops on random frames in Cycles/Eevee when using alembic file #90806

Closed
opened 2021-08-20 17:16:06 +02:00 by Robert Rioux · 22 comments

System Information
Operating system: macOS-10.15.7-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro Vega 64 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.10.18

Blender Version
Broken: version: 2.93.2, branch: master, commit date: 2021-08-03 05:58, hash: 1eb06de260
Worked: Probably never

Short description of error
Motion blur drops on random frames in Eevee/Cycles when using alembic file

Exact steps for others to reproduce the error
Please try to render the file in the link with motion blur

#90806.zip

**System Information** Operating system: macOS-10.15.7-x86_64-i386-64bit 64 Bits Graphics card: AMD Radeon Pro Vega 64 OpenGL Engine ATI Technologies Inc. 4.1 ATI-3.10.18 **Blender Version** Broken: version: 2.93.2, branch: master, commit date: 2021-08-03 05:58, hash: `1eb06de260` Worked: Probably never **Short description of error** Motion blur drops on random frames in Eevee/Cycles when using alembic file **Exact steps for others to reproduce the error** Please try to render the file in the link with motion blur [#90806.zip](https://archive.blender.org/developer/F10319126/T90806.zip)
Author

Added subscriber: @Funnybob

Added subscriber: @Funnybob
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Member

Can confirm, same is true for Cylces btw.

This abc has changing vertex count across the frames though and afaict, the alembic does not provide a special .velocities attribute.
Since I am unsure how motionvectors are derrived in this case, would kindly as rendering devs to have a look.

Can confirm, same is true for Cylces btw. This abc has changing vertex count across the frames though and afaict, the alembic does not provide a special `.velocities` attribute. Since I am unsure how motionvectors are derrived in this case, would kindly as rendering devs to have a look.
Philipp Oeser changed title from Motion blur drops on random frames in Eevee when using alembic file to Motion blur drops on random frames in Cycles/Eevee when using alembic file 2021-08-24 16:23:13 +02:00
Author

You have been able to render this in Cycles with motion blur? I could only get it to work partially in Eevee.

You have been able to render this in Cycles with motion blur? I could only get it to work partially in Eevee.
Member

In #90806#1210854, @Funnybob wrote:
You have been able to render this in Cycles with motion blur? I could only get it to work partially in Eevee.

This is frame 23 [cropped] with Cycles in 2.93.3 from above zip, yes (but it droppes motionblur on certain frames -- same as Eevee)
image.png

> In #90806#1210854, @Funnybob wrote: > You have been able to render this in Cycles with motion blur? I could only get it to work partially in Eevee. This is frame 23 [cropped] with Cycles in 2.93.3 from above zip, yes (but it droppes motionblur on certain frames -- same as Eevee) ![image.png](https://archive.blender.org/developer/F10319257/image.png)
Author

This must be a fix in 2.93.3 because it doesn't render at all with MB in 2.93.0. I found another strange thing. I imported the same alembic 5 times in my scene and for some reason the 4th one didn't render with MB. That's in Cycles. In Eevee they all have MB. I also tried with the "validate meshes" on and off but I don't think it makes a difference. I couldn't find any information on that option in the documentation. What is it for?

5guys.jpg

This must be a fix in 2.93.3 because it doesn't render at all with MB in 2.93.0. I found another strange thing. I imported the same alembic 5 times in my scene and for some reason the 4th one didn't render with MB. That's in Cycles. In Eevee they all have MB. I also tried with the "validate meshes" on and off but I don't think it makes a difference. I couldn't find any information on that option in the documentation. What is it for? ![5guys.jpg](https://archive.blender.org/developer/F10319423/5guys.jpg)
Author

Hummm.... something very strange here. If you duplicate the guy, you lose the MB on both.

Hummm.... something very strange here. If you duplicate the guy, you lose the MB on both.
Member

Added subscribers: @kevindietrich, @EAW

Added subscribers: @kevindietrich, @EAW
Member

The dropping of the motion blur seems to occur only on frames before or after topology changes.
This is easier to see if you create a shader outputting UVs.

19
0019.png
20
0020.png
21
0021.png

I think you will have to wait for D12305: Modifiers: export motion blur velocity through attribute to land for this to work.

Advantages:

  • Geometry and particle nodes can output velocity through the same mechanism, or read the attribute coming from earlier modifiers.
  • The velocity can be preserved through modifiers like subdivision surface or auto smooth.
  • USD and Alembic previously only output velocity from fluid simulation, now they work with velocity from other sources too.
  • Simplifies the code for renderers like Cycles and exporters like Alembic and USD.

@kevindietrich said

Tested rendering an Alembic file with motion blur and varying topology, this seems to work fine.

The dropping of the motion blur seems to occur only on frames before or after topology changes. This is easier to see if you create a shader outputting UVs. 19 ![0019.png](https://archive.blender.org/developer/F10325090/0019.png) 20 ![0020.png](https://archive.blender.org/developer/F10325092/0020.png) 21 ![0021.png](https://archive.blender.org/developer/F10325094/0021.png) I think you will have to wait for [D12305: Modifiers: export motion blur velocity through attribute](https://archive.blender.org/developer/D12305) to land for this to work. >Advantages: > * Geometry and particle nodes can output velocity through the same mechanism, or read the attribute coming from earlier modifiers. > * The velocity can be preserved through modifiers like subdivision surface or auto smooth. > * USD and Alembic previously only output velocity from fluid simulation, now they work with velocity from other sources too. > * Simplifies the code for renderers like Cycles and exporters like Alembic and USD. @kevindietrich [said](https://developer.blender.org/D12305#319322) >Tested rendering an Alembic file with motion blur and varying topology, this seems to work fine.

Added subscriber: @brecht

Added subscriber: @brecht

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'

Changed status from 'Needs Developer To Reproduce' to: 'Needs User Info'

You must have either have a fixed topology, or velocities in the Alembic file. Renderers can not figure out motion blur with varying topology. D12305 will not change this requirement.

Cycles and Eevee can render differently depending on the settings, Cycles can look at a wider range of frames and subframes and they all must have the same topology.

If multiple identical meshes render with different motion blur, that is a bug. But I have not been able to reproduce that, we'd need an example .blend file to investigate that.

You must have either have a fixed topology, or velocities in the Alembic file. Renderers can not figure out motion blur with varying topology. [D12305](https://archive.blender.org/developer/D12305) will not change this requirement. Cycles and Eevee can render differently depending on the settings, Cycles can look at a wider range of frames and subframes and they all must have the same topology. If multiple identical meshes render with different motion blur, that is a bug. But I have not been able to reproduce that, we'd need an example .blend file to investigate that.
Author

The files are too big to upload. I basically took the abc from the link above and imported it on my file. Then duplicated it. I don't understand why the file size gets 10 megs bigger for every guy I link in the Blender file. They are links, alembic files. The Blender file should be tiny.

The files are too big to upload. I basically took the abc from the link above and imported it on my file. Then duplicated it. I don't understand why the file size gets 10 megs bigger for every guy I link in the Blender file. They are links, alembic files. The Blender file should be tiny.
Author

So let's say frames 1,2, and 3 are good, 4 is bad, 5 and 6 ok. 4 will probably have the geometry of 5, right? So would it be possible to reconstruct the MV of 4 by extrapolating 5 and 6?

So let's say frames 1,2, and 3 are good, 4 is bad, 5 and 6 ok. 4 will probably have the geometry of 5, right? So would it be possible to reconstruct the MV of 4 by extrapolating 5 and 6?

Since the Alembic file does not have velocity information, Cycles "computes" motion blur by storing the meshes for the surrounding frames as well as the current one, and interpolates the meshes during path tracing. For this to work, the topologies for all frames have to match. Computing some motion blur data using some inter- or extrapolation scheme for meshes that do not have a stable topology should be done offline (outside the render engine) as this is heavily dependent on the mesh and how it evolves, and I don't think there is a single technique to achieve this. (I can think of some way to achieve this, by sampling the motion into a volume, and interpolating that back onto the vertices, but again that is not a job for a render engine.)

Since the Alembic file does not have velocity information, Cycles "computes" motion blur by storing the meshes for the surrounding frames as well as the current one, and interpolates the meshes during path tracing. For this to work, the topologies for all frames have to match. Computing some motion blur data using some inter- or extrapolation scheme for meshes that do not have a stable topology should be done offline (outside the render engine) as this is heavily dependent on the mesh and how it evolves, and I don't think there is a single technique to achieve this. (I can think of some way to achieve this, by sampling the motion into a volume, and interpolating that back onto the vertices, but again that is not a job for a render engine.)
Member

So the missing MB on certain frames is not a bug (since we have changing vertex count across the frames and the alembic does not provide a special .velocities attribute).

I imported the same alembic 5 times in my scene and for some reason the 4th one didn't render with MB

Hummm.... something very strange here. If you duplicate the guy, you lose the MB on both.

If multiple identical meshes render with different motion blur, that is a bug

Since this report already has a bit of (unrelated) history, I think it would be good to open a new, fresh report for the case of missing MB on multiple meshes.
@Funnybob : can you report this separately?

So the missing MB on certain frames is not a bug (since we have changing vertex count across the frames and the alembic does not provide a special .velocities attribute). > I imported the same alembic 5 times in my scene and for some reason the 4th one didn't render with MB > Hummm.... something very strange here. If you duplicate the guy, you lose the MB on both. > If multiple identical meshes render with different motion blur, that is a bug Since this report already has a bit of (unrelated) history, I think it would be good to open a new, fresh report for the case of missing MB on multiple meshes. @Funnybob : can you report this separately?
Author

Will do thanks

Will do thanks
Author

Bug report done here #90970

I would like to know why the blend file gets so much bigger when you import alembic files? The alembic resides outside the blend file after all. Thanks

Bug report done here #90970 I would like to know why the blend file gets so much bigger when you import alembic files? The alembic resides outside the blend file after all. Thanks

In #90806#1212069, @Funnybob wrote:
I would like to know why the blend file gets so much bigger when you import alembic files? The alembic resides outside the blend file after all. Thanks

This is because actual Blender objects are created upon imports, then a modifier is added which will load and modify the geometry if it is animated. This means that the geometry for the first frame of the animation (or just the geometry if it is static) will be written into the blender file as the original geometry.

> In #90806#1212069, @Funnybob wrote: > I would like to know why the blend file gets so much bigger when you import alembic files? The alembic resides outside the blend file after all. Thanks This is because actual Blender objects are created upon imports, then a modifier is added which will load and modify the geometry if it is animated. This means that the geometry for the first frame of the animation (or just the geometry if it is static) will be written into the blender file as the original geometry.
Member

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
Member

Thx clarifying @kevindietrich .

Since we now have #90970 (Motion blur lost when rendering multiple copies of an alembic ) separately, I will archive this report.

Thx clarifying @kevindietrich . Since we now have #90970 (Motion blur lost when rendering multiple copies of an alembic ) separately, I will archive this report.
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
5 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#90806
No description provided.