three.js - WebGL Heightmap from array? -


anyone happen know of example or can point me in right direction on rendering heightmap/terrain in webgl 3 dimensional array? have array contains data relevant x , y coordinates , 'height' (z axis).

everything i've found (like in threejs world) shows how create 1 dynamically or 2d image. ideally i'd have color of pixel/particle related height. looking below in webgl:

enter image description here

there many examples on how available.
can search three.js + heigthmap. or try three.js + 3d graph.

here called "graphulus-function" looks pretty need.

here can find interesting reference.

without more details on data hard if these examples suit needs...

check this three.js issue 1003 on github: "terrain heightmap" there discussion topic , lots of great examples mentioned.


Comments