I successfully use Perlin noise to create terrain, clouds, and a few other great things. However, I am now trying to revive a group of flying insects (in particular, fireflies), and I was asked to use Perlin's noise for this. However, I'm not quite sure how to do this.
The first thing that occurred to me was, given such a noise map:

- Assign each firefly a random starting location, speed and acceleration angular.
- In the frame, advance the position of the flies after its direction vector.
- Read the noise map in a new place and use it to adjust the angular acceleration, causing it to fly to βrotateβ to lighter pixels.
- Adjust angular acceleration in the vicinity of other flies to avoid congestion around local maxima.
However, this does not apply to cases where flies reach the edge of the map, or cases where they can end at only one point. The second case may not be big, but I'm not sure of a reliable way to make them rotate to avoid collisions with the edge of the map.
Suggestions? Textbooks or documents (in English, please)?
source share