Android :: Create Shaded Mesh In Opengles

Nov 7, 2010

In my application I'm trying to create a mesh that is shaded by a single directional light. The problem I'm facing is that I can't seem to get the light to take my normals into account at all.

It works fine if I set the normals on a per-triangle-strip basis, but if I try to render a series of triangles with normals set using the glNormalPointer method the entire mesh is rendered using the same color (which is identical to the result I'm getting if I skip calling glNormalPointer all together).

My mesh render method looks like this:

code:.............................

Android :: create shaded mesh in opengles


Motorola Droid :: Damage To Speaker Mesh

Feb 3, 2010

So I know there are a few others in my boat with damaged speaker mesh. It pushes in very easily and although I was being careful I did it myself.My fault, my bad. Is a bummer.I contacted blue rocket from GrapiXpressions to see if they would be able to make replacement speaker mesh

View 14 Replies View Related

Android :: OpenGLES - EglMakeCurrent

Apr 20, 2009

I have serious issues using the eglMakeCurrent() method of the EGL10 class.

1) After a successful call ot the eglMakeCurrent method with an eglSurface & an eglContext, if i request the current context and the current surface (eglGetCurrentContext() & eglGetCurrentSurface (EGL10.EGL_DRAW)) i get different instances compared with the one that i've passed. Even the equals method fails.

2) After initializing the eglDisplay and before any call to eglMakeCurrent(), if i request the current context and the current surface i recive instances that are not the EGL10.EGL_NO_CONTEXT and EGL10.EGL_NO_SURFACE.

View 4 Replies View Related

Android :: Backgroung Setting In OpenGLES

Feb 19, 2009

I am writting opengl app using GLSurgfaceView given in API demos. I create a rectangle and added texture but then drawframe in renderer is called in a loop i,e it is redrawing it even if there is no changes. so what should i do to? how to set background.

View 2 Replies View Related

Android :: OpenglES With Acer Liquid

Jun 28, 2010

I'm developping a native application for android and I face to artefacts when rendering the scene. I can reproduce the issue with Java code.

While the following code running, I got a green screen. But If I move the status bar up and down over the screen, I see some red artefacts.

Here a screenshot made with ddms :

http://picasaweb.google.com/lh/photo/42bVsuIt8JldSIbPy8x2AA?feat=dire...

The Acer liquid running Android 1.6.

Can you check on other devices and tell me if you face the same issue ?

I would like to know if it's an Android issue or an Acer issue.

Here the code :.........................

View 2 Replies View Related

Android :: Play Video Using Opengles

Jan 5, 2010

How to play video using opengl es in android?

View 3 Replies View Related

Android :: OpenGLES Lighting - Should Not Change Position

Oct 7, 2010

I'm writing a little 3D engine for android to better learn the platform and opengl. I hope to eventually use it as a base for little 3D games.

I'm trying to implement lighting right now, and generally following the NeHe opengl android port tutorials. I have a simple spinning cube and 1 light that should not change position. Upon rendering my scene on a device the light appears to "dim" and re-lighten as cube rotates.

This is a swf video of the behavior:
http://drop.io/obzfq4g

The code for my "engine" is located here: [url]
The relevant bits are:

[url]
This is where I'm initializing opengl and setting up my scene. and [url]this is the code for actually rotating / drawing the cube mesh.

I wish I could formulate a better question; but I'm very stuck/confused and can't even think of an intelligent question to ask besides "does anyone know what might cause the kind of behavior I'm seeing?"

Also the slowness / choppyness of the animation in the video is a result of the screencap software. It's smooth throughout the whole rotation on the emu.

View 1 Replies View Related

Android :: Will Emulator Support Opengles 2.0 In The Future

Oct 4, 2010

From the posting so far I have seen, the current emulator as of API level 8 and Platform 2.2 does not support OpenGL ES 2.0. (Only in the emulator that the support is not there)

(The support is there at API level 8 for the ES 2.0)

wondering if any jone has figured out the following

1. Will the emulator support ES 2.0 in the future (considering there is compilers, shaders etc needed to support es 2.0) 2. What is a likely timeframe this may be available? (months or sometime future?)

I suppose considering that iPhone SDK has the emulator suppor for es 2.0, it can be anticipated on the Android emulator as well.

View 3 Replies View Related

Android :: Opengles Alpha Textures Not Semitransparent But Binary Transparent

Sep 3, 2010

I am drawing some textures with alpha channel, but when they are displayed it looks like the alpha channel is only binary. So a pixel is either transparent or opaque, although in the texture file itself the pixel is half-transparent.

The blending is set up like this:

code:............

The above shows how it should be like, and the below shows how it is:

View 4 Replies View Related

Android : Quartz 2D Or OpenGLES / Pros And Cons In Long Term

Apr 8, 2010

I'm having a hard time deciding whether to go with Quartz2D or OpenGL for an iPad game. It will be 2D mostly, but effect-intense (simultaneous lighting effects for 10-30 objects, 10-20 simultaneous animations on the screen). So far, assuming i'm equally dumb in both technologies and have to learn them from the ground, i came to this list. (I've read several topics here, on SO, with names like "Quartz or OpenGL", but i'm still left with some questions)

View 1 Replies View Related

Android :: Difference Between .opengl And Javax.microedition.khronos.opengles Packages

Nov 7, 2010

Just couldn't find anything regarding the purpose of android.opengl classes anywhere on the web: they seem to be copies of javax.microedition.khronos.opengles - just with static vs member methods.

So is there any special meaning in using them instead of j2me classes: are they supposed to be faster, have additional functionality, simpler to work with? I think of using them instead of passing that gl reference all the time.

View 2 Replies View Related

Android :: How To Create HTTP Request / How To Create Connection Object?

Jul 17, 2009

How to create an HTTP request object of POST type in android? Which class need to be extend or what method need to implement? How to establish connection to a server? Actually i want to connect to a microsoft exchange server, and then i have to send a request to it using HTTP.

View 8 Replies View Related

Android :: How To Get .apk Create Date?

Oct 9, 2010

Is there an api to programmatically get the .apk create date/time?

View 2 Replies View Related

Android :: How To Create A Popup?

Sep 1, 2010

How to open a similar popup like the one that appears when you click on a contact icon in contacts? Is Dialog suitable for that? Or maybe PopupWindow?

View 2 Replies View Related

Android :: Create Own Map Figure?

Oct 12, 2010

In android, is it possible that I would create my own Map figure, and then use this Map with the gps location from Google Map API. Example, I draw a map for my own house, then apply Google Map API to be able to make the location of each point in the map

View 1 Replies View Related

Android :: Create A Sub Tabs

Oct 11, 2010

I create a TabHost1 with 3 tabs: tab1, tab2, tab3. When choose tab2, I want the TabHost2 change into another sub TabHost with 2 tabs: tab4, tab5.

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

TabHost2.xml is the same TabHost1.xml

When I choose tab2 the result like TabHost2 cascaded TabHost1

Actually I want the TabHost2 overwrite (replace) TabHost1.How can we do it ?

View 1 Replies View Related

Android :: Create APK Of My Project

Jul 9, 2009

In bin folder just exist resources.ap_ (AP_ File)what is this? why my apk do'nt create?

View 2 Replies View Related

Android :: Want To Create Simple GUI

Oct 13, 2010

Basically im trying to create a simple gui or a layout for android, and I'm really new to Android developing. I already found a way to create a list of stuff using ListActivity, and using the command Code...

View 2 Replies View Related

Android :: Trying To Create Game

Oct 26, 2010

Now I am trying to create an android game. Game is in the book"Apress - pro Android games" But the program is force closed when I try to touch in the screen. Anyone have the full source code of that game "Space Baster".

View 4 Replies View Related

Android :: How To Create App Which Will Install Other .apk

Sep 16, 2009

I want to create an application which will be able to install another one. Actually a server will send me the .apk file. Then I want my application installing this .apk file and running it. This activity will be a kind of 'script' for installing and running a new apk file.

View 6 Replies View Related

Android :: Create Service Only

Aug 13, 2009

I want to hide my application from user so i just want to create service. Can some one tell me how can i create service only with out activity. Can some one tell me can i create only the service in whole project instead of activity. Is it feasible?

View 5 Replies View Related

Android :: How To Create Pop Up Window?

Jun 2, 2009

I was wondering how we would attach a pop up window to a button so that when the button is clicked the pop up window will appear showing a message and still until the user closes it. How should I go about this and what classes should I use? Also if there are any examples for this it would really helpful as well.

View 4 Replies View Related

Android :: How To Create Reminder?

Oct 25, 2010

We would like to create a reminder that will be poped-up on given date. We would like to do this without having our application running at the backgroud. Any ideas how to do this?

View 5 Replies View Related

Android :: Create Polling App?

Aug 4, 2010

I intend to develop an app on android that can help people selecting the best pizza/ice cream/hot dog in a certain town based on their ratings through a poll. Now what resources do I need to achieve the desired solution? Do I need a web service or website/device connectivity for the desired poll? I would like to start off with a simple application that just shows polls or ratings for a certain item.

View 2 Replies View Related

Android :: How To Create Launch App?

Mar 12, 2009

I want to basically create an application launcher. How do do this? Shouldn't the following just work?

View 4 Replies View Related

Android :: How To Create Many Lists

Jan 10, 2010

I am trying to create a todo list application on android. I am stuck because at the moment I dont know the way to create many todo lists. I have created the GUI for one list, using listview. entries of the list are added by the user when running the application. Particularly i dont know how to pass a list object, if i create new one.

View 1 Replies View Related

Android :: Way To Create MD5 FingerPrint?

Jan 19, 2010

keytool -list -alias alias_name -keystore my-release-key.keystore using above command when i try to create md5 fingerprint. it asks for the password and in password i cannot type any thing. can any one guide me how can i create this i need this finger print to run google map api in android and to obtain googlemap api key from google website.

View 2 Replies View Related

Android :: How To Create Context?

May 15, 2009

When you are developing on an application level(Services, Activities) you always get this Context reference automatically. But what if I am on a lower level and developing a program started with app_process, how can I get hold of a Context then? Its a huge part of the API that need this context. What the proper way to create a Context instance?

View 7 Replies View Related

Android :: Way To Create Databases?

Dec 14, 2009

I've made a few apps now, which use an SQLite database, no problems. In my latest app, I want two tables, and I just released that every example I can find only creates one table. So, is this a limitation? Must I use only one table? Assuming I can use two, how do I go about changing my create script?

View 3 Replies View Related

Android :: How To Create A Widget?

Apr 27, 2009

Somebody knows a tutorial that shows how to create a widget?

View 2 Replies View Related







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