Running OpenGL ES 2.0 games on Android Ouya like x86 4.1 emulator

In order to create a OUYA emulator, you might need to define a new device "definition" (see the docs for info, resolution etc)

Then there are a couple things to be aware:
1. When creating the avd emulator, you need to make sure to enable the "use of host GPU".
2. There is actually a bug in the android emulator that prevents the use of the following configuration check:
"final boolean supportsEs2 = configurationInfo.reqGlEsVersion >= 0x20000;"
The above line apparently always resolve to false
. It drove me nuts earlier tonight. So if you have been using tutorials, make sure not to use the above check or you will never make any progress :). It is not needed for OUYA anyway as you can safely assume that OpenGL ES 2.0 is indeed supported. (Android supports it since 2.2)

Found this info at:
http://www.learnopengles.com/android-emulator-now-supports-native-opengl-es2-0/

I am now successfully running OpenGL ES 2.0 successfully on Android OUYA like emulator on Mac OS X and Windows 8 both with HAXM enabled.

~ Happy New Year! (Japan Time)

Comments

  • WildsWilds Posts: 78Member
    Thanks! Can use this!
  • JSIDDJSIDD Posts: 167Member
    edited January 2013
    Wilds said:

    Thanks! Can use this!

    Great, let me know if you need more help.

    I have a MacBook Air with only 2GB, set HAXM with 512MB, and set the x86 4.1.2 emulator RAM to 512MB as well. (apparently there is a problem/bug using 1024MB, it probably wouldnt run as well with only 2GB anyway).

    I recently upgraded my PC to Windows 8 and installed Hyper-V so I had to create a new boot entry/option to boot without Hyper-V enabled in order to install HAXM. I explained this here:http://forums.ouya.tv/discussion/82/windows-8-how-to-install-intel-haxm-after-installing-hyper-v.

    My PC has a lot more RAM (8GB) but same problem with the emulator RAM size. It does not run with 1024, and it is unstable above 768 MB.
    Post edited by JSIDD on

  • BalbiBalbi Posts: 198Member
    The problem is the android emulator itself and not OUYA specific. If you're looking for a solution, try the android support forums. If you do figure it out though, please share for others :)
    Lead Developer of Leroux
  • JSIDDJSIDD Posts: 167Member
    Balbi said:

    The problem is the android emulator itself and not OUYA specific. If you're looking for a solution, try the android support forums. If you do figure it out though, please share for others :)

    Balbi, you are absolutely right. I should have made it more clear, it is not a OUYA specific problem. Android emulators have a bug when trying to set RAM size 1024 MB via the AVD Manager, supposedly you can edit the config files directly and add "MB" after the ram size value in config.ini and hardware-qemu.ini (in .android\avd\{your_emulator}\) but it did not work for me.

  • ccvannormanccvannorman Posts: 8Member
    Hey guys, I know it's late in the game but I have two problems: 
    1: Running Android 14 from Unity (16 does not show up in the drop down for minSDKversion, can't figure out how to change it). This might be why the game is super choppy on emulator.
    2: I don't have any way to simulate the Ouya controller, and I'm thinking of buying an XBox controller at Fry's today just for testing. Does anyone know if you can get an XBOx controller to work with Android *simulator* (using Eclipse) on OS X? I can't find anything about this online.

    Thanks!!
  • JSIDDJSIDD Posts: 167Member
    @ccvannorman:
    1. Unfortunately, unless you have a lot of RAM and a super good CPU, the only way to get descent performance is to run the intel emulator with HAXM installed.
    2. I've asked myself the same question. Unfortunately, the answer is emulators DO NOT support USB at all, meaning it wont recognize anything in the emulator, controller and what not. So the only way is to simulate buttons with the keyboard.

  • RogerLRogerL Posts: 4Member
    Emulators should be possible to fix to support USB

    My thoughts
    - libusb (exists for win32 as well)
    - xboxdrv

    Mixing them up to work/map to something like an OUYA controller...
  • JSIDDJSIDD Posts: 167Member
    @RogerL Thanks. I meant that apparently the main answer so far is Android emulators dont (officially) support USB devices. If someone figures it out with these two libraries that would be awesome indeed.

Sign In or Register to comment.