I want to create a wall covered with plaster on which I could use vertex painting to show the bricks underneath. So I created a simple material but I have some trouble to create a sense of depth between the plaster and the bricks where they blend. Take a look:
As you can see on the example above, the blending between the plaster and the bricks is flat. I tried using the node PerturbNormalHQ and managed to get some kind of bump effect:
As you can see, there is some kind of pixelated effect which cause some flickering from the distance. Unfortunately, I have no idea how to fix this. Close up:
I also tried using the node “NormalFromFunction” but I didn’t manage to get any decent results since there is very little information on this node.
Here is my material:
Close up:
So basically what I want to do is to create a normal from the vertex color information. Does anyone know how to achieve this? or maybe how to fix my issue with the PerturbNormalHQ?
You can try sticking the result of the Alpha for the Lerp between the plaster and brick into a NormalFromHeightmap Node for a normal map with rounded edges at the corners of the transition from plaster to brick.
This is exactly the type of thing I spent a lot of time trying to get right in gears. The best bet it to use a companion normal map that goes along with the heightmap you are using for your blend modulation.
For example if your height blend texture is photoshop clouds, try converting them to a normal map using the nvidia filter or xnormal or knald. Then when you have a nice blurry normal of the height, you can sample that normal inside of your material along the intersection. Probably need to boost the strength of the normal to make sure it doesn’t get less intense near the flat bits etc. This method isn’t perfect but it is about as close as you will get without perturb normal or something like it.
The same technique works for many advanced blending techniques. For example, you can make some custom blend normals for snow as it falls on rock that makes the snow have a rounded pillow like appearance by creating a blend modulation texture that is based on a blurry version of the rock displacement and then a normal made from that blurry texture, and then overlaying that blur normal at the edge using some material defined parameters for the length, intensity and power of the edge blend.
Another trick you can use for another quality boost if you can afford it is to create an AO like darken outline along the intersection. If you get a nice wide distance gradient along the inside edge and then modulate that using either the height or AO texture of your bricks and then tweak the resulting strength just right, it can add some very realistic effects. Without it the stucco can appear to float in places but that is probably nit picking.
Hello! Well there was already some screenshots of the graph attached on my previous posts. If it can help you better, here is the project file for the material : BricksPaint.rar - Google Drive
Use the red channel for painting
Red 1 = Stucco
Red 0 = Bricks
Sorry to bump this thread again but I just wanted to say what an amazing result this shader produces and thanks for sharing.
I am trying to break down this shader and really understand what is happening.
What is the purpose of the Blurred height map that is then turned into a normal map? What does that add compared to just using the Noise normal texture map for break up of the transition?
Also I can’t figure out why you used those MF_passthrough nodes?
The blurred normal map is there to boost the detail in the transition. It allows to keep some of the brick shape in the damaged parts by blending it with the noise normal map. Depending on the situation, it would probably be better to make a good normal map for the transition part (something like a heavily damaged brick instead of a basic tiling noise). Or at least, make a single normal map from the tiling noise and the blurred bricks instead of blending them in the material editor (for memory purpose). The reason I did this here is simply because I was not really satisified with the tiling noise alone but I was too lazy to make a better normal map (and the brick normal was too sharp so I just blurred it in Photoshop).
The PassThrough nodes are used for organizing the graph and are just there for readability purpose. Since there is no “reroute pins” like in the blueprint editor, I made material functions for each input type and just connect them directly to the ouput. (I don’t know if reroute pins have been added in the material editor since then.)
Sorry for bumping this old thread but I’ve been frequently receiving requests to allow access to download the project files from the old Google Drive link.
Resurrecting this old thread again to say thank you for this! Literally been driving myself insane trying to figure out how to lift the plaster above the brick in my own brick and plaster vertex paint material. TBH im looking at your material and still have no clue how it works but I’m gonna try to dissect it the best I can so I can understand the mechanics for any future materials I make.