Monday, April 7, 2008

First graphic output


I used jMonkey engine to produce my first output (see above). Turns out these guys have a handy class painting terrain out of height map. I also used their pattern to give the terrain some hint of color.
Learned a few interesting things and probably going to learn some more because the jME class for terrains insist on having the map in single-dimensional array of integers as opposite to 2-dimensional array of floats, while the latter seemed the obvious choice to me.
It also takes some time (1-2 seconds) for jMe to prepare and display 128x128 height map. While such map is rather large, I'll spend some time profiling the code.

No comments: