Hello mates!
Can I use sprite sheets (Zwoptex) with PVR files?
I see in cocos2d source code that by defaults loads a PNG file.
How can I load a PVR without tweaking source code?
Thanks in advance!
A fast, easy to use, free, and community supported 2D game engine
Hello mates!
Can I use sprite sheets (Zwoptex) with PVR files?
I see in cocos2d source code that by defaults loads a PNG file.
How can I load a PVR without tweaking source code?
Thanks in advance!
Yes and No.
If you mean can you load and save PVRs in Zwoptex then no not in the official release. The beta release looks like it has received a lot of upgrades and now supports PVRs:
http://zwoptexapp.com/releasenotes/beta
I haven't used Zwoptex in a long time, I changed over to Texture Packer:
http://www.texturepacker.com/
Either way you can use PVRs with the older versions of Zwoptex you just have to add code to do the texture loading for you:
CCTexture2D *_texture = [[CCTextureCache sharedTextureCache] addImage:_filename];
[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:_plistname texture:_texture];
Basically create a routine that you pass the texure name to, in this case _filename=@"mytexture.pvr", and the .plist you are working with.
Other wise, upgrade everything so you have the latest version of Cocos2d and the beta of Zwoptex, then things should be easier.
Thanks a lot Verisutha, I didn't know texturepacker.
What are the advantages of texturepacker over zwoptexapp?
I read in its features that support PVR, that's very nice.
Thanks a lot.
You must log in to post.