db&w Support Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 30, 2010, 07:55:36 AM
2550 Posts in 478 Topics by 864 Members
Latest Member: Alan Edwards
Home Help Search Calendar Login Register
db&w Support Forum  |  infiniMap  |  General infiniMap Discussion  |  Trying to use Infinimap 0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Trying to use Infinimap  (Read 2378 times)
Tony Gardner
Pixlet
*
Offline Offline

Posts: 2


Trying to use Infinimap
« on: March 27, 2009, 05:37:15 PM »

I brought Infinimap a while back but haven't really got round to using it untill now.

I thought I would start out with the obvious Earth model, and so I downloaded the srtm_ramp2.world.86400x43200.bin file and used the nmtools nms command to turn it into a png image.

I tried loading this png into the Infinmap converter but it won't load it, there is no error message, a windoe flashes up on screen briefly (to quick to read) but nothing happens.

Last time I tried this I had to reduce the .bin file in size repeatedly and keep converting to .pngs untill I found at 32k size Infinmap would load it.

Is Infinimap limited to what file sizes it can work with or is this a problem with my PC?

I've got 2GB RAM, and LW 9.6

Any help would be appreciated

Logged
lightwolf
infiniMap / exrTrader / shaderMeister developer
Administrator
*****
Offline Offline

Posts: 1273


Obfuscated SDK Hacker


WWW
Re: Trying to use Infinimap
« Reply #1 on: March 28, 2009, 01:35:31 AM »

Hello Tony,
I thought I would start out with the obvious Earth model, and so I downloaded the srtm_ramp2.world.86400x43200.bin file and used the nmtools nms command to turn it into a png image.

I tried loading this png into the Infinmap converter but it won't load it, there is no error message, a windoe flashes up on screen briefly (to quick to read) but nothing happens.

Last time I tried this I had to reduce the .bin file in size repeatedly and keep converting to .pngs untill I found at 32k size Infinmap would load it.

Is Infinimap limited to what file sizes it can work with or is this a problem with my PC?
Well, in this case the limit would be a 2GB/4GB limit for PNG files, but I doubt that you're hitting it.
All conversions of images other than EXR or J2K as a source will need to generate a temp file though.
Basically, the image is read using the native LW image loaders, on a scanline by scanline basis, and then written to a temporary file (uncompressed!).
The temp file is then used as a source for the actual conversion process.

On a windows system the standard location for temporary files is used (open a command line and enter echo %temp% to see where it is located). If that disk doesn't have enough space, the conversion will fail.
It should actually display an error, but I'll check the code again.

I'm downloading the data you mentioned now, and will see if I can reproduce the issue and get back.

Cheers,
Mike
Logged

Optimism is an occupational hazard of programming: feedback is the treatment. (Kent Beck)

skype: lupus_lux
Visit us on facebook: http://www.facebook.com/dbw.finest.plugins
Tony Gardner
Pixlet
*
Offline Offline

Posts: 2


Re: Trying to use Infinimap
« Reply #2 on: March 29, 2009, 09:56:56 PM »

Thanks Mike,

Some further information which may be useful to you is...

The PNG file is 1.7GB
I looked in the temp file location whilst trying to run the file through the converter, no files files were visibly being created there.
I have 19.8GB Free space on my hard drive

If you want to IM me for any other useful info I'm on skype, username tonyjgardner

Thanks again for your help

Tony
Logged
lightwolf
infiniMap / exrTrader / shaderMeister developer
Administrator
*****
Offline Offline

Posts: 1273


Obfuscated SDK Hacker


WWW
Re: Trying to use Infinimap
« Reply #3 on: March 30, 2009, 01:11:49 PM »

Hi Tony,

I found the culprit... and it's the LW png loader which infiniMap uses directly.
Apparently it loads the whole file into memory before feeding it to LW (most loaders don't).
Can you convert the PNG to either a TGA or a TIFF using nconvert?

I've got native PNG support planned for the converter sometime in the future, but you shouldn't hold your breath.

Cheers,
Mike
Logged

Optimism is an occupational hazard of programming: feedback is the treatment. (Kent Beck)

skype: lupus_lux
Visit us on facebook: http://www.facebook.com/dbw.finest.plugins
lightwolf
infiniMap / exrTrader / shaderMeister developer
Administrator
*****
Offline Offline

Posts: 1273


Obfuscated SDK Hacker


WWW
Re: Trying to use Infinimap
« Reply #4 on: February 23, 2010, 01:32:30 PM »

Hi Tony,
I've got native PNG support planned for the converter sometime in the future, but you shouldn't hold your breath.
long time, no post. native PNG loading has been implemented now and is in beta for V1.6 (which is long overdue anyhow).

Cheers,
Mike
Logged

Optimism is an occupational hazard of programming: feedback is the treatment. (Kent Beck)

skype: lupus_lux
Visit us on facebook: http://www.facebook.com/dbw.finest.plugins
Pages: [1] Go Up Print 
« previous next »
Jump to: