3 Texture Height Blend

Node-based Shader Editor

3 Texture Height Blend

Postby argenzio » Sun Oct 08, 2017 9:53 am

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.47 KiB) Viewed 155471 times

Screenshot4.jpg
Screenshot4.jpg (191.24 KiB) Viewed 155471 times

Anyone have an idea ?
Thank you!
argenzio
 
Posts: 19
Joined: Sun Oct 26, 2014 5:38 pm

Re: 3 Texture Height Blend

Postby Amplify_Borba » Mon Oct 09, 2017 10:34 am

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.62 KiB) Viewed 155466 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!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: 3 Texture Height Blend

Postby argenzio » Mon Oct 09, 2017 7:04 pm

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 (234.58 KiB) Viewed 155460 times

HeightBlend3POM.JPG
HeightBlend3POM.JPG (159.1 KiB) Viewed 155460 times
argenzio
 
Posts: 19
Joined: Sun Oct 26, 2014 5:38 pm

Re: 3 Texture Height Blend

Postby argenzio » Mon Oct 09, 2017 7:09 pm

I attach the shader.. since the screenshot is too small.
TEST_v5.rar
(6.33 KiB) Downloaded 5378 times
argenzio
 
Posts: 19
Joined: Sun Oct 26, 2014 5:38 pm

Re: 3 Texture Height Blend

Postby Ricardo Teixeira » Mon Oct 09, 2017 8:08 pm

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!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: 3 Texture Height Blend

Postby argenzio » Tue Oct 10, 2017 2:53 pm

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.
argenzio
 
Posts: 19
Joined: Sun Oct 26, 2014 5:38 pm

Re: 3 Texture Height Blend

Postby Ricardo Teixeira » Tue Oct 10, 2017 3:43 pm

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!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: 3 Texture Height Blend

Postby argenzio » Tue Oct 10, 2017 4:46 pm

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.87 KiB) Viewed 155438 times
Last edited by argenzio on Tue Oct 10, 2017 6:07 pm, edited 1 time in total.
argenzio
 
Posts: 19
Joined: Sun Oct 26, 2014 5:38 pm

Re: 3 Texture Height Blend

Postby Ricardo Teixeira » Tue Oct 10, 2017 5:47 pm

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!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: 3 Texture Height Blend

Postby argenzio » Tue Oct 10, 2017 6:23 pm

I have send you a unitypackage.
Inside "3D PREFAB" folder you will find the prefab.
Thank you so much
argenzio
 
Posts: 19
Joined: Sun Oct 26, 2014 5:38 pm

Next

Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 0 guests