[Q] How do you manage proper game screen scaling? - Java for Android App Development

How do you manage proper game screen scaling without changing the gameplay, without distorting the graphics(keep correct aspect ratio, avoid graphics pixelation) and without having black lines at fullscreen?
I currently use libGDX and i implemented my game(Space Thing-xda) using ExtendedViewport, but the gameplay still changes a bit or not depending on the device's resolution. I suppose, the only way to achieve the above, is to design your game like this: tutorial and use hi-res graphics to scale them down or different set of graphics sizes for each resolution.

Related

video playback

hi,
I am newbee to Athena and i cannot play video files on my new athena. Athena plays video files out of sync and slowly, so i searched the xda for solution, but unfortunately i could not find one. Most of the post, which i read were dated almost a year to two year back. So i was wondering, if anyone found a solution for playing video files on Tcpmp and coreplayer.
#1 Encode the movie to 640 pixels wide.
#2 Change the settings: Options>
Zoom>Fit Best or 100%
Pixel Aspect Ratio>Auto
Video>ATI IMAGEON
Settings>Select Page>ATI IMAGEON>Checked>Disable OS Bitmap Caching, Reuse primary surface if needed, Optimized primary surface mode, Scaling LCD tearing compensation
Settings>Select Page>Direct Draw>Overlay format>YV12, Overlay with color key checked
Settings>Select Page>GAPI nothing checked
#3 Plug the Athena into external power or use a program like XCPUScalar and set the CPU speed to 624MHz. Most issues with choppy video are due to the automatic speed changes of the Athena and you want to eliminate that problem.
Watch your video. Some people had better results using different settings than ATI IMAGEON, but these were the best settings for my device...

[Q] Video scaling quality

I notice on some avi videos vertical lines that are probably caused by upscaling - they are even more visible when using HDMI (because the screen is bigger). I tried several players. In one they were not visible but instead the picture quality was much worse.
I suppose the cause is scaling algorithm used by Tegra2 and there can't be anything done (other than upscaling the videos to 720p and converting to h264)? Or maybe there is a player that can do software scaling or allows selecting scaling quality?

[Q] Any rom with the option to change aspect ratio?

I want to be able to temporarily set my Nexus 10 to render the desktop at 16:9 instead of 16:10 so that when I hook it up to a 16:9 tv via hdmi, it doesn't need to scale the image down and add black bars on the sides. Is there any way to do this? Perhaps an option on a custom rom?
On a CM 10.1 thread, a recognized developer posted some modified files to get 1280x800 resolution or something like that. Not exactly 16:9, but perhaps a similar method could be made to get such a resolution.
I don't know what thread in-particular exactly :/
Aspect ratio has nothing to do with your TV either processing or not processing the image. Unless you are outputting the exact resolution your TV uses then it will always run the input through its scaler. And even if you do run the exact resolution, you still have the other processing the TV does, and very few models of TV's allow you to completely disable this extra processing. You may be able to get rid of most or all of the black bars simply by running a 16:9 aspect ratio, but unless you also run the exact resolution then you will still have processing done by the scaler on your TV.
I'm aware of that, but at least by making sure the signal I'm outputting through the HDMI cable is the same aspect ratio as the TV, it should ensure that the TV's scaler fits the final picture to the screen without any unnecessary black bars, and that's all I care about. It would be nice if Android had an option to specify the exact resolution it outputs through HDMI instead of just duplicating the res of the main screen, but in the absence of that option, I'm looking for a solution to at least get the aspect ratio right.
http://forum.xda-developers.com/showthread.php?t=2209700
Mxplayer is implementing the same thing google play movies has where it will go into "hdmi mode"...
I know this isn't a full fix but it will be awesome for movies...
The exynos5 dual supports simultaneous native wqxga (2560x1600) and 1080p at 60fps through hdmi so it should be posdible to scale...
Mabey key lime pie will fix? Well see

[Q] Image Truncating on a 720p TV

Hello!
i am using my nexus player on a 720p TV but i am not viewing the complete image, it truncates the image, like if the nexus player is fixed at 1080p so the image received through HDMI is 1080p, but the TV is only able to display a part of it, (centered)
i installed xbmc/kodi and it also does not let me change the output resolution, also says 1080p (though it has the option but is read-only)
there's no option to change the output resolution manually
any help?
Currently there's no way to change the output resolution, but I should add that the Nexus Player always renders at 1080p internally, and then scales when it goes to output over HDMI. So, even if you're outputting at 720p, XBMC will report that you are rendering at 1080p.
Have you confirmed via your TV's display info that you're actually getting a 1080p input signal? If you're just getting overscan at 720p, that's expected and all the native apps are (supposed to be) designed to handle a 10% picture loss. Are you only noticing things cut off in XBMC, or are you missing parts of the screen in the rest of Android as well?
I didn't noticed until I started installing apps. all sideloaded apps have missing parts, Chrome, Sideload Launcher, xbmc, File Commander, etc...
WORKED!
thanks xBIGREDDx, my TV settings where wrong, it was set to Zoom instead of scale to fit.

Games issue

Games doesn't seem to be running on full resolution I played darkness rises and asphalt 9 both seem to be running on lower resolution or simply resolution slider is broken help
Yeah I've noticed this too, I am also playing both of the games you mentioned, but I think it isn't a problem with the phone. It's more on the game settings / configuration. Some games are automatically configured to run lower resolutions (maybe game devs wanted to give better stability / performance.)

Categories

Resources