Testing Chris' new, compressed normalmaps (part 2)

Discussion forum for Celestia developers; topics may only be started by members of the developers group, but anyone can post replies.
neo albireo
Posts: 68
Joined: 03.02.2005
With us: 19 years 7 months
Location: Switzerland

Post #61by neo albireo » 27.12.2006, 16:26

ok, got it. i didn't understand the halfsize-part until now. i'll let my computer work while i'm eating dinner :)
thx!

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 5 months
Location: Hamburg, Germany

Post #62by t00fri » 27.12.2006, 16:27

neo albireo wrote:
t00fri wrote:Photoshop is of course OK, but e.g. the command-line tool nconvert (XnView distribution) is much more effective for .png conversion!
That's definitely true: It took my MacBook Pro 3 hours just for level5.


My God!

nconvert just takes a few minutes for the whole lot on my machine....
nconvert is an efficient batch program and works on whole directories at once!

Bye Fridger
Image

neo albireo
Posts: 68
Joined: 03.02.2005
With us: 19 years 7 months
Location: Switzerland

Post #63by neo albireo » 27.12.2006, 16:30

t00fri wrote:nconvert just takes a few minutes for the whole lot on my machine....
nconvert is an efficient batch program and works on whole directories at once!

Well, Photoshop routines work on whole directories as well, so i wasn't busy during that time, but I'll defintely have to try nconvert. Photoshop is not yet universal on Mac, so I can't really profit of my speedy processor with it.

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 5 months
Location: Hamburg, Germany

Post #64by t00fri » 27.12.2006, 16:40

Just for fun, I repeat here the command line that does the full job for level 5 VT tiles in ONE single step, including the gz-unpacking with gzip! MAC-OSX and Linux users have gzip available by default.

Here is the line for MAC-OSX . For other machines just add the byteswap=1 option in resc2pow2!

Code: Select all

gzip -dc <srtm_ramp2.world.86400x43200.bin.gz | resc2pow2 86400 | nmstiles 5 6378.14 65536 2.5


Follow this by the simple command

Code: Select all

nconvert -out png *.ppm

and you have your level 5 .png tiles ready before you finished dinner ;-)

It corresponds to a recommended exaggeration factor exag=2.5

Have fun!
Bye Fridger
Last edited by t00fri on 27.12.2006, 17:51, edited 1 time in total.
Image

neo albireo
Posts: 68
Joined: 03.02.2005
With us: 19 years 7 months
Location: Switzerland

Post #65by neo albireo » 27.12.2006, 17:32

t00fri wrote:
Follow this by the simple command

Code: Select all

nconvert -out png *.ppm

and you have your level 5 .png tiles ready before you finished dinner ;-)


:D

Dinner is in 1/2 hour, using nconvert I already completed levels 0-4, just level5 ahead. I'll stop time for level5...

neo albireo
Posts: 68
Joined: 03.02.2005
With us: 19 years 7 months
Location: Switzerland

Post #66by neo albireo » 27.12.2006, 17:57

... exactly 15 minutes with lots of other applications running.

And the result is great:
Even the small mountain (an ancient glacier ridge) next to my hometown Zurich has a shadow now :)

But now there's a need for good surface and spec maps ;)

And for a good dinner..

Thanks, Fridger!


Return to “Ideas & News”