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

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

Draw This
($0.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-19-2009, 11:01 AM   #58 (permalink)
kingbombs
Registered Member
 
Join Date: Jun 2009
Location: currently AZ
Posts: 112
kingbombs is on a distinguished road
Send a message via MSN to kingbombs
Default

Hey,

I was wondering if theres a way to use textures which don't have a size that is a power of 2

I have been looking at quite a few sites, and how to 'pad' out an image so the original image isn't a power of 2 but when it gets loaded into the program to become a texture it is padded out (with what i seem to be reading) with black pixels.
For starters i'm not totally sure how to do this, but from what i can see is that i have to then use that new kinda size of the image to do UV mapping.

What i assume from this is that i must set up the texture co-ordinates to be something like 0.5,0.6, 0.5, 0.8, .... etc not the standard 1,1....0,1 etc
The problem with me taking this route is that i use other textures that require the texture co-ordinates to be 1,1 0,0 0,1 1,0 etc
I would change the texture co-ordinates when i need the different ones, but that would mean switching between the the different texture co-ordinates alot rather than just using one texture co-ordinate for the whole thing. I'm not able to batch up all the drawing calls for a single texture co-ordinate and then move to the next texture co-ordinate and make all those calls. The code can't really be changed to allow this.

So i was wondering if there is another way to go about this?
kingbombs is offline   Reply With Quote
 

» Advertisements
» Online Users: 599
18 members and 581 guests
alainewy75, djbrooks111, Domele, Dump3, equalsabracket, esoteric, fgreg2692han, HowEver, ITCreative, lzwasyc, mavisww22, msovani, nt.hai, OneGoodApp, PapaSmurf, Rudy, Sean Coco, wildvlad
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 174,549
Threads: 93,727
Posts: 401,266
Top Poster: BrianSlick (7,954)
Welcome to our newest member, fgreg2692han
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:36 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.