Alembic motion vector flag

Node-based Shader Editor

Alembic motion vector flag

Postby matthewwr » Thu Apr 05, 2018 1:58 pm

Hello again!

This might be a simple question, apologies if it is, I tried a bunch of things but I'm probably missing something obvious.

All of the shaders I am building are applied to alembic models, and to get correct motion vectors, I need to add the following line of code under the SubShader flag:

UsePass "Hidden/Alembic/MotionVectors/MOTIONVECTORS"

I am currently going into the generated amplify shader code and placing this command every time I modify my shader, is there a place I can add it in the amplify graph, or shader commands so I don't have to go into the code every time? :?

Thanks for the help!

Matt
matthewwr
 
Posts: 9
Joined: Thu Mar 29, 2018 6:01 pm

Re: Alembic motion vector flag

Postby Amplify_Borba » Thu Apr 05, 2018 2:27 pm

Hey there, if you're using a standard surface shader, you'll have to add it manually after compiling.

Unfortunately, the only alternative would be to use a Shader Template, which would provide all the flexibility you need to add your own custom passes.

Please let me know if this helps, 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: Alembic motion vector flag

Postby matthewwr » Thu Apr 05, 2018 3:09 pm

Interesting functionality! I'll give it a shot, it might even help me with some other issues I've been having. Thanks for the info once again!

Matt
matthewwr
 
Posts: 9
Joined: Thu Mar 29, 2018 6:01 pm

Re: Alembic motion vector flag

Postby Amplify_Borba » Thu Apr 05, 2018 4:22 pm

We do recommend using Shader Templates for custom shader types, feel free to check out our samples provided with the ASE package in the AmplifyShaderEditor > Examples > Official > TemplateExamples folder.

We've also recently introduced multi-pass support to our templates, more information in the wiki page!

Don't hesitate to let me know if you have any further 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


Return to Amplify Shader Editor

Who is online

Users browsing this forum: Google [Bot] and 92 guests

cron