www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: AGP on June 24, 2014, 12:18:16 pm

Title: How to Get Full Resolution
Post by: AGP on June 24, 2014, 12:18:16 pm
Even though I'm running my app on my Galaxy S4 (which should have a 1920x1080 resolution), onSurfaceChanged is giving me a 320x522 resolution, which does not look too great. Is there a way to tell mGLView to run at the device's full resolution? Is, perhaps, the S4 not full HD for 3D graphics (I doubt it)?
Title: Re: How to Get Full Resolution
Post by: EgonOlsen on June 24, 2014, 02:35:15 pm
That depends on your manifest file settings. Have a look at the files that come with the examples. They should contain a section to make the device use its full resolution.
Title: Re: How to Get Full Resolution
Post by: AGP on June 24, 2014, 07:46:18 pm
Cool, thanks. The following, taken from your HelloShader, did it:

Code: [Select]
<supports-screens android:largeScreens="true"
android:normalScreens="true" android:smallScreens="true"
android:anyDensity="true" />