Android :: OpenGL ES Works Fine On Emulator But On HTC Hero 1.5 It Does Not Render Vertices

Nov 8, 2009

Running into REALLY interesting problems with OpenGL ES. Basically when I start my program in 1.5 or 1.6 emulator, it works just fine but on HTC Hero 1.5 it does not. The problem is that the vertices are not being rendered but the gl.glClear() command is working just fine. I followed in with the debugger and it does go into the rendering function and such but still not rendering the vertices...

Here is the code in PasteBin (easier to read: http://pastebin.com/m706686e6 )

And here is the same thing pasted here:

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

Also I got my projection set in 2D ortho projection to match screen coordinates so that's why scale to 50,50 to actually make a bit bigger. I've tried using glDrawElements and glDrawArrays and nothing on the actual phone but works perfectly fine on the actual emulator. Any ideas where I might be going wrong? Why is the actual phone not rendering the vertices like the emulator is?

Android :: OpenGL ES works fine on Emulator but on HTC Hero 1.5 it does not render vertices


Android :: Opengl Es Testbed App Not Render Anything Besides A Red Screen

Apr 7, 2010

For some reason my code here (this is the entire thing) doesnt actually render anything besides a red screen..

can anyone tell me why?

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

View 2 Replies View Related

Android :: Render String To Texture And OpenGL ES

Apr 8, 2010

I've googled around everywhere, but cannot find much for rendering strings to textures and then displaying that texture on a quad on the screen. Can someone provide a run-down on the process or provide good resources that describe how? Is rendering strings to textures even the best method for displaying text in an Android OpenGL ES app?

Okay, so LabelMaker interferes with alpha blending, the texture (created from a PNG with a transparent background) now has a solid black background, rather than a transparent background. If I comment out all the LabelMaker-related code, it works fine.

UPDATE:
Nevermind. I took a look at the code to find that LabelMaker was disabling blending after drawing the labels.

View 1 Replies View Related

Android :: Render OpenGL To Regular View - Not GLSurfaceView

Aug 19, 2009

I've noticed that OpenGLContext is removed from 1.5. Everybody says that GLSurfaceView should be used instead. Does this mean that there is no way to render OpenGL graphics into a regular View?

View 4 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 :: OpenGL ES Render Textures Of Non Base 2 Dimensions

Sep 18, 2010

Question before I dive deeper into converting my current rendering system to openGL. I heard that textures needed to be in base2 sizes in order to be stored for rendering. Is this true?

My application is very tight on memory, but most of the bitmaps are not a perfect square. Does storing non-base 2 textures waste extra memory?

View 3 Replies View Related

Android :: Basic OpenGL ES Texture / Way To Render Simple Textured Quad?

Jun 29, 2010

I'm having great difficulty getting basic textures to work in an OpenGL ES app on my Droid (2.1-update1). I trying to render a simple textured quad - four vertices, two faces, with normals and texture coords. When rendered, the texture is garbled and full of static, similar to TV noise. Here's a pic showing the original texture map image, and then a screencap from my droid of the rendered textured quad. The basic colors are there, but obviously the texture isn't being read or applied correctly.

View 1 Replies View Related

Android :: QuickContact Works Fine On 2.2 But Not On 2.1

Oct 9, 2010

I have a ListView where I want to show the QuickContact (like in the default Contacts android app when you click on the photo of a contact).

It works fine on my Nexus One 2.2 or the emulator with avd 2.2, but doesn't work on my Samsung Galaxy S 2.1update1 or emulator 2.1.

On 2.1, I'm getting the error:

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

This is the call in the code:

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

View 2 Replies View Related

Android :: App Crashes On Droid - Works Fine On G1

Jan 7, 2010

I'm having a problem where my app crashes on the Droid and seems to work fine on the G1. We have a G1 dev phone but do not have access to a Droid phone, so the issue is difficult to debug at this stage.

The app loads up the main screen okay, but once the user moves beyond the main screen, the app crashes. Moving beyond main screen initiates the following:

- GPS signal acquired - Accelerometer sensor listener active - Geomagnetic sensor listener active - Camera preview active

I have a suspicion that the issue may be related to the camera preview. With the G1, it didn't seem to matter how I set the camera preview size, so I just made it fit the size of the view.

Camera.Parameters parameters = mCamera.getParameters(); parameters.setPreviewSize(w, h); //where w, h are the width and height.

One possibility is that with the Droid having a larger screen resolution to the G1, it may be setting the preview size to something that is not supported. I plan on addressing this, but I have a few questions that I was hoping someone could shed some light on.

1. If the app attempts to set a preview size that is not supported, will it just be ignored or will the app crash?

2. If the preview size is smaller than the surface that is holding the preview, will the image be stretched to fill the surface?

3. Can anyone think of anything else that may be related specifically to the Droid that could be causing me problems?

View 8 Replies View Related

Android :: Opengl Texture Working On Emulator But Not On HTC HERO

Jul 14, 2010

In my application, I have a NDK native code that uses OpenGL 1.0 to apply a texture to a rectangle in order to draw an image on the screen. It is working fine on the emulator, but when I test it on the HTC HERO android device, it only draws a white rectangle without texture. Anybody else had the same problem? Did anybody find a solution?

Here is how I initialize openGL in native code:

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

And here is how I draw the frame in native code:

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

View 3 Replies View Related

Android :: Application Does Not Work When On 3G.On WiFi Works Fine

Aug 16, 2010

I have application that communicates with web server through REST. It works fine on a phone when connected via WiFi but does not work correctly when on 3G.

Not everything stops working. I'm still able to use some functionality but for some reason some calls to rest return "" (empty response) very quickly. Once again when I'm on WiFi everything works fine.

Just to clarify:
1. I have data plan :)
2. Server I'm connecting to is accessible from Internet

View 1 Replies View Related

Android :: OWA Access Denied Over 3G - Works Fine On WiFi

Aug 5, 2010

I have the Samsung Captivate, and I'm having a bit of an issue with my company's Exchange server. I don't want to sync it with my phone, I prefer to keep my work email separate, but I do occasionally need to use the Outlook Web Access portal on the server. When I'm on any WiFi connection, and I browse to my server's OWA, I get the login prompt, and I can successfully log in and do whatever I need to.

However, when on 3g, I get simply "Access Denied" without a login prompt at all. I've tried rebooting the phone, killing the browser process, clearing the caches in the browser, etc. None of that works. I administer this server myself, and it works with my wife's iphone just fine, as well as other android phones in the office.

View 1 Replies View Related

HTC Incredible :: Amazon MP3 App Works Fine - With Sd Card

Apr 30, 2010

Just installed the Amazon MP3 app, that I love. I have it on my 16gb microsd card I just pulled from my beloved G1. Installed and runs super fine!

Had to extract it (apk file) once from a different G1 rom, since it was not in the rom I installed- awhile back.

View 1 Replies View Related

Android :: Can't Access Motorola Milestone On Ubuntu 9.10 Via Adb - HTC Magic Works Perfectly Fine

Jan 12, 2010

I've two phones, the HTC Magic and since today also the Motorola
Milestone.

While the Magic works perfectly, I'm not able to access the Milestone
via USB (adb devices).

Here are my log outputs and settings for both:

HTC Magic

lsusb:

Bus 001 Device 009: ID 0bb4:0c02 High Tech Computer Corp.

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

Motorola Milestone

lsusb:

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

Notes

USB Debugging is enabled on both phones. After changing the udev rules I did a "service udev reload" and
"adb kill-server" -> didn't help. I even tried to restart the whole machine. Without success.

View 3 Replies View Related

Samsung Moment :: Cracked Screen - Phone Works Fine - Way To Fix

Dec 25, 2009

I gave my son a Samsung Moment for Christmas and before the day was though he dropped it and cracked the screen? The phone works fine. What is the best way for me to get this screen fixed. Just call Sprint or take it back to Best Buy. Any idea what the cost is for that kind of a repair?

View 10 Replies View Related

Android :: App Runs Fine In Emulator

Apr 9, 2010

I have an app that has a few checkboxes in the settings and then compiles a remote sql based on the checkboxes selected. i ran it in the emulator and it's fine. but then i exported it and published it as an app, and the same checked boxes aren't being passed correctly. i wonder if it's a caching issue or something. tried deleting the apks a few times and republish but to no avail. i "fake-edited" the source java and then export again, still no difference.

I'm kind of new to eclipse but is there a force build option? i only see build-automatically option under project but not sure how i can make sure that the apk exported is the same as run in the emulator

edit the emulator is version 1.5, and my phone is nexus one running 2.1- not sure if that makes a difference

View 1 Replies View Related

Android :: SQLite - Works Perfect In 1.6 Emulator - Won't Work On The Phone - 2.2 - Or 2.0 - Emulator

Aug 6, 2010

I created a sqlite database to store playlists for a media player I am developing because of extended feature (rather than using the Content Provider). It works perfectly on the 1.6 emulator but FCs on anything higher than 2.0... what has changed that I need to know about as far as opening databases in SDK 2.0+? Here is the logcat.

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

Here is the dbhelper class

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

why can't stackoverflow just use tags like a normal syntax highlighter.

View 2 Replies View Related

Android :: Does OpenGL API GlDeleteTextures Works

Nov 19, 2009

I'm doing a little 3D app programming based on SDK 1.5. I can't change textures in any way with glDeleteTextures.

Please help to check if I did sth. wrong.

My subfunction is as below:

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

View 2 Replies View Related

Android :: Jpg Images Noisy On Sdcard - Fine In Gallery - Only On 1.6 - 1.5 Is Fine

Nov 24, 2009

In my application users take photos with an Activity that implements SurfaceHolder.Callback. The uri.toString() is then passed as an extra to a subsequent Activity that displays the image. All fine, except for in Android 1.6 the jpgs on the sdcard have a strange noise when looking at them through mac finder or win explorer after mounting the sdcard. The images have purple and yellow stripes on their upper half. Fine on camera gallery.

Here's some relevant code.

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

View 3 Replies View Related

Android :: OpenGL Works Incorrectly When Projection Matrix Is Set To Identity?

Jun 23, 2010

I have an OpenGL app that manipulates it's geometry in screen space to acheive some effects, and therefore bypasses OpenGL's matrices by setting modelview and projection to identity. For some reason, Android's OpenGL implementation seems to be unhappy with this, and doesn't draw anything. The same app, compiled from the same code base, works fine on windows and on iPhone. If I load the app's projection matrix into GL's matrix, and multiply it's inverse with the final geometry prior to drawing it (which is effectively a no-op) it displays correctly.

View 6 Replies View Related

HTC Desire :: Live Tv On My Desire And Works Fine

Jun 8, 2010

I dont know if anyone is interested buy I have just registered with YAMGO.COM. I am nothing to do with the site just wondered if anyone wlse wanted to give it a go. Took 5 seconds to log on and it works

View 7 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 :: Missing OpenGL Drivers On Emulator

Jul 11, 2009

I am trying to set up an Android emulator to do some playing around with OpenGL ES on it, but I am stymied by the fact that, every time I run my program on it, it unceremoniously grenades itself. The problem (at least the first nasty red error line in the log) is a missing package called libhgl.so. This is the OpenGL driver file required for running OpenGL ES on Android devices, but for some reason, my emulator doesn't have it. Does anyone know where I can get drivers for the emulator, or how to get an emulator that already has them?

View 1 Replies View Related

Android :: Setup Vertices For A Rectangle?

Sep 16, 2010

I need to setup vertices for a rectangle - I have a square example, how would I modify it to get a rectangle 5 times the width and half the height?

CODE:.......

Okay so I think I setup the vertices correctly but now I need to setup the normals textures and indices:

CODE:.........

How to set these up:

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

View 1 Replies View Related

Android :: OpenGL Coding - Emulator Doesn't Work

May 26, 2009

After spending the better half of this day getting my HTC Magic to work in developer mode, I've now found that some of my frist openGL coding attempts that appeared to work fine in the emulator doesn't work as expected on the device. I've narrowed this down to glColorf(r, g, b, a) not working as expected on the device itself. The provided OpenGL samples do work though. So for example, after modifying Cube.java from the samples to the below code I find that I get the expected grey square on the emulator but a blank white screen (background fill colour) on the device.

class Cube { public Cube() { int one = 0x10000; int vertices[] = { -one, -one, -one, one, one, -one, one, one, };
// Buffers to be passed to gl*Pointer() functions // must be direct, i.e., they must be placed on the // native heap where the garbage collector cannot // move them. // // Buffers with multi-byte datatypes (e.g., short, int, float) // must have their byte order set to native order
ByteBuffer vbb = ByteBuffer.allocateDirect(vertices.length*4); vbb.order(ByteOrder.nativeOrder()); mVertexBuffer = vbb.asIntBuffer(); mVertexBuffer.put(vertices); mVertexBuffer.position(0); }
public void draw(GL10 gl) { gl.glFrontFace(GL10.GL_CW); gl.glVertexPointer(2, gl.GL_FIXED, 0, mVertexBuffer); gl.glColor4f(0.5f, 0.5f, 0.5f, 0.5f); gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, 4); }
private IntBuffer mVertexBuffer;

View 5 Replies View Related

Motorola Milestone :: Motorola Milestone Voice Breaks While Speaker Phone Works Fine

Jan 20, 2010

I am using Motorola Milestone UK version with AT & T. G Mail and Yahoo etc work fine. Data plan also work perfect wih At&T 2G. AT&T 3 G can not use with Milestone because 3 G band of AT & T is not supoerted by Milestone.

However, real problem is that when I call anybody, he always finds my voice breaks on Milestone. When I switch to speaker they find my voice perfect. I can hear their voice clearly. Any body has same problem.

Secondly, I would like to dowload "Car Home" app which is available with Droid. It is not available in Market place. When I try to see how it is intsalled in my friend's droid, it shows 0 KB. Does this app is part of Android for Verizon. When I dock the phone in Car dock, as I dont have Car home app so phone does not pop up Navigation window which is part of Car Home. I can use Google Map manually. This is not big problem.

View 2 Replies View Related

Android :: Works On Emulator Not On G1

Oct 15, 2009

Learning about the NDK and JNI today. I was able to build, install and run the Quake demo that was ported to Android via the NDK 1.6. Worked great. I then started looking at the hello-jni example. This example works for me in the emulator, but does NOT work for me on the G1:

I/ActivityManager( 76): Start proc com.example.hellojni for activity com.example.hellojni/.HelloJni: pid=508 uid=10030 gids={1015} I/jdwp ( 508): received file descriptor 20 from ADB W/dalvikvm( 508): Exception Ljava/lang/UnsatisfiedLinkError; thrown during Lcom/example/hellojni/HelloJni;.<clinit> W/dalvikvm( 508): Class init failed in newInstance call (Lcom/example/hellojni/HelloJni;) D/AndroidRuntime( 508): Shutting down VM W/dalvikvm( 508): threadid=3: thread exiting with uncaught exception (group=0x4001da28) E/AndroidRuntime( 508): Uncaught handler: thread main exiting due to uncaught exception E/AndroidRuntime( 508): java.lang.ExceptionInInitializerError E/AndroidRuntime( 508): at java.lang.Class.newInstanceImpl(Native Method) E/AndroidRuntime............

View 2 Replies View Related

Android :: Works On Emulator - Not On Phone

Jun 22, 2010

This code:

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

works as expected on the emulator (on Android 2.1 virtual device) but on phone (HTC Desire Android 2.1) it just clears the screen, can't see anything drawn. If I comment out the

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

It works on the phone, but not if I have the gluLookAt call in onDrawFrame.

What's the problem with gluLookAt in onDrawFrame?

View 1 Replies View Related

Android :: Test If Vibration Works Using Emulator?

May 1, 2010

I make a simple call to Vibrator.vibrate(long time);, but in the logcat I don't see anything related to it. How can I test if the vibration works using the emulator?

View 3 Replies View Related

Android :: Content Provider Works In Emulator Not On Device

Apr 2, 2010

I developed a custom content provider for extracting data from zip files. The provider works properly in the emulator but when I run the apk on the device I get no content provider followed by the url The manifest says (outside the application tag

CODE;..................

View 3 Replies View Related







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