cocos2d / CocosBuilder

CocosBuilder, the visual editor for cocos2d
forum.cocos2d-objc.org
Other
1.01k stars 593 forks source link

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

Open cjhanson opened 12 years ago

cjhanson commented 12 years ago

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.

ebrake commented 12 years ago

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.

mikey0000 commented 12 years ago

I have pvr.ccz files working in coocsbuilder

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

mikey0000 commented 12 years ago

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

cjhanson commented 12 years ago

@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?

mikey0000 commented 12 years ago

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.

ebrake commented 12 years ago

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

mikey0000 commented 12 years ago

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 commented 12 years ago

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.

ebrake commented 12 years ago

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

cjhanson commented 12 years ago

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

ricardoquesada commented 12 years ago

+1 for this feature

dominik-hadl commented 11 years ago

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

mrsergio commented 11 years ago

+1 too. Need this feature.

young40 commented 11 years ago

+1, need this feature.