There's a chance that your 2D stuff is behind 3D stuff. Turning depth test off is a good idea for drawing UI.
gl.glDisable(GL10.GL_DEPTH_TEST); Does drawing 2D alone work? On Jun 27, 4:01 pm, Navigateur <naveen.c...@googlemail.com> wrote: > Can somebody take me step-by-step how to draw 2D stuff over a 3D scene > (such as controls, etc.). What I've been doing so far has not been > working (it only draws the 3D scene), which is (in every frame): draw > the 3D scene as normal, projection matrix mode, load identity, call > GLU.gluOrtho2D(gl, 0, myScreenWidthInPixels, 0, > myScreenHeightInPixels), switch the array pointers (vertices and > texture coords) to the ones for my 2D stuff, then drawElements with an > appropriate index list. (then switch the array pointers back so the 3D > stuff works again). > > I get nothing added to the screen (just the 3D stuff). > > Do I need to be doing something else for it to draw? Can somebody take > me step-by-step? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en