Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how can I fix Jagged issue in edges?

Explorer ,
Feb 15, 2018 Feb 15, 2018

Hi, everyone!.

I am building a plugin that draws some Polygons on Layer.( by injection mode).

But I am getting jagged issue now.

Default shapes smoothed it.

How can I smooth it? Do you have any algorithm for that?

Regards,

Igor.

TOPICS
SDK
757
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Feb 16, 2018 Feb 16, 2018

How are you drawing the shapes?

Cairo library draws nice smooth shapes. Alternatively you can draw the shape at twice the resolution and then use transform world to halve the size which will make it smoother. That method is called super sampling. Alternatively there's algorithms like FXAA, I've not tested it but it looks promising.

Translate
Participant ,
Feb 16, 2018 Feb 16, 2018

How are you drawing the shapes?

Cairo library draws nice smooth shapes. Alternatively you can draw the shape at twice the resolution and then use transform world to halve the size which will make it smoother. That method is called super sampling. Alternatively there's algorithms like FXAA, I've not tested it but it looks promising.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 16, 2018 Feb 16, 2018
LATEST

Thanks.

I am going to use FXAA.

Regards,

Igor.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines