How to use .pvr texture that is generated by the PVRTexTool?
I generate pvr texture by iPhoneOS SDK texturetool and it works fine with Cocos.
But PVRTexTool generate much more quality PVR texture than Apple texturetool. But when I load it in my Cocos application, everything is white insted of texture image.
I think PVRTexTool genarates texture in few different format than Apple texturetool. Is it possible to overcome it?
How to use .pvr texture that is generated by the PVRTexTool?
(7 posts) (3 voices)-
Posted 2 years ago #
-
@trump-card: Did you get any further with this?
I'm just starting to look at using PVR's instead of PNG's, and would like the graphic artist I'm working with to be able to use PvrTexTool, as they could do all their work in Windows (they don't have a mac).
It sounds like it should work to me, but may require some mods... I have yet to try it though, but will hopefully tonight...
Here's a discussion on the Apple Forums that seems relevant:
http://discussions.apple.com/message.jspa?messageID=8965539#8965539
Thanks.... Any more info on this would be appreciated before I start digging in!
Posted 2 years ago # -
Note: The apple thread above mentions a sample that works supposedly...
http://developer.apple.com/iphone/library/samplecode/PVRTextureLoader/index.html
Posted 2 years ago # -
Hello bradparks!
I left the idea with pvr and use png instead.
Posted 2 years ago # -
@trump-card: thanks for getting back to me... I haven't had an opportunity yet to work this, but will hopefully tonight... I'll let you know if I find a workable solution!
Posted 2 years ago # -
I used the damage control tool (which was mentioned on another thread) on a 1.2MB it went to 750k using 565RGB and 430K using a 256 colour CLUT (Colour Look-up Table). All converted files where valid PNG's which worked on the iphone and simulator.
It did a pretty good job especially converting to an 8bit CLUT file and hardly any loss of colour. My graphics are a bit old school, I don't use hundreds of shades. It dithers to make up for the loss of colour.
I think it will reduce the size of the final download but I'm not sure. If the apple app bundle pre-processes it into 16bit then its pointless but if it only does that on loading into memory might be worthwhile looking into it.
Posted 2 years ago # -
hey @mhussa... thanks for the reference to Damage Control... my app downloads new "themes", so XCode doesn't touch my graphics at all...
The graphic artist I'm working with has been using Damage Control (http://damage-control.lastdownload.com/download.html) but I thought we should check out the PvrTexTool, as it may generate reasonable quality PVRs that we could use in our games, and we'd get a big performance boost to boot! Thanks!
Posted 2 years ago #
Reply
You must log in to post.