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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Wireframe Material Constant Thickness

I am trying to make my wireframe material more visible in-game. Distance from the mesh makes the lines thinner and makes it very difficult to see. I am very inexperienced with some of the more advanced material nodes and features so I'm looking for suggestions. Making the edges thicker in the texture and increasing emissive intensity both didn't give me the result I was looking for. Is there some way to render the line as a constant thickness regardless of distance from the material?

I feel like the Pixel Depth Offset parameter could be useful but I can't seem to figure out how to use it in this situation.

Wireframe Material: alt text

Wireframe Material Applied to Mesh (Arrow) In Game: alt text

One other question: would masked or translucent be the right option for this material? They seem to produce the same result.

Thanks in advance!!

Product Version: UE 4.11
Tags:
more ▼

asked Apr 08 '16 at 11:08 PM in Rendering

avatar image

tehhax
194 31 29 51

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

"Distance from the mesh makes the lines thinner and makes it very difficult to see."

See this video: https://youtu.be/cX0sy5144Js?t=227

It basically takes the absolute world position of the object and the camera position, passes it through a "Distance" node (which outputs a value) and uses that value to dynamically increase the thickness of the edges. Pretty cool stuff.

more ▼

answered Aug 16 '17 at 07:58 PM

avatar image

Andrei Despinoiu
255 4 9 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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