Post #224by cartrite » 26.05.2007, 23:26
Fridger,
The tools worked like clockwork.
Truly amazing!!!
A strange thing happened though. I created a simple script as follows.
Code: Select all
#!/bin/sh
halfsize 65536 < srtm_ramp2.world.64k.bin > srtm_ramp2.world.32k.bin
halfsize 32768 < srtm_ramp2.world.32k.bin > srtm_ramp2.world.16k.bin
halfsize 16384 < srtm_ramp2.world.16k.bin > srtm_ramp2.world.8k.bin
halfsize 8192 < srtm_ramp2.world.8k.bin > srtm_ramp2.world.4k.bin
halfsize 4096 < srtm_ramp2.world.4k.bin > srtm_ramp2.world.2k.bin
cd /home/cartrite/level5
mv /home/cartrite/share/celestia/tools/srtm_ramp2.world.64k.bin /home/cartrite/level5/
nmstiles 5 6378.14 65536 1.5 < srtm_ramp2.world.64k.bin
cd /home/cartrite/level4
mv /home/cartrite/share/celestia/tools/srtm_ramp2.world.32k.bin /home/cartrite/level4/
nmstiles 4 6378.14 32768 1.5 < srtm_ramp2.world.32k.bin
cd /home/cartrite/level3
mv /home/cartrite/share/celestia/tools/srtm_ramp2.world.16k.bin /home/cartrite/level3/
nmstiles 3 6378.14 16384 1.5 < srtm_ramp2.world.16k.bin
cd /home/cartrite/level2
mv /home/cartrite/share/celestia/tools/srtm_ramp2.world.8k.bin /home/cartrite/level2/
nmstiles 2 6378.14 8192 1.5 < srtm_ramp2.world.8k.bin
cd /home/cartrite/level1
mv /home/cartrite/share/celestia/tools/srtm_ramp2.world.4k.bin /home/cartrite/level1/
nmstiles 1 6378.14 4096 1.5 < srtm_ramp2.world.4k.bin
cd /home/cartrite/level0
mv /home/cartrite/share/celestia/tools/srtm_ramp2.world.2k.bin /home/cartrite/level0/
nmstiles 0 6378.14 2048 1.5 < srtm_ramp2.world.2k.bin
The strange thing that happened was that I opened the level5 folder and ppm files were being written while halfsize was still running on the 32k to 16k. The terminal was outputting the file names of the level5 ppm files while halfsize was still running. In fact all the ppm files were finished and the terminal was still outputting level5 file names. When it got to level4 and all the lower levels, there was a pseudo error generated on the terminal screen saying that the 32k file did not exist.
I believe all this mayhem may have been due to something called Native Command Queuing. The sata drive I installed Suse 10.2 on supports that technology.
Thanks for all your efforts and thanks to all that helped you.
cartrite
VivoBook_ASUSLaptop X712JA_S712JA Intel(R) UHD Graphics 8gb ram. Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz, 1190 Mhz, 4 Core(s), 8 Logical Processor(s) 8 GB ram. Running on Windows 11 and OpenSuse 15.4