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.

Android :: Mapping 6 faces of cube with 6 different images


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 :: 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 :: 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 :: Apply Different Textures On Different Faces Of Cylinder

Apr 12, 2010

how to apply apply different textures on different faces of a cylinder?I am able to apply one texture which covers the whole cylinder.But I want one texture for each face.

View 7 Replies View Related

Motorola Droid :: Possible To Add Any More Emotions / Smiley Faces To Text App?

Apr 15, 2010

Is it possible to add any more emoticons/smiley faces to the text app? Stock or otherwise? And if so, where do you find them at?

View 5 Replies View Related

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...

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 :: 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 :: GPS Mapping App

Jun 16, 2010

there im looking at gettin g a new phone, and this is really the deciding figure between a blackberry, iphone or android device. What im looking for is a gps app sorta like gpsed that can map my tracks and put photos on them, but that stores these maps on my phone not the internet. Also what i would like is to ba able to take a picture with my phone and quickly be able to attatch it to my map. So when i go to this map in zoomed out mode i can see all these tracks (possibly in different colors) and these pins which i can click on and see pics of that location.

View 5 Replies View Related

Android :: Mapping Xy To Latitudelongitude

Jun 24, 2010

I'm trying to get the lat/long values, from the corners of the screen. But my getProjections don't make any sense.. I mean ... mymap.getProjection().fromPixels(0, 0) or mymap.getProjection().fromPixels(screenWidth, screenHeight) just delivers me unreal numbers..

I'm trying to set up an algorythm that would avoid cluster of graphics in the map and for that, the app needs to know which area of the screen is being showed latitude/longitude wise.

For example:

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

View 1 Replies View Related

Android :: OpenGL Normal Mapping

Feb 9, 2009

Is it possible at this time to get normal mapping to work on android? I'm asking because it would involve the use of GL_DOT3_RGB, which is in the GL11 specs, not GL10. But GL11 is indicated as not completely supported.Is there an official list of GL11 features that do not work, or is it simply unstable and I should just avoid it for now?

View 2 Replies View Related

Android :: Mapping Gestures To Buttons - Possible?

Aug 26, 2009

I have a love-hate relationship with my G1, with the inability to remap keys at the top of the list. I've looked high and low for information, going so far as to try to decipher pages like this:http://www.kandroid.org /android_pdk/keymaps_keyboard_input.html and even reading the android platform code on github. I don't see things like page_up and page_down defined in the android keymappings. And I suspect that the original scancodes are being assigned to touch gestures.Since the number keys don't have a third component could an enterprising developer map to the unused caps for missing keys? Not that it would be all that useful at this point but it would give someone a hook to build on. Or if that isn't possible, how about a virtual floating task bar kind of thing (maybe mostly transparent overlay?) that maps gestures like the swipe up/swipe down and more traditional arrows and enter type keys for the trackball? This isn't entirely a nit-picky kind of request. I have a medical condition that in the winter makes my fingertips extremely painful and the trackball hurts. I'm guessing that there weren't many arthritis sufferers on the Android development team, either. You would think that the touch screen should make things easier, not harder. Even my old, old Omnigo and HP100LX had utilities to remap keys, so it seems odd that there isn't some kind of app that could be developed. I think if I had enough time (which I don't) I might be able to eventually puzzle out a crude version of the task bar thing but I'd much rather pay a couple of dollars in the market.

View 2 Replies View Related

Android :: Is Shadow Mapping Possible In OpenGL ES 1.0?

Nov 25, 2009

I've tried casting shadow following this tutorial (which uses Stencil Buffer method): http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=27 The result is a cool shadow effect. But it depends too much on geometry and thus not very flexible. Then I found a much easier way to do shadowing here: http://www.paulsprojects.net/tutorials/smt/smt.html But it uses ARB_depth_texture and ARB_shadow extension. So I bet it can't be used with Android's OpenGL ES 1.0. I've tried googling for "Shadow Mapping" and "OpenGL ES" but still can't find a good tutorial. Can anyone recommend me a good place/site I can study for this please?

View 3 Replies View Related

Android :: Good App For Mapping Runs?

Aug 7, 2010

Ok so here's the deal guys and gals, I am trying to have my phone assist me with my running. There are plenty of apps that will track my run via gps if I bring my phone on the run with me, but I don't wanna do that. I want to be able to map a course out, enter how long it took me, save the map and even share it with friends. Ideally the app would have the gps running features I mentioned above just on case I ever do start bringing my phone with me. Here is an example of what I mean in website form (unfortunately they make a sweet app for the iphone but their android version is pretty awful right now.MapMyRun.com -

View 9 Replies View Related

Android :: Custom Mapping Application

Aug 16, 2010

I am looking for an application that can create a map by me carrying the phone and walking a certain path.There is a 300 acre park near where I live. The maps they provide are way off base. I would like to walk all of the trails and have the Droid record where I am walking.You know, this may be easier than I think using ASE and writing a Python script. I'll just get the location every half second and write it out to a file. It'll be interesting to see how the maps turn out, seeing the low resolution of the GPS receiver.

View 5 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

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

Android :: Load Images In OpenGL Without Having Thin Outline Appear Around Images?

Nov 2, 2009

I'm basically using the same method of loading bitmaps in OpenGL that the SpriteMethodTest example uses and have been unable to get rid of an annoying outline that appears around all of my images.

For example, If I were to load an image of a white circle on a white background, I would expect to see nothing. Instead, I would see my circle because its edge would be gray. In SpriteMethodTest, I replaced the background image with white and was able to see that the edges of the android images flying around also don't seem to be rendered correctly.

Does anyone know how to load images in OpenGL without having a thin outline appear around the images?

View 4 Replies View Related

Android :: Augmented Reality / Mapping GPS To OpenGL?

Feb 2, 2010

I am writing an Android AR application and have my engine working but it contains a strange behaviour that I can't seem to get fix. I am overlaying an OpenGL surface on the camera image and am placing 3D objects in the view accordingly. If I use dummy data for the location of my AR objects, i.e. LAT 10 LON 10 become x=10 y=10 on the OpenGL surface, then the overlay works perfectly. However, if I use direct GPS coordinates for my LAT and LON (e.g. LAT 12.34567890 LON 100.23456789) then all my objects either move around their location or don't appear at all. I know there are issues around using floating points and the OpenGL framework, but I've been reading around and am still having trouble stopping this behaviour. Has anyone else had this problem? Should I be using a scaling factor between my GPS and openGL surface, if so what values are good? I tried scaling my LAT and LON by 1000000 to eliminate the floating point, but it didn't help and the performance was terrible.

View 1 Replies View Related

Android :: Efficient Mapping Of Strings To Ints

Dec 29, 2009

Currently I'm using a HashMap to map the strings to int and the int values need to be frequently accessed. I'm looking for a better way to do this if possible with minimal object creation, and preferable being able to store the values as primitive ints without wrapping them with the Integer class. (Basically, the reverse of the SparseArray's int->object mapping.)

View 4 Replies View Related

Android :: List View Not Mapping Correctly

Aug 28, 2010

i have a list view and custom list adapter for it. There are various other fields in it and a Checkbox. The problem is that it is not able to map Checkboxes properly. I mean if an entry is already present in database it should come checked.When i put a log in the View function it shows some of the entries that are repeated, i think this is the main reason.

View 3 Replies View Related

Android :: OpenGL ES Texture Mapping Very Slow?

May 5, 2010

I have an Android application that displays VGA (640x480) frames using OpenGL ES. The application reads each frame from a movie file and updates the texture accordingly. My problem is that, it is taking almost 30 ms. to draw each frame using OpenGL. Similar test using the Canvas/drawBitmap was around 6 ms on the same device. I'm following the same OpenGL calls that VLC Media Player is using, so I'm assuming that those are optimized for this purpose.

View 1 Replies View Related

Android :: How To Run Emulator To Get 1-1 Pixel Mapping With WVGA854

Oct 9, 2009

How do I run the emulator with WVGA854 skin so I get a 1-1 mapping of device to screen pixels? The WVGA854/layout file has "width 480 height 854" but when I run the emulator, I get these values for DeviceMetrics: density = 1.5 densityDpi = 240 scaledDensity = 1.5 heightPixels = 569 widthPixels = 320 xdpi = 240.0 ydpi = 240.0 I'd like to run the emulator so that I see heightPixels/widthPixels values of 854/480 in the code. I tried playing with the -dpi-device option but doesn't seem to help.

View 3 Replies View Related

Android :: Offline Mapping App That Can Plot Points

Sep 1, 2010

I am looking for a mapping application that will let me browse maps offline, as well as plot points onto the map. Does anyone have any ideas which app might let me do that? According to the MapDroyd app, it won't let me plot points

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

Android :: Adding Some Nine Patch Images Breaks All Of My Other Images

Apr 6, 2010

I'm working to convert some background images to nine patch so they scale better on different phones.
The problem is that if I have the following resource structure: drawable-hdpi/background.png drawable-hdpi/button.png drawable-mdpi/background.png drawable-mdpi/button.png drawable-ldpi/background.png drawable-ldpi/button.png and then I drop a new drawable-hdpi/background.9.png file into the mix, it breaks button.png during the pre-compile. The error is "No resource found that matches the given name (at 'background' with value '@drawable/button').Simply removing that one nine patch file fixes the build. Should I be able to have some nine patch images and some normal ones, or to have nine patch only in hdpi but not mdpi or ldpi? This is Eclipse 3.5.1 with the latest ADT.

View 3 Replies View Related







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