Round clipping mask quality

So I have a spine scene and I need to put in round mask. I can build simple pie stencil mask with Perimeter vertices set to 360, but the end results is not smooth. Take a look at the attached image. On the left - round sprite created externally in Illustrator, on the right - spine scene in stencil pie.

Is it possible to smooth stencil mask or I need to use custom round shape and mess with render script? There is another option to buy Spine Pro which feature mask option for the output, but it is 300$)

I’m not sure the masking option works with Defold’s runtime anyway. I think your best option would be to mask it to a square (or not at all) and then add a pre-rendered sprite on top with the background color. That way you get the nice filtering Illustrator gives you. Otherwise, if you were in game-object-land, maybe you could have done some magic from the fragment shader, but that seems overkill for what you want to do

4 Likes

Excellent idea with pre-rendered sprite. Gonna try it, but I’m pretty sure that it will work fine. Thanks.

2 Likes

Well, it worked. I don’t now why I didn’t come with this idea myself)

So it’s just white square with circle inside. And I change color of this sprite to match bg color, as this setup will be used on different backgrounds.

Thanks again.

6 Likes