Terrain Generation - (Fanning)
Today was probably the most interesting day in the world of working on my terrain engine. I figured out alot of stuff and fixed some bugs. If you ever come accross this

this is probably caused due to your heightmap not conforming to n^2+1 which means that if you want a heightmap of
512x512 your heightmap should be 513x513. The reason? The reason is that you have 513x513 vertices on each side and 512x512 primitives.