Rendering Heightmap using texture data - Printable Version
+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: Graphics & Audio Programming (/forum-9.html)
+--- Thread: Rendering Heightmap using texture data (/thread-10899.html)
Rendering Heightmap using texture data - ardowz - Feb 17, 2014 03:25 PM
I'm following this tutorial to render terrain: http://www.videotutorialsrock.com/opengl_tutorial/terrain/home.php
But I want to use a texture to create the heightmap so that I have the option of creating dynamic textures and dynamic heightmap rendering as well?
RE: Rendering Heightmap using texture data - SethWillits - Feb 19, 2014 12:25 PM
Do you have an actual question?
RE: Rendering Heightmap using texture data - ardowz - Feb 25, 2014 09:10 AM
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.
RE: Rendering Heightmap using texture data - SethWillits - Feb 25, 2014 10:25 AM
You can certainly do it, but it's not efficient so it's not a smart idea.
You'd be better off using a vertex shader to manipulate the vertices, either with some math or sample into a noise texture to get randomized values.
RE: Rendering Heightmap using texture data - mark89 - Nov 17, 2015 03:32 AM
I would replicate this format: http://www.overnightprints.co.uk/christmas-postcards
How could I do??