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. 

Is there a way to use material functions as layers for terrains?

I wanted to know if there was a way to create a terrain material that uses layers that contain material functions in them? I want to use a tessellation material to my landscape but whenever i add the function it makes the whole terrain turn black.

Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 03:47 AM in Using UE4

avatar image

ue4-archive ♦♦ STAFF
49.9k 3665 1991 9118

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

1 answer: sort voted first

Tessellation + landscape = risky at best

I tried to do this and it crashed my game, luckily I had not saved so I reloaded editor and cleared out the tesselation from the material :)

but if your only issue is that the landscape is turning black, try painting over the blackened landscape and the lighting should return

that is a known issue

work around is just paint new stuff on each landscape component until the lighting is restored :)

"create a terrain material that uses layers that contain material functions in them?"

I cant see any reason why this would be feasible, try out my first suggestion and see how it goes!

Rama

more ▼

answered Mar 11 '14 at 03:47 AM

avatar image

ue4-archive ♦♦ STAFF
49.9k 3665 1991 9118

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:47 AM

Thank you, But is there anyway that i could use a material function for the terrain and use it like a brush or is it something that is not possible right now in the engine? could it be added later?

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:47 AM

isnt each layer like a brush?

and if you plug a material function into one of your layers, then you have a material function as a brush!

What you want is the layer blend node

LandscapeCoordinates

Keep in mind, you need to plug your Landscape Coordinates into your material function, by adding a parameter in the material function for the UVs of every texture in that function

in the pic below, imagine that the texture is actually the UV input for your material function

:)

alt text

landscapecoords.jpg (182.4 kB)
avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:47 AM

it seems that whenever i use the material blend node it crashes my editor. I have also tried your method with the functions and it seems that it still is not working, i am still getting a black terrain. i want it so that i can create a material with a normal and more complex networks for more detail on the terrain instead of the texture.

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:47 AM

Landscape Layer Blend node causes the editor to crash. This is a known issue and i have reported it here and Epic is looking into it. So at the moment you must use Layer Weight node.

avatar image ue4-archive ♦♦ STAFF Mar 11 '14 at 03:47 AM

Satheesh is correct about this crash error. We are aware of it and it has since been resolved internally. The fix will be implemented in a future release of Rocket.

Cheers!

Alexander

(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