Android :: Know Touched Cube In Opengl?

Feb 24, 2010

I drew cubes using opengl,

GLSurfaceView has onTouchEvent method. but I'd like to know

what cube was touched ?

cubes can move anywhere in the viewport...

Android :: Know touched cube in opengl?


Android :: Mapping Multiple Textures To Cube In OpenGL ES

Jun 25, 2010

I have just began opengl programming in android and i am fairly new to opengl as well. I've been using nehe's opengl tutorials as well as insanitydesign's android ports.I successfully managed to create a cube with a single texture mapped to all its 6 faces. I even mapped multiple textures to different faces of the cube.But the way I did it was to create 6 faces seperately, have 6 seperate index and texture buffers and then using glBindTexture() with the selected texture for each face and then calling glDrawElements. Isn't there an efficient way around this. Should i use a cube map texture instead of a GL_TEXTURE_2D?

View 4 Replies View Related

Android :: OpenGL ES - Texture Map All Faces Of An 8 Vertex Cube?

May 18, 2010

Working through some OpenGL-ES tutorials, using the Android emulator. I've gotten up to texture mapping and am having some trouble mapping to a cube. Is it possible to map a texture to all faces of a cube that has 8 vertices and 12 triangles for the 6 faces as described below?

// Use half as we are going for a 0,0,0 centre.
width /= 2;
height /= 2;
depth /= 2;
float vertices[] = { -width, -height, depth, // 0
width, -height, depth, // 1
width, height, depth, // 2......................

View 1 Replies View Related

Android :: Use Gl.gluUnproject In OpenGL ES 1.1 Phone App To Know What Is Touched In 3D Space From Screen

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

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 :: Detecting Where Has Been Touched

Jul 7, 2010

I have a single bitmap with several individual pictures in (each one is an option) and I would like to detect when the user touches these pictures. I am using the event.getX and event.getY to detect where is pressed, I know the top left X Y and bottom right location of each of the pictures. What is the best way of detecting which one is pressed? (i.e. tieing up the event press and which picture has been pressed?

View 2 Replies View Related

Android :: Rotate A Cube (3D Rotation)?

Jul 14, 2009

In the api demo, there is an example for how to rotate a cube, but it can only rotate about X axis or Y axis, without Z-Axis Rotation. So how to perform 3D Rotation?

View 5 Replies View Related

Android :: Edit Text Not Highlighted When Touched

Oct 28, 2010

I assumed this feature would be activated by default. How do I set an Edit Text box to do the normal orange highlighting when a user touches it?

View 1 Replies View Related

Android :: Mapping 6 Faces Of Cube With 6 Different Images

Oct 1, 2010

I am newbie to OpenGL programming. I was going through the code of API demos.I understood how to map a single image resource on to all the 6 faces of the cube,but i want to know how can i map 6 faces of the cube with 6 different images. I searched in the web without any luck.Can any one give me some ideas links , pointers on the same.

View 5 Replies View Related

Android :: How To Get Size / Limits Of A Touched Area?

Jul 26, 2010

I'd like to know if there's a way to get the size or the limits of a touched area ? So for instance, it could give me how many pixel the finger is covering.

View 1 Replies View Related

Android :: No Callback When List Item Is Touched

Feb 1, 2009

I have a ListView that is populated with a custom adapter. When an item is clicked with the trackball, it works fine, i.e. I can catch the event and move on, though when I touch an item with my finger there is no callback from the listener.The item does respond to the touch, by turning orange for that moment.What am I missing? Is there another listener I need to configure?

View 11 Replies View Related

Android :: Draw A Cube At Specific Co-ordinates?

Jun 30, 2010

I'm looking to draw a cube at specific co-ordinates. I've got all 4 corners and the centers x/y value. I now want to construct a cube at those co-ordinates. Does anyone know of any tutorials or have any information on how I would go about said task?

Ive got the following code. I'd like to map each of its corners to a specific x/y co-ord...

View 1 Replies View Related

Android :: App's Map Pins Not Appearing Until Screen Is Touched

Oct 5, 2010

I am experiencing a problem with my app. The 1st screen that appears is a map that displays pins that are located based on an XML file that is loaded from our server.

Sometimes the app loads as expected. Other times, the map loads but none of the pins appear until you touch the screen.

View 2 Replies View Related

Android :: Mapping Multiple Textures To Cube's Faces

Jun 25, 2010

I have just began opengl programming in android and i am fairly new to opengl as well. I've been using nehe's opengl tutorials as well as insanitydesign's android ports. I successfully managed to create a cube with a single texture mapped to all its 6 faces. I even mapped multiple textures to different faces of the cube.But the way I did it was to create 6 faces seperately, have 6 seperate index and texture buffers and then using glBindTexture() with the selected texture for each face and then calling glDrawElements. Isn't there an efficient way around this. Should i use a cube map texture instead of a GL_TEXTURE_2D?

View 1 Replies View Related

Android :: ListView Items Won't Show Focus When Touched

Jun 20, 2010

I've got a ListView that works just great, except for this minor annoyance. I can use the trackball/dpad to move up and down my list, and the background changes according to which row has focus. But when I touch the row (click or long click), there's no background change letting me know what's been focused. I've tried setting 'focusable' and 'focusable in touch mode' to true on the rows, but it still doesn't work.

Just in case it matters somehow:

I am setting onClickListeners for each row. The row is comprised of LinearLayouts, TextViews, and a single ImageView. Focusable/clickable is 'true' for each row. Have not specified values for these on the ListView.
Trackable does act funny. I can only move between rows after touching inside the ListView. If I scroll trackball above the first item, it's impossible for me to scroll back into the list.

View 1 Replies View Related

Android :: Add Marker On Touched Location Using Google Map In Phone?

Jan 31, 2010

How do I add a marker on a particular location in the map?

I saw this code that shows the coordinates of the touched location. And I want a marker to pop or be shown in that same location everytime it is touched. How do I do this? Code...

View 2 Replies View Related

Android : Playing Small Music File When Image Is Touched

Nov 4, 2010

I am New to android, My task is to playing a small audio file when we touch an image?

View 2 Replies View Related

Android : Convert Code From Sample-kube To Magic Cube / How To Detect Position

Mar 29, 2010

Is there any one has an experience on converting the code from the sample-kube to a magic cube? How to detect the position I click is the "small cube" object?

View 2 Replies View Related

Function That Returns Pixel Touched?

Oct 10, 2011

As title, i need a function that returns the pixel that i'm touching...

for example i have an image in background and i want that, if i keep touching a point for a little bit, it appears a menu where i can do something on that exact position like adding a draw on the picture in background...

already exists a function like that?

View 2 Replies View Related

General :: Any Way To Root Cube U9GTV

Dec 13, 2012

I bought a cube u9gtv, called also u9gt5. This is very good product, but i haven't found any thread on the web on a 'how to root' the tablet. Any way to install a better rom .

View 4 Replies View Related

General :: How To Root Cube U9GT4

Nov 1, 2012

I just bought this week the new cube U9GT4.

Yes, after a week usage I would like to root it for use some apps like in former times.

How could be root the tablet?

View 4 Replies View Related

General :: USB Driver For Cube K8GT

May 17, 2012

i wanted to start android development on a real, but not too expensive device. URL....The manufactorer is CUBE:URL>....It works fine and i wanted to connect it to my PC, running windows 7.The problem is: I could not find any usb driver on the (chinese) manufactorer site.

In the device manager the device was listed as "K8GT_W" and marked with "no driver installed".if there is a driver for this device or how to use some "generic" usb device driver with this device?

I downloaded the google USB driver with the android SDK manager.The i selected "update driver" from the device maanger + selected the google usb driver download directory.This shows the message "K8GT_W could not be installed".

View 3 Replies View Related

General :: CyanogenMod For Cube U9GT-2?

Dec 22, 2011

Is the Cube U9GT-2 compatible with CyanogenMod?

I've got Gingerbread on my tablet, but I'm not really satisfied with this OS, maybe because it's developed for smartphones and not tablets.

View 9 Replies View Related

KitKat 4.4 :: Touch Screen Only Working When Touched Twice?

Mar 11, 2014

This may be an Android 4.4 or Nexus 4 problem, but I suspect the former. I encrypted the device (using the in-built encryption stuff) and have found that now the touchscreen will only register if another part of it is touched. For example, when entering my PIN once I get into the OS itself, I have to hold down a finger somewhere else on the screen (usually having to move it between some of the later numbers).

When it comes to multi-touch features (zooming etc.), these work fine but still require another finger held down somewhere to work.

This is definitely a software problem as the touchscreen works fine when putting in the password to decrypt storage.

Is this supposed to happen - part of the encryption process - or is this a bug?

View 1 Replies View Related

General :: How To Upgrade OS Of Cube U30GT Tablet PC

Jan 21, 2013

How to upgrade the OSof Cube U30GT M tablet pc Andriod Ver 4.0.4.

View 2 Replies View Related

Samsung Behold 2 :: Use Media Cube Button With NES Emulator?

Mar 16, 2010

I really want to map the Cube button for gaming with NESoid or other emulators. Any ideas?

View 8 Replies View Related

Sprint HTC Hero :: Games Stutter When Screen Is Being Touched

Mar 7, 2010

Ever since I bought my hero in December, I have had this problem where if I'm in a game, and it requires the screen to be touched, the game stutters. This happened when I had the stock 1.5. I needed to trade my hero for another when a lot of dust showed up under the screen, so Sprint gave me another one, only this one worked perfectly. No stuttering at all. So I decide to root it, and now it's running Aloysius, and the stuttering is back. Does anyone know what could be causing this? It happens in both the official and unofficial firmware. I can't seem to find an answer anywhere. Games it does this in includes: Nesoid and snesoid, and Raging Thunder to name a few. These games worked perfectly to my shock when I got the new phone, as I originally thought it was just a hero problem. I even emailed the developer of Nesoid but he didn't know the cause. Any suggestions?

View 2 Replies View Related

HTC Desire :: Primo Cube For SmartPhones - External Battery Pack

Jun 26, 2010

Primo Battery Cube for SmartPhones. I'll be getting one of these when they are available in the UK.

View 5 Replies View Related

HTC Legend :: Notification Panel Open Randomly When Screen Touched

Sep 11, 2010

On Aug 10, 2010 I purchased an unlocked HTC Legend (A6365 - HSPA 850/1900/2100 Mhz). The phone operated wonderfully until Sep 8, 2010. At that time, the Notification bar couldn't be "pulled-down" anymore. Additionally, without rhyme or reason, when I touch the screen, the notification panel will open randomly. This renders the phone useless since every time I touch the screen, the notification panels opens. I tried a softboot and a factory reset. Neither action resolved the issue. I contacted HTC USA support and they suggested clearing the calendar data and vigorously rubbing my hands together and then touch the screen whenever the issue occurred. No success. This issue occurs whether the SIM card is installed or not. I can safely say that no new applications were installed within 48 hours of the issue starting.

I search the available forums and found at least three other instances of this same issue:
http://www.htclegendforum.com/htc-legend-troubleshooting/touchscreen-bug/
http://www.htcforums.com/legend/5838-touchscreen-bug.html
http://androidforums.com/htc-legend/153561-notification-area-swipedown-not-working.html
Regrettably, none of these threads have any answers. HTC support then recommended for me to contact HTC Return Merchandise Authorization & Repair Center. This group (in the USA) cannot accept the phone for troubleshooting because this phone is not available in the USA. Based on the behavior thus far, I suspect this is an issue with the firmware becoming unstable. The phone hasn't been exposed to any drastic environmental changes (heat, cold, excessive dust, etc).

Software info follows:
Firmware version: 2.1-update 1
Baseband version: 47.37.35.09U_7.09.35.05
Kernel version: 2.6.29-9e497c43
Build number: 2.02.666.3 CL1777708 release-keys
Software number: 2.02.666.3
Browser version: WebKit 3.1
By know, HTC should have received multiple complains of this issue and I hope they have a solution for it. The options of the phone are great, reception is wonderful and performance is superb (except for this issue).

View 5 Replies View Related







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