3 Texture Height Blend

Node-based Shader Editor
argenzio
Posts: 19
Joined: Sun Oct 26, 2014 5:38 pm

3 Texture Height Blend

Post by argenzio »

Hello all
I am trying to make a 3 texture height blend.
With 2 texture works ok... but i can't realize how to blend the third texture.
Here my shader
HeightBlend.JPG
HeightBlend.JPG (110.19 KiB) Viewed 159974 times
Screenshot4.jpg
Screenshot4.jpg (190.59 KiB) Viewed 159974 times
Anyone have an idea ?
Thank you!
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: 3 Texture Height Blend

Post by Amplify_Borba »

Hello argenzio,

Thank you for getting in touch!

In order to achieve a 3 way blend, you may use a second lerp node to interpolate between the result of the first lerp node ( first and second height maps ) and the third height map.

I'm sending a screenshot attached for your convenience.
3way.jpg
3way.jpg (65.42 KiB) Viewed 159969 times
Check your PM for a sample.

Please do let me know if this works out for you, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
argenzio
Posts: 19
Joined: Sun Oct 26, 2014 5:38 pm

Re: 3 Texture Height Blend

Post by argenzio »

Thank you, it helps me a lot!
Now the POM Heights Blends works very good with 3 texture.
Next step is to support height blending based on Vertex Color.
I try to use Multiply and Add.. but gave me strange blending... what it is the best way?
Thank you for your support.
Ruggero
Screenshot7.jpg
Screenshot7.jpg (233.66 KiB) Viewed 159963 times
HeightBlend3POM.JPG
HeightBlend3POM.JPG (158.54 KiB) Viewed 159963 times
argenzio
Posts: 19
Joined: Sun Oct 26, 2014 5:38 pm

Re: 3 Texture Height Blend

Post by argenzio »

I attach the shader.. since the screenshot is too small.
TEST_v5.rar
(6.3 KiB) Downloaded 5654 times
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: 3 Texture Height Blend

Post by Ricardo Teixeira »

argenzio wrote:I attach the shader.. since the screenshot is too small.
TEST_v5.rar
Hello!

Does the sample shared privately not include support for vertex painting?

Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
argenzio
Posts: 19
Joined: Sun Oct 26, 2014 5:38 pm

Re: 3 Texture Height Blend

Post by argenzio »

Really can't thank you enough Ricardo.
Everything seems to work fine now.. I was really far from the right way.
I will post the result as soon I will finish it.
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: 3 Texture Height Blend

Post by Ricardo Teixeira »

argenzio wrote:Really can't thank you enough Ricardo.
Everything seems to work fine now.. I was really far from the right way.
I will post the result as soon I will finish it.
No problem, happy to help ;)

We should be able to include that sample in the ASE package soon.
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
argenzio
Posts: 19
Joined: Sun Oct 26, 2014 5:38 pm

Re: 3 Texture Height Blend

Post by argenzio »

Ok I talk too soon.... seems there is a problem with the third layer blend in the example file you send me.
The second layer blend perfectly with the first.
But the third seems to ignore the depth mask.
Here an example, the grass (third layer) grows on top of the stone (first and second layer).
Blend5.jpg
Blend5.jpg (184.23 KiB) Viewed 159941 times
Last edited by argenzio on Tue Oct 10, 2017 6:07 pm, edited 1 time in total.
User avatar
Ricardo Teixeira
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: 3 Texture Height Blend

Post by Ricardo Teixeira »

argenzio wrote:Ok I spoke too soon.... seems there is a problem with the third layer blend in the example file you send me.
The second layer blend perfectly with the first.
But the third seems to ignore the depth mask.
Here an example, the grass (third layer) grows on top of the stone (first and second layer).
Blend5.jpg
Hello,

No problem, we would be happy to help. Can you send a Material-Texture-Shader sample directly to [email protected] via WeTransfer?

Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
argenzio
Posts: 19
Joined: Sun Oct 26, 2014 5:38 pm

Re: 3 Texture Height Blend

Post by argenzio »

I have send you a unitypackage.
Inside "3D PREFAB" folder you will find the prefab.
Thank you so much
Post Reply