Java LWJGL :: Heightmap Terrain Demo

Pubblicato il: 12 dicembre 2013
sul canale di: xSaucecode
2,113
9

Source available in description.
A small demonstration I whipped up that uses a heightmap to generate a grassy terrain, and bi-linear interpolation to get smooth walking across the terrain. The program generates a set of points in 3D space, which are then connected as quads and then textured.

This is also one of the few instances where I've had to store the terrain data in video memory by utilizing a display list.

The program is currently set to create a 1280x720 window (720p) so you might want to change that to whatever you want if you download this.

This program uses LWJGL for OpenGL calls and window management, and slick-utils for texture loading.

SOURCE & LINKS:
Source - https://drive.google.com/open?id=0B0O...
Commented Source - https://drive.google.com/open?id=0B0O...
LWJGL Website - http://lwjgl.org/
slick-utils.jar - http://slick.ninjacave.com/slick-util/
A Tired Corgi - http://i.imgur.com/PyBKUmu.jpg


In questa pagina del sito puoi guardare il video online Java LWJGL :: Heightmap Terrain Demo della durata di ore minuti seconda in buona qualità , che l'utente ha caricato xSaucecode 12 dicembre 2013, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,113 volte e gli è piaciuto 9 spettatori. Buona visione!