Android :: Fastest Way To Draw A Lot Of Points In OpenGL ES?

Dec 26, 2009

I'm making a game for android where I need to draw a lot of points that change position every frame. I use the ndk to get faster processing performance of the math/physics section of the game, so I need to use OpenGL to get the fastest performance. Right now, I make a texture every frame out of an array that holds the colors of every pixel. I am only able to get ~10 frames per second with this method. Is there anyway I could speed this up? ...

Android :: fastest way to draw a lot of Points in OpenGL ES?


Android :: Draw Bitmap Fastest Mode

Dec 25, 2009

What 's the fastest way to display a bitmap? Now I am using Bitmap.setPixels and ImageView.setImageBitmap all time that this change. It has a refresh of 15 fps. It work good, but I am not sure that is the best method to get best performance. Is better use Canvas.drawBitmap with a SurfaceView ? or opengl ?

View 3 Replies View Related

Android :: Draw Path Between Two Points On Map?

Oct 7, 2009

Do anybody know how to draw path between two points on Map?

I need to draw a line, from one point to other...

I found one link (http://csie-tw.blogspot.com/2009/06/android-driving- direction-route-path.html) about this, but it´s not works well.

View 3 Replies View Related

Android :: How To Draw A Curve Connecting Three Points?

Sep 28, 2010

I would like to draw a curve(an arc) connecting three points in my screen PointA = (480,46) PointB = (160,137) PointC = (0,228) How to draw the curve using Android APIs ?

View 7 Replies View Related

Android :: How To Draw A Nice Flight Route Between 2 Points?

Aug 1, 2010

How can I draw a nice flight route between 2 points on a google map's
MapView?

View 2 Replies View Related

Android : Draw A Perfect Curve Connecting Three Points?

Sep 28, 2010

I would like to draw a curve connecting three points in my screen
PointA = (480,46)
PointB = (160,137)
PointC = (0,228)

How to draw the curve using Android APIs?

View 1 Replies View Related

Android :: Google Maps - MapView - Draw A Nice Flight Route Between 2 Points

Aug 1, 2010

I wonder, how can I draw a nice flight route between 2 points on a google map's MapView? look at this: http://maps.forum.nu/gm_flight_path.html

View 6 Replies View Related

Android :: Draw Path On MapView From Large Amount Of Longitude/latitude Points

Aug 2, 2010

I am writing a application that needs to draw a "route" comprised of lots of GPS points (long+lat). The points are close together and don't follow roads, simply drawing a line between each point is ideal.

The current implementation I have is very slow as I am looping over all the GPS coordinates and creating a new Point and overlayitem in an itemized overlay. This takes around 20 seconds for it to load all of these points and draw them to the mapview. Is there a way in which I can construct a series of lines or point from the GPS coordinates and draw them onto the mapview?

Example of current implementation:

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

View 2 Replies View Related

Android :: Draw A Bitmap - Using OpenGL

Aug 30, 2010

I have a byte array of RGB values, just like the contents(without header) of a *.bmp file. What I want to do is, draw the corresponding bitmap on Android, using OpenGL.

It seems that OpenGL ES doesn't have a single API that will do, it true?

If true, how can I do this?

Actually, I can draw it in JAVA code, but it's too slow and costs too much CPU time. So I want to try drawing it with OpenGL. Is there any other advises? Or maybe OpenGL can't be the right answer?

View 2 Replies View Related

Android :: Draw Text In OpenGL ES

Aug 27, 2009

I'm currently developing a small OpenGL game for the Android platform and I wonder if there's an easy way to render text on top of the rendered frame (like a HUD with the player´s score etc). The text would need to use a custom font also. I've seen an example using a View as an overlay, but I don't know if I want to do that since I might want to port the game to other platforms later.

View 4 Replies View Related

Android :: Draw Png Image And Run Opengl

Mar 14, 2009

Is it possible to draw a png image and then to run opengl operations on it with android? Is this the right forum to ask this? where can i get more information on doing such stuff?

View 2 Replies View Related

Android :: How To Draw A Different Lines In OpenGL ES

Apr 28, 2010

How to draw different types of lines like thick line, dashed line etc using opengl android?

View 6 Replies View Related

How To Draw Sphere With OpenGL ES In Android

Sep 7, 2012

How I can draw a sphere with opengl es in android?

View 1 Replies View Related

Android :: Easiest Way To Draw Texture With OpenGL ES?

Feb 6, 2010

the draw_texture function is the fastest and VBO is 2nd faster. But I don't understand how to use it(the draw_texture method or the VBO way).

View 2 Replies View Related

Android :: Draw Translucent Bitmaps Using Canvas Without Having To Resort To OpenGL?

Mar 17, 2010

I have a Bitmap object and want to render it to a Canvas object with varying levels of translucency (i.e. make the whole bitmap partially see through). For example, I have sprites in a game (that are drawn over the top of a bitmap background) that I want to fade out from being opaque to being invisible. Can I do this without having to resort to OpenGL?

View 2 Replies View Related

Android :: OpenGL Thread Suddenly Dead? (on Draw Frame No More Called)

Mar 22, 2010

I have a problem with a suddenly dead(?) OpenGL Thread. After an indeterminate time (30 seconds to a couple of minutes) the onDrawFrame of the Renderer simply doesn't get called anymore. I get no exception, no ForceClose, no ActivityNotResponding, no nothing! I can still open the Menu, have another Handler/Runnable-cycle logging out "Alive", etc Recently I introduced some native stuff (physics-library). But I can verify that there is no native problem, as there is obviously no native crash and after the GLThread died, I can still do like: Log.d("Before native call") nativeCall(); Log.d("After native call") Maybe anyone of you experienced something similar to this?

View 4 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 :: Draw Route Path Draw Function

Sep 5, 2010

In my android application I use this method in "draw" Overlay class for draw route on map. Can someone tell me if this method is good (in terms of performance) for route draw on map or I must to put code in Thread ??
I'm new to android.

public synchronized void draw(Canvas canvas, MapView mapView, boolean shadow) {
if (pointsAndTimes.isEmpty()) {
return;
}
Projection projection = mapView.getProjection();
Paint paint = new Paint();
paint.setARGB(250, 255, 0, 0);.............

View 1 Replies View Related

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 :: Fastest 2D Frame Rate Possible With NDK?

May 20, 2010

Fastest 2D frame rate possible with android NDK, my try included, better options available?

I used the NDK and OpenGL ES 2.0 to display a frame as a texture on a GL_TRIANGLE_STRIP. This was done on a HTC Desire, same hardware as Nexus One. I tried to load multiple GL_RGBA textures and switch between the textures, because the normal fill rate with a single texture was disappointingly low:

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

I think even 30.32 fps RGBA is still too slow.

So is this the way to go to achieve the fastest 2D frame rate (with same quality)?
Any suggestions to speed it up?

Here is the relevant code, it is based on the hello-gl2 NDK example:

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

View 1 Replies View Related

General :: Best And Fastest PDF Reader For Android?

Jul 15, 2012

I have tried them all, from EZ pdf reader to mantano and no one is working fine. I have an pdf file which is 48 pages and it takes more than 30 minutes for it to load complety. Isn't there any decent pdf readethat is decent and can render and open big pdf files fast?

View 9 Replies View Related

Android :: Whats Fastest Way To Force Stop?

Aug 6, 2010

I've done a search but found nothing. It seems like when I have to force stop an application, it takes me 8-10 button presses to accomplish it (menu-settings-applications-manage applications-sort by size-sort az-find application-scroll down-force stop). It's just not easy. Especially if I'm driving or jogging. Is there a quick and simple way to force stop an application?

View 3 Replies View Related

Android :: Fastest And Most Reliable Location Provider

Mar 31, 2010

I am working on an app that fetches localized data from the Web based on the user's long/lat. Currently I am querying the system for the best enabled provider [my criteria defines best basically as most precise--not sure if this is the best idea for my application, as at the point where I fetch data it really doesn't matter if the user is here or 3 miles from here.].. But anyhow, I'm curious as to what is most reliably the fastest Location provider? Network or GPS? My app hangs a bit "Acquiring your location" on my loading screen and I'd like to cut this wait time down as much as possible.

View 17 Replies View Related

Android :: Fastest Way To Read Long[] From File?

Sep 29, 2010

I have a file that contains about 200,000 long values that I want to read as fast as possible into a long[]. It's for an Android app; function calls are slow (so anything involving reading a long at a time with a "for" loop will be super slow) and I need loading to be fast. What can I use? Everything I look at seems to read only bytes fast.

I've used ByteBuffer and FileChannel from the NIO package before and this seems a really fast way to load arrays of values from files. However, I cannot work out how to use this to read data into a long[]. I've tried wrapping a long[] as a LongBuffer, but I cannot see any way I can feed data from a file into a LongBuffer.

Edit: Whatever method I use, I need to be able to use Arrays.binarySearch on the long[] array at the end.

View 2 Replies View Related

Android :: Fastest Way To Display Loading Screen

Nov 14, 2010

hello, i have a gles based game that takes quite some time to load because of the huge amount of textures.

now i want to display a loading-text or loading-bar as soon as possible as the application is starting up.

what is the fastest way to display a text like this? should i do it in gles as well or should i use an alert or view?

View 1 Replies View Related

Android :: Fastest Path From Text To Desktop

Aug 5, 2010

There are several apps that a user create various files from an Android (textual documents, audio recordings, photos, links) and store them on a website where they can be accessed later from a desktop computer.

I am looking for a way to do the reverse.

I do a lot of data gathering from my desktop computer. I copy large amounts of text and links and paste them into either a .txt or .rtf file.

What would be a simple method to send a .txt or .rft file from my desktop directly to my SD card AND create a shortcut link for it either on my Android desktop or in system folder somewhere that I can have a desktop shortcut to?

I realize the solution might seem obvious, but while I am using my Android to view Google docs, or Evernote, or Snaptic it is not apparent to me how I can simply pull the document from the web and store it on my phone for quick access.

I have tons of .txt and .rtf files that I would like to permantly store on my SD card, so whatever quick method you know of will be uber helpful.

View 4 Replies View Related

Android :: Fastest Way To Scrape HTML Webpage ?

Jun 4, 2010

I need to extract information from an unstructured web page in Android. The information I want is embedded in a table that doesn't have an id.

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

Should I use. Pattern Matching? Use BufferedReader to extract the information? Or are there faster way to get that information?

View 6 Replies View Related

Android :: Fastest Method To Read / Write SD Card?

Jul 18, 2010

There are a lot of different classes that can be used in various ways to read/write to files in Android. For example, you can make use of java.nio.ByteBuffer, FileOutputStream and BufferedOutputStream. Are there any general guidelines for what to use to read/write quickly to the SD card? For example, BufferedOutputStream seems as if it should make things faster but I'm unsure the buffer size should be set for. Specifically, I want to read/write byte arrays that are ~1Mb in size as quickly as I can.

View 1 Replies View Related

Android :: Fastest Method To Copy Contacts From One Eris To Another?

Jan 28, 2010

What is the fastest method to copy a lot of contacts from one Eris to another?

View 1 Replies View Related







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