开发者

OpenGL ES displaying HUD display has no color on top of textured 3D objects

Im a beginner on iphone OS development.

I followed jeff's tutorial here about hud display in iphone OS http://iphonedevelopment.blogspot.com/2010/02开发者_如何学C/drawing-hud-display-in-opengl-es.html The sample works on the accompanying project with the isocahedron as the background of the HUD and the is working as expected with colors and the text.

But when I copied the code into my modified project with the textured objects from one of his tutorial series on this one http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-part-6_25.html, I see that the HUD display has no colors no matter how I change the color settings.

I trial and error of disabling and enabling the client states and the GL Modes with no luck. Anyone who had analyzed the situation, has experienced such, has find out what's needed to change in the code, please let me know


Check that you disable GL_LIGHTING and GL_TEXTURE_2D before you draw the HUD.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜