Instancing Geometry on Imported Alembic Particles produces extremely long render times when motion blur is enabled. #109185

Open
opened 2023-06-21 05:00:31 +02:00 by ben-webber · 17 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.98

Blender Version
Broken: version: 3.5.1 Release Candidate, commit date: 2023-04-03 16:00, hash: ef7e83c7ff15
Worked: (newest version of Blender that worked as expected)

Short description of error
Instancing geometry on Imported animated Alembic Particles using geometry nodes produces extremely long render times when motion blur is enabled. Turning off motion blur or realizing instances reduces the render time back to its normal average length.

Exact steps for others to reproduce the error

**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 535.98 **Blender Version** Broken: version: 3.5.1 Release Candidate, commit date: 2023-04-03 16:00, hash: `ef7e83c7ff15` Worked: (newest version of Blender that worked as expected) **Short description of error** Instancing geometry on Imported animated Alembic Particles using geometry nodes produces extremely long render times when motion blur is enabled. Turning off motion blur or realizing instances reduces the render time back to its normal average length. **Exact steps for others to reproduce the error**
ben-webber added the
Status
Needs Triage
Type
Report
Severity
Normal
labels 2023-06-21 05:00:32 +02:00
Member

Hi @ben-webber , could you provide us a blend/alembic file that can replicate the issue? Thanks!

Hi @ben-webber , could you provide us a blend/alembic file that can replicate the issue? Thanks!
YimingWu added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-06-21 05:04:34 +02:00
Author

Hi @ben-webber , could you provide us a blend/alembic file that can replicate the issue? Thanks!

Is there an upload limit? The alembic is about 150mb

> Hi @ben-webber , could you provide us a blend/alembic file that can replicate the issue? Thanks! Is there an upload limit? The alembic is about 150mb
Member

@ben-webber Could you try trimming it down a bit? Or you could also use google drive or something.

@ben-webber Could you try trimming it down a bit? Or you could also use google drive or something.
Author

Blender

Blender
Author

alembic is uploading to google drive

alembic is uploading to google drive
Author
https://drive.google.com/file/d/1yuBvgwM2S4ATIdgaLDaQB238YelxGtB8/view?usp=sharing
Thomas Dinges added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-08-11 12:33:25 +02:00
Member

So the .abc provides a .velocities Property (checked with abcls), but still MB seems quite random and with long streaks -- which kind of explains the long rendertimes:

image

So the .abc provides a .velocities Property (checked with abcls), but still MB seems quite random and with long streaks -- which kind of explains the long rendertimes: ![image](/attachments/a9913788-3588-4c2b-846b-a043b2dda83b)
1.3 MiB
Member

So apparently the velocity vectors are not supposed to be transferred to instances (known limitation for now), but another possibility would be to render points directly (MB is supposed to work then).

Cant get this to work though, will check again tomorrow

So apparently the velocity vectors are not supposed to be transferred to instances (known limitation for now), but another possibility would be to render points directly (MB is supposed to work then). Cant get this to work though, will check again tomorrow
Member

OK, so after some digging I can verify that

  • alembic can read .velocities (even on varying point count)
  • (in order to properly export .velocities from blender you have to set up a Geometry Nodetree storing a Named Attribute called "velocity" -- check on the Internet on how to do this, also see
    128eb6cbe9)
  • HOWEVER: this is only supported for meshes for some reason, not points

I will quickly check if adding this is straightforward (if not this might get closed as a Known Limitation I am afraid)

OK, so after some digging I can verify that - alembic can read `.velocities` (even on varying point count) - (in order to properly export `.velocities` from blender you have to set up a Geometry Nodetree storing a Named Attribute called "velocity" -- check on the Internet on how to do this, also see 128eb6cbe928e58dfee1c64f340fd8d663134c26) - HOWEVER: this is only supported for meshes for some reason, not points I will quickly check if adding this is straightforward (if not this might get closed as a Known Limitation I am afraid)

This is a very long standing issue and I guess @kevindietrich already invested a lot of work in this.
Maybe it would be best to contact him about this.

This is a **very** long standing issue and I guess @kevindietrich already invested a lot of work in this. Maybe it would be best to contact him about this.
Member

This is a very long standing issue and I guess @kevindietrich already invested a lot of work in this.
Maybe it would be best to contact him about this.

I dont mean transferring the velocities to instances, I will look into just reading the velocities for points (in order to render points directly)

> This is a **very** long standing issue and I guess @kevindietrich already invested a lot of work in this. > Maybe it would be best to contact him about this. I dont mean transferring the velocities to instances, I will look into just reading the velocities for points (in order to render points directly)

I also didn't mean the transfer but only the import / export of velocity (or even arbitrary attributes) on points.

#95945 (comment)

I also didn't mean the transfer but only the import / export of velocity (or even arbitrary attributes) on points. https://projects.blender.org/blender/blender/issues/95945#issuecomment-150358
Member

So velocity wasnt that hard, not sure if this will be considered outside of https://archive.blender.org/developer/D11591
(can post a patch for this shortly)

image

So velocity wasnt that hard, not sure if this will be considered outside of https://archive.blender.org/developer/D11591 (can post a patch for this shortly) ![image](/attachments/ea838458-37bf-4e0a-acf7-ac21787b42f6)
1.1 MiB
Member

Patch is up in !116749

Patch is up in !116749

Beautiful. Finally some movement.
Does this mean, you can commit it already?

image

Beautiful. Finally some movement. Does this mean, you can commit it already? ![image](/attachments/ffd77eeb-c996-4ea3-a0dc-e49ea82a76a5)
5.7 KiB
Member

Committed 472cf44166 now, so velocities are now read for points, you can render them directly with Cycles (as mathematical spheres).

The lack of propagating these to instances is still here though, so motionblur for them (on changing pointcounts) is still unreliable/wrong and can have high rendertimes (because their motion boundingboxes can be very large).

@brecht : do we want to keep this as Known Limitation?

Committed 472cf44166aff98c0cf481cc063406be4b0aa79c now, so velocities are now read for points, you can render them directly with Cycles (as mathematical spheres). The lack of propagating these to instances is still here though, so motionblur for them (on changing pointcounts) is still unreliable/wrong and can have high rendertimes (because their motion boundingboxes can be very large). @brecht : do we want to keep this as Known Limitation?

Yes, known issue makes sense.

Yes, known issue makes sense.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Code Documentation
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#109185
No description provided.