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.

Android :: OpenGLES lighting - should not change position


Android :: Change Button Position

Aug 6, 2010

I have a button in an AbsoluteLayout and I want to change the X and Y position on screen programmatically.

View 1 Replies View Related

Android :: How To Change Icon Position On A Tab

Oct 6, 2010

Where can I change my icon position on a tab to be in the center of the tab. Currently, my icon is located on top of the tab by default...

View 3 Replies View Related

Android :: Way To Change Zoomcontrol Position In MapView?

Jun 19, 2009

Could we with the 1.5 sdk change the position of the zoomcontrol in a mapView as The setBuidInZoomControls (different of getControl()method is not a child of a view?

View 3 Replies View Related

Android :: How To Change Position Of Left Scrollbar?

Mar 26, 2010

I'm working on adding rabic support to android. when dealing with layouts, I have to change the position of scrollbars from right to left, the same thing for spinners and checkboxes. where to modify in the android source code.

View 20 Replies View Related

Android :: Change ScrollView's Position After Touch?

Jun 17, 2010

I'm trying to make a ScrollView with a list of numbers in it that the user can select from. After the user touches and scrolls, after the finger is lifted I want the scroll to "snap" to the item in the middle of the ScrollView and give me the output. My ScrollView contains a vertical linear layout with TextView objects in it. The ScrollView's vertical size is about 60sp.

I think this would involve the ScrollView.onTouch with a ACTION_UP, but I don't know how to use it. Also, is there a way to get an item's index or value based on a position in the list?

View 1 Replies View Related

Android :: Change Position Of ImageView Dynamically?

Aug 2, 2010

I want my arrows to continuously move left and right with a delay of certain milliseconds dynamically. Any clue?

Here's my code...

View 1 Replies View Related

Android :: EditText Listener For Cursor Position Change

Sep 6, 2010

I'm looking for a way to detect a cursor position changed in an EditText.I couldn't find anything in the documentation so far. Has anyone solved this already?

View 1 Replies View Related

Android :: How To Change CandidateView Position In Droid Softkeyboard?

Jul 23, 2009

How to change candidateView position in android softkeyboard?

View 2 Replies View Related

Android :: Change Position Of A Bitmap Where Ever I Touch On Screen?

Oct 28, 2010

I have a large image on the screen and I want to display a small image on that image where I touch the screen. but I do not know how to change the position of the image when I touch on the screen and the small image must display where ever I touch on screen.

View 3 Replies View Related

Android :: Want To Change Position Of Toast In Droid / Achieve This?

Mar 24, 2010

When i use toast to display some text on screen it displays little bit above the bottom(default position).

now i want to display it in the middle of screen or according to my choice can any one guide me how to achieve this?

View 1 Replies View Related

Android : Change Absolute Position Of A View Programmatically?

Aug 9, 2010

If you use an AbsoluteLayout (I know that it is deprecated, but it was the only way to solve my problem ) you can give the childViews the tag "android:layout_x" and "android:layout_y" to set their absolute position within the AbsoluteLayout.

However I dont want to set these informationen in the xml, because I only know them at runtime. So how can I set these parameters at runtime programmatically? I dont see any method on the View like view.setLayoutX(int x) or something.

Here is my XML, which works fine, when I set the layout_x and layout_y values. code...

View 1 Replies View Related

Android :: Layout Should Stay At Specific Position After Content Change

Sep 14, 2010

I have a layout which contains a TextView.

The content of the TextView might change on runtime. (discussed on a different issue here: http://stackoverflow.com/questions/3683727/layout-with-dynamic-position )

I can position the layout by drag&drop. If the size of the layout doesn't change, the position stays, but as soon as the size of the layout changes (because more text inside the TextView) the position is reseted.
I use the layout(left, top, right, bottom) to position the layout.

Now I don't know where I should add my layout() call to make sure it stays at the right position...

Here is my class

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

View 1 Replies View Related

Android :: Change Orientation Just By Sensing Layout Position , Port / Land?

Apr 15, 2009

I am wondering if we can change orientation just by sensing the layout position, port or land;without flip like iphone does.

View 4 Replies View Related

Android :: Seekbar Thumb Position Change When User Press Volume Keys

Jul 9, 2010

I am using seek bar to control volume of the device. I am able to change the volume of the device using thumb of the seek bar just by dragging it on touch pad. But when user presses volume(side) keys I need to set seek bar thumb position accordingly.

View 1 Replies View Related

HTC Incredible :: Way To Change Home Screen Position?

Sep 18, 2010

So I have had the Incredible for a while now and I absolutely love the phone. The only thing that has really bugged me from day one is the positioning of the home screen. The phone is suppose to be fully customizable but it seems that the one thing I have yet to figure out is how to change where my home screen is located. I would much rather have my home screen set as the left most screen instead of having it directly in the middle of my seven available screens. You know, sort of like how the iphone is and what not. Does anyone know if something like this is possible?

View 1 Replies View Related

General :: HTC Salsa - How To Change Position Of Status Bar To Bottom

Jun 28, 2012

How can I change the position of status bar to bottom...I have htc salsa rooted but roms are not available....

View 4 Replies View Related

General :: Velociy T408 Micro Cruz - How To Change Status Bar Position

Mar 17, 2012

i have a velociy t408 micro cruz how do i change the status bar position (what do i need to edit.?)

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

Sony Ericsson Xperia X10 :: Functionality To Change Position / Order Of Applications - Widgets?

Apr 7, 2010

From the standard home screen on the X10, when you drag your finger across to the left to open the screen to the right of the home page, is there any functionality to change the order and position of apps/widgets I have added.

The reason I ask is because when I add them, they are not aligned to each other and have been positioned pretty haphazardly, plus I'd like to be able to determine myself where each icon is placed.

View 3 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 :: 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 :: 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:.............................

View 1 Replies View Related

HTC EVO 4G :: Screen Rotation - Delay When Switch From Horizontal Position To Vertical Position

Sep 29, 2010

On my htc i was looking through display, i see g sensor calibration and i perform this calibration and after i do so the screen seems to have a delay when switch from the horizontal position to the vertical position. its weird because when i switch to the phone horizontally it switch normally and responds fast. but when i switch back to vertically it takes almost 7 seconds to actually switch back, sometimes it switch within 2 or 3 secs but never as quick as switching horizontally.

MQuote:

Originally Posted by Rigmaster

Make sure you have the latest updates, which impact speed on the device in some unpredictable and unexpected ways. During system updates, your Evo may reboot and will take the g-sensor changes as last calibrated.

If you're already updated, shut down and repower (soft reboot) should do the trick. I actually updated my phone and after it started to do this. I restarted the phone plenty of times i even took the battery out for 30 seconds. It only does it when im texting on the browser, basically everything but the camera. He camera screen rotation is perfect. I even rooted the phone but i havent figured out how to use the root to fix the problem. Should i do a firmware update? Because i just did the htc software update.

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

HTC EVO 4G :: Scroll Over "Favorites" Widget / Snap Change Position

Jul 9, 2010

I have the Favorites widget on one of my desktop screens. Every time I scroll over to it, The pictures change position, and then snap back to the original order. Has anyone else noticed this, or have an idea why it is doing this? It's annoying.

View 1 Replies View Related







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