jPCT-AE - a 3d engine for Android > Support

How to change the screen-resolution of a 3D game?

(1/1)

kiffa:
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.

kiffa:
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.

Thomas.:
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.

EgonOlsen:
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.

Navigation

[0] Message Index

Go to full version