<p>I am trying to create some procedurally created terrains for which i need to create noise maps. How do I create a texture of noise map in OpenGL and then pass that in my vertex shader as a heightMap? 
I know the algorithms to create noises, like Perlin or Simplex, but no idea how to put this data into a texture.</p>

CC BY-SA 4.0
2020-05-16T17:50:03.163Z
"*no idea how to put this data into a texture.*" Um, why not? It's just bytes that represent values.
Nicol Bolas
CC BY-SA 4.0
2020-05-25T09:27:57.217Z
Maybe you should elaborate on what exactly you are struggling with (maybe some code examples). Assuming you know how to create the noise field and how to upload and use a texture in OpenGL, then it is hard to tell what your problem is since it is not really that difficult.
wychmaster
<opengl><texture><procedural-generation>
Custom Create Maps in OpenGL
Anon258
# Custom Create Maps in OpenGL

(Asked by: username_0 on 2020-05-16)

I am trying to create some procedurally created terrains for which i need to create noise maps. How do I create a texture of noise map in OpenGL and then pass that in my vertex shader as a heightMap?
I know the algorithms to create noises, like Perlin or Simplex, but no idea how to put this data into a texture.

**Tags:** opengl, texture, procedural-generation

> **Comments:**
> **username_1**: "*no idea how to put this data into a texture.*" Um, why not? It's just bytes that represent values.  
> **username_2**: Maybe you should elaborate on what exactly you are struggling with (maybe some code examples). Assuming you know how to create the noise field and how to upload and use a texture in OpenGL, then it is hard to tell what your problem is since it is not really that difficult.  

---

## 0 answers

