[android-developers] Re: OpenGL light strange behaviour

2008-10-30 Thread Steff
Hi I found out myself that I needed to give normal-vectors to the OpenGL engine. I went back to this question to explain what my solution was, just to see that someone already had explained what the problem was. Thanks anyway. Regards Per Steffensen --~--~-~--~~~---~-

[android-developers] Re: OpenGL light strange behaviour

2008-10-29 Thread David Given
Steff wrote: [...] > I am playing with OpenGL and especially light in OpenGL. I have tried > to set light in the GLSurfaceView application in ApiDemos (Under > Graphics / OpenGL ES). [...] > gl.glEnableClientState(GL10.GL_VERTEX_ARRAY); > gl.glEnableClientState(GL10.GL_COLOR_ARRAY)

[android-developers] Re: OpenGL light strange behaviour

2008-10-29 Thread Steff
I also use: gl.glEnable(gl.GL_COLOR_MATERIAL); On Oct 29, 6:31 pm, Steff <[EMAIL PROTECTED]> wrote: > Hi > > I am playing with OpenGL and especially light in OpenGL. I have tried > to set light in the GLSurfaceView application in ApiDemos (Under > Graphics / OpenGL ES). > > I just try to