Wrong particle distribution #71731

Open
opened 2019-11-21 14:50:54 +01:00 by Julian Schmidt · 7 comments

System Information
Operating system: Ubuntu 18.04 LTS
Graphics card: NVidia Quadro K2000D

Blender Version
version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f5449, type: Release

Short description of error
The density of randomly generated particles inside of a deformed mesh is not uniform.

This behaviour is unwanted for a random distribution and leads to visual artifacts as well as inconsistencies in simulations. ('even distribution' does not solve this, the distribution probably has to be normalized on the actual mesh volume)

Exact steps for others to reproduce the error
Set up a particle system in a cube volume and set the distribution to 'random' and generate all particles in the first frame. Take one edge of the cube pointing in z-direction and pull it further away. Press 7 on the numpad to see the effect in the distribution. The effect becomes prominent with around 5000 particles.

This is the top view of a cube with one vertical edge dragged out:

image.png

#71731-particleVolume.blend

**System Information** Operating system: Ubuntu 18.04 LTS Graphics card: NVidia Quadro K2000D **Blender Version** version: 2.80 (sub 75), branch: master, commit date: 2019-07-29 14:47, hash: f6cb5f54494e, type: Release **Short description of error** The density of randomly generated particles inside of a deformed mesh is not uniform. This behaviour is unwanted for a random distribution and leads to visual artifacts as well as inconsistencies in simulations. ('even distribution' does not solve this, the distribution probably has to be normalized on the actual mesh volume) **Exact steps for others to reproduce the error** Set up a particle system in a cube volume and set the distribution to 'random' and generate all particles in the first frame. Take one edge of the cube pointing in z-direction and pull it further away. Press 7 on the numpad to see the effect in the distribution. The effect becomes prominent with around 5000 particles. This is the top view of a cube with one vertical edge dragged out: ![image.png](https://archive.blender.org/developer/F8289972/image.png) [#71731-particleVolume.blend](https://archive.blender.org/developer/F8290012/T71731-particleVolume.blend)
Author

Added subscriber: @singularity

Added subscriber: @singularity

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

@singularity wrote in the original report:
The density of randomly generated particles inside of a deformed mesh is not homogeneous/even and therefore not random.

That's not strictly true. You can have various distribution functions that produce clumped-up particles that are still random. It's not uniformly random, I'll certainly give you that ;-)

2.79 also seems to suffer from this, albeit less pronounced:

image.png

> @singularity wrote in the original report: > The density of randomly generated particles inside of a deformed mesh is not homogeneous/even and therefore not random. That's not strictly true. You can have various distribution functions that produce clumped-up particles that are still random. It's not *uniformly* random, I'll certainly give you that ;-) 2.79 also seems to suffer from this, albeit less pronounced: ![image.png](https://archive.blender.org/developer/F8290021/image.png)

Added subscriber: @Forest1

Added subscriber: @Forest1

Hey! I'm a beginner, and I'm trying to work on this. I think I understand what needs to be done, but I can't seem to find where grid_res of the ParticleSettings is being computed. Could anyone guide me on the same?

Hey! I'm a beginner, and I'm trying to work on this. I think I understand what needs to be done, but I can't seem to find where grid_res of the ParticleSettings is being computed. Could anyone guide me on the same?

Hi @Forest1, thanks for helping out here. It's probably more useful for you to pop over to https://blender.chat/channel/blender-coders and ask around there. Your question(s) will be seen by more people, who will be able to help you better than the few who are subscribed to this particular report.

Hi @Forest1, thanks for helping out here. It's probably more useful for you to pop over to https://blender.chat/channel/blender-coders and ask around there. Your question(s) will be seen by more people, who will be able to help you better than the few who are subscribed to this particular report.

@dr.sybren A. Stüvel (sybren) Sure, I will do that. Thanks for the tip!!

@dr.sybren A. Stüvel (sybren) Sure, I will do that. Thanks for the tip!!
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:47:10 +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#71731
No description provided.