x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Cannot get rid of stains while rendering thin lines

Hi guys, I feel little bit desperated - I cannot get rid of weird stains while rendering thin lines. I tried different approaches but neither did help me.

I am trying to create a small 3d-minimap with wireframe-like material all over it. So it would like this: alt text Basically it is just a copy of landscape around the player but with a simple wireframe material.

First of all I created a procedural mesh component (mapped UV coordinates to vertices) and as I result got the following: alt text Do you see the stains (sorry, could not find a better word) - some lines have gaps which in result gives that weird picture. Here I highlighted what I am meaning: alt text

At the moment I thought that this is some weird problem with small textures and decided to reimplement the whole thing with batch lines. But unfortunately got the similar result. It is not so obvious but still far from good: alt text And again I highlighted the stains: alt text

Could someone explain to me what this is or how this could be fixed? Thanks!

Product Version: UE 4.8
Tags:
more ▼

asked Jul 29 '15 at 04:23 AM in Rendering

avatar image

yateam
19 3 8 11

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

any time an image is drawn at a smaller scale than its original size, some pixels get skipped. this happens at regular intervals based on how small the image is drawn. when you project a 2D texture into 3D, it transforms a rectangle texture into a trapezoid shape on screen, and those skipped pixels make arching patterns due to the harmonics in the ratios between source texture size and screen texture size.

try making the lines at least 2 pixels thick, or try blurring the texture.

more ▼

answered Jul 29 '15 at 10:05 AM

avatar image

ScottSpadea
9.5k 317 204 449

avatar image Tim Hobson ♦♦ STAFF Jul 29 '15 at 02:16 PM

What Omnicypher suggested may help to some degree, but you may also find that this does not resolve the issue. This is because of the Moire effect. It's common in games and in real life.

https://en.wikipedia.org/wiki/Moir%C3%A9_pattern

alt text

avatar image yateam Jul 29 '15 at 04:55 PM

Thanks, guys.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question