Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-10-2009, 07:42 AM   #1 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 1
Thumbs up OpenGL texture creation

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.

I am using this code to load created texture:

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

Not getting texture.

I am refering CrashLanding source code.
And trying to create texture like mountain.pvr

I wanna use multiple textures in single application.

Regards,
Ganesh Pisal
Vavni Inc
ganeshpisal is offline   Reply With Quote
Reply

Bookmarks

Tags
opengl es

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 315
19 members and 296 guests
@sandris, ADY, dacapo, Dani77, djohnson, dre, HDshot, HemiMG, JasonR, MarkC, mer10, nibeck, prchn4christ, ryandb2, spiderguy84, timle8n1, tomtom100, vogueestylee
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:05 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0