Weird rendering of points with velocity attribute #103918

Closed
opened 2023-01-16 13:34:20 +01:00 by Steffen Dünner · 16 comments

System Information
Operating system: Linux-5.15.0-58-generic-x86_64-with-glibc2.35 64 Bits
Graphics card: NVIDIA GeForce RTX 2070 Super/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 525.60.13

Blender Version
Broken: version: 3.5.0 Alpha, branch: master, commit date: 2023-01-16 11:41, hash: 154d3e95f8
also broken: 3.4.1, 3.3.2
Worked: Never?

Short description of error
Shading of points is totally broken in Cycles when using a "velocity" attribute. I noticed this during a project that needs motion blur on point clouds.
At first I thought it was something broken with the incoming Alembics (I use 2 to work around the current shortcomings of importing attributes on Alembic point clouds following this tutorial by Entagma ).
But when I started to boil down my scene to create an "as simple as possible repro scene" I noticed that something is seriously broken, at least with points, Geometry Nodes and motion blur in Cycles.
I'm currently trying to work around by using instanced spheres instead of points but first results don't look too good either.

The error itself is that as soon as there's a "velocity" attribute on points and I use Motion Blur during rendering, the shading completely breaks. Even if the velocity vectors are at 0, 0, 0.

This is a render of the attached blend file without motion blur:
MB_Off.jpg

And this with motion blur on:
MB_On.jpg

Notice the "velocity" attribute which is basically set to no motion whatsoever:

image.png

The render doesn't become better if I e.g. set it to any other values.

Exact steps for others to reproduce the error

  • Open the attached blend file
    Point_MB_v01.blend
    It's just some points distributed on a grid
  • Press F12 to render without MB -> all fine
  • Check "Motion Blur" and re-render -> weird result
**System Information** Operating system: Linux-5.15.0-58-generic-x86_64-with-glibc2.35 64 Bits Graphics card: NVIDIA GeForce RTX 2070 Super/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 525.60.13 **Blender Version** Broken: version: 3.5.0 Alpha, branch: master, commit date: 2023-01-16 11:41, hash: `154d3e95f8` also broken: 3.4.1, 3.3.2 Worked: Never? **Short description of error** Shading of points is totally broken in Cycles when using a "velocity" attribute. I noticed this during a project that needs motion blur on point clouds. At first I thought it was something broken with the incoming Alembics (I use 2 to work around the current shortcomings of importing attributes on Alembic point clouds following [this tutorial by Entagma ](https://www.youtube.com/watch?v=SYz3Pz0m2XM)). But when I started to boil down my scene to create an "as simple as possible repro scene" I noticed that something is seriously broken, at least with points, Geometry Nodes and motion blur in Cycles. I'm currently trying to work around by using instanced spheres instead of points but first results don't look too good either. The error itself is that as soon as there's a "velocity" attribute on points and I use Motion Blur during rendering, the shading completely breaks. Even if the velocity vectors are at 0, 0, 0. This is a render of the attached blend file without motion blur: ![MB_Off.jpg](https://archive.blender.org/developer/F14152974/MB_Off.jpg) And this with motion blur on: ![MB_On.jpg](https://archive.blender.org/developer/F14152978/MB_On.jpg) Notice the "velocity" attribute which is basically set to no motion whatsoever: ![image.png](https://archive.blender.org/developer/F14152982/image.png) The render doesn't become better if I e.g. set it to any other values. **Exact steps for others to reproduce the error** - Open the attached blend file [Point_MB_v01.blend](https://archive.blender.org/developer/F14152985/Point_MB_v01.blend) It's just some points distributed on a grid - Press F12 to render without MB -> all fine - Check "Motion Blur" and re-render -> weird result

Added subscriber: @SteffenD

Added subscriber: @SteffenD

Added subscriber: @mod_moder

Added subscriber: @mod_moder

I can confirm behavior. But the velocity attribute must be used for blurring. And it's coming through. Just not sure what it should look like for velocity close to 0...

I can confirm behavior. But the velocity attribute must be used for blurring. And it's coming through. Just not sure what it should look like for velocity close to 0...

Thanks for confirming. A velocity vector of length 0 should result in no blurring at all. If you e.g. in my blend file manually set the velocity vectors to 0, 0, 10 (which should result in vertical motion blur), it looks like this
MB_0_0_10.jpg

So there is a vertical blur but the spherical shape of the points is totally gone. In my renderings above you can also see that the size of the points gets visually smaller, even if there should be no blur.

Thanks for confirming. A velocity vector of length 0 should result in no blurring at all. If you e.g. in my blend file manually set the velocity vectors to 0, 0, 10 (which should result in vertical motion blur), it looks like this ![MB_0_0_10.jpg](https://archive.blender.org/developer/F14153004/MB_0_0_10.jpg) So there is a vertical blur but the spherical shape of the points is totally gone. In my renderings above you can also see that the size of the points gets visually smaller, even if there should be no blur.

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

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

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

Based on the description I don't think this is related to geometry nodes directly. Thanks for the report.

Based on the description I don't think this is related to geometry nodes directly. Thanks for the report.
Member

Added subscriber: @EAW

Added subscriber: @EAW
Member

I did test this in 3.4.1 and current master, and would like to note that with CPU rendering the issue doesn't occur.
(My GPU is too old to be used with Cycles.)
@SteffenD and @mod_moder, can either of you please re-test using CPU rendering to see if this is GPU only?

3.5.png
3.5 with Motion Blur

3.4.1_z10.png
3.4.1 with Motion Blur and 10.0 velocity in Z.

I did test this in 3.4.1 and current master, and would like to note that with CPU rendering the issue doesn't occur. (My GPU is too old to be used with Cycles.) @SteffenD and @mod_moder, can either of you please re-test using CPU rendering to see if this is GPU only? ![3.5.png](https://archive.blender.org/developer/F14158899/3.5.png) 3.5 with Motion Blur ![3.4.1_z10.png](https://archive.blender.org/developer/F14158901/3.4.1_z10.png) 3.4.1 with Motion Blur and 10.0 velocity in Z.

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

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

Thx @EAW ! Now i see that this bug only for GPU render

Thx @EAW ! Now i see that this bug only for GPU render

Indeed, CPU rendering looks fine. Optix and CUDA are broken.

Indeed, CPU rendering looks fine. Optix and CUDA are broken.
Member

Thank you for testing. ☺️

Thank you for testing. ☺️
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:04:24 +01:00

This bug bit me again today. I had already forgotten about it, but it's annoying as hell.

This bug bit me again today. I had already forgotten about it, but it's annoying as hell.
Member

Same problem here.

CPU Only:
CPU_Only.png

GPU Only:
GPU_Only.png

CPU + GPU (Mixes the results of both):
CPU+GPU.png

CPU+GPU Detail:
CPU+GPU_Detail.png

And I agree, this is dangerous for production and it's very annoying.

Same problem here. CPU Only: ![CPU_Only.png](/attachments/b1793d43-c69d-4f2d-997e-941a58bb0195) GPU Only: ![GPU_Only.png](/attachments/1c898c0c-808c-4e40-abad-be0a4dd3fbed) CPU + GPU (Mixes the results of both): ![CPU+GPU.png](/attachments/dca740e2-e132-4191-8ef5-167f514bbc41) CPU+GPU Detail: ![CPU+GPU_Detail.png](/attachments/dff03344-f6c3-411a-b2b8-c4fb08f8f1d1) And I agree, this is dangerous for production and it's very annoying.
Member

I don't see this bug assigned to anyone, so I'll mention @brecht because I think it's mainly related to Cycles and the Point Cloud implementation :)

I don't see this bug assigned to anyone, so I'll mention @brecht because I think it's mainly related to Cycles and the Point Cloud implementation :)
Blender Bot added
Status
Resolved
and removed
Status
Confirmed
labels 2023-07-07 20:15:47 +02: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
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#103918
No description provided.