Trouble with Effect Being Applied as Gradient

I’m making a robotic western and I wanted the characters gun to phase into existence from thin air. I’ve got the phasing part down with a build modifier and the node setup attached, but I want the gun to build itself from say the grip towards the barrel. (Think of the gun 3D printing itself). Is there a way to do this? I’ve attached both my setup and the blend file. Thank you.

Gun Test.blend (1.3 MB)

A build modifier kind of looks like a build modifier rather than 3D printing. You could put a gradient through a colour-ramp, set the ramp to constant, and key the position of the second colour, so that the grad fades between all black and all white. You can then use that to mix between a transparent shader and everything else.

1 Like

Thank you for the help. As you can see, I went a little above and beyond what you mentioned and ended up getting pretty much what I wanted. It doesn’t quite finish the transformation. As you can see, the tip doesn’t transition from the blue effect to the grey metal but maybe I’ll touch something to fix it.

Scale the texture slightly larger in one of the mapping nodes so the bounds of the gradient are larger than the bounds of the object? I can’t remember which will make the texture bigger: 0.9 or 1.1 , so try both.