[convertion] best image format

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
husqvarna
Posts: 39
Joined: Thu Mar 09, 2006 9:37 am

[convertion] best image format

Post by husqvarna »

Hello,

I have a big picture TIFF (200 MB) to display as texture in IrrSpintz.

IrrSpintz (or irrlicht) can not display tiff. So I try to convert the picture.

I try : JPEG, PNG, PSD etc... but I have a lot of different error.

- Compression unknown
- Greyscale not supported
- Could not create OpenGL texture mip maps.: « mémoire insuffisante » (not enough memory)

Memory insufficiency is strange because my computer have 2 Go of RAM!?

What’s the best method, programme etc… to convert to a format that IRRLICHT can read easily?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

If you have 200MB graphic file and add mip maps you can easily run across the 256 MB RAM of your gfx card. The actual limit of your graphic will be set by the resolution and color depth of your image. Because the card will hold your image uncompressed the file format won't help anything.
strale
Posts: 119
Joined: Wed Nov 23, 2005 1:58 pm
Location: Lambrugo Italy
Contact:

Post by strale »

Hi
i have got the same problem with NASA earth image .

i solved it thank a Guest/chillax help
(many thanks again :D )

take a look to this therad : 3d earth-World Map use the search or
http://irrlicht.sourceforge.net/phpBB2/ ... ight=earth

its not so difficult it only ll take you some time ...
but anyway

1) check if your tiff image is already a multi tiiff image
if not you have to split your 200Mb img into a multiimage

for this :
(http://www.tvgeo.com/user_guide/chapter_create.shtml )
find make_oi program to generate it
this program is in the tsmApi-2.3 utilities


2) include the libtiff library

tiff-win32-3.6.1-2-src.zip
then you can load the tiff tiles from your image.

But check the therad i told you before because there are more information.

My image was 40Mb hope it work also with 200MB

Bye
husqvarna
Posts: 39
Joined: Thu Mar 09, 2006 9:37 am

ok, but...

Post by husqvarna »

Ok, but it's funny because sometime I make a smaller JPEG image with Photoshop and it is not working! but the same image with IrfanView http://www.irfanview.com/ it's working, why?

Irrlicht have some preference about the format convertion?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I think that libjpeg does not support palettized (?) colors, i.e. colors defined in a color table - at least libpng does not. Color palettes save some space when saving images with less than 256 colors, but are seldomly used. Maybe Irfan view saves it always the usual way.
Post Reply