- Home /
Iphone 2d camera settings
Hi, Im working on a 2D game for iphone and i would like to know how to set the Camera for orhographic mode. This is the fields i'd like to know how to set: 1.Near Clip Plane 2.Field Of View 3.Orthographic Size
Please Note: I need this settings per orientation, one for portrait and other for landscape.
Thanks.
Answer by Eric5h5 · Jul 13, 2010 at 08:25 PM
The near clip plane isn't any different from what it would be in non-orthographic mode. Field of view is irrelevant for orthographic mode. Orthographic size depends on what you want to do.
Can you please be more specific on what it depend? Orthographic size is the most field im interting in. Thanks.
@Easy: The size is half the number of units that fill the vertical screen size. i.e., using .5 means that a 1-unit cube would exactly fill the screen from top to bottom.
so basicly if i'm working with this resolution 320x480 for portrait then i need to set the orthographic size to 240 and if im working with 480x320 for landscape i need to set it to 160?
@Easy: If you wanted one unit to equal one pixel, yes, though that would only work on pre-iPhone 4 screens.
Your answer
Follow this Question
Related Questions
Finding the right ortho size to fill the screen with an object 1 Answer
Set camera to specify x,y in pixels? 2d 0 Answers
Set Orthographic Camera To Always Have Y Coordinate Start At Set Position 0 Answers
Dynamic Orthagraphic Camera Zoom 1 Answer
Resizing orthographic camera to fit 2d sprite on screen 1 Answer