OpenGL ES 显示 HUD 显示 纹理 3D 对象顶部的文本不能为黑色

发布于 2024-08-30 13:03:30 字数 582 浏览 2 评论 0原文

这是这里这个问题的后续 http://iphonedevelopment.blogspot.com/ 2010/02/drawing-hud-display-in-opengl-es.html 它解决了基于本教程的 HUD(平视显示器)> OpenGL ES 显示 HUD显示纹理 3D 对象顶部没有颜色 我想将“文本”颜色设置为黑色,但它比我想象的要复杂。 将其设置为黑色以外的其他颜色“glColor4f(0.0, 0.0, 0.0, 1.0);”就很好了。 我认为罪魁祸首一定是混合函数“glBlendFunc (GL_ONE, GL_ONE);” 我尝试了很多组合但没有运气。有人在背景中的纹理 3D 之上尝试过这个吗?

This is a follow-up of this question on here
http://iphonedevelopment.blogspot.com/2010/02/drawing-hud-display-in-opengl-es.html
It tackles on the HUD (heads up display) which is based on this tutorial >
OpenGL ES displaying HUD display has no color on top of textured 3D objects
I wanted to set the "Text" in color BLACK, but it is more complicated than what I thought.
Setting it to some other color other than black "glColor4f(0.0, 0.0, 0.0, 1.0);" is just fine.
I assume that the culprit must be in the Blending function "glBlendFunc (GL_ONE, GL_ONE);"
I experimented a lot of combinations with no luck. Has anyone experimented on this one on top of textured 3D in the backgrounds working?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

装纯掩盖桑 2024-09-06 13:03:30

答案就在这里!

更改Texture2D类并将灰色等内容更改为RGB以及分配的大小,以及阴影功能

http://majicjungle.com/blog/?p=191

The answer is here!

Change in the Texture2D classes and change stuff like Gray into RGB and the sizes of the allocations, plus a shawdow capability

http://majicjungle.com/blog/?p=191

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文