Particle system and drivers #79771

Closed
opened 2020-08-14 11:11:08 +02:00 by Victor · 10 comments

System Information
Operating system: Windows 10 version 10.0.19041
Graphics card: NVIDIA GeForce RTX 2080

Blender Version
2.83.2

Short description of error
When use a driver in a particle system the particle system doesn't react to driver value change

Exact steps for others to reproduce the error

  1. Create a particle system emitter
  2. Create a trigger object
  3. Add a custom property to the trigger object
  4. Relate the property with Velocity.Normal (var = Cube.["trigger"]) Expression: var*10
  5. Run animation
  6. Change the trigger property value to 0
  7. Velocity.Normal changed to 0 but particles are still emitted

Look at the attached example.

animation drivers.blend

**System Information** Operating system: Windows 10 version 10.0.19041 Graphics card: NVIDIA GeForce RTX 2080 **Blender Version** 2.83.2 **Short description of error** When use a driver in a particle system the particle system doesn't react to driver value change **Exact steps for others to reproduce the error** 1. Create a particle system emitter 2. Create a trigger object 3. Add a custom property to the trigger object 4. Relate the property with Velocity.Normal (var = Cube.["trigger"]) Expression: var*10 5. Run animation 6. Change the trigger property value to 0 7. Velocity.Normal changed to 0 but particles are still emitted Look at the attached example. [animation drivers.blend](https://archive.blender.org/developer/F8779778/animation_drivers.blend)
Author

Added subscriber: @3D_modelling

Added subscriber: @3D_modelling

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

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

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

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

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

@3D_modelling Could you please spend some time trimming down the example file? There are multiple objects that may or may not influence the result, there are multiple particle systems, and all of that is probably just noise.

I've tried to reproduce the issue with a smaller file, but there the particle system responds just fine to a driver. I tried with a file created in 2.79 as well as the current development version (master branch @ 948e080fc5).

minimal-example-279.blend
created-in-current-master.blend

@3D_modelling Could you please spend some time trimming down the example file? There are multiple objects that may or may not influence the result, there are multiple particle systems, and all of that is probably just noise. I've tried to reproduce the issue with a smaller file, but there the particle system responds just fine to a driver. I tried with a file created in 2.79 as well as the current development version (master branch @ 948e080fc5). [minimal-example-279.blend](https://archive.blender.org/developer/F8796795/minimal-example-279.blend) [created-in-current-master.blend](https://archive.blender.org/developer/F8796822/created-in-current-master.blend)
Author

@dr.sybren Thank you for the investigation.
Here my test in a blank file:
https://youtu.be/FQGD0ropJmY

Result file is attached. I use 2.83.2 on Windows 10

particle system and driver.blend

@dr.sybren Thank you for the investigation. Here my test in a blank file: https://youtu.be/FQGD0ropJmY Result file is attached. I use **2.83.2** on Windows 10 [particle system and driver.blend](https://archive.blender.org/developer/F8802772/particle_system_and_driver.blend)

Added subscriber: @Nikolaysungreen

Added subscriber: @Nikolaysungreen

There is no problem with the first pass. On the first pass, the particle system reacts to driver changes. But on the first pass of the animation, a cache is formed, which is not updated later if the driver changes.

There is no problem with the first pass. On the first pass, the particle system reacts to driver changes. But on the first pass of the animation, a cache is formed, which is not updated later if the driver changes.

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

Changed status from 'Needs User Info' to: 'Archived'
Sybren A. Stüvel self-assigned this 2020-09-03 17:58:15 +02:00

Ah, so the problem is not as described (driver not working), but the problem is that the cache system is caching too much?

The particle system's cache is only invalidated on manual changes, and not on changes of the driver's value -- Blender doesn't see the difference between "a driver changing value" and "a driver changing value but to a different value than it was the last time it played that frame".

The particle simulation system is marked "End of Life". This means that recently-introduced bugs may be fixed, but apart from that no changes are made.

Ah, so the problem is not as described (driver not working), but the problem is that the cache system is caching too much? The particle system's cache is only invalidated on manual changes, and not on changes of the driver's value -- Blender doesn't see the difference between "a driver changing value" and "a driver changing value but to a different value than it was the last time it played that frame". The particle simulation system is marked ["End of Life"](https://wiki.blender.org/wiki/Modules#Nodes_.26_Physics). This means that recently-introduced bugs may be fixed, but apart from that no changes are made.
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#79771
No description provided.