I am implementing volumetric cloud rendering.
So I need to generate a lot of particles in shape of a cloud.
Right now I am using this formula:
for I:=1 To ParticleCount Do
Points := VectorCreate( Random(-Radius, Radius), Random(-Radius, Radius), Random(-Radius, Radius));
Basically, it picks 3 random coords inside the defined Cloud radius range,
The problem is, clouds generated with this formula look like cubes instead of spheres.
I tried looking in google for ways to generate points in a sphere, but I could only find ways to generate points in the surface of a sphere, not in the full volume.
Any suggestions for how to change the formula to produce spheres instead of cubes?
Once I can generate spheres I can approximate a cloud shape by using many spheres.
But if there is a better method to generate a cloud shape, tell me :)