Distribute particles based on de vaucouleur's law
No.12409521 ViewReplyOriginalReport
Quoted By: >>12409806 >>12409886 >>12410928
hey guys,
I just started coding with unity and I want to create a realistic galaxy using the density have theory (https://en.wikipedia.org/wiki/Density_wave_theory)
So the easy part is done (pic related), I can change the shape of the galaxy using some parameters such as the angle step for each orbit, eccentricity etc...
Now is the funny part, I want to distribute the stars randomly into the galaxy, using de vaucouler's law (https://en.wikipedia.org/wiki/De_Vaucouleurs%27s_law)
As far as is understand, the equation is telling us how bright is a point at distance R from the center of the galaxy
I could use the equation to randomly distribute the stars around the galaxy center, but this would result to a round and boring galaxy
I need to find a way to distribute more stars around the arms and less inbetween, but I have no clue how
Hope you guys can help me
I just started coding with unity and I want to create a realistic galaxy using the density have theory (https://en.wikipedia.org/wiki/Density_wave_theory)
So the easy part is done (pic related), I can change the shape of the galaxy using some parameters such as the angle step for each orbit, eccentricity etc...
Now is the funny part, I want to distribute the stars randomly into the galaxy, using de vaucouler's law (https://en.wikipedia.org/wiki/De_Vaucouleurs%27s_law)
As far as is understand, the equation is telling us how bright is a point at distance R from the center of the galaxy
I could use the equation to randomly distribute the stars around the galaxy center, but this would result to a round and boring galaxy
I need to find a way to distribute more stars around the arms and less inbetween, but I have no clue how
Hope you guys can help me
