issue of iphone 4 high-resolution (640 x 960) [Solved]
Posted: Thu Sep 16, 2010 1:02 pm
Hi,
I am using Ogre3D engine, and have an issue of iphone 4 high-resolution (640 x 960).
---------------------------------------------------------------------------------------------------------
* Development enviroment
- Ogre for iOS (1.7 version + iPhoneDependencies )
- Mac OS
- Xcode
- Target platform : iPhone4 (iOS 4.1)
---------------------------------------------------------------------------------------------------------
* Issue
I modified Video Mode ogre.cfg in the templete as below, and build / run.
Render System=OpenGL ES 1.x Rendering Subsystem
[OpenGL ES 1.x Rendering Subsystem]
FSAA=4
Full Screen=Yes
RTT Preferred Mode=Copy
Video Mode=640 x 960
#Video Mode=960 x 640
Orientation=Portrait
But I noticed that only left-down quater of the screen.
I debug the code, and found bool EAGLESContext::createFramebuffer() function in OgreEAGLESContext.mm file has the code of getting size of render buffer, and they are getting mBackingWidth as 320, mBackingHeight 480
glGetRenderbufferParameterivOES(GL_RENDERBUFFER_OES, GL_RENDERBUFFER_WIDTH_OES, &mBackingWidth);
glGetRenderbufferParameterivOES(GL_RENDERBUFFER_OES, GL_RENDERBUFFER_HEIGHT_OES, &mBackingHeight);
< The code of getting size of render buffer >
How could I solve this issue to render with iPhone 4 high-resolution (640 x 960 or 960 x 640 with landscape)?
Looking foward to your answer.
Best regards,
Jackie
----------------------------------------
I am using Ogre3D engine, and have an issue of iphone 4 high-resolution (640 x 960).
---------------------------------------------------------------------------------------------------------
* Development enviroment
- Ogre for iOS (1.7 version + iPhoneDependencies )
- Mac OS
- Xcode
- Target platform : iPhone4 (iOS 4.1)
---------------------------------------------------------------------------------------------------------
* Issue
I modified Video Mode ogre.cfg in the templete as below, and build / run.
Render System=OpenGL ES 1.x Rendering Subsystem
[OpenGL ES 1.x Rendering Subsystem]
FSAA=4
Full Screen=Yes
RTT Preferred Mode=Copy
Video Mode=640 x 960
#Video Mode=960 x 640
Orientation=Portrait
But I noticed that only left-down quater of the screen.
I debug the code, and found bool EAGLESContext::createFramebuffer() function in OgreEAGLESContext.mm file has the code of getting size of render buffer, and they are getting mBackingWidth as 320, mBackingHeight 480
glGetRenderbufferParameterivOES(GL_RENDERBUFFER_OES, GL_RENDERBUFFER_WIDTH_OES, &mBackingWidth);
glGetRenderbufferParameterivOES(GL_RENDERBUFFER_OES, GL_RENDERBUFFER_HEIGHT_OES, &mBackingHeight);
< The code of getting size of render buffer >
How could I solve this issue to render with iPhone 4 high-resolution (640 x 960 or 960 x 640 with landscape)?
Looking foward to your answer.
Best regards,
Jackie
----------------------------------------