day 5 - Anyone got Perlin Noise?

Wow, day 5 went really badly. I spent the day paralysed by the looming deadline, trying to code a part of my program that I thought would be fast and easy to code but has turned out to be difficult; random functions. Perlin noise is really complicated for a stressed out brain! If anyone has a Perlin noise implementation in Python I would really appreciate knowing about it!

(log in to comment)

Comments

Erm, why don't you use the internal randoms? Is this Perlin-noise that much important for gameplay? Like:

import random
random.gauss(main, deviance)
random.randrange(a,b)

Cheers!
"""Perlin noise is a procedural texture desgined by Ken Perlin. It's (pseudo)random, it doesn't repeat. It's band-limited, so the texture has a sort of uniform "roughness", and there are no large-scale features when you look at it from afar. So it's pretty much the happenin' thing to use when you have stuff you don't want to look flat."""
http://twistedmatrix.com/users/acapnotic/wares/code/perlin/
Cool, thank you for the info! :)
Obviously there's some python code there, I hope it's useful.

Good luck!
--
alecu