hi,
I'd like to share my method to this problem.
For image:
1. map the image to a quad in the world coordinate;
2. go through the pixels of the image, if the gray value of the pixel is >= the threshold,
translate the pixel coordinate to the corresponding world coordinate,
and push the world coordinate to a vector;
3. generate a vector index at random, get the corresponding world coordinate,
set the particle position to this world coordinate like what the generatePosition() function does;
For Text:
1. generate the image of the text;
2. use the same way of the image;
Here is a snapshot:
https://servimg.com/view/16884121/2https://servimg.com/view/16884121/3[img][/img]
[img][/img]