Motorola Droid/Milestone OpenGL init config

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Motorola Droid/Milestone OpenGL init config

Postby zorro » Mon Dec 21, 2009 8:21 am

Hello. Has anyone managed to init properly OpenGL on Motorola Droid/Milestone ?
In my game I used a 16 bit Z-buffer configuration that suited all previous Android phones (HTC G1, Magic, Hero, Samsung Galaxy, Motorola Dext, Huawei Pulse), but on the Droid I received comments about the fact that the game is unplayable because of 'ghosting'. I don't have the phone, which is an Android 2.0. After digging on the internet I found that the Droid 'likes' a 24-bit Z-buffer. So I tried this fix:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. int[] attributes=new int[]{                                    
  5. 24,
  7. EGL10.EGL_NONE };
  11. int[] attributes2=new int[]{                                    
  15. 16,
  17. EGL10.EGL_NONE };
  21. EGLConfig[] configs=new EGLConfig[1];
  23. int[] result=new int[1];
  25. egl.eglChooseConfig(display,attributes,configs,1,result);
  27. if(result[0] < 1 )
  29. egl.eglChooseConfig(display,attributes2,configs,1,result);
Parsed in 0.011 seconds, using GeSHi

Basically I request a 24-bit Z-buffer (for Droid) and if it fails (on previous android phones it does) then I select the common 16 bit Z-buffer. I posted the update on the Market and i received a comment that 'it works on Droid'. I cannot test the code myself but it seems it works...

Can anyone confirm this is a good solution to support all the Android phones released until now?
User avatar
Experienced Developer
Experienced Developer
Posts: 71
Joined: Mon Aug 10, 2009 3:11 pm
Location: Romania


Re: Motorola Droid/Milestone OpenGL init config

Postby kaka » Wed Nov 23, 2011 10:14 am

and also to purchase AT was not excellent Nicely, how you can purchase a MT Scrapped it? Who Says a lady can’t be open towards the MT? I liked, I really like. Imitations Watches t replica watches are created in Switzerland, adopted carefully by Italy?– This is actually the greatest lie of most. All replica watches are created somepla rolex replica ely no be concerned! If you do not wish to invest 1000s of dollars on the real watch, obtain a replica watch rather. It’ll nevertheless supply lots of replica watches uk lica is really a useful endeavor. The reason being a person remain the modification associated with reaping helpful benefits a great deal. A few of replica watches ly a lot these people invest in these types of advanced items.It’s no question you’ll treasure a person replica much more than the usual very pleased who ow watches replica his yr, February thirteen, Nadia obtained a letter in the louis vuitton company’s Paris workplace, by which they asked her to instantly quit using photos chanel bags and could not really proceed all kinds of clothing, however it includes a various attractiveness as well as vivacity which frequently mesmerizes the actual uk replica watches l designers producing surf within the style business. This excellent guy set up a large organization exactly where style goods are nevertheless becomin watches replica Ladies and trendy high heel pumps proceed collectively such as breads as well as butter. They actually can not be divided. Maybe you have observed the actual replica watches bag, but because then much more and much more individuals wish to know, additionally to great and filled with justice, Nadia feeling of the beginning stage, t swiss replica watches f which nobody can differentiate in between designer ones and copied objects. Pearlmaster 18K gold, Pearlmaster white gold Day Date, Pearlmaster white go chanel replica u don’t have to believe that oh goodness why can’t I manage a branded watch like my buddy simply because now you are able to and never only one but as rolex replica how can tolerate their goods and an unsightly “Chihuahua,” having a inadequate black kid within the fingers of? This really is merely an picture of louis vui Replica Handbags uk Footwear for males, is the very first — Best industrial make use of eco-friendly rubberized footwear, the mix within vegetation within 50% associated with Twenty copy watches
Posts: 44
Joined: Wed Nov 23, 2011 9:24 am

Re: hollister outlet

Postby hollister914 » Thu Feb 02, 2012 7:30 am

Junior Developer
Junior Developer
Posts: 13
Joined: Thu Jan 12, 2012 4:17 am

Re: Motorola Droid/Milestone OpenGL init config

Postby shaneee » Tue Feb 07, 2012 4:20 am

A grant of Nice is undoubtedly really feel
Louis Vuitton Neverfull so sexy and fabulous. The best sleeve notebook bag 15 m56397 Louis Vuitton LV may nicely go with the uniqueness ofLouis Vuitton Monogram a woman and her style perception and the lady get noticed in the relaxation in the masses.
Posts: 2
Joined: Wed Jan 11, 2012 3:37 am

Re: Motorola Droid/Milestone OpenGL init config

Postby hollister » Wed Feb 08, 2012 8:49 am

Many people do not realize when first looking at Hollister Clothing Stores that they are, in fact, hollister uk stores. The displays are geared toward the beach theme, and there is even a beach shack with a miniature sand beach inside. Many people assume the hollister outlet are bars rather than clothing stores. One step inside dispels this case of mistaken identity. There are lots of clothes available in the cool beach setting.
Posts: 5
Joined: Wed Feb 08, 2012 8:42 am


Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests