Page 1 of 4

3 Texture Height Blend

PostPosted: Sun Oct 08, 2017 9:53 am
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.47 KiB) Viewed 155530 times

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

Anyone have an idea ?
Thank you!

Re: 3 Texture Height Blend

PostPosted: Mon Oct 09, 2017 10:34 am
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.62 KiB) Viewed 155525 times


Check your PM for a sample.

Please do let me know if this works out for you, thanks!

Re: 3 Texture Height Blend

PostPosted: Mon Oct 09, 2017 7:04 pm
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 (234.58 KiB) Viewed 155519 times

HeightBlend3POM.JPG
HeightBlend3POM.JPG (159.1 KiB) Viewed 155519 times

Re: 3 Texture Height Blend

PostPosted: Mon Oct 09, 2017 7:09 pm
by argenzio
I attach the shader.. since the screenshot is too small.
TEST_v5.rar
(6.33 KiB) Downloaded 5387 times

Re: 3 Texture Height Blend

PostPosted: Mon Oct 09, 2017 8:08 pm
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!

Re: 3 Texture Height Blend

PostPosted: Tue Oct 10, 2017 2:53 pm
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.

Re: 3 Texture Height Blend

PostPosted: Tue Oct 10, 2017 3:43 pm
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.

Re: 3 Texture Height Blend

PostPosted: Tue Oct 10, 2017 4:46 pm
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.87 KiB) Viewed 155497 times

Re: 3 Texture Height Blend

PostPosted: Tue Oct 10, 2017 5:47 pm
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!

Re: 3 Texture Height Blend

PostPosted: Tue Oct 10, 2017 6:23 pm
by argenzio
I have send you a unitypackage.
Inside "3D PREFAB" folder you will find the prefab.
Thank you so much