Pardon my ill formed question, I was wondering if I could use the same concept to render the terrain using a dynamic height map created in runtime rather than pointing to a file.

I ended up using libnoise to generate my dynamic height map but it still is rather slow. I'm trying to create an ocean, that is why I wanted a dynamic hight map which would behave the same as the waves.