PDA

View Full Version : Generating Textureless Terrain Height Data From Heightmap



Glynbeard
05-31-2012, 01:46 PM
Hello,

Lately I've been playing around with webGl and I stumbled across a cool little demo: http://codeflow.org/entries/2011/nov/10/webgl-gpu-landscaping-and-erosion/(source code: https://github.com/pyalot/craftscape) that I'd like to alter slightly to get some cool results.

I'm interested in changing the way the terrain is generated. Instead of layering 10 octaves of simplex noise (located in simplex3d.shader if you are looking through the code), I'd like to simply pull elevation data from a loaded heightmap.

I've spent a few days trying different things to no avail and I'm having trouble finding any more applicable resources online.

Any help would be greatly appreciated!