是否有可能修复抗锯齿SKShapeNodes的模糊性? [英] Is it possible to fix the fuzziness of antialiased SKShapeNodes?

查看:166
本文介绍了是否有可能修复抗锯齿SKShapeNodes的模糊性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在游戏中使用SKShapeNodes,并且发现抗锯齿的SKShapeNodes非常模糊。

I'm experimenting with using SKShapeNodes in a game, and have found that antialiased SKShapeNodes are very blurry.

没有抗锯齿:

使用抗锯齿:

是否有某种方法可以在SpriteKit中使用SKShapeNodes的抗锯齿来减少线条上的阶梯踩踏,但不会像上面的第二张图片那样使线条模糊?

Is there some way to use antialiasing of SKShapeNodes in SpriteKit to reduce the stair-stepping on lines, but without making the lines blurry as in the second image above?

推荐答案

不,这就是抗锯齿在形状节点上的样子。您可能希望看到更像多重采样的内容,但这不是SpriteKit在这里所做的事情。要获得平滑的非模糊线条,您需要将形状绘制到图像中,然后在SKNode中显示。您也可以考虑在API上提交增强请求

Nope—that’s what "antialiasing" looks like on a shape node. You might be expecting to see something more like multisampling, but that’s not what SpriteKit is doing here. To get the smooth non-blurry lines you’re looking for you’ll have to draw your shapes into an image and then display that in an SKNode. You might also consider filing an enhancement request on the API.

这篇关于是否有可能修复抗锯齿SKShapeNodes的模糊性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆