Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to fix the fuzziness of antialiased SKShapeNodes?

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

Without antialiasing:

image without antialiasing

With antialiasing:

image with antialiasing

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?

like image 691
Greg Avatar asked Sep 25 '13 19:09

Greg


1 Answers

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.

like image 145
Noah Witherspoon Avatar answered Sep 29 '22 08:09

Noah Witherspoon