]> Pileus Git - grits/commit - src/gis-opengl.c
Add Shuttle Radar Topography Mission plugin and height code
authorAndy Spencer <andy753421@gmail.com>
Mon, 9 Nov 2009 13:24:54 +0000 (13:24 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 9 Nov 2009 13:24:54 +0000 (13:24 +0000)
commit82adb52036f7330bb6d47e354c24bcc13c34dd34
tree927f69c3227194f9a713112b62335eeef5c2f029
parentf510823bdc5b77fa0c5336ad608f13f251a0ada5
Add Shuttle Radar Topography Mission plugin and height code

For the most part, the SRTM plugin is simmilar to the BMNG plugin. The
loaders are more complicated because it generates both a bil (unsigned
short array) and a pixmap from the downloaded files.

Highmaps are in two parts when set_height_func is called with
update=TRUE, the heights of all the vertices for a given tile are
updated by calling height_func and using the returned value as the new
vertex height.

In addition to updating the vertex height immediately, the height
function is also stored in each vertex and used later during the
split-merge process.

The user_data passed with set_height_func could theoretically be used to
speed searching for the correct tile during the split-merge process, but
this is currently not done. (Each call to the srtm height function does
a search for the correct tile)
src/gis-opengl.c
src/gis-opengl.h
src/gis-tile.c
src/gis-tile.h
src/gis_test.c
src/plugins/srtm.c
src/plugins/srtm.h