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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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-19-2010, 06:52 AM   #1 (permalink)
Registered Member
 
Join Date: Feb 2010
Posts: 9
archer1311 is on a distinguished road
Default Unable to load textures

Hi,

I have developed a game, which is running on iphone simulator properly.
But when I tried running it on my Ipod Touch, I m not able see the graphics on my Ipod Touch.

When I tried debugging it, it was not able to load textures hence they were not getting rendered.

CGImageRef textureImage = [UIImage imageNamed:fileName].CGImage;

I was using the above API to load the images, it works fine with simulator but when i run it on device, the images i.e textureImage is always NIL.

I m using PNG textures.

Please help I m new to Iphone Development.


Thanks and regards
C.Sharatkumar
archer1311 is offline   Reply With Quote
Old 02-21-2010, 03:47 AM   #2 (permalink)
Registered Member
 
Join Date: Jun 2009
Location: Spain
Posts: 27
Eskema is on a distinguished road
Default

The image is power of two?, opengl only works with power of two images
Eskema is offline   Reply With Quote
Old 02-21-2010, 10:22 AM   #3 (permalink)
Maker of Games
 
Mr Jack's Avatar
 
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
Mr Jack is on a distinguished road
Default

Eskema's suggestion is one possibility, another is that you haven't matched the case on the filename; the simulator is not case sensitive, the iPhone is.
__________________


Visit Mr Jack Games for my blog and more about my games
Mr Jack is offline   Reply With Quote
Reply

Bookmarks

Tags
png textures

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: 402
8 members and 394 guests
13dario13, iOS.Lover, JackReidy, jeroenkeij, Leslie80, Wikiboo, Yosh_K
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,671
Threads: 94,121
Posts: 402,903
Top Poster: BrianSlick (7,990)
Welcome to our newest member, JackReidy
Powered by vBadvanced CMPS v3.1.0

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