Rendering Heightmap using texture data

Apprentice
Posts: 11
Joined: 2013.10
Post: #1
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?
Quote this message in a reply
⌘-R in Chief
Posts: 1,254
Joined: 2002.05
Post: #2
Ok.


Do you have an actual question?
Quote this message in a reply
Apprentice
Posts: 11
Joined: 2013.10
Post: #3
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.
Quote this message in a reply
⌘-R in Chief
Posts: 1,254
Joined: 2002.05
Post: #4
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.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  FBO rendering to GL_ALPHA texture Fenris 11 5,871 Jun 4, 2009 03:18 PM
Last Post: Fenris
  surface rendering from data points mc1961 6 4,969 Nov 15, 2007 03:37 PM
Last Post: TomorrowPlusX
  glOrtho setup for rendering "impostors" into a texture. TomorrowPlusX 22 8,864 May 22, 2006 07:21 AM
Last Post: TomorrowPlusX
  Heightmap format? kelvin 6 3,707 Mar 24, 2005 02:40 PM
Last Post: arekkusu
  Roads in a 3D Heightmap Jake 11 5,540 Nov 15, 2004 04:51 PM
Last Post: Jake