Android :: Point Sprite Support

Oct 5, 2009

Can someone confirm for me that point sprites are not currently supported in Android? Calling gl.glEnable(GL11.GL_POINT_SPRITE_OES) is triggering a GL_INVALID_ENUM error, so I assume this is the case, but I'd appreciate a confirmation before I proceed with an alternate design.

Android :: Point Sprite support


Android :: Can't Use Point Sprite API In Droid NDK / Way To Do

Jun 15, 2010

I want use point sprite (OpenGLES Extension) API in Android NDK(r4).
right here
int att[] = {0,0,1};
glPointParameterxv( GL_POINT_DISTANCE_ATTENUATION, att );

But, doesn't work it.

View 1 Replies View Related

Android :: Floating Point Support On G1 Phone

May 17, 2009

I have been searching about the floating point support on G1 phone (aka the HTC Dream phone) for a few hours.

So far, my conclusion is that the ARM-based Qualcomm MSM7201 CPU does not have VFP (floating point coprocessor) and therefore floating point calculations have to be done via software-float.

This is quite disappointing as I am interested in developing applications with heavy math.

However, I also notice that the Qualcomm CPU has QDSP4000â„¢ and QDSP5000â„¢ high-performance digital signal processors (DSP), according to http://www.qctconnect.com/products/msm_7201.html

Therefore, here is my question: would it be possible to leverage the DSP modules in the MSM7201 CPU to do the floating point math?

Also, I would like to develop the heavy-math modules in C/C++ and call it via JNI, and so I just want to double-check whether this is a feasible approach.

View 13 Replies View Related

Android :: Floating Point Hardware Support?

Feb 22, 2010

I'm currently developing a application on a HTC Dream aka T-mobile G1. afaik the processor has a FPU coprocessor, called VFP (Vector Floating Point) in ARM terms. So far I couldn't find any information about if the FPU is used for floating point calculations or if those are emulated in software. does anyone have any information about that? the opengl implementation supports both fixed point and floating point. will my applications be slower when I'm using floating point, because they get transformed into fixed point internally? or is floating point implemented in hardware?

View 5 Replies View Related

Android :: Floating Point Support / Determine At Runtime?

Oct 20, 2009

Is there a way to determine if the system supports floating point? That way, I could choose between two algorithms to use.

View 4 Replies View Related

Samsung Galaxy S :: 5 Point Multi Touch Support

Jul 5, 2010

YouTube - Samsung Galaxy S 5-Point multitouch support

View 4 Replies View Related

Android :: MyBackup Or Sprite

Feb 1, 2010

Not sure which one to go for so thought I would set up this poll and see which is the most popular.

View 3 Replies View Related

Android :: J2ME Like Sprite

Sep 25, 2009

For my useless project of the month I'm working on a 'emulator' to run J2ME programs on Android. But now I'm stuck with the J2ME Sprite implementation. Specifically the transformations used in it.

In my Sprite I have a bitmap with three character images. I would like to paint the second frame mirrored or rotated 90 degrees. What would be the best way for it?

I have following code that paints the given frame without any transformations.

frameX, frameY are frame position coordinates on give sprite bitmap.

Rect src = new Rect(frameX, frameY, frameX + spriteWidth, frameY + spriteHeight);
Rect dst = new Rect(paintX, paintY, paintX + spriteWidth, paintY + spriteHeight);
canvas.drawBitmap(image, src, dst, null);

As I understand I need to make some matrix magic on the canvas, but I have not been able to figure this out.

View 3 Replies View Related

Android :: Sprite Equivalent API Of J2ME?

Jan 30, 2009

Does Android has any equivalent Sprint API of J2ME. Drawable does not seem to support clipping regions...

View 9 Replies View Related

Android : How To Color Key 2d Sprite Backgound

Mar 19, 2009

I am working on a 2d library for creating a game including sprite collisions, sorting and animation converting (.spr to Java classes/ bmp's).

At first I used png's with the background color being transparant (24 bits png image) but I want to use 256 color bitmaps with the background color being transparant.

Is this possible to do color keying in android? I looked at several other threads about this topic but the all ended without a solution.

Also I am now using the canvas.drawBitmap to render my sprites, but will using opengl be faster?

View 9 Replies View Related

HTC Incredible :: Micro USB Side Of Cable In Sprite

May 29, 2010

I knocked a cup of Sprite onto the floor and it dumped out right over the micro-USB end of my charger (as in all of it was emerged in Sprite). So it's been a few days and I know it's completely dry, but I was wondering or not if it would be okay to still use it? I didn't know if that somehow messed the cable connector up. Luckily I still have the charger for my old BlackBerry Storm.

View 1 Replies View Related

2D Canvas Bitmap Sprite Sheet Animation?

Oct 13, 2011

i want to create a basic animation with a sprite sheet. there is only one row with about 2 pics (that's the first animation).

View 3 Replies View Related

HTC Droid Eris :: Restore Files Using Sprite Mechanic

Mar 13, 2010

After following Matlock's post about upgrading to 2.1 I tried to restore all of my files using Sprite Mechanic. (Going back and re-reading his post he says that it doesn't work in 2.1-DOH). After installing Astro I tried re-installing Sprite Mechanic from the backup folder that I made with Sprite Mechanic thinking that was the way to get all of the back-up apps out of the back-up folder and onto the phone. I started Sprite Mechanic and proceeded to push the "Restore" tab and it brought up a list of all backed-up apps. I scrolled through them, deciding which ones I really wanted back and which ones I could do without, and then pushed the "Restore" button. Well, my phone froze up and would only display the status bar across the top. I tried pushing different buttons, but to no avail....

View 6 Replies View Related

App Inventor Image Sprite Move To Specific Coordinates?

Nov 8, 2011

I'm using App Inventor to develop a small game as Mole Bash.

The tutorial I'm following shows me how to make an Image Sprite appear on random locations given a certain amount of time.

I'd like to give the Image Sprite a list of 9 coordinates where he should position the image after the given amount of time in a random way.

So, I believe it should go something like this:

Procedure - Moveto - x1 OR x2 OR x3 AND y1 OR y2 OR y3

I can't seem to get the logic command OR on this procedure, since it will only let me give a min and max number for both x and y.

View 2 Replies View Related

Android :: Android -- Support 1.6 - Support For Deprecated Code In 1.5

Jul 3, 2010

I'm trying to build a app that uses the SmsMessage class but there are two versions depending on the API level of the device:

android.telephony.gsm.SmsMessage (deprecated for 1.6 and above)

android.telephony.SmsMessage (the new class for 1.6 and up)

I want to target 1.5 and yet have the newer class (android.telephony.SmsMessage) run on devices with 1.6 or higher. How do I do this?

I have already tired this: http://devtcg.blogspot.com/2009/12/gracefully-supporting-multiple-android.html but I couldn't get it to work (the author doesn't mention how he/she handles the different imports, the exact api level settings etc.)

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

View 2 Replies View Related

Android :: How To Update Access Point?

Oct 13, 2010

I have successfully programmed insertion & deletion of an Access Point in database but I need to find out how to update an access point. I'm using db.update() but its not producing any result. I am using the following code to update an access point:

ContentValues updateFields = new ContentValues();
ContentResolver resolver = getContentResolver();
updateFields.put("name:", "AIRTEL");
updateFields.put("apn_addr", 11023);
resolver.update(TABLE_APN_URI,updateFields,"_id=?",new String[] {Long.toString(2)});

While updating I'm not getting any error as well.

View 1 Replies View Related

Android :: How Do I Point People To My App In Marketplace?

Apr 7, 2009

I understand that Android Marketplace is not available on the internet, just from the phone.I would, however, like to point people to my application if possible. If the person receives their emails on the G1, what type of link can I give so that clicking on it will take them to the app in the Android Marketplace?

View 3 Replies View Related

Android :: Getting Hardware Floating Point With NDK

Jun 9, 2010

I've begun playing with the android NDK. One of the things I've just learnt is about creating an application.mk file to specify the armv7 abi. I'm building the san-Angeles example with the following parameters. Code...

View 1 Replies View Related

Android :: Stop BroadcastReceiver After Some Point

Nov 13, 2009

I want to stop BroadcastReceiver after some time / after some work.

How to stop BroadcastReceiver after some point from service/ activity ?

View 5 Replies View Related

Android :: How To Get Point From Click Google Map?

May 31, 2010

I want to get the point of the mapview throuth click the map.I have tried to use the onTouchlistener,but in this way,the map can not move,zoom. Please give me some idea or a sample!

View 6 Replies View Related

Android :: How To Change Point On Map By Clicking On Map?

Nov 3, 2010

I want to give my users oppertinty to choose destination. from the beginning it will already have a point on the map, and after that they can choose/change to another location if they want. how is it possible to change the point on the map, by clicking somewhere else on the map?

View 1 Replies View Related

Android :: Calculating Direction From Point A To B

Sep 17, 2010

I'm trying to create a compass for my application BUT the difference is that, instead of having a line always pointing to north, I want this line to point for a specific point. I've been trying dozens of algorithms and nothing works. I've finally found one that points me exactlly to the point I want. But it doesn't move if I change the position of the device which is my objective. Basically, what I want is that no matter the direction I'm using my device. The line always point me to the point (picLatitude,picLongitude). I understood that for the line to move, I can't use static variables. I need to use the values offered by the onSensorChanged(SensorEvent event). This are the data I have available:

event.values[0]: azimuth, rotation around the Z axis (device in relation to north, 0º) event.values[1]: pitch, rotation around the X axis event.values[2]: roll, rotation around the Y axis mLatitude: device current latitude got from GPS (variable) mLongitude: device current longitude got from GPS (variable) picLatitude: static picture latitude established previously picLongitude: static picture longitude established previously distance: distance in Km from device to the picture calculated previously

And this the formula that works correct, and gives me the correct angle. (But it doesn't use any of the Sensor Data so the line Compass doesn't move):
double dLong = picLongitude - mLongitude; double y = (Math.sin(dLong) *
Math.cos(picLatitude)); double x = (Math.cos(mLatitude) * Math.sin(picLatitude) - Math.sin(mLatitude)*Math.cos(picLatitude)*Math.cos(dLong)); double angleDegreesWrongRange = Math.abs(Math.toDegrees(Math.atan2(y, x))); float angleDegrees = (float) ((angleDegreesWrongRange+360) % 360);
myCompass.updateDirection(angleDegrees);
I got this "bearing" formula from this website: http://www.movable-type.co.uk/scripts/latlong.html. I've try adding, subtracting, the azimuth.. I've tried with the others, seriously at this point I'm just demoralized.

View 13 Replies View Related

Android :: Cedar Point Map App For Phone?

Aug 17, 2010

Does anyone know if there is an app out there that has cedar point mapped out? I cant seem to find one. Im heading there tomorrow and would like to be able to ditch the map and just carry around my phone.

View 2 Replies View Related

Android :: What Is The Starting Point For Animations

Jul 19, 2010

I am at a stage where I can understand and write a decent Android application. At this stage, I am still not comfortable with SurfaceHolder, Canvas, View invalidate() etc. I don't have a CS background so I must've missed these from a CS Graphics course or something.

Starting directly with Android seemed like a bad idea because there are not many examples out there. And sometimes I am getting things done, but I don't understand what the heck is going on. For instance, there are a few dangling observations. Calling invalidate() from within a view calls its onDraw method but from outside it doesn't do anything and I don't know why this is happening. I know SurfaceHolder can be a powerful thing but I don't know how to use it.

For an absolute beginner to be able to handle this stuff, what are the resources one should follow? Is it animation basics or screen rendering or something else altogether? I mean, it cannot be the case that Android guys invented these concepts right? They must be similar to something out there which has some tutorials already. My end goal is to put myself in a position where I can write some simple custom views that can animate themselves and use some basic physics to react to touch events.

View 1 Replies View Related

Android :: Get Notified When New Access Point Is Added?

May 26, 2010

I was wondering is it possible to get a notification of when a new configured network is added to the Wifi Manager in Android? I know you can get the current list of configured networks.

http://developer.android.com/intl/de/reference/android/net/wifi/WifiM...

But is it possible to get notification of when a new one is added? I don't see anything in the Wifi Manager that would be helpful. How this could be achieved?

View 2 Replies View Related

Android :: WiFi Access Point On HTC Desire

Oct 1, 2010

How do I configure HTC desire as WiFi access point?

View 1 Replies View Related

Android :: OpenGL ES Fixed - Floating Point

Oct 13, 2009

I've started developing an OpenGL ES app and I would like to get the best possible performace (as everybody, I guess).

As far as I know, HTC Magic (myTouch, G2) doesn't have floating point unit, so I think every calculation is done internally with fixed point math. That beign the case, altough I fed OpenGL with floating point vertex positions and normals, there would not be any permormace penalty since it would be using integer math instead of floating point emulation.

View 2 Replies View Related

Android :: Open GL Fixed Vs Floating Point?

Jan 6, 2010

OpenGL ES allows values to be specified in either fixed point or floating point format, but I haven't been able to find any information about how this is actually implemented on Android devices. Are there actually two different pipelines, one for fixed point and one for floating point? If so, what happens if you mix and match them, such as specifying your matrix in floating point but your vertices in fixed point? Alternatively, does it implement everything with just one format internally, and convert the other format to it as necessary? If so, then you presumably get the best performance if you always specify values in the internal format so as to avoid conversions. How then can I determine which format is used internally?

View 9 Replies View Related

Android :: Add Floating Point Value To Resources / Values

Jul 19, 2010

I'm trying to add a little space between lines to my Text Views using android:lineSpacingMultiplier
from the documentation: Code...

View 1 Replies View Related

Android :: Math Floating Point Library

Jan 12, 2010

I need maths for my game physics and lots of them, so I use the. Math library. And guess what? I never casted so much to floats in my entire life. And i know how costly it is to use doubles on an embedded device because I read the performance optimization page in the google android sdk docs. So I am wondering if we couldn't get a Math package with functions taking and returning floats instead of the default doubles. e.g. Math.sinf Math.cosf.

View 3 Replies View Related







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