Change:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC --bits-per-pixel-2 -o left.pvrtc left.jpg
To:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC --bits-per-pixel-2 -o left.pvr left.PNG
The file must be a PNG
Updated instructions on OSX 10.10+
In Terminal, hit cd
to make sure you're in your root directory.
cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ && ls
This should show you a list of all the tools there (Make sure you see texturetool
) - If you don't, update your OS, then Xcode
Once you know it's there, cd
back to your root and run the tool like:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC --bits-per-pixel-2 -f PVR -o [new path to pvr to go] [path of original png]
Your output pvr
path can be ~/whatever/image.pvr
and your input png
is the path to your image to be converted.
HERE and HERE are other good walkthrough
The iPhone SDK
includes a tool that allows you to create textures in the PVRTC compression format, aptly named texturetool
. If you have Xcode installed with the iPhone OS 2.2 SDK in the default location (/Developer/Platforms/), then texturetool
is located at: /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool
.
texturetool
allows you to create four variants of PVRTC
data, the primary difference being tradeoffs between quality and size. You will have to experiment with these variants to determine which setting is the best compromise for each individual texture image.
HERE is some same code to help once you have your pvrtc
file
HERE are some more docs
HERE is a good read on PVRTC
stuff