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
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
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
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
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
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?
View 7 Replies
View Related
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
Sep 8, 2010
I just got a milestone yesterday, and I was fascinated by it. The only thing that kills me, is that it doesn't take permission to connect to the internet. I used to have a Nokia, which always had to take my permission first to connect to 3G internet network.
But with the milestone, it doesn't, and I get charged for every single 1kb used I just lost what is equivalent to $10 USD in the last 5 mins for just trying to open Google and download the SlideME app. is there some kind of hidden tasks that uses the internet or something ?
One more thing, today morning, I opened facebook after recharging my credit balance with 20 USD. And guess what ? They're all gone too for just opening the home page! if I have an active internet connection, how can I close it ?
View 8 Replies
View Related
Jun 30, 2010
I have troubles with OpenGL textures on Motorola Milestone with 2.1 firmware. Each call to glGenTextures fails with error GL_INVALID_OPERATION and sets the id with random numbers. The exact same application works on G1 without any error.
View 1 Replies
View Related
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
May 4, 2010
I'm having this problem only on Motorola Milestone. Code:
CODE:................
The errorinformation I have (can't find more for the moment since I don't have a milestone myself for debugging):
CODE:..........................
Apparantly I'm not the only one with this problem. Some very similar threads I found (without solution):
http://groups.google.com/group/android-developers/browse_thread/thread/6dd24aeb484b2e40
[url]
[url]
[url]
[url]
View 4 Replies
View Related
Aug 9, 2010
I am developing a program drawing text on screen using android NDK in C native code. Could you please tell me how do I render the text?
View 4 Replies
View Related
Aug 25, 2009
I am trying to write an application, that would allow me to render multiple images onto an ImageView in Android. I can find the method to populate it with a sigle bitmap. But, there seems to be no way of getting two images to render in ImageView (Each occuping half the render space). Any help would be really appreciative.
View 2 Replies
View Related
Jan 16, 2010
My milestone doesn't recognize its being plugged in, i.e. i cant charge it. If it the screen is off and i plug in the usb it lights up but wont charge, ive tried two different usb cables and from mains adapter (with/without dock) and from the PC. Anyone else have the same problem?
View 3 Replies
View Related
Apr 21, 2010
I'm using a WebViewClient that overrides shouldOverrideUrlLoading so the browsing stays inside the WebView. I initially call loadDataWithBaseURL with some HTML I have in memory, which has links in it. When I click the links, they load correctly in the webView. Everything is good up till now, but when I press back, effectively calling webView.goBack(), the webView loads the failUrl I passed to loadDataWithBaseURL. Why does it work going forward, but not going backward?
View 1 Replies
View Related
Sep 8, 2010
I'm using my Milestone fine and everything, but there's a small problem. Sometimes when I'm using the Internet, it'll say say I have a 3G or H Connection but doesn't load anything? The same happens on the Android market, it'll stay loading a list of Apps for ages and will tell there's a trouble with the connection, but then 2 minutes later it'll be fine. Using a T Mobile sim in Motorola Milestone.
View 1 Replies
View Related
Jun 9, 2010
I noticed on my Motorola Milestone 2.1, that ADHOC networks doesn't appear on the regular wifi settings , I cannot connect to my laptop for internet sharing (notebook to phone) Anyone noticed this problem or is it me?
View 6 Replies
View Related
Sep 20, 2010
When I play video on my Milestone it doesn't fill the screen. There is a small black border all the way around the picture. Does it on video recorded with device and with video loaded on SD. Anyway to make it fill the screen?
View 4 Replies
View Related
Jun 30, 2010
On my UK Milestone (rooted), long press on the search button only works when the hardware keyboard is shut, when the keyboard is open, long press works the same as a short press.
While looking for a fix for this, I found very little information on the net, so I'm wondering if it's a problem with only selected devices. Can anyone confirm for me if theirs works or not?
I have OpenSearch assigned to long press search, and since I always use the hardware keyboard, I need to close it, long press search, then open the keyboard. It's annoying.
I've looked at editing the qwerty.kl file in /system/user/keylayout, my idea was to try to redefine to search key on the keyboard (between left alt and @) to launch OpenSearch, but it apears that I can only redefine keys to other keys that way, not launch apps.
View 3 Replies
View Related
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
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
May 3, 2010
Did you guys notice how the speaker on the Milestone/Droid gets dirty, it's like a magnet for dust and lint, and once it's in there, it won't come out.I just found a little trick to clean it out:
1- Just grab a little amout of "fun-tak" or any other sticky putty.
2- Push it into the speaker hole, and the dust will come out with it when you remove it.
3- Rince and repeat
I was so glad to finally get it clean, that I had to share it.
View 2 Replies
View Related
Nov 30, 2009
Does anyone have a list of differences between the Droid and Milestone?I have a Milestone but most of the information on the Web is about the Droid.My current concern is about the amount of user flash memory. All information relating to the Droid states that there is 256MB available for user apps, yet on my Milestone, it only shows 197MB available?
View 8 Replies
View Related
Jan 1, 2010
i'm new to Android, still have much to learn.I'm wondering if we can take the startup bootanimation and the sound droiiiiidd of Droid into the Milestone.The startup of Milestone is so plain. Not really impressive.I already asked, there are some suggestions that adb push and pull to attach these new things into the Milestone.It's just "really hard" to me.1 more thing, the operating system doesnt not recognize my phone.I'm using win 7, i did install the Android SDK, typed : adb , it said : Cant not find the device (The Milestone). <- Must be solved first.
View 1 Replies
View Related
Mar 22, 2010
After many lost calls now I'm sure sometimes my Milestone just doesn't ring.This seems to happens when I don't use the phone for a long time, but I was not able to voluntarily reproduce the issue.Do anyone have the same problem?
View 4 Replies
View Related
Jun 17, 2010
I cannot render a large triangle on android,what I can see is a rectangle,just like the triangle drops a corner This is my vertex array: [-8240, -3540, 10120, -8240, -3540, -3800, -8240, 10582, 10120] and this is my code: gl.glVertexPointer(va.getComponentCount(), gl.GL_SHORT, 6, vertices); gl.glDrawArrays gl.GL_TRIANGLES, 0, 3);
View 2 Replies
View Related
Jun 1, 2009
I am using OpenGL ES and drawing a triangle strip with 4 vertices. The texture I'm drawing was loaded from a PNG using BitmapFactory.decodeStream. I'm confused as to why my images look so bad. I took a screenshot and made the following image, which shows the on-device rendering on top and the actual image on bottom:
http://n4te.com/temp/imgDiff.png
Any idea why there is a difference? I have tried a bunch of different settings but I can't keep it from looking bad.
View 2 Replies
View Related
Sep 9, 2009
Great potential development opportunity.
View 2 Replies
View Related
Dec 28, 2009
I've written a simple widget application based on the wikitionary code. When run on an wvga854 emulator, the widget view does *not* update after a call to...
View 6 Replies
View Related
Oct 30, 2010
I know you can't take a screenshot without having root access, but is there a way to render an activity and all the contents to an image file?
anyone have code to do this? it would be nice to have any dialogs, menus, etc... as well, but not required.
View 4 Replies
View Related