Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gummyavenger

macrumors newbie
Original poster
Sep 19, 2008
5
0
Forgive me if this is a dumb question... I've been tinkering with the iPhone SDK since it was announced, but I'm just now starting out with OpenGL ES.

Is the best way to create an OpenGL ES landscape application to rotate your images 90 degrees to the right in Photoshop and then treat x coordinates as y, and vice versa? It seems like there should be a better way, but maybe not.

Thanks!
 

gummyavenger

macrumors newbie
Original poster
Sep 19, 2008
5
0
Let me clarify a little more... say I have an image in Photoshop that will be used as the background for my app. My image is 480x320. Should I rotate the image to 320x480 in Photoshop before I use it in XCode?
 

gummyavenger

macrumors newbie
Original poster
Sep 19, 2008
5
0
Explain bit more, I think nobody understands what are you actually talking about.
I'm trying to make a 2D iPhone game that you play with the iPhone turned sideways. The dimensions of my game are 480 pixels wide by 320 pixels tall. The normal upright resolution of the iPhone is 320 pixels wide by 480 pixels tall. None of the official OpenGL ES examples are in landscape view like my app will be, so I haven't seen the source code of any landscape OpenGL ES app.

As I'm designing the graphics for the game, I'm designing them in a 480x320 window, as the player would see them. However, since the iPhone is normally held upright at 320x480, my question is if it is best to rotate my graphics in Photoshop after I've designed them, or to rotate them as the game loads them... or maybe there's a better way?
 

mlady

macrumors member
Sep 18, 2008
31
0
I'm trying to make a 2D iPhone game that you play with the iPhone turned sideways. The dimensions of my game are 480 pixels wide by 320 pixels tall. The normal upright resolution of the iPhone is 320 pixels wide by 480 pixels tall. None of the official OpenGL ES examples are in landscape view like my app will be, so I haven't seen the source code of any landscape OpenGL ES app.

As I'm designing the graphics for the game, I'm designing them in a 480x320 window, as the player would see them. However, since the iPhone is normally held upright at 320x480, my question is if it is best to rotate my graphics in Photoshop after I've designed them, or to rotate them as the game loads them... or maybe there's a better way?

Best is rotate it first in Photoshop.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.