Apple Intelligence now features Image Playground, Genmoji, Writing Tools enhancements, seamless support for ChatGPT, and visual intelligence.

Apple Intelligence has also begun language expansion with localized English support for Australia, Canada, Ireland, New Zealand, South Africa, and the U.K. Learn more >

You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Create PVR texture from png file

Hi,

I have one image file in png format. I want to create texture out of that image. To convert into texture format .pvr I am using following command:

$ ./texturetool -e PVRTC -o ./image.pvr ./image.png

image.pvr file is getting created but with zero bytes file size. I loaded and tested it nothing comes blank screen.

Please tell me syntax of conversion from png or jpg to .pvr.

Regards,
Ganesh Pisal
Vavni Inc

Macbook, Mac OS X (10.5.5), 2 GB

Posted on Feb 9, 2009 10:32 PM

Reply
3 replies

Feb 10, 2009 1:01 AM in response to Ganesh Pisal

I am using this code to load created texture:

NSString *path = [[NSBundle mainBundle] pathForResource:@"image" ofType:@"pvr"];
NSData *data = [NSData dataWithContentsOfFile:path];
textures[kTextureone] = [[Texture2D alloc] initWithData:[data bytes] pixelFormat:kTexture2DPixelFormat RGBAPVRTC4 pixelsWide:512 pixelsHigh:512 contentSize:CGSizeMake(512,512)];

Not getting texture.

Create PVR texture from png file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.