简体   繁体   English

具有OpenGL ES的iPhone中的抗锯齿问题

[英]Anti-aliasing issue in iPhones with OpenGL ES

I am Trying to draw curves/lines using OpenGL ES on iPhones. 我正在尝试在iPhone上使用OpenGL ES绘制曲线/线。 I have used glRenderbufferStorageMultisampleAPPLE(GL_RENDERBUFFER_OES, 4, GL_DEPTH_COMPONENT16_OES, backingWidth, backingHeight) and glResolveMultisampleFramebufferAPPLE() referring the link : 我已经使用glRenderbufferStorageMultisampleAPPLE(GL_RENDERBUFFER_OES,4,GL_DEPTH_COMPONENT16_OES,backingWidth,backingHeight)和glResolveMultisampleFramebufferAPPLE()引用了链接:

apple documentation link https://developer.apple.com/library/ios/documentation/3ddrawing/conceptual/opengles_programmingguide/WorkingwithEAGLContexts/WorkingwithEAGLContexts.html 苹果文档链接https://developer.apple.com/library/ios/documentation/3ddrawing/conceptual/opengles_programmingguide/WorkingwithEAGLContexts/WorkingwithEAGLContexts.html

The output looks like this : 输出看起来像这样:

https://i.stack.imgur.com/gpPIK.png https://i.stack.imgur.com/gpPIK.png

The edges still looks pixelated.Any help is appreciated. 边缘仍然看起来像是像素化。感谢您的帮助。

Thanks. 谢谢。

I'm not sure what you are expecting - anti-alisaing can blur primitive edges, but it can't make the pixels disappear completely. 我不确定您期望什么-抗锯齿可以模糊原始边缘,但是不能使像素完全消失。

It looks to be working as expect to me ... 它看起来像我期望的那样工作...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM