Rendering Heightmap using texture data
I'm following this tutorial to render terrain: http://www.videotutorialsrock.com/opengl...n/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?
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?
Ok.
Do you have an actual question?
Do you have an actual question?
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.
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.
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.
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.
I would replicate this format: http://www.overnightprints.co.uk/christmas-postcards
How could I do??
How could I do??
Possibly Related Threads...
Thread: | Author | Replies: | Views: | Last Post | |
FBO rendering to GL_ALPHA texture | Fenris | 11 | 10,335 |
Jun 4, 2009 03:18 PM Last Post: Fenris |
|
surface rendering from data points | mc1961 | 6 | 8,238 |
Nov 15, 2007 03:37 PM Last Post: TomorrowPlusX |
|
glOrtho setup for rendering "impostors" into a texture. | TomorrowPlusX | 22 | 17,033 |
May 22, 2006 07:21 AM Last Post: TomorrowPlusX |
|
Heightmap format? | kelvin | 6 | 6,332 |
Mar 24, 2005 02:40 PM Last Post: arekkusu |
|
Roads in a 3D Heightmap | Jake | 11 | 10,694 |
Nov 15, 2004 04:51 PM Last Post: Jake |