Final topic about Anti-Aliasing disease

Well,

I’ve posted my code. Hope someone will find it helpful.
If you have any thoughts, don’t hesitate to write me or open an issue.
I’ve tried to do my best.
Thanks,

5 Likes

GitHub - memononen/nanovg: Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations. is a cool tool :wink:

1 Like

Thanks. Seen this. Like other algorithmic not rendering libs mentioned here.
Do you have any reference about integrating it with cocos so that it worked for android ios win osx ? I found only one project and few not resolved mentions here at forum.

http://prog3.com/sbdm/blog/dj0379/article/details/39667221 this reference covered in ads and Chinese language with lost images.
small vector graphics add-on unresolved
SVG rendering and animation library for Cocos2dx unresolved

Maybe its good idea to provide some tutorial how to include some 3rd-party geometry library but we need to choose one of these which will be better fit.

Looks awesome! Definitely worth trying. I’ve been missing this for years. I even had to implement AA by myself, but not in so advanced fashion :wink:

1 Like


Will it work with new metal backend?

Guys,…I think we have a little problem here :smiley:

I google-translate description from Chinese but could you get some more information about what is it? Is this is some cocos2dx fork? With an extended pack of libraries? what else does it have? Sounds very interesting but it’s very hard from a not-China developer to even find this repo. I couldn’t find any English text about it.

I’ll try it with alpha from here and get back to you.


Apparently, draw node for metal backend implemented so I just need to check that drawing triangles stays the same at my code. The only complication is that alpha code from metal-backend doesn’t have xcode project so I need to craft one.

upd - checked. no, it dose not currently :expressionless: with few lines added I can draw thin lines and triangles but somehow drawSegment at base class DrawNode is behave differently.
I will try to make a patch for metal backend since its currently, as far as I can see, not in production (am I right?)

@owlet you can use metal-support branch of cocos2d-x. And please send a patch to that branch too.