merpnderp / Planet

WebGL Planet Generator
3 stars 0 forks source link

Planet heightmaps #5

Open merpnderp opened 11 years ago

merpnderp commented 11 years ago

Do that whole "gpu noise to texture to heightmap to clipmap displacement" thingy, preferably with caching of generated metatextures.

How hard could it be?

merpnderp commented 11 years ago

This should be broken down into 1 or possibly 2 libraries.

There needs to be a library that will generate textures. So far there needs to be a heightmap, specular map, texture map, and normal map. There will also be a lot of game specific textures for determining placement of game elements and other interactive things.

Second there needs to be a caching system which will manage these textures. Something fairly simple which will take a max amount of memory to be used and then keep textures in memory based on dropping Least Used. Might even get fancy with some predictive prefetching on cycles when there's nothing to do.

Think about if this should be one or two libs and how they would be coupled.