Jump to content

[SOLVED] Draw smooth polygon/lines in 2D


photo

Recommended Posts

I am adding some 2D polygons and lines on a WidgetCanvas. How can I enable anti-aliasing or blend so that the figure do not look pixelated.

Link to comment

I am passing below as command line arguments, but no luck.(check image)

 

-video_mode -1 -video_resizable 0 -video_renderable 1 -video_restart 1 -video_multisample 1

 

Is there any way to apply shader on 2D polygon for anti-aliasing? Instead of enabling it on hardware level.

post-694-0-60901700-1367994261_thumb.png

Link to comment

Hardware anti-aliasing is of course the most prefereable solution (what GPU hardware are you using, some low-end GPU might not support anti-aliasing depending on selected resolution etc) ?

 

In this case you could try usage of UNIGINE shader-based anti-aliasing post-process though post-process anti-aliasing introduces artifacts in case of thin text output.

Link to comment
×
×
  • Create New...