Home Technical Talk

Maya Shader Networks request

polycounter lvl 13
Offline / Send Message
MrFrags polycounter lvl 13
Hey all, I'm trying to figure out how to create a special shader in Maya.

The Idea is pretty simple, I want to use a distance based shader in order to be able to separate two areas. Then, I apply an ambient occlusion shader in one area and another one in the other area.

2glgfpL.jpg

Now, we can easily do this with the "lightInfo" node connected to a condition node. We've got the 'target' mesh where we apply the shader and, we've got another one used to determinate the area that we want to isolate. This mesh is connected to the lightInfo node, and his coordinates are used to the computation.

tVlpMqS.jpg

The problem is the lightInfo node use only the center point of the object instead of the shape itself to pick information.

W5tqPMY.jpg

Is it a way to use the shape of an object to achieve the same effect ?
+ is it possible to create a kind of falloff between the two areas ?

Replies

Sign In or Register to comment.