Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Using texture maps for color and other shader channels

From: Creating Textures and Shaders in Maya

Video: Using texture maps for color and other shader channels

In this movie, I am going to give you a brief overview of how to work with texture nodes. Texture nodes add additional detail to your shader networks, so that you can extend the capabilities of your shaders and start to make them look more realistic or add special effects or so on. So how do you connect a texture node to a mental ray shader? Well let's take a look here. I'm going to apply a mia_ shader to the sphere. So I am going go to the Window > Rendering Editors > Hypershade, and under mental ray Materials, I'll click on the mia_material-X node to create the node, and I am going to select the sphere, right-click over the material in the Hypershade and choose Assign Material to Selection, to know it's assigned.

Using texture maps for color and other shader channels

In this movie, I am going to give you a brief overview of how to work with texture nodes. Texture nodes add additional detail to your shader networks, so that you can extend the capabilities of your shaders and start to make them look more realistic or add special effects or so on. So how do you connect a texture node to a mental ray shader? Well let's take a look here. I'm going to apply a mia_ shader to the sphere. So I am going go to the Window > Rendering Editors > Hypershade, and under mental ray Materials, I'll click on the mia_material-X node to create the node, and I am going to select the sphere, right-click over the material in the Hypershade and choose Assign Material to Selection, to know it's assigned.

So, I'll select the sphere, and in the Attribute Editor, click on the Material node, this is the mia_materialx2 node, and as you know we have various channels within the shader that control its attributes, for instance the Color channel, controls the diffuse color of the shader, so I can move the slider back and forth to make it lighter or darker. I can click on the color swatch and change the color using the color chooser. What if I want to have a little more detail to the color? Well, that's where texture nodes come in.

And to create a texture node, you just need to go to the little checker icon to the right of the slider, and I will click on this and this opens the Create Render Node window, and you can see under Maya, we have 2D Textures, 3D Textures, Environment Textures, and Other Textures, and under mental ray, we have mental ray specific textures. So these are all the textures that you can use with mental ray. You can of course use any of the Maya Textures in your mental ray shading networks. There is no problem with that.

They should work just fine. The mental ray textures are specific to mental ray and so they only work when rendering with mental ray. So for example, if I click on the Checker texture in the Create Render Node window, you can see it automatically connects the texture to the shader, which is then applied to the sphere here. So you can see how the checkerboard looks. If I go into the Hypershade and right- click over the Material and choose Graph Network, you can see that I have the shader, the mia_material_ x2 shader, the checkerboard and the place to 2D Texture node, which determines how the texture is applied to the sphere.

And if you notice, there are arrows in between here and if I hold the mouse over the arrow, you can see how the connection is made. So the out color of the checker is connected to the mia material diffuse channel and the outchecker alpha by default is also connected to the mia material to diffuseA channel. The specific connections may change depending on the material that we are using. If I want to break the connection between a checker texture and the shader, I can select the Arrows and Hypershade and just press the Delete key.

Another way to do is to right-click over the Color channel in the material and choose Break Connection and that breaks a connection between the texture and the shader. If I want to delete the texture altogether and select it in the Hypershade and press Delete key and that removes the texture. Another thing I like to do is I'm working in a Maya scene and experimenting with my shaders, you fill find that these nodes start to stack up after while and everything get fairly cluttered. So to neaten things up sometimes what I'll do is I will choose Edit > Delete Unused Nodes, and this deletes all the nodes that aren't currently connected to shader network and that can make the scene a little bit neater.

I have a shader network already connected with some textures that I'd like to show you, so I am going to select the sphere and choose Control+H to hide it, and I have a group called Leaves here. So I am going to select the group in the outliner and choose Display > Show Selection, and the leaves are just two flat plants. That's all they are and you can see that I've used some File Texture node, to create the color of the leafs. And If do a render here, you can see what they look like. So when I do a render, you see that I have the leaves and the edges here and even have a little translucency going, so we can see the shadow cast from this leaf onto this leaf is visible through the leaves, so that's a little bit of translucency there.

And I'll show you very quickly how I created that effect, so I select one of the leaves and click on the leafShader tab in the Attribute Editor and in the Diffuse section, under the Color channel, if I click on the arrow to the right, this will show you that I have a very basic leaf color texture applied and this is just a photograph of a leaf connected to this channel. Let's take a look real quick in the Hypershade. I am going to open Window > Rendering Editors Hypershade, and right-click over the Leaf shader material and choose Graph network and I have three file textures applied here.

So if I hover over the arrows here, you can see that the outcolor of the leaf photograph is connected to the Diffuse channel and I also have a second copy of the file and it is connected to the Refreshing Trans Colors. So let's take a look. What does that mean? If this label is not descriptive enough, it's a good idea to look in the Attribute Editor to get a better idea of what's going on. What this actually means is this is the translucency color. So the mia_ material has a Translucency channel which is allowing me to see that shadow.

I am going to open up the Render View. The Translucency channel is creating this effect, so that I can see the shadow of this leaf through this other leaf. And I have just connected a second copy of the File Texture to the Translucency channel. As a side note, I just wanted to let you know that in order to get the Translucency channel to work in the mia_ material, you have to have at least some amount of transparency. So transparency needs to be at a value that's above zero.

So I have it up that .759 and I just chose this value through experimentation and then you can turn on Use Translucency and if you just want a regular color, you can just choose a color, but in this case I have actually used a File Texture. The only problem with using translucency is now I have occupied my Transparency channel with this translucency color but I also want a cutout so that I don't see the black parts of the plane. I only see the cutout shape of the leaf. To do this, I have connected another texture down here to this Cutout Opacity channel.

That's found in the Advanced section of the material. This is kind of like a little secondary level oftransparency. So this allows me to add an additional Transparency channel to this network and this is something that you only find in the mia_material network and this is one of the reasons why I like this shader so much is because it gives you more options for creating transparency. So if look at the Hypershade, what I have is just a very simple black and white texture that's been applied to the Cutout Opacity. And if I hover my mouse over the connection between this File Texture and material, you'll see that is the alpha channel of the image that's been connected to the Leaf shader network's Cutout Opacity.

This image actually does not have an alpha channel. It is just a simple black and white image called leafCutout.tif, so there's no alpha channel. So to get around that within the File Texture node, there is a option called Alpha Is Luminance. So this is taken the luminance value, in other words the bright values of this image, and using that as the alpha, so if this is clicked off and I do a render, you'll see that I'm losing my cutout ability. I am just getting all the black part, which is not something I want. When using a File Texture in the Cutout Opacity, you want to make sure that Alpha Is Luminance is turned on.

So that's some of the basics of using texture nodes within a shader network, they can certainly add a lot of detail to your shaders making your objects look more realistic and even a simple plane could be turned into a leaf.

Show transcript

This video is part of

Image for Creating Textures and Shaders in Maya
Creating Textures and Shaders in Maya

37 video lessons · 7918 viewers

Eric Keller
Author

 
Expand all | Collapse all
  1. 2m 19s
    1. Welcome
      1m 6s
    2. Using the exercise files
      1m 13s
  2. 17m 49s
    1. Explaining diffuse reflections
      2m 39s
    2. Defining glossy and blurred reflections
      2m 32s
    3. Looking at refraction
      4m 20s
    4. Describing the Fresnel effect
      1m 56s
    5. Understanding anisotropy
      1m 10s
    6. Identifying ambient and reflection occlusion
      1m 49s
    7. Defining sub-surface scattering
      2m 4s
    8. Simulating translucency
      1m 19s
  3. 1h 8m
    1. Using Maya's standard shaders with mental ray
      7m 2s
    2. Comparing mental ray and Maya shader nodes
      9m 12s
    3. Creating mental ray shaders
      2m 32s
    4. Making sense of mental ray shaders
      10m 35s
    5. Introducing the mia_material
      9m 16s
    6. Creating a custom mia_material preset
      9m 17s
    7. Looking at car paint materials
      6m 43s
    8. Using subsurface scattering shaders
      13m 33s
  4. 1h 5m
    1. Understanding UV coordinates
      4m 26s
    2. Comparing NURBS and polygon UVs
      4m 48s
    3. Mapping polygon UV surfaces
      13m 1s
    4. Using texture maps for color and other shader channels
      8m 1s
    5. Applying and projecting 2D procedural texture nodes
      4m 0s
    6. Applying 3D procedural texture nodes
      7m 1s
    7. Using ramp textures
      8m 12s
    8. Setting up utility nodes
      6m 29s
    9. Using file texture nodes
      9m 41s
  5. 22m 36s
    1. Applying the turbulence texture
      9m 37s
    2. Considering the round corners texture
      4m 17s
    3. Improving skin detail with ambient occlusion
      4m 27s
    4. Applying reflection occlusion
      4m 15s
  6. 33m 6s
    1. Painting bump maps
      4m 14s
    2. Creating normal maps
      5m 24s
    3. Applying normal maps
      6m 17s
    4. Creating displacement maps
      9m 14s
    5. Troubleshooting displacement maps
      7m 57s
  7. 33s
    1. Goodbye
      33s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Creating Textures and Shaders in Maya.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.