Game Development Community

default.png not being shown - any special requirements?

by Enrico Falk · in iTorque 2D · 05/15/2009 (3:14 am) · 7 replies

Hi everbody,

I tried to replace the defualt.png -showing the itgb logo- with a loading screen. When I start the Game the screen just stays black while it loads and then switches directly to the logos loaded with torquescript.

Earlier I replaced the horizontal iTGB with the vertical one and it worked.

Our loading Screen is about 160 kb, it is assembled and saved using photoshop cs3.
What do I have to do to get this file in the right format to be correctly displayed?

#1
05/15/2009 (4:42 am)
Make sure it's spelled 100% correctly. "Default.png", capital D. I recommend crunching the crap out of PNGs with pngout-darwin also.

I think iPhone OS is very picky about the size, so make sure it really is 320x480 or 480x320.
#2
05/15/2009 (6:31 am)
Hey Ronny, thank you!
I really was missing the capital D, I guess that did it.
Running pngout probably didn't hurt either ;)
#3
05/15/2009 (8:02 am)
what does pngout do?
#4
05/15/2009 (8:07 am)
pngout is a program that can further compress the size of your png textures. i used it for a while, but its a pay program.

i would recommend you get png gauntlet instead. its free and does the exact same thing as png out. if you use the program for every png texture in your game you will knock the file sizes for all your png textures by 10-30 percent.
#5
05/15/2009 (8:15 am)
I'd rather have my PNG's uncompressed because that way the load/decompress time is faster and their already compressed inside the zip distribution. What's the reasoning to compress them further? You trying to stay under 10meg and having problems?
#6
05/15/2009 (9:38 am)
Hmmm. Well, when i use png gauntlet it just cuts the file size down. I dont know that is actually doing anything to compress it so that it has to be decompressed later. i could be wrong, but that was my understanding of what pngout and png gauntlet do

also, it helps for loading times, iPhone memory and yes, the 10 meg limit to do this to your pngs.


#7
05/15/2009 (11:58 am)
The pngout-darwin I use (note the name) is not a pay program. Not at all :)

The port is here.

The difference from pngcrush and other typical utilities is that it also compresses with an optimised variant of the zlib compression from PNG. Different compressor, but decompressor-compatible with everything existing. It also removes unneeded headers as usual for these tools. I haven't found cases where it's worse than pngcrush, and it's usually better. Overall savings of another 20% of over pngcrush.

ZIP does not help for PNGs. ZIP uses Zlib compression. PNGs are already Zlib compressed anyway. Comrpessing twice does not give you any gain, and ZIP archives are not solid archives. Each file is compressed on its own, so there's overhead (which is also compressed, resulting in data which compresses badly).