Android :: Droid / Android 2.0 OpenGL Configuration Issue

Nov 9, 2009

As with a lot of folks doing OpenGL ES dev it's really a test on device situation. I'm really trying to get out the Typhon API (http:// typhon.egrsoftware.com/) which is an open source platform for real time / game development working on the Droid. It also provides the basis for a series of OpenGL ES tutorials for Android available that will be incrementally released starting this week with or without support for the Droid: [url]

Of course I'd like to support Android 2.0 / Motorola Droid, but alas a problem without a clear answer is occurring when I use EGL/GL directly not using Google/Android provided GLSurfaceView. The following is the basic setup code and works just fine on all previous Android versions including 1.6 on the G1 and Ion, but it fails on the Droid. Note "context.getConfigSpec()" returns a standard configuration:

new int[] { EGL10.EGL_RED_SIZE, 5, EGL10.EGL_GREEN_SIZE, 6, EGL10.EGL_BLUE_SIZE, 5, EGL10.EGL_NONE }

Android :: Droid / Android 2.0 OpenGL Configuration Issue


Android :: OpenGL Speed Issue - Code Contribution To Other OpenGL

Feb 25, 2009

Single Threaded OpenGL game ! (check bottom, you can download and use the helper class) Lighting disabled ! Depth Buffer disabled ! Culling enabled ! Textures disabled !

Just 176 integers (x,y values only) making 88 vertexes along with 132 index numbers making "44 triangles only"

Framerates I get is

with GL_BLENDING disabled - 145 fps approx only! enabled - 110 fps approx only!

I have the screenshot of exact code in the draw function here.. just 2 damn lines ! I have hidden only the comments.. click here to see it http://prasna991.googlepages.com/drawframe.png

variable details in the 2 lines of code =========================== ipts = 176 elements (only x and y for each vertex) totallinetriangles * 3 = 176 lineindexes = 132 elements - type "short"

Here is the screenshot of output drawing and how it will look like http://prasna991.googlepages.com/screen.png

OpenGL single threaded Initialization Helper ================================ Here is my OpenGL helper class.. makes the OpenGL initialization for newbies a cakewalk http://prasna991.googlepages.com/OpenGLHelperclass.txt

I tested by rendering on the touch event only.. frame rate drops only when u touch and drag and here I have just tested by tapping and releasing gently on the emulator and on the device

Is this the device limitations ? So graphics is actually a lot lot lot slower than on iPhone ?

View 8 Replies View Related

Android :: NDK OpenGL - Mixing Java And Native - C - Calls To OpenGL API

Jul 24, 2010

I would like to be able to use the OpenGL API from both Java and C (via NDK).

In Java, there is a GL object passed, which has all GL methods on it.

In C, you just talk to the native library.

In a single onDrawFrame callback (for which Java is passed a GL), can I use methods on the GL object, and also call NDK methods which access the openGL library?

In other words, is the GL object just a wrapper for the same instance of the native library?

View 3 Replies View Related

Android :: Where To Store Widget's Preferences On Configuration Page On Droid?

Aug 31, 2010

I think that it would be too complex to open a database. Does using shared preferences make my app's data size become big. Is there a temporary storage place for my data or should I delete the data in the shared preferences for that widget.

View 1 Replies View Related

Android :: Opengl In Droid 2D UI / What's Function?

Apr 8, 2010

In android 2D UI, what's the function of opengl?

graphic system draw picture and text by skia->opengl->framebuffer, so in 2D UI what's the function of opengl?

in bootable/recovery/minigui the recoverty mini UI just display some png and text, why does it use opengl ?

View 3 Replies View Related

Motorola Droid :: Best Control Configuration For Emulators

Dec 25, 2009

I am looking for opinions on the best comfortable and easy control config for each of these the nes,snes and sega emulators on the droid.

View 6 Replies View Related

Android :: SIGSEGV 11 OpenGL - Only On Droid - Not 2.0 Emulator

Nov 10, 2009

We are getting a SIGSEGV 11 when launching our OpenGL activity. Here is the logcat. It appears to happen on Droid Hardware, but not the 2.0 Emulator. We are trying to do some testing to see if we can slowly build up some code to cause a crash.

CODE:....................

View 3 Replies View Related

Android :: Blank Textures On Droid (OpenGL)

Dec 28, 2009

I ran into a rather strange problem with my OpenGL game. While most textures look good, five or six are not drawn on Droid, and I don't see anything special about these images/models. For example, my HUD is made of 4 elements. The upper part is drawn correctly, while the lower part appears as white rectangles. The code used for loading and drawing these models and textures is exactly the same. Textures are 32-bit TGAs in both cases, POT dimensions, in - nodpi, inScaled==false, using GLSurfaceView to rule out configuration issues. No problems on G1 and Hero (and of course on emulator). And I don't have the Droid, so I can't just try whatever comes to my mind. Asked users to send me logs - no errors, all models and images appear to load normally.

View 2 Replies View Related

Android :: Opengl Visual Artifacts On Droid

Aug 14, 2010

A user sent me a screenshot of visual artifacting on droid. Apparently it only happens with multi-texturing enabled. --> Screenshot: http://adamhammer.ca/images/stories/cap201008140037.jpg

If I understand correctly though the GPU in the Droid 1 is ES2.0 Compliant, so it should have at least 2 texture units, any idea why I'm getting this weird look in my app on the Droid 1?

View 3 Replies View Related

Android :: Droid Reboot When Using VBO In Opengl Es Codes

Apr 5, 2010

I am working on a app which render geometrics with VBO in NDK opengl, it works in other phone, but in Motola Droid, it will cause the devices reboot.

The logs like next.

CODE:.........................

View 3 Replies View Related

Android :: Motorola Droid OpenGL ES Specs?

Oct 28, 2009

I just got my hands on this phone.

Here's my summary:

1) It's really fast. Runs all my games at max framerates.

2) The screen is 16:9 and will probably mess with your layouts and games and stuff.

3) It has a PowerVR SGX530. That's right around iPhone 3GS's GPU speed.

I believe the hardware supports OpenGL ES 2.0 but since Android doesn't, there's no way to use it right now. I did, however, dump all of the GL extensions and put them alongside the G1 and Emulator extension lists into this handy-dandy article - http://www.rbgrn.net/content/345-hands-on-motorola-droid-opengl-es-specs

View 5 Replies View Related

Android :: Use Opengl 2.0 On Droid With Framebuffer And renderbuffer?

Oct 31, 2010

How to do with the framebuffer and renderbuffer?

when we develop on iphone the function "presentRenderbuffe" is working.but on android ,how to display the renderbuffer? (![context presentRenderbuffer:GL_RENDERBUFFER])

View 2 Replies View Related

Android :: Tutorial To Use Opengl Interface In Droid Ndk?

Mar 22, 2010

If i wanna use the opengl interface in android ndk, then will it be possible to show
me a simple tutorial to let me master the android ndk?
i just wanna know how to operate in android ndk first.

View 1 Replies View Related

Android :: OpenGL Doesn't Render On Droid - Milestone

Jun 29, 2010

I'm writing a game engine.

I have a little example (see http://qrcode.kaywa.com/img.php?s=8&d=http://rokonandroid.com/rd.apk), that seems to work fine on every device except Droid / Milestone.

It displays a blue screen (due to glClearColor being set to blue), and nothing more.

I have tried with/without textures, and with/without VBOs. Yet still all blue screens on Droid.

What is unique about Droid and how it handles OpenGL, and why is it doing this?

View 1 Replies View Related

Android :: Enable Antialiasing In OpenGL On Any Of Droid Devices?

Jan 11, 2010

Has anyone found a way to enable antialiasing in OpenGL on any of the Android devices?

View 2 Replies View Related

Android :: Droid 2.0 And OpenGL ES 2.0 Support For Programmable Shaders?

Jul 9, 2010

Can I assume that, if a phone runs Android 2.0, it also supports OpenGL ES 2.0 and thus the graphic hardware has full support for programmable shaders?

IOW, does Android 2.0 as a platform mandate OpenGL ES 2.0 support? Or is it optional?

View 1 Replies View Related

Android :: Training Session / Course For Droid Graphics API - OpenGL ES?

Sep 25, 2010

Can anyone please recommend a training session/course for Android graphics API/OpenGL ES?

View 1 Replies View Related

Android :: Droid OpenGL ES Test Renderer Crash / Why Is So?

Oct 8, 2010

Once again I'm trying to get into openGL, but as usual I choke when passing around vertices/vertixes/whatever and every little detail can lead to disaster (wrong format, initialization not properly set up, where memory are saved, etc.).

My main goal is to use openGL for 2D graphics to speed up performance compared to regular cpu drawing.

Anyways, my openGL Renderer looks like this code...

With an IndexOutOfBoundsException, but I'm sure there are more problems with the code.

View 1 Replies View Related

Android :: GUI Libaray For IPhone / Droid Based On OpenGL ES?

Mar 18, 2010

Since both iPhone and Android support OpenGL ES, is there any open source or commercial GUI library we can use for these two platforms? Or is it doable (or how difficult) to port an application from one to another platform?

As I know, for iPhone only, libNUI (http://www.libnui.net) is a good choice (dynamic layout & mature), but it only provides GPL & commercial license. Any other open source tool similar with libNUI?

View 3 Replies View Related

Motorola Droid X :: Email Configuration - POP3 And IMAP Account

Aug 22, 2010

I am having some very annoying email problems that I have fought with for almost a week, researched and tried multiple programs, and followed about every tutorial on this and similar sites to make work. My school system's email provider is junk, but since I'm a traveling teacher (I bounce between schools) it is very important that I be able to receive and reply to emails from administrators and other teachers. I'm coming from five years of Blackberry email, where all it took was inputting my address and password in the BIS email page and never having to give it a second thought.

So far, here's a rundown on what's happened and what I've tried:
1. Using My Accounts and the stock email program, my email address has been added. It will not connect when set up as a POP3 account; I must set it as an IMAP account to retrieve any emails. No matter what port setting I use (25 or 587), I cannot send or reply to email.
2. Using K-9 email, I am able to download email as POP3 with standard settings (port 110). As with the built-in client, I am unable to reply to or send emails.
3. Before you ask, 587 never worked. I've tried.
4. The email address is configured in accordance with our service provider's instructions..
5. This issue has occurred in the same manner on both 2.1 and 2.2.

View 2 Replies View Related

HTC Droid Eris :: Toggle Settings (WiFi / GPS And Bluetooth) One Bar Configuration

Feb 14, 2010

I want a widget to toggle settings like WiFi, GPS, bluetooth etc all in one bar configuration as opposed to separate widgets. I saw one screen shot in this forum of a very clean, minimalistic bar where green = on, red = off (or something like that) for each setting, but I can't remember which post had that screen shot. I've searched and searched. Anyone remember seeing this? Or what search term should I use in the market to find this sort of widget with multiple settings on it?

View 9 Replies View Related

Android :: Use An OpenCV Rotation And Translation Vector With OpenGL ES In Droid?

Sep 14, 2010

I'm am working on a basic augmented reality application on Android. What I did so far is detect a square with opencv and then using cvFindExtrinsicCameraParams2() I calculated a rotation and translation vector. For this I used 4 object points, which are just the corners of a square around (0,0,0) and the 4 corners of the square in the image.

This yields me a pretty good rotation and translation matrix. I also calculated the rotation matrix with cvRodrigues2() since using this is easier than the rotation vector. As long as I use these to draw some points in the image everything works fine. My next step is however to pass these vectors and the matrix back to java and then use them with OpenGL to draw a square in an OpenGLView. The square should be exactly around the square in the image which is displayed behind the OpenGLView.

My problem is that I cannot find the correct way of using the rotation matrix and translation vector in OpenGL. I started of with exactly the same object points as used for the openCV functions. Then I applied the rotation matrix and translation vector in pretty much any possible way I could think of. Sadly none of these approaches produce a result which is anyway near what I hoped for. So my question is can anyone tell me how to use them correctly?

So far the "closest" results I have gotten, was when randomly multiplying the whole matrix with -1. But most of the time the squares still look mirror inverted or rotated for 180 degrees. So I guess it was just a lucky hit, but not the right approach.

View 1 Replies View Related

Android :: Method To Draw Bitmaps Faster On Droid Canvas / OpenGL?

Jun 15, 2010

I currently have a game written using the Android canvas. It is completely 2D, and I draw bitmaps as sprites on the canvas, and it technically works, but I have a few features that I need to add that will require drawing many more bitmaps on the screen, and there will be a lot more movement.

The app needs more power.

What is the best way to go from this method of drawing Bitmaps on a canvas to using OpenGL so I can draw them faster?

View 2 Replies View Related

Android :: OTA Configuration Supported By OS?

Oct 6, 2010

I would like to know if the Android handsets can be configured Over-The-Air; in other words, if they can be configured for settings (such as GPRS , WAP or MMS ...) using OTA. If yes, do they support OMA CP provisioning? Is there an XML example that can be used to configure the Android devices?

View 1 Replies View Related

Android :: Best Way To Add Configuration UI To Application?

Nov 24, 2010

I have a simple Android application that loads a page in a WebView, then most of the real work is done by the server-side scripts. Everything is working great, except that I currently have the page URL hard-coded in the Android application, sort of like this:
mWebView.loadUrl("https://www.my-application-url.com");

This was fine until this morning when I was asked to to make it so that the user is prompted to enter the URL the first time the application run, and the URL that is entered by the user is then saved and used automatically by the application from that point onward. I was also asked to make it so that the user can change the URL if they choose to do so. The reason I was asked to do this is so that users can install the server side of the application on their own servers and my Android application will be able to connect without me having to write a custom version for each user, with their URL hard-coded into the application.

I am unsure what is the best way to handle this in Android. It seems that I probably need to add some type of configuration interface to the application that is shown by default on the first run, then only when the Menu button is pressed on the following runs. From this configuration interface I guess I would then get the URL from the user and serialize it for future use. What is the best way to accomplish this?

View 2 Replies View Related

Android :: Juice Defender Configuration?

Jul 19, 2010

I've only owned an Android for 6 days (Samsung Galaxy S i9000) and one of the first things I installed was Juice Defender, having used iPod Touch extensively, I know how heavy on battery things like WiFi can be. Anyway, JD makes the phone really really leggy. It can take a minute sometimes (literally, 45-65 seconds) for the JD screen to come up when launched. Similarly when waking from sleep it takes ages for the data connections to become active again. Have I misconfigured JD? Is it really this slow and creates this much lag? Does it just not like the (fairly new) i9000? I've just uninstalled it there right now (left Ultimate Juice on) and the phone is much snappier. It's like using it for the first time. Which, considering JD was installed in the first half hour of my owning the phone, it kind of is. What I really wanted was the WiFi on/off according to cell tower location data so I can have it go on and off when I leave the house. Guess it's no real biggie. Having limited background data (e.g. the 2 mins per 15) is handy too. Are there any other apps which have JD functions - even if more limited in scope - that I can try?

View 2 Replies View Related

Android :: Handcent Configuration Right Settings?

Oct 4, 2010

Having some trouble getting handcent configured right. I want it to only show the notification in the top status bar and the dock. I do not want the popup window. Can someone tell me which settings to use? I have tried everything and cannot get it right.

View 1 Replies View Related

Android :: Setting APK Configuration In Activity

Aug 26, 2009

In Java ME we can set .jad configuration in description file and we can get this values in midlet by getAppProperti(""); So in Android we can set apk configuration (eclipse) apk configuration. But when I set this! my file default properties change and my projet signal some error. So in activity when can add System.setProeprty("name","values"). My problem I wan to specify the server IP and some code in apk only for this apk file. Each apk can have his code and server IP.

View 2 Replies View Related

Android :: Configuration Screen When Installing

Jul 10, 2010

I need to display a configuration screen when a user installs my application. Is this possible to implement? That screen should not appear again.

View 2 Replies View Related

Android :: How To Retrieve Current Keyboard Configuration?

Feb 16, 2009

How can I detect if the G1 keyboard is hidden or open at application startup? My app always runs in landscape mode, but I can only find how to detect keyboard configuration *changes* (through onConfigurationChanged()). So how can I retrieve the current keyboard configuration (open or closed) at application startup?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved