Page 1 of 1

controling texture change with a gradient (?)

Posted: Wed Feb 22, 2017 7:28 am
by slepy8
Hi guys!
I'm sruggling with (probably fairly simple) setup.

Arrows travel from top to bottom controlled with a spline wrap. In the top I'd like them to have material X and in the bottom - material Y.
I'd like to control it with a gradient (or linear fallof) sticked somewhere to space.

I tried many ways, without any luck.
Should I use flat texture with gradient on "ARROW" object and use it to control MixOctane texture? (how?)
Or should I use mograph for this?

Do you have any solution in mind?

Re: controling texture change with a gradient (?)

Posted: Wed Feb 22, 2017 3:46 pm
by bepeg4d
Hi slepy8,
here is a possible solution using the Check shader in World coordinate mode:
Screen Shot 2017-02-22 at 16.38.40.jpg
ChangeMat.c4d.zip
(85.53 KiB) Downloaded 106 times
ciao beppe

Re: controling texture change with a gradient (?)

Posted: Wed Feb 22, 2017 8:16 pm
by slepy8
Beppe, you're probably my hero! :)
I'll check it straight away when I get to the office tomorrow.

Cheers!

Re: controling texture change with a gradient (?)

Posted: Thu Feb 23, 2017 7:42 am
by slepy8
As far as I needed to control materials change instead of just color change, I just used this check shader with world position as a controler for mix material :)
Works like a charm!

Thanks Beppe. I owe you a beer! ;)