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"

Displacement and Tessellation not Appearing on Material

alt text

I want to make displacement and tessellation on a rock material to bring out the bumps. I followed a video and it worked for them and it doesn't work for me. I have looked at some posts and they said that some people had to change some settings, which I couldn't find, so what is the problem. It is not because of vertercies because it is like this in the preview. Could there be another problem with this?

Product Version: UE 4.18
problem.jpg (224.4 kB)
more ▼

asked Apr 07 '18 at 09:40 PM in Rendering

avatar image

6 1 2 4

avatar image Gampersnaz Apr 07 '18 at 11:35 PM

Since this is a material function, is tessellation enabled on the master material?

avatar image Repardeimaj Apr 08 '18 at 12:06 AM

@Gampersnaz, No. But I changed it and there is still no bumping out at all

avatar image Gampersnaz Apr 08 '18 at 10:47 AM

I have noticed sometimes that I need to multiply my height map by quite a bit to get it to influence the displacement. You could create a function input in place of the "5" that you are multiplying the heightmap by. Then in the main material hook up a scalar parameter to it. Create a material instance of your master material and apply it to the mesh. You can then change the value that the heightmap is being multiplied by without having to re compile the shader everytime you use it.

I have also read that displacement in a material function doesn't always work as expected. You can create another output on your material function, and pass the heighmap out of it. Then in your main material, break out the material attributes from the function and hook them all up to the main material attributes except the tessellation multiplier and the world displacement. Connect the second output of your material function (the heightmap) to the world displacement, and create a scalar parameter to control the tessellation multiplier right in the master material. Please see my 3 images below for reference. (edit: I forgot to multiply the heightmap by vertex normal ws too, so just pretend that I did) alt text

avatar image Repardeimaj Apr 08 '18 at 04:32 PM

I am a little confused. I am trying the first suggestion. I am creating the material input as a scalar and have done what you did in the first picture but i am confused what to do next. I don't understand what you mean when you say, "hook up a scalar parameter to it", what is "it"? And in the input in there are more than one values like x, y, and z values, which one do I change. Could you possibly post a picture of the second part of the first suggestion please?

avatar image Gampersnaz Apr 08 '18 at 05:13 PM

In the first picture, that is a function input that i have created to hook to the multiply node. X is the only value that you need to change, but you will be using a scalar parameter to change it in the master material. In the second picture, that is in the master material. I dragged the material function into the master material and made a scalar parameter (press "s" and click). I then hooked that parameter to the function input that was created in the material function. This will pass the scalar value into the function input and change the amount the heightmap is multiplied by. 1st picture is in the material function, 2nd picture is in the main material with the function added and the scalar parameter hooked up to it. Then I created a material instance of the master material, which exposes the parameter to be adjusted. It's the material instance that you want to apply to your mesh. That is seen in the third picture. As you can see, I had to multiply the heightmap by about 78 to get some bumping.

avatar image Gampersnaz Apr 08 '18 at 05:40 PM

I will make a short video for you and post a link once it's ready :)

avatar image Repardeimaj Apr 08 '18 at 05:58 PM

Thank you I think that will help a lot

avatar image Repardeimaj Apr 08 '18 at 06:27 PM

I think i did it but it still isn't bumping out at 500. This is what the material instance looks like applied to the scene: alt text

This is my material function: alt text

This is my master material(I highlighted all of the parts relating to the displacement): alt text

Is there anything wrong with this.

1.jpg (151.6 kB)
2.jpg (190.9 kB)
3.jpg (297.0 kB)
avatar image Gampersnaz Apr 08 '18 at 06:42 PM

Its fairly hard to tell, because you are lerping your displacement maps with alpha channels, and they may be getting a mixed value from those alpha channels making the heightmaps weaker. On another note, you seem to be calling material functions multiple times and breaking out only 1 of their properties. It's a little cleaner to call each different function once, and pull out everything that you need from them. The video I made is fairly basic, and it looks like you have a grasp on it. I think the lerps and the alpha channels driving your displacement maps from the world aligned blend nodes may be giving you issues.

Here is the link to the video, if you are interested, but it is less complex than your current material.


avatar image Gampersnaz Apr 08 '18 at 07:07 PM

I will play with the world aligned blend and see what's up to get you up and running hopefully!

avatar image Repardeimaj Apr 08 '18 at 07:15 PM

Its not just from lerping though. The displacement doesn't work at all on just a single material. If i just made one material with displacement, it still wouldnt work. I noticed that when I was using my height maps, that when I was converting them from tif to jpeg, they might have lost their transparency. Would that make a difference?

avatar image Gampersnaz Apr 08 '18 at 07:57 PM

If you are using the alpha channel of a texture for your heightmap, yes you would have lost it, but if you are using a standalone texture with the information in rgb, it should be fine. I did notice one thing, If you are applying this material to a landscape, turn off crack free displacement in the tessellation settings of the material. It seems to be broken or something. I did have some troubles using the world aligned blend and had to output from the "w/ vertex normals" to the lerp instead of just the alpha. Once I did that, I had no problem achieving displaced terrain.

avatar image Repardeimaj Apr 08 '18 at 10:23 PM

Ok. But it doesn't show up on the preview. Shouldn't it show up on the preview no matter what?

avatar image Repardeimaj Apr 08 '18 at 11:27 PM

alt text

Just to see if it is because of lerping and world position offset, I just made a regular material. Everything is set up correctly and even with the level for multiplying displacement at 50000 doing nothing. I think this might be a problem with my settings or something, like it just won't show tessellations. Do you know of any settings that would restrict using them or anything else the problem could be.

4.jpg (206.7 kB)
avatar image Gampersnaz Apr 09 '18 at 11:18 AM

In that test material, you don't have anything plugged in to the UV on your textures. That makes it not bump at all. Hold "u" and click to create a texcoord node and plug that into your UV inputs on all of your textures, including the heightmap. That seems to be all I can see at the moment. You can also then hook up a multiply node to your texcoord to change the tiling amount to what you desire.

avatar image Repardeimaj Apr 10 '18 at 01:06 AM

Yep I did all that and nothing happened. Could it be with my computer with my graphics card and driver being low? Or are there any settings to change because I have seen people do that in other posts?

avatar image Gampersnaz Apr 10 '18 at 11:37 AM

I'm not too sure about your computer itself being the culprit, but in your engine scalability settings, make sure it is set to epic. That might make a difference. I'm also not sure if forward rendering has anything to do with it if you have that enabled. I'm still learning a lot of this myself. My project was made with the maximum quality setting, you could try that if it isn't already. Another thing you could try for troubleshooting purposes, is to make a new project bp first person or whatever with maximum quality, and recreate your material in there. If it works, then you know that it is a setting that needs to be adjusted in your current project.

avatar image Repardeimaj Apr 14 '18 at 02:27 PM

I set the scalability to epic and I made a new project with maximum quality settings. I don't know what to do. All I want is for the material to have some bump and it won't even work.

avatar image Repardeimaj Apr 14 '18 at 04:18 PM

Do you think if I emailed epic games that they could figure out the problem

avatar image Gampersnaz Apr 15 '18 at 11:49 AM

Hard to say, but you could try. I did some digging, and the only other thing I have found is an older post regarding tessellation support. It says that you need a video card with Shader Model 4 or above, and it isn't supported on mac. This information is from a post in 2014, so keep that in mind. Other than that, I'm just as stuck as you are. What do you have for a graphics card?

avatar image Repardeimaj Apr 21 '18 at 09:13 PM

That must be it... the graphics card. Im not sure what it is but I know it is really old and outdated. Thank you for your time with this question.

avatar image Repardeimaj Apr 21 '18 at 09:15 PM

Is there any way to make my matertial look like tessellation without actually using them? I know the starter content materials look like they bump out but the mesh isn't changed at all.

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

1 answer: sort voted first

Bump offset fakes height. Your not going to get tessellation on a crapple.

more ▼

answered Sep 03 '18 at 08:25 AM

avatar image

1 1

avatar image Repardeimaj Sep 04 '18 at 11:43 PM

I'm not sure i understand, could you please point out what is wrong and what I need to do to fix it? I have no idea what a crapple is. 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