Creating PVR file using texturetool for iPhone dev
To create a 2 bits per pixel of PVR file as a mipmap, then issue this command
To create a 4 bit, just use --bits-per-pixel-4 instead of --bits-per-pixel-2.
Brick_2.pvr is the output of the file, then test.png is your file that is height and width of your image file are equivalent in numbers of pixels.
If not a mipmap file, then just remove the -m like,
Hope this helps.
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC --bits-per-pixel-2 -f PVR -o Brick_2.pvr test.png
To create a 4 bit, just use --bits-per-pixel-4 instead of --bits-per-pixel-2.
Brick_2.pvr is the output of the file, then test.png is your file that is height and width of your image file are equivalent in numbers of pixels.
If not a mipmap file, then just remove the -m like,
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/texturetool -e PVRTC --bits-per-pixel-2 -f PVR -o Brick_2.pvr test.png
Hope this helps.
Comments