Fade in / fade out?

Node-based Shader Editor

Fade in / fade out?

Postby kanikama » Fri Feb 01, 2019 11:21 am

Hi people,

First I would like to say that I super noob with the aplify shader editor, but I think it is fantastic and I'm very happy using it. Also the English is not my best skill so I hope you can understand me.

I'm doing some kind of lava floor, is an special attack that it show up for 7 sec and I'm using one particle system to do it. I attach the shader tree and a detail of the fire ground

My problem is at the moment to show up I need to do it with fade in and when it finish with fade out. In general I use Color over Lifetime to control it, but it doesn't work with the shader, I read that is normal because use the transparence of the particle system is difficult, but I couldn't find a solution for this problem :roll:

Could you help me pls? Thanks in advance
Attachments
FireGround_detail.jpg
FireGround_detail.jpg (208.46 KiB) Viewed 2554 times
FireGround_shader.jpg
FireGround_shader.jpg (206.32 KiB) Viewed 2554 times
kanikama
 
Posts: 4
Joined: Fri Feb 01, 2019 10:37 am

Re: Fade in / fade out?

Postby Amplify_Borba » Tue Feb 05, 2019 12:23 pm

Hello, thank you for getting in touch and for your support!

You should use our Particles Alpha Blended template for authoring shaders for Unity's particle system, and you can find some additional information on this thread regarding this template.

The node that you need to use in order to access the particle system data is the Vertex Color node, and you may use it in a Standard Surface Shader or a Shader Template.

In the eventuality that you might need to access the Custom Vertex Streams data, you'll have to use a Texture Coordinates node.

You could also consider controlling the fade effect through script or from within the shader itself as well.
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: Fade in / fade out?

Postby kanikama » Thu Feb 07, 2019 10:35 am

:o :o :o :o :o :o
https://media.giphy.com/media/xT8qB5sar ... /giphy.gif

Incredible!!! It's working!! Many thanks!!! I just add as you told me the vertex color and works!!!!
I need to review all the shader because it change a bit the color and some alpha doesn't applied at it should, I will check it all to see what happen.

All the best! and many thanks!!!!D
Attachments
final.jpg
final.jpg (18.38 KiB) Viewed 2521 times
pizza.jpg
pizza.jpg (98.68 KiB) Viewed 2521 times
kanikama
 
Posts: 4
Joined: Fri Feb 01, 2019 10:37 am

Re: Fade in / fade out?

Postby Amplify_Borba » Thu Feb 07, 2019 10:48 am

Happy to know that you've sorted this out!

Have you had the chance to rate and review Amplify Shader Editor?
It would be awesome if you could share your experience with the Unity community, your feedback is extremely valuable to us!

Feel free to get back in touch if you have further issues or questions, 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: Fade in / fade out?

Postby kanikama » Thu Feb 07, 2019 11:51 am

I found that it is not nessesary to change the shader type, I can work with the surface, and then in the end of the shader just add the vertex color and it will work perfectly.

thanks for been there, I will put a super awesome review asap for sure.

all the best
Attachments
final_detail.PNG
final_detail.PNG (229.05 KiB) Viewed 2519 times
kanikama
 
Posts: 4
Joined: Fri Feb 01, 2019 10:37 am

Re: Fade in / fade out?

Postby Amplify_Borba » Thu Feb 07, 2019 12:23 pm

Glad to be of assistance!

Please be aware that, although you can use a Standard Surface, it might not be as performant as using the specific custom particle template, since it has many shader features included that might not be required.
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: Fade in / fade out?

Postby kanikama » Thu Feb 07, 2019 1:19 pm

Excelent!! thanks for the advice, I'll check it ;D

Review done, all the best!!D
kanikama
 
Posts: 4
Joined: Fri Feb 01, 2019 10:37 am

Re: Fade in / fade out?

Postby Amplify_Borba » Thu Feb 07, 2019 3:26 pm

Thank you so much for your support, it truly means alot to us!

Please let us know if you have any further questions!
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


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 109 guests