# FSlateDrawElement::MakeLines has broken AA in Editor + Windows

**URL:** <https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440>\
**Category:** Rendering\
**Tags:** unreal-engine, bug-report, editor, CPP, question\
**Created:** [August 31, 2015, 12:36am UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440 "2015-08-31T00:36:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MugenCity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MugenCity](https://forums.unrealengine.com/u/MugenCity)\
**Post date:** [August 31, 2015, 12:36am UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440/1 "2015-08-31T00:36:00Z")

</div>

Hey Team,

FSlateDrawElement::MakeLines is cutting sharp edges off its lines when the AA parameter is passed as true. This is occurring in both the editor’s preview and in game on Windows 8.

MakeLines is being called in an extended SCompoundWidget’s OnPaint method.

No AA in editor:

 ![56422-noaa.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/7/a27e8516efa97f2e07e1cc3f7c6ee9659857ca6d.jpeg)

AA in editor:

![56423-aa.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/4/ba4ee25c8bb2bedf011dbfaae5397a1c46332b07.jpeg)

AA in game (Windows 8, nvidia graphics, standalone preview):

![56429-ingameaa2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/d/dfd189e94a5527aedb87e9f02032d8dd6c54a565.jpeg)

Cheers,  
Mugen

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [August 31, 2015, 2:49pm UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440/2 "2015-08-31T14:49:54Z")

</div>

Hey -

Could you elaborate on what it is you’re doing and how you’re setting up the project? If you can reproduce this in a empty project with no additional content can you post the sample project or list the steps used to reproduce this?

Cheers

---

<div class="post-metadata">

**Author:** ![MugenCity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MugenCity](https://forums.unrealengine.com/u/MugenCity)\
**Post date:** [September 1, 2015, 11:23pm UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440/3 "2015-09-01T23:23:58Z")

</div>

Hi ,

Thanks for your reply. I have created a test project showing a custom umg widget and its underlying slate widget causing the AA issues in the editor and in-game.

The screenshot below is from this project.

![56710-capture.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/1/1b199114b0f18fd8174ec1de391bd3de1386a9b1.jpeg)

[link text][2]

Cheers,  
Mugen

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [September 10, 2015, 5:15pm UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440/4 "2015-09-10T17:15:21Z")

</div>

Hey ,

I grabbed your project but was not able to successfully open your assets. Would you mind clarifying in the image above which is the UMG Widget and which is the SlateDrawElement?

If you could provide me with some simple reproducible steps so I can create this in a blank project and visualize the issue you are reporting, I can continue to help you troubleshoot.

I ask because UMG Widgets can render to World and Screen Space which will produce different outcomes.

Thank you,

---

<div class="post-metadata">

**Author:** ![MugenCity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MugenCity](https://forums.unrealengine.com/u/MugenCity)\
**Post date:** [September 10, 2015, 11:21pm UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440/5 "2015-09-10T23:21:42Z")

</div>

Hi Andrew, thanks for your reply.

Apologies, the previous zip was missing a level pre-setup with the widget loaded. I did not know Unreal had its own zip function so I must have missed it when creating my own.

The UMG widget is displayed in 2D and contains the slate widget. i.e The Widget blueprint has an instance of “MyWidget.h (UWidget)” in it, which has a  
variable MyWidget pointing to a SMyCompoundWidget. The draw code is in SMyCompoundWidget.cpp/.h

Here is another copy with a level you can run:

To replicate in your own level: In the level blueprint create a widget of type ‘Widget’, add that widget to viewport, run.

Cheers,  
Mugen

link text

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [September 15, 2015, 3:53pm UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440/6 "2015-09-15T15:53:20Z")

</div>

Hey ,

So unfortunately, the updatedproject.zip you provided did not have any of the source code files associated, so I could not compile and open the project. Apologies, as this is part my fault I did not mention the source files to be added to the zipped folder.

If you could upload your project one more time with all of the necessary assets and files, I will be happy to help you continue to troubleshoot. If you have any other questions please let me know.

Cheers,

---

<div class="post-metadata">

**Author:** ![MugenCity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MugenCity](https://forums.unrealengine.com/u/MugenCity)\
**Post date:** [September 15, 2015, 10:40pm UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440/7 "2015-09-15T22:40:24Z")

</div>

Third time lucky! I didn’t realise using Unreal’s inbuilt zip project didn’t include source.

Download link (The zip is 11mb with source, too big for the 5.2mb upload here)

> **[Meet Google Drive – One place for all your files](https://accounts.google.com/ServiceLogin?service=wise&passive=1209600&continue=https:%2F%2Fdrive.google.com%2Ffile%2Fd%2F0BwppOxslYdXtMklBQ2FxM1J5OVU%2Fview?usp%3Dsharing&followup=https:%2F%2Fdrive.google.com%2Ffile%2Fd%2F0BwppOxslYdXtMklBQ2FxM1J5OVU%2Fview?usp%3Dsharing)**
>
> Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage – free.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [September 17, 2015, 6:30pm UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440/8 "2015-09-17T18:30:55Z")

</div>

Hey ,

So for some reason, it is not allowing me to open your project’s specific map STILL!

This could be due to the fact you are using a code based project and running a source build, which can make things a bit more complicated. In other words, let’s try a different approach to getting this issue to occur on my end.

Do you happen to have the image file you are using for the custom UMG widget so I can create a simple test on my end?

As a quick suggestion, you can attempt to try a different Shading Model and Blend Mode in conjunction with the Dither Temporal AA option within your material’s properties. You could also try calling the Widget to render in Screen Space and not World Space to see if that has a difference as well.

Please let me know if you need further help or have any other questions, and thank you for your patience while we try and get this repro case to occur on my end as well.

Cheers,

---

<div class="post-metadata">

**Author:** ![MugenCity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MugenCity](https://forums.unrealengine.com/u/MugenCity)\
**Post date:** [May 8, 2016, 9:10pm UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440/9 "2016-05-08T21:10:57Z")

</div>

Hey Andrew,

This is still an issue in 4.11.2 in C++ and Blueprints. You can replicate the issue with the following nodes in a widget blueprint’s OnPaint:

![89876-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/d/4/dd458eb176116b1c650270074a6e03b7042a2e6e.png)

I have attached the copy-paste results from these two nodes. [link text][2]

This results in:

![89877-badlines.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/2/64257be11de7b23ebe035b3043ff5d03d464ec70.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6e7b421a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6e7b421a](https://forums.unrealengine.com/u/anonymous_user_6e7b421a)\
**Post date:** [May 9, 2016, 2:46pm UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440/10 "2016-05-09T14:46:11Z")

</div>

Hey ,

Thank you for clarifying the repro steps for this issue. I was able to get the visual error to occur on my end using the steps provided and entered a bug report (UE-30471).

Once this issue has been fixed, it will be added the list of Fixed issues to an upcoming major engine release or hotfix. If you have further questions or need additional assistance, please let me know.

Cheers,

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2c6de852](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2c6de852](https://forums.unrealengine.com/u/anonymous_user_2c6de852)\
**Post date:** [June 23, 2020, 8:03am UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440/11 "2020-06-23T08:03:18Z")

</div>

4.25.1 still having the issue.

---

<div class="post-metadata">

**Author:** ![robcowsill](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@robcowsill](https://forums.unrealengine.com/u/robcowsill)\
**Post date:** [August 22, 2021, 11:48am UTC](https://forums.unrealengine.com/t/fslatedrawelement-makelines-has-broken-aa-in-editor-windows/330440/12 "2021-08-22T11:48:29Z")

</div>

It’s also in 4.26.2; the fix commit linked from issue [UE-30471](https://issues.unrealengine.com/issue/UE-30471) was only in UE4.13. It got backed out because it made all AA lines 1px thick.
