Experiments with pngcrush & texturetool
by Ronald Ian Bantayan · in iTorque 2D · 04/02/2009 (4:37 pm) · 1 replies
Just found out that using pngcrush with the -iphone option changes your source PNG into something that's only readable by the iPhone/iTouch hardware itself. It rearranges the header and some of the chunks so that a regular picture viewer can't load it, and TGB crashes if you try to import a PNG file processed with pngcrush. Same with texturetool. texturetool is supposed to convert an imagefile into PVR format, useable by the PowerVR MBX chip residing in your iPhoneOS device. But importation into iTGB nets the same results. A crash.
Right now, the only utility that works for me is PNGCrusher, which is a GUI of OptiPNG. Simply drag a file onto the program icon. It optimized my splash screen PNG by around 75% (~110KB --> 24KB.)
Right now, the only utility that works for me is PNGCrusher, which is a GUI of OptiPNG. Simply drag a file onto the program icon. It optimized my splash screen PNG by around 75% (~110KB --> 24KB.)
Torque 3D Owner Ronny Bangsund
Torque Cheerleaders
PVRs will remain the same size in memory, so that is what we're hoping for. But since they are also using a reduced colourspace (only 16 bits for the whole pixel on iPhone/iPod touch), it would be beneficial to see the actual PVR data in iTGB's editor.