Editor grid lines are drawn on top of transparent materials

Hi, editor grid issue with transparent materials, which is quite distracting when arranging sprites:


Unreal Version 4.16.1

  1. Create a new empty level.
  2. Change the view type to Front.
  3. Add 2 Paper2D sprites of any kind (or 2 cubes).
  4. Change the first sprite’s material to “MaskedUnlitSpriteMaterial” (should be the default).
  5. Change the second sprites material to “TranslucentUnlitSpriteMaterial”.
  6. Observe the translucent sprite is drawn behind the grid.

This also happens with any translucent material in perspective view.

thanks, much appreciated!

just a quick note to the bug report, this also happens in perspective view, so it is not just an orthographic camera issue.

Can I also point out again that this behaviour causes visual issues in any viewport mode, under any lighting mode.

Here we have 3 cubes in a Perspective Lit viewport. The middle one has a translucent material on it with an opacity of 1. The two attached images show the in game view and the in editor view. Because the grid lines are always drawing on top the the middle material, the sense of depth is lost when scene compositing.

Hey Structure,

I am not completely sure this is actually a bug as it occurs in all the engine versions I have tested, and you can simply disable the grid if it is a visual annoyance. I am checking to confirm if this behavior is intended, and will get back to you once I have a definitive answer.

Thank you,

H.

Hi, any news on this?

I am creating a new 2d toolkit plugin for the marketplace and having sprites render behind the editor grid is not visually correct. But turning off the grid altogether is not really a fix as the grid is very useful for layout alignment.

201870-capture.png

Here is another example that looks incorrect to me. Here the man behind is using an opaque material, and the one in front a translucent one.

Hey Structure,

Thanks for your patience while I entered this bug report. I have gone ahead and entered a ticket to have the issue addressed. You can track the issue by clicking the link to the report below.

UE-47046

For updates to the issue please return to this post and use the link to view any changes made to the report.

Thank you,

Hello, I’ve just seen this has been marked as Wont Fix. I really need to sort this out for my marketplace plugin. If I make a pull request with a fix, would it get accepted?