www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: kiffa on July 31, 2013, 08:36:45 am

Title: How to change the screen-resolution of a 3D game?
Post by: kiffa 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.

Title: Re: How to change the screen-resolution of a 3D game?
Post by: kiffa 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.

Title: Re: How to change the screen-resolution of a 3D game?
Post by: Thomas. 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.
Title: Re: How to change the screen-resolution of a 3D game?
Post by: EgonOlsen 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.