Particle spawning probality #3532
Replies: 4 comments
-
Can you post a screenshot of the settings of your particle emitter? :) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Well, I've made a particles engine myself before, and I may know what's happening here. Probably the circle spawner chooses a new particle location as anybody would do:
And although it seems right, the probability for a particule to be spawned in the most exterior ring (max_radius) is the same than the probability to be spawned in the most inner ring (min_radius), so you'll have approximately the same amount of particles in the outer ring and in the inner ring, the last has less radius hence you'll get a greater density of particles. To solve it we must reduce the probability for smaller radiuses and increase the probability for the outer ones. There are more than one way to solve it, and one that seems much faster than the one I used in my little engine 😮 |
Beta Was this translation helpful? Give feedback.
-
Hi there! |
Beta Was this translation helpful? Give feedback.
-
I wanted to create stars in the background of my game so I created a particles emitter which has a spray cone angle of 360 degrees and a screen width sized radius.
But, when the particles spawn, there is more particles in the center of the screen.
I made a screenshot of it:
Is there a way to prevent this?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions