Wow! Just today I could try the new nmtools, and I can only express my deepest thanks for making this available, Fridger. They work like charm on the BMNG altitude file, and the result is so excellent! I will have to make a set of base VT from the BMNG flats, now (I already downloaded July).
For Daniel, and anybody else that needs some help to use the console utilities, I will share the script I used today to prepare my set of tiles. It's not the fastest, probably, but it was fast to put together, and then go have a "milanesa napolitana".
It assumes that you have the file srtm_ramp2.world.86400x43200.bin.gz in the same folder. Also, gzip and the nvidia tools installed as Fridger explained (and a little endian cpu). The result of the script is a 64K normal VT in 5 levels of TileSize 1024, TileType "dxt5nm", exaggeration 2.5 "alla Fridger". You only need to put them into an appropriate VT structure, with a .ctx (and a .ssc if it were used as an AltSurface). Come on, Daniel, pipe your way through this!
Cheers, and congratulations again to Fridger.
Guillermo
This is BMNG-normal-level5.bat (it seems that the system keeps wrapping the lines at incorrect places. I don't know how to make it clear where the linebreaks should go, for inexperienced people. Let's say just that each block of instructions after the mkdir's should have 6 lines, starting with the commands cd, gzip, nvdxt, ren, del, cd):
Code: Select all
mkdir level5
mkdir level4
mkdir level3
mkdir level2
mkdir level1
mkdir level0
cd level5
gzip -dc < ..\srtm_ramp2.world.86400x43200.bin.gz | resc2pow2 86400 1 | nmstiles 5 6378.140 65536 2.5
nvdxt -quality_highest -file *.ppm -nomipmap -dxt5nm
ren *.dds *.dxt5nm
del /q *.ppm
cd ..
cd level4
gzip -dc < ..\srtm_ramp2.world.86400x43200.bin.gz | resc2pow2 86400 1 | halfsize 65536 | nmstiles 4 6378.140 32768 2.5
nvdxt -quality_highest -file *.ppm -nomipmap -dxt5nm
ren *.dds *.dxt5nm
del /q *.ppm
cd ..
cd level3
gzip -dc < ..\srtm_ramp2.world.86400x43200.bin.gz | resc2pow2 86400 1 | halfsize 65536 | halfsize 32768 | nmstiles 3 6378.140 16384 2.5
nvdxt -quality_highest -file *.ppm -nomipmap -dxt5nm
ren *.dds *.dxt5nm
del /q *.ppm
cd ..
cd level2
gzip -dc < ..\srtm_ramp2.world.86400x43200.bin.gz | resc2pow2 86400 1 | halfsize 65536 | halfsize 32768 | halfsize 16384 | nmstiles 2 6378.140 8192 2.5
nvdxt -quality_highest -file *.ppm -nomipmap -dxt5nm
ren *.dds *.dxt5nm
del /q *.ppm
cd ..
cd level1
gzip -dc < ..\srtm_ramp2.world.86400x43200.bin.gz | resc2pow2 86400 1 | halfsize 65536 | halfsize 32768 | halfsize 16384 | halfsize 8192 | nmstiles 1 6378.140 4096 2.5
nvdxt -quality_highest -file *.ppm -nomipmap -dxt5nm
ren *.dds *.dxt5nm
del /q *.ppm
cd ..
cd level0
gzip -dc < ..\srtm_ramp2.world.86400x43200.bin.gz | resc2pow2 86400 1 | halfsize 65536 | halfsize 32768 | halfsize 16384 | halfsize 8192 | halfsize 4096 | nmstiles 0 6378.140 2048 2.5
nvdxt -quality_highest -file *.ppm -nomipmap -dxt5nm
ren *.dds *.dxt5nm
del /q *.ppm
cd ..
echo Done!
echo Now put all the levels into a suitable virtual texture structure!