a fast method to create a pnmimage from a perlinnoise
a implementation of perlinnoise to pnmimage could make python usage of perlinnoise much more useful.
eighter a function that does something like:
class TerrainGenerator:
def __init__(self):
# create the perlinnoise functions
seed = 2
self.noiseDict = dict()
for scale in [1,2,4,
noise = PerlinNoise2(
self.
def getHeight(self, x, y):
x = x/5000.
y = -y/5000.
height = 0
for scale, func in self.noiseDict.
height += func.noise(x,y) * float(scale)
return (height + 1.) / 4.
or a method to convert a noise into a image, and image functions which allow adding.
dummy code:
pnmImg1 = perlin2pnm(
newImg = pnmImg1*
actually method 2 would be more useful (but slower)
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by