Author Topic: Change material for frame during animation  (Read 3319 times)

2016-10-20, 08:57:39

sprayer

  • Active Users
  • **
  • Posts: 803
    • View Profile
I need to change shader material during animation, blend material will work for it with mix amount but only for two materials, i need more, it there the way to do it?

Thanks

2016-10-20, 10:13:28
Reply #1

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 9276
  • Let's move this topic, shall we?
    • View Profile
    • My Models
If it's ok that material change will go suddenly without transition, then you may assign multisub material with all needed sub materials and animate material IDs via material modifier. If you need smooth transition between materials, then CoronaLayered material should do trick. Just plug CoronaColor maps as masks and animate colours from black to white or leave colour white and animate output mult from 0 to 1.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2016-10-20, 10:38:26
Reply #2

sprayer

  • Active Users
  • **
  • Posts: 803
    • View Profile
I was try CoronaLayered but it gives strange multiply colors at shadows from base material and second active, is it bug?
Will try multisub.
Thank you.

2016-10-20, 13:32:35
Reply #3

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13727
  • Marcin
    • View Profile
I was try CoronaLayered but it gives strange multiply colors at shadows from base material and second active, is it bug?
Can you post some examples of this?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us