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?

Android :: Is Shadow Mapping possible in OpenGL ES 1.0?


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 :: 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 :: 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 :: 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 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 :: How Can I Add Shadow / Fade For My Views?

Sep 24, 2010

The ListView has a nice fade on the top/bottom.I have a ListView in the top half of my app, and then a ViewFlipper on the bottom. Is it possible to add a fade/shadow to the top of the ViewFlipper? This would look nice.

View 1 Replies View Related

Android :: Add Shadow On Text In Droid

Mar 21, 2010

I am wondering how to add shadow on text in android?

I have the following code which is applied on a bitmap and I wanted to be shadowed...

paint.setColor(Color.BLACK);
paint.setTextSize(55);
paint.setFakeBoldText(false);
paint.setShadowLayer(1, 0, 0, Color.BLACK); //This only shadows my whole view...

View 3 Replies View Related

Android :: Shadow On Top Of A Layout On ActivityGroup / Fix It?

Jul 16, 2010

I'm trying to give my first steps on working with ActivityGroups. To be more specific, I have a parent activity with a layout containing several buttons, and another layout below them in order to add other activities' layouts by means of the "addView()" method. Well, everything works fine in functionality terms; but I'm experiencing a weird behavior inside the layout where other activities are kind of loaded into. A black line along the top border of the layout plus a slight shadow do appear when I run the application on the emulator. I have tried to play changing the paddings, margins, etc. with no success.

Has any of you experienced such weird behavior?

View 2 Replies View Related

Android :: Remove Shadow On Markers On My Map?

Nov 17, 2010

I am displaying a custom marker on my Google Map. They are placed fine, but they have this funny shadow. How can I remove the shadow? code...

View 1 Replies View Related

Android :: Get Rid Of Shadow When I Scroll ListView?

Jul 10, 2010

How can i get rid of the shadow when I scroll ListView.

I have shadows appearing on top and bottom of the list.

View 1 Replies View Related

Android :: Euivalent To Set Shadow Layer Shapes In XML

Oct 18, 2010

If I draw a round rect shape by code I can use setShadowLayer to get a shadow drawn for the shape. Is there an equivalent when defining shapes in XML?The following example draws a round rect background to a shape. What would I need to add to get a shadow added to the shape? Is it even possible using XML? Code...

View 1 Replies View Related

Android :: Create Drop Shadow For Drawable?

Jan 18, 2010

How do i create a drop shadow to add it to a custom drawable i made using shape?

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 :: How Can I Delete Black Shadow Above Framelayout In Tab Widget?

Sep 7, 2010

I have a problem with the tab widget. There is a shadow above the framelayout that's part of the tabwidget. How can I modify or delete this shadow.

View 4 Replies View Related

Android :: Show Shadow For Text Drawn On Google Map

Jun 7, 2010

In my map application I am using overlay items and texts. I need shadows for both. For overlayitems I am able to display shadows. How to show shadow for the text drawn?

View 4 Replies View Related

Android :: Make Shadow Effect For A Text In Droid?

Jul 21, 2010

How can i make shadow effect Text in Text View. Any Idea?

View 1 Replies View Related

Android :: How To Scale Markers And Set Shadow And OnTap Correctly

Nov 17, 2009

I'm scaling markers on a MapView with the following code

CODE:.........

And:

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

Which works, but the shadow below the marker has wrong offset when scaled. Also; i override the public boolean onTap(int index) in ItemizedOverlay to detect taps on the markers, but it seems inaccurate. I can click some range outside the marker and still trigger onTap...

View 1 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 :: Remove Default Drop Shadow At Top Of Activity Layout

Oct 26, 2010

I have an activity. It does not have a title bar. The content view is just a linear layout. It looks like android draws a drop shadow at the top of my content view, directly below the status bar. Is there a way to stop that from being drawn?

My layout is just:

I have no titlebar:

requestWindowFeature(Window.FEATURE_NO_TITLE);

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 :: 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 :: PNG File With Transparent Drop Shadow Appears As Solid / What Am I Doing Wrong?

Oct 3, 2010

I have a PNG file with drop shadow that is supposed to be blended using multiply operation. I'm using an ImageView to show it.

However, the shadow is shown as solid gray.

What am I doing wrong?

View 4 Replies View Related

HTC Incredible :: Shadow Rom Slower With Set CPU

Sep 29, 2010

I'm test driving Shadow rom right now.Is it weird? I'm getting lower Quadrant scores when I am using Set CPU with the settings on 998Mhz on the Performance governor.I'm using the Koush kernel that came with the rom.With Set CPU uninstalled, I consistently get higher Quadrant scores.Am I using the wrong settings in Set CPU?Kernel is capable of 1115Mhz, but is set at 998Mhz.Mods please move if I posted in the wrong place.

View 2 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 :: 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 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







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