Android :: OpenGL Half Screen
Oct 7, 2010
I have follow an example of an opengl application and I don't know why is this thing happening...I have a GLSurfaceView with it's corresponding renderer drawing a triangle. But, instead of getting the whole view on screen, I have just the upper half, and it's also duplicated as you can see on the picure. I'm using a Nexus One.
View 3 Replies
Feb 21, 2010
I'm trying to create a drawable in xml, a rectangle with one gradient on the top half, and another on the bottom half.
This is NOT the way to do it, apparently:
CODE:................
How can I do this, preferably in a way that makes it stretchable to any height?
View 2 Replies
View Related
Sep 11, 2010
I bought a new droid for $20 haha lucky i think until i notice that the touch screen only works for the middle of the screen to the left so if yu cut the screen into thirds only the middle and left work assuming that yu cut it from top to bottom with the lights at the bottom for the home button etc. I opened it up cleaned all the flex cable with alcohol and waited for it to dry and it still does the same thing so my question is = do i need a new digitizer or is it a software problem or something that i dont even know?
View 9 Replies
View Related
Oct 15, 2009
I used my Hero this morning/afternoon with music, wi-fi, internet browsing, and I used up the first half of the battery. And after that, I have been mostly studying and not using my phone... but the second half of the batter drains, it seems like, FASTER than the first half did! No music playing, no wi-fi, no internet browsing? Is this normal? Is it just the nature of these batteries?
View 2 Replies
View Related
May 16, 2010
Anyone know of a 4x2 or 4x1 email widget? Am using a htc Desire and while the htc widget is fine I'm looking for one that does not fill up the whole screen.
View 6 Replies
View Related
Apr 5, 2010
Is it possible to assign a widget width to half the available screen width, and do it using declarative xml?
View 1 Replies
View Related
Aug 12, 2010
I just woke up and the bottom half of my X's screen is black/grey with green lines! This is the FIRST issue i have had with this phone. Picture is from the only other camera in the house, my crappy webcam, so its hard to really see. Anyone else had this? Did verizon help (especially if you bought it from their site) what should i bring to the store to get it replaced?
View 9 Replies
View Related
Mar 31, 2012
I'm looking for a weather widget that will take up half a screen (4x2). It'll show me a 5 day forecast for an area and show other areas I have chosen at the touch of a button.
Think similar to the Facebook widget where I touch a small arrow and the next City comes up.
View 4 Replies
View Related
Aug 2, 2010
I've just come to notice a problem with my desire, which I believe to be fairly long standing.For quite a long time I've been thinking that scrolling down lists/webpages/in apps etc has been quite stuttery, the wierd thing being that if you flick the list/page/whatever and let go (ie let the momentum take it) it's a lot smoother. I noticed today that when I'm scrolling with my finger on the top half of the screen it's actually really smooth, but as soon as my finger reaches the halfway point on the screen it starts to stutter. The stuttering isn't random, it seems like there's a grid of sensitivity on the screen, so it only catches up every 5mm or so (it feels like there's about 15 points of sensitivity horizontally on the screen).To test it I first downloaded the multitouch test app (as it purely reads from the driver where the touches are being detected and displays it on the screen). It still happened. I then downloaded a free drawing app, which seems to accentuate the problem, as when my finger reaches the midpoint of the screen it stops drawing altogether!I imagine it's probably a hardware problem as it's been happening for ages (only just recognised though) and during that time I've installed a debranded rom and then updated to froyo.Has anyone else noticed anything similar? I'll try and get a video on youtube to show the problem at some point. Any advice of things to try or should i just call T-Mobile support?
View 1 Replies
View Related
Aug 25, 2010
So I have no clue how I got the scratch, but I have about a half inch scratch on my phone. It's very light and usually covered by a finger print. I am going back to screen protectors but I would say for a first scratch not a bad run. I have kept it naked since I bought it and have had kept in my keys with pockets. Honestly I wouldn't doubt thats how it happened !
View 24 Replies
View Related
Oct 2, 2010
The screen is off, with the phone left in standby mode. Is it normal for it to die that fast.
View 17 Replies
View Related
Aug 5, 2010
How bright do u have ur htc hero my brightness is about half way is this good does it drain the battery faster.
View 9 Replies
View Related
Feb 23, 2010
why is it when i hit the volume rocker on the side, it only goes half way? i mean, its still loud as hell, but still. Even the Alarm volume only goes half way.
View 3 Replies
View Related
Oct 23, 2009
I've just dusted off an application I did for Android half a year ago. I upgraded to the latest SDK and Eclipse ADT. After some struggeling I get the application to run again. When I debug it I can see that all the right code are executed the right way. The application shows a OpenGL surface and animates stuff on it. It used to work perfectly (I even have it running on my HTC Magic device), but in the new emulator the screen is just white?
View 11 Replies
View Related
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
Feb 9, 2010
I am very new to OpenGL ES. I am implementing some demo app to load multiple textures on the screen. For demo purpose I have loaded 2 textures in 2 different locations on the screen using glTranslatef() and glBindTextures() twice. Now I am able to see 2 different images on the screen. Now I want to move one particular texture across the screen using mouse.
View 2 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
Jun 27, 2010
Can somebody take me step-by-step how to draw 2D stuff over a 3D scene (such as controls, etc.). What I've been doing so far has not been working (it only draws the 3D scene), which is (in every frame): draw the 3D scene as normal, projection matrix mode, load identity, call GLU.gluOrtho2D(gl, 0, myScreenWidthInPixels, 0, myScreenHeightInPixels), switch the array pointers (vertices and texture coords) to the ones for my 2D stuff, then drawElements with an appropriate index list. (then switch the array pointers back so the 3D stuff works again).I get nothing added to the screen (just the 3D stuff).Do I need to be doing something else for it to draw? Can somebody take me step-by-step?
View 5 Replies
View Related
Nov 2, 2009
Dear all, I want to implement the transition effect ( transparent with Z axis ) when user slip the android home to change home page. therefore, I plan to launch the new activity that is implemented by OpenGL ES to perform this effect. However, i encounter a problem that the screen/display is dark momentarily when launching the OpenGL ES activity.
View 3 Replies
View Related
Nov 10, 2010
I'm developing an Android application. I'm very new on it. I have the following classes:
class CustomGLSurfaceView extends GLSurfaceView
class CustomRenderer implements GLSurfaceView.Renderer
CustomGLSurfaceView uses CustomRenderer to render a cube on onDrawFrame method.
I've added an onTouchEvent(MotionEvent event) on CustomGLSurfaceView to manage touch events:
class CustomGLSurfaceView extends GLSurfaceView {
// For touch inputs - previous touch (x, y)
private float previousX; private float previousY;
private CustomRenderer myRenderer; public CustomGLSurfaceView(Context context) {
super(context); myRenderer = new CustomRenderer(); setRenderer(myRenderer);
} @Override public boolean onTouchEvent(MotionEvent event) {
float currentX = event.getX(); float currentY = event.getY();
switch (event.getAction()) { case MotionEvent.ACTION_MOVE:
myRenderer.handleMovement(currentY, currentY, previousX, previousY);
} // Save current x, y
previousX = currentX; previousY = currentY;
return true; // Event handled } }
May I have to modify onDrawFrame to draw something new or to rotate the cube? I thing I must do it on handleMovement.
View 1 Replies
View Related
Mar 21, 2010
How do I use gl.gluUnproject in my OpenGL ES 1.1 android app to determine what is selected when the user touches the screen?
My understanding is that the touch event results in a line and I have to find the first "thing" it intersects with.
Are there any tutorials on how to do this?
View 4 Replies
View Related
Sep 18, 2009
I've been working on a game framework for a little while, and while its far from perfect, I've put the current version online. To be honest, I haven't used much OpenGL in the past. Before last week I had never tried using it. If anyone would like to take a look, please do, I'd appreciate all the help possible on speeding it up. There are many features I have in mind and am planning at the minute, but so far it supports:
# Texture and Sprite management # Text, using TTF fonts # Organised layers # Two audio management classes, one optimized for music, the other for sound effects # Sprite dynamics (acceleration, terminal velocity, collisions) # Animation # Handlers to manage events fired through movement, animation, screen touches, accelerometer input, device shaking and collisions # Several minor features aimed at speeding development, such as screen settings and vibration.
View 1 Replies
View Related
Aug 1, 2010
I was trying to play games on Android website. But all the games are only appearing as half screen. They are not opening as whole screen. Need some help. here is a link to the game I am trying to play.
View 3 Replies
View Related
Feb 4, 2010
I'm trying to develop a 2D game to android using opengl. I know how to print images on the screen and animate them. But in my game I have a map and a want to zoom in and out and scroll the map. But I can't figure out the best way of doing it.
View 2 Replies
View Related
May 3, 2010
I have written a object selection algorithm which picks the objects by their color. i give every object an unique color and then i just have to use the glReadPixels method to check which object was selected
this works fine and is really fast but the problem is that the frame is displayed on the screen with all the picking-colors so the screen flashes every time you select something.
so my question is: how do i write everything in the correct display buffer but dont display it on the screen to avoid these flashes?
View 3 Replies
View Related
Nov 15, 2010
So a few days ago I went to download a few apps. None of them seemed to want to download and I was pretty annoyed about this for about 2 days. Suddenly the Market seemed to work again, and I got 5 or 6 notifications of successfully installed apps. Winner
Unfortunately, there's one that seems not to have downloaded: "Street View On Google Maps". It thinks it's downloaded, but it's not there. If I go to delete apps on my phone, I can't see it. If I go to place an app or a widget on my home page, I can't see it. However, if I find it in the market, it says it's installed. And if I tap it in the market, both the "Open" and "Uninstall" buttons are greyed out. Does anyone have any idea what's going on here and how I can fix it? If it makes any difference, I'm on a HTC Desire HD.
View 17 Replies
View Related
Mar 2, 2010
I have seekbar wich is for example 100dp height. How can i make only the top 50dp to be clickable and the down 50dp just to be covered with the progress.
View 2 Replies
View Related
Nov 19, 2010
Basically I have a fully functional ogl program (2D game) in opengl es 1.1, everything works fine except for one problem: glcolor
I'm trying to set some of my texture to half transparent and I would like to do it as follows;
gl.glColor4f(1f, 1f, 1f, .5f);
obj.draw(gl);
...
gl.glColor4f(1f, 1f, 1f, 1f);
I'm using VBO for my vertice, my textures and indices. (if that is relevant)
the problem is that nothing gets set to 50% transparency...
I'm don't think relevant to post all my code (mainly because it is spread out several classes with several GL options changing (blends, scissors etc etc).
What I would like is for people to tell me what state of OGL could prevent glcolor form working like I want, what functions should I check, what state should I call.
View 1 Replies
View Related
Jun 12, 2010
My app suddenly lost half its installs. Both on the Market website and on the device Market app.
View 1 Replies
View Related