Author Topic: How to change the screen-resolution of a 3D game?  (Read 2564 times)

Offline kiffa

  • long
  • ***
  • Posts: 199
    • View Profile
How to change the screen-resolution of a 3D game?
« on: July 31, 2013, 08:36:45 am »
Many 3D games of PC have the settings of changing screen-resolution.

Could I do this in android with jPCT-AE?

E.g: My device is 480*800, i want to simulate a 320*533 screen(full screen).

If I coding like "new FrameBuffer(320, 533)", I will get a game screen of 320*533, but it's not full screen.

« Last Edit: July 31, 2013, 09:19:41 am by kiffa »

Offline kiffa

  • long
  • ***
  • Posts: 199
    • View Profile
Re: How to change the screen-resolution of a 3D game?
« Reply #1 on: July 31, 2013, 08:46:45 am »
And my purpose is to give a chance to low-end device.

If I set in AndroidManifest.xml:

  <supports-screens
        android:anyDensity="false"

The game will running in the medium-density-mode, for my device(480*800*240), it will running in the resolution of 320*533(a 320*533 frameBuffer and full screen), blurry but fast.


Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: How to change the screen-resolution of a 3D game?
« Reply #2 on: July 31, 2013, 03:48:53 pm »
I do not know if there is any better solution, but I render scene into npot texture and texture into screen. I am using post-processing effects, so it has no any negative impact on performance.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: How to change the screen-resolution of a 3D game?
« Reply #3 on: July 31, 2013, 10:18:18 pm »
I don't think that there is a way to set some random resolution. You can do this manifest trick to fall back to a low resolution, but that would be the case for all devices then and that doesn't make any sense.