Adverti horiz upsell
UV pass shader
UV pass shader
vishal rein, updated 2016-11-26 23:55:52 UTC 7,424 views  Rating:
(1 rating)
Page 1 of 1

Hi  Amigos,

This tutorial gives you knowledge on the concept of UV pass shader. UV pass shader is used to render UV pass which will be used in compositing to modify texture of the selected object.

To start, We will try to understand the concept of UV's in Maya


UV_layout

above picture is UV layout in maya is a 2d graph. The texture which you connect to shader wraps over the geometry based on the UV's placement in the above space. Here we got two axis U and V. U is represented by Red color and V is represented by green color. If the color is black it means it is 0 point on specific axis. If the value of color is 1 it's placement is 1 point in the UV space on specific axis.

Using this concept we create a map.


U_V


U image gives value from 0 to 1 (left to right), V image gives value from 0 to 1 (bottom to top). When we add this we get map for UV pass shader.

Using the above concept, We will see how to create shader in maya

Create surface shader to get flat shading. Create two ramps and a layered texture.

Rename surface shader as UV pass shader, ramps as Umap and Vmap and layered texture as UandVmap.
Select Umap and set type to U Ramp. Create only two colors in the ramp. select one color set the selected color to black(0,0,0) and selected position to 0. select another color and set selected color to red(255,0,0), and selected postion to 1.

Urampsettings


Select Vmap and set type to V Ramp. Create only two colors in the ramp. select one color set the selected color to black(0,0,0) and selected position to 0. select another color and set selected color to green(0,255,0), and selected postion to 1.

Vrampsettings


Now Middle mouse drag and drop U ramp and V ramp in layered texture. U ramp should be top layer and set the blend mode to ADD. Now connect the layered texture to surface shaders out color.


layered_texture

That is it UV pass shader. Hope you like it.

Comments


Please sign up or sign in to post a comment.