CocosBuilder icon indicating copy to clipboard operation
CocosBuilder copied to clipboard

Add support for .pvr.ccz (including pvrtc formats)

Open cjhanson opened this issue 12 years ago • 14 comments

Please sign up for the PowerVR Insider here: http://www.imgtec.com/powervr/insider/sdkdownloads/index.asp

Then you can get the sdk which has some libraries you can include with cocosbuilder to allow for reading PVR files. Their license is permissive and just requires a small acknowledgement in the documentation of cocosbuilder. To support pvrtc on mac it will likely mean reading in the image and handing converting it at load time into an uncompressed texture format that mac can render.

cjhanson avatar Sep 20 '12 18:09 cjhanson

Second this! I have to export my textures a second time (adding considerable workflow) in a non-PVRTC format just to see them in CocosBuilder, which shows PVRTC images as solid black boxes.

ebrake avatar Oct 06 '12 21:10 ebrake

I have pvr.ccz files working in coocsbuilder

make sure you specify in the plist under metadata realTextureFileName : yourpvrfile textureFileName :yourpvrfile

mikey0000 avatar Oct 12 '12 01:10 mikey0000

From downloading the code and having a look it uses cocos2d so theoretically it should support anything cocos2d does. BTW this is from 2.1 rc3 that I tested

mikey0000 avatar Oct 12 '12 02:10 mikey0000

@mikey0000 any chance you have texture packer installed? I think it installs some helper stuff at the OS level for handling pvr and pvr.ccz images.

Can anyone confirm that .pvr and .pvr.ccz images DO NOT render if you don't have Texture Packer?

cjhanson avatar Oct 12 '12 20:10 cjhanson

Umm I don't think so, I have both texture packer and sprite helper, I only used texture packer to make the pvrs however I didn't make them in pvrtc format they are rgba4444. They didn't work if I didn't have what I mentioned above in the plists even if I used texture packer. I'm happy to do some testing of any sort. I highly doubt that texture packer installs anything that cocosbuilder would use in its code base that would help due to the scene part of cocosbuilder using cocos2d to draw everything and since cocos2d has support for pvr formats it works.

mikey0000 avatar Oct 13 '12 00:10 mikey0000

I can confirm that PVRTC4 (bundled as .pvr.ccz) do not display for me in the current CocosBuilder regardless of plist settings.

ebrake avatar Oct 13 '12 00:10 ebrake

I'll try with pvrtc format and see what happens, I'm guessing your plist is named the same too? Can you try with pvr with rgba4444?

mikey0000 avatar Oct 13 '12 00:10 mikey0000

ok also on my side using pvrtc formats do not work, I have modified cocosbuilder to accept pvr files and can test them directly without plist files as to whether or not they work. From what I have found although you can't see them it is supported on the iPhone from cocosbuilder. From what I have read from the imgtec website to get PVRTC textures to display on a mac requires decompression (which is possible) before being displayed as PVRTC is not supported natively on a mac due to not having powervr graphics gear.

also see here http://www.imgtec.com/forum/forum_posts.asp?TID=1130&title=pvrtc-on-mac

the post is a bit old but you'll get the idea.

summed up any PVRTC format is not supported on the mac. however RGBA* formats in PVR compression are.

please let me know if I am wrong at all.

mikey0000 avatar Oct 13 '12 02:10 mikey0000

You are correct, PowerVR decompression support would need to be added to the project for PVRTC textures to display in CocosBuilder!

ebrake avatar Oct 24 '12 18:10 ebrake

That's what I was saying in the first place. It will need to make use of the powervr sdk.

cjhanson avatar Dec 07 '12 17:12 cjhanson

+1 for this feature

ricardoquesada avatar Dec 07 '12 18:12 ricardoquesada

+1 also. This would be very nice to have.

dominik-hadl avatar Jun 05 '13 11:06 dominik-hadl

+1 too. Need this feature.

mrsergio avatar Jun 23 '13 13:06 mrsergio

+1, need this feature.

young40 avatar Aug 29 '13 09:08 young40