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. 

Grid material

I would like to create a grid material very similar to the default one, but coloured. I would prefer not to rely on UV mapping or a bitmap texture. Do you know how I could make such a material ?



Product Version: UE 4.14
more ▼

asked Nov 28 '16 at 10:21 AM in Rendering

avatar image

59 6 13 14

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

1 answer: sort voted first

You have to use the world position or the local position to calculate what colour it should have.

This is just for black and white, but you can simply use the values to lerp between colours of your choosing.

alt text

more ▼

answered Nov 28 '16 at 10:54 AM

avatar image

2.7k 106 35 178

avatar image antoinegloum Nov 28 '16 at 11:40 AM

Thanks. I'm very close to the desired materal. However the grid is not visible on the whole object, do you know why ? alt text

avatar image NoobsDeSroobs Nov 28 '16 at 11:44 AM

Because if the way the modulo works. It only caps on the positive values. You can go as low as you want and still not worry about the modulo. So 15%10 = 5. -15%10 = -15. That is why you get that error. To combat it, just add 10^6 to the world position vector.

avatar image antoinegloum Nov 28 '16 at 12:05 PM

Thanks for the help. I have a material that looks how I want now :-)

Final material

avatar image Ventichrigu Jan 17 '19 at 01:18 PM

Hi I have the problem that this grid is not shown correctly in my world. alt text Do you know a solution to this problem?

error.png (1.1 MB)
avatar image NoobsDeSroobs Jan 17 '19 at 08:08 PM

This should be its own question. Ill help you there.

avatar image GirardF Feb 27 '19 at 02:08 PM

I also have this problem and would like to know how to solve it. Thanks !

(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