Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Particle Jitter works only for the first frame #435

Closed
PavelBlend opened this issue Mar 23, 2019 · 2 comments
Closed

Particle Jitter works only for the first frame #435

PavelBlend opened this issue Mar 23, 2019 · 2 comments

Comments

@PavelBlend
Copy link

System Information

Blender Version: 2.79b f4dc9f9d68b
FLIP Fluids Version: 9.0.5.3
Operating System: Windows 7 64 bit
CPU: AMD A8 5600K 3.60 GHz
GFX: -
RAM: 8 GB

Describe the bug

Particle Jitter works only for the first frame.

To Reproduce

Start baking this scene:
particle_jitter.zip

Expected Behaviour

It is necessary that the born particles have a random position.

Actual Behaviour

In the first frame, the particles are arranged randomly:
00

But in the subsequent frames there is no randomness:
01

@rlguy
Copy link
Owner

rlguy commented Mar 25, 2019

Hey PavelBlend,

Thanks for the report and .blend file! I was able to reproduce the issue.

This is caused by a side effect of how particles are added within a mesh:

  • Particles are only added to empty space within the object. This is to avoid adding extra particles that overlap other particles.
  • Particles are only jittered inside the mesh object. Particles that are closer to the surface are not jittered. This is to produce a smoother and less random/bumpy shape when meshing.

Here is an explanation for what is happening.

Frame 1: particles are added according to the above rules. While simulating the next frame, the top surface particles that are aligned to the grid (outlined in red) will move down according to gravity and inflow velocity.

frame1

Frame 2: Since the grid aligned particles have moved downwards, no new particles will be emitted in the red outlined area. So no jittered particles will be added.

frame2

Note: the 'Constrain Inflow Velocity' option will make the particles move downwards within the inflow very ordered and without much variation in motion. If you disable this option, particles move around more chaotically and you will have empty space and more jittered particles emitted:

jittered_unconstrained

Fixing this issue

To fix this issue and guarantee that all emitted particles are jittered, the surface particles should also be jittered. An option should be added to the Advanced Panel to set whether or not surface particles should be jittered.

I'll set this issue as a feature request for this option.

Hope this explains the issue well!

- Ryan

@rlguy
Copy link
Owner

rlguy commented Apr 8, 2019

I have added this as an option:

jitter_option

jitter_result

This will be included in the next version update.

@rlguy rlguy closed this as completed Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants