• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Cant get lighting in opengl right

I have problems to put the light positioning in the right place.
When I position the light after glClear and glLoadIdentity as in the code example I have produced and added to this message, there is a flicker like never seen before.

If I on the other hand only set the light position once (in the ), sometimes when I run my app, the scene becomes unlit.

Any solutions to this?
 

Attachments

Back
Top Bottom