Python Cloud generation with Pyglet and Perlin Noise.
This works with Perlin Noise. It simply passes the X and Y coordinates through Perlin Noise. It takes this, and fades the clouds out from the edge.
Clouds are generated in chunks, each in a separate thread.
If you need to change settings there is a Config.py
file:
- CloudHeight: The max height of the clouds to generate.
- CloudWidth: The width of each 'Cloud chunk'.
- PixelSize: The size of each pixel. A higher value means better rendering but lower quality clouds.
- NoiseOffset: The amount to add to noise. Higher value means more and denser clouds.
- Seed: The seed to generate the clouds from.
- Framerate: The framerate to run the demo at.