Google I/O - Writing Real-time games for android. - XPERIA X10 General

http://www.youtube.com/watch?v=7-62tRHLcHk
Have a look at this video if you have time - about a hour.
It tells you why the X10's screen refresh rate is only 30 frames per second, and shows that SE's opengl driver seems to be well written too.

yep, it was quite obvious, it's also a great video for anyone willing to write games for Android (or any handled device using OpenGL)
On the other hand i don't think the driver is that good, i've already found some really annoying issues on the OpenGL extensions I used : out of the two extensions I tried including the widely used draw_texture OpenGL extension, both aren't using the correct screen resolution and are either scaled or cropped to fit a 800x480 screen resolution.
You can easily reproduce this by trying to draw a 2D texture on screen using glDrawTexfOES() you'll see that the texture looks scaled and the coordinates are wrong because it's trying to fit a 800x480 screen but the X10 is using a 854x480 resolution... so it just chops off the 54 remaining pixels and scale it to fit the screen, and that sucks badly since you can't trust the reported screen resolution and you have to hack a path for the X10 in case you want to use that extension.
The same thing happens if you try to use the GL_OES_framebuffer_object extension, when you bind a buffer you'll only only get 800x480 pixels out of it... and the worse part is that it's not even scaled to fit the screen, so it actually crops the 54 remaining pixels and don't render anything there, so this one is definitely unusable unless you want a big black bar on the right of your screen
Of course, those extensions are surely not -needed- to make an OpenGL game, (the first one is just a fast way to draw a 2D texture on screen, and the second one is an advanced feature that's not supported by default on OGL 1.0 and 1.1 (hence why it's an extension heh))
But it's still a shame to have such issues on such a high end device, it's like the driver wasn't meant for this screen resolution and they just hacked it into the X10, Hopefully this will get fixed when we get Android 2.1 and OpenGL 2.0

Interesting to see the Droid does better than the Snapdragon phones by quite a bit.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Related

Another Video Encoding Guide

Software: Super
Apps in Background: Gyrator, Total Commander, CorePlayer, S2U2(well cant be seen in task list),ActiveSync(not running but in icon, you know what I mean)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Process: All are done using 1 video
Top 3 underlined are what I used for all videos
1 (Half or Full)
Half = 400x240
Full = 800x480
2 No Aspect ratio as you customized your size, if there is, just restart SUPER
3 I used original video framerate
4 (528 or 1008) "written in file name"
5 Uncheck them all
Did you notice that checking top quality made the video actually worse? I think it goes same with High Quality, I've tested it, but not posting it
6 Well whats a good video without at least 128 audio
NQ means all unchecked or I made it a term for No Quality (but is highquality actually depending on your bitrate ) See 5 above
not tested = no point in testing, there is a better one
Files
( 29.1 MB )Keep Your Mind Wide Open FULL 1008 NQ.MP4
( 16.8 MB )Keep Your Mind Wide Open FULL 528 NQ.MP4
( 24.6 MB )Keep Your Mind Wide Open HALF 1008 NQ.MP4 (best, no lags, 100%+ in benchmark)
( 16.8 MB )Keep Your Mind Wide Open FULL 528 NQ.MP4 (not tested)
( 16.7 MB )Keep Your Mind Wide Open HALF 528 HQ.MP4 (not tested)
Core Player Settings
Just ask me which you need, i think mines in default except for orientation
Best fit since its 400x240
Core v1.3.0 build 6213
If someone can make a rapidshare, megaupload link besides this one, it would help me alot. I have limited bandwidth.
Hope this helps
i tried this one, when i set up bitrate to 1000kb/s or more, the video will be much laaaaagger.. lol useless of this software. i'd like to stick to projection's Encoder for HD .
Super works not very well under Vista.
I'm using FormatFactory now, very easy to use and it is FREE.
yeah it started laggy to me too when i was converting some vids, mustve been the original source video. I'm not sure super converts them perfectly, the encoder for hd for me lags lol, well not in all videos, so most likely we all still have to wait. Will try again with that bad video source
Just pointing out that setting it to 400x240 might be better just increase the zoom or fit best when playing rather than auto set to 800x480. Going a couple of full movies, too bad i cant batch with different settings

Does the Xoom gallery still have just 16 bit color depth?

I'd appreciate it if somone with the Xoom would answer this question.
Back in Android 2.01 and earlier builds, the android gallery app had 24 bit color depth. Beginning with 2.1, they downgraded to 16 bit color. As a result, the gallery shows fewer colors and instead of smooth graduated tones you get distinct bands of color. Skies, bacgrounds, etc. look horrible. Here's a visual example of the difference:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What's puzzling is that they downgraded the gallery app (which, more than any other app should make images look their best), yet the web browser still uses 24 bit color depth. This is the equivalent of the music app making your high quality music files sound like AM radio, while the same file sounds perfect as a ringtone.
All the third-party gallery apps in the market, except for Multi-Touch Gallery (Bread and Butter, or B&B), also use 16 bit color depth. B&B isn't a good soloution because it's buggy, and easily jumps to next and previous image when sliding around a zoomed-in image, and I think it's no longer maintained or supported by its developer.
Additionally, the default gallery down-sizes large image files. I have images that are only roughly 1700 x 2000 pixels that, when I zoom in 1:1 in the gallery look badly pixelated like a low-resolution image. The same file viewed in third-party gallery apps like JustPictures and QuickPic shows the detail when zoomed in.
I don't get why Apple can get this right with the iPhone and iPad, but Google gets it so wrong. They didn't fix these problems with Froyo and they didn't fix them with Gingerbread. As a photographer hoping to use my smartphone and, hopefully, a tablet as a mobile portfolio, that this is fixed in Honeycomb. Can someone confirm?

[Q] Is Arc display really has 16M Colours?

I'm starting to wonder whether Arc is really having it's display set to show 16M colour!! The reason for this is the, I notice gradient/unpolished in few places; example in the "Tweetcast" application.
It;s the application not the screen
Of course it does:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What you see is related to that app
I can't be sure, i was counting them but the phone rang and distracted me at 14,283,102. So now i'm having to start again.
1.... 2.... 3.... 4....
Thanks everyone for the reply and everyone pointing to the application!
Is there any application that can be used to test this? (Just to make sure that I don't have a faulty screen)
What you have to bear in mind is that an image is only as good as its weakest link. Artifacts and errors can be introduced by the camera, the compression scheme (if you see banding in any jpeg image, it could easily be caused by compression algorithms), the screen driver software (IIRC, android v1.5 only supported 64k colours, regardless of screen quality) and, finally, the screen itself.
A good test for computer LCD monitors is here: http://www.lagom.nl/lcd-test/. Even though it's designed for PC monitors some of the tests are valid for mobile phone screens (but note that in lot of the tests a mobile phone web browser will perform page scaling and will shrink/expand the images, messing up the results).
However, the Gradient (banding) test should give valid results at any zoom level. If your display is 16M colours, you should get a totally smooth gradient (it does on mine, it's actually better than my computer monitor). Make sure the screen is clean, mine was covered in smeary fingerprints which didnt help at all
daveybaby said:
What you have to bear in mind is that an image is only as good as its weakest link. Artifacts and errors can be introduced by the camera, the compression scheme (if you see banding in any jpeg image, it could easily be caused by compression algorithms), the screen driver software (IIRC, android v1.5 only supported 64k colours, regardless of screen quality) and, finally, the screen itself.
A good test for computer LCD monitors is here: http://www.lagom.nl/lcd-test/. Even though it's designed for PC monitors some of the tests are valid for mobile phone screens (but note that in lot of the tests a mobile phone web browser will perform page scaling and will shrink/expand the images, messing up the results).
However, the Gradient (banding) test should give valid results at any zoom level. If your display is 16M colours, you should get a totally smooth gradient (it does on mine, it's actually better than my computer monitor). Make sure the screen is clean, mine was covered in smeary fingerprints which didnt help at all
Click to expand...
Click to collapse
Arc beat my Streak easily which beat my Dell laptop easily..lol
Well, since everyone says it could be related to application and not the screen or driver itself, I'm convinced. Let me start using and see whether how many applications are like this and might update this topic lately.
Thanks everyone for your replies.

For those looking for a video converter that works

greetings! im still new to these forums (and to the atrix, only had it for a week), but i figured i'd share something that some people might find interesting.
http://www.dvdvideosoft.com/products/dvd/Free-Video-to-Motorola-Phones-Converter.htm
DVDVideoSoft have been around for a while making a bunch of free video converters for many applications. however, previously it was a bit messy and finicky to make a suitable profile for a particular device since you had to edit the xml file and try to figure out a decent setting for certain vids.
i noticed that a while back they disabled the ability to edit the xml files to create your own video converting profiles, so i stopped using them.
but randomly i figured id give them a go again today. found out that they added a preset editor so we can create our own profiles to suit our motorola atrix.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ive circled the button that allows you to tap into the preset editor.
these are the settings im using to convert for my atrix. 960x540 resolution.
i recommend setting the framerate to 30fps. if your source video is running at less than 30fps, the program will stick to the same framerate as the source video. however, if you set the framerate lower than the source video's framerate, you'll lose frames.
as for bitrate, i havent had much time to mess around with it. 2.5mbps looks pretty, but you should able to go as low as 1.5mbps with minimal sacrifice on image quality, and it will make the file size a lot lower.
with audio bitrate, this is a personal preference. i dont like going below 192kbps, but some people wont notice the difference.
after that, just rename the profile to whatever you'd like, and happy converting.
the program isnt the fastest available, but its simple and works well enough. the videos play well on my atrix using the default video player and look pretty awesome.
enjoy!
Thank ye very much.
Testing now.
It's main test: Softsubs.
Gotta get my anime fix on the go.
Report: Does not work on .ass type softsubs.

Screen resolution, aspect ratio and scaling issue for the 7 inch 2022 model

Hi, I just bought the 7 inch onn tablet (2022 model). I found that the pixels are not in a perfect square shape. Despite the screen resolution being 1024x600, the physical screen window is actually more like 16:9. This screen looks like one of those used in the portable dvd players back in the day, which is the same 1024x600 resolution but maintains a 16:9 aspect ratio. This means each pixel is actually a rectangle shape instead of a square shape. In other words, everything on the screen is actually slimmer than it should be:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Even the official picture/render on Walmart's website looks squashed, just look at the icons:
Now if you don't see anything wrong and/or think I'm crazy, here is a Google image search for a circle shape, note that all circles look squashed, like an oval:
So I tried to change the screen resolution to 1024x576, to trick the system to think this is the resolution and then it would be a proper match for the 16:9 aspect ratio. I used "adb shell wm size" for this. However, after I made the change I found there are black bars on both sides, so basically it only uses 576 pixels instead of 600 pixels, leaving the unused area black, which is not what I wanted:
Then I tried different 16:9 aspect ratios, such as 1280x720, 1366x768 and 1920x1080, and also different densities from 80 to 480. They all have the same black bars on both sides, I also tried the scaling option, but both "auto" and "off" gave me the same result. It seems like the system is stick to the scaling and not willing to stretch the image. I then found the "faded-area" option which should be the "overscan" equivalent for older Androids. But this option does not work at all. Even if I set it to some numbers, it still shows "none" and won't take any effect:
So now I'm stuck here. I wonder if there are ways to change the screen resolution and at the same time stretch the image to full screen. The current/default settings (1024x600) is not looking right, as everything is squashed. Any help would be greatly appreciated. Thank you.

Categories

Resources