[Mantaflow] Generating a huge number of particles as substeps increase #81968

Open
opened 2020-10-22 17:30:18 +02:00 by Pavel Blend · 10 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: AMD Radeon HD 7560D ATI Technologies Inc. 4.5.13399 Core Profile Context 15.201.1151.1008

Blender Version
Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: 3e85bb34d0
Worked: (newest version of Blender that worked as expected)

Short description of error
The number of particles increases as the number of substeps increases.

Exact steps for others to reproduce the error
Bake the liquid from this scene.
substeps_bug.blend
You will see the following:

particles_count.jpg

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: AMD Radeon HD 7560D ATI Technologies Inc. 4.5.13399 Core Profile Context 15.201.1151.1008 **Blender Version** Broken: version: 2.90.1, branch: master, commit date: 2020-09-23 06:43, hash: `3e85bb34d0` Worked: (newest version of Blender that worked as expected) **Short description of error** The number of particles increases as the number of substeps increases. **Exact steps for others to reproduce the error** Bake the liquid from this scene. [substeps_bug.blend](https://archive.blender.org/developer/F9036211/substeps_bug.blend) You will see the following: ![particles_count.jpg](https://archive.blender.org/developer/F9036216/particles_count.jpg)
Author

Added subscriber: @Pavel_Blend

Added subscriber: @Pavel_Blend

Added subscriber: @iss

Added subscriber: @iss

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

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

By "number of substeps" Do you mean timesteps?

I can confirm that, but I would think, that this is correct behavior - it will lead to smoother result.

By "number of substeps" Do you mean timesteps? I can confirm that, but I would think, that this is correct behavior - it will lead to smoother result.
Author

Yes, substeps are timesteps (I confused the terminology used in flip fluids).

I think timesteps shouldn't affect the number of particles. Timesteps should only affect precision. If you set timesteps to 64, then the simulator will generate too many particles that will be layered on top of each other. This amount of particles will be excessive. I think there is a bug in the simulator code that causes the simulator to emit particles at every step. The simulator should only emit particles if there are no other particles nearby.

Yes, substeps are timesteps (I confused the terminology used in flip fluids). I think timesteps shouldn't affect the number of particles. Timesteps should only affect precision. If you set timesteps to 64, then the simulator will generate too many particles that will be layered on top of each other. This amount of particles will be excessive. I think there is a bug in the simulator code that causes the simulator to emit particles at every step. The simulator should only emit particles if there are no other particles nearby.

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

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

Added subscriber: @sebbas

Added subscriber: @sebbas

I am really not sure. Behavior is consistent from 2.82 so this isn't regression.

@sebbas Should liquid sim with more timesteps procude more particles?

I am really not sure. Behavior is consistent from 2.82 so this isn't regression. @sebbas Should liquid sim with more timesteps procude more particles?
Author

How can I increase the accuracy of the simulator without increasing the number of particles? By precision, I mean calculating particle velocities using shorter time steps. For example, instead of 0.01 seconds per step, use 0.002 seconds, without increasing the number of particles.

How can I increase the accuracy of the simulator without increasing the number of particles? By precision, I mean calculating particle velocities using shorter time steps. For example, instead of 0.01 seconds per step, use 0.002 seconds, without increasing the number of particles.
Member

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

Changed status from 'Needs Triage' to: 'Needs Developer To Reproduce'
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:46:28 +01: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
3 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#81968
No description provided.