In the real world, all lights cast shadows. In Maya, lights can cast shadows, or they don't have to. We can actually turn shadows on or off. So, let's take a look at how to do shadows with lights in Maya. Now I have this simple scene here. And we have shadows turned on in our viewport, so we can kind of roughly see how the shadows work. And I have this light here and as you can see, it's casting a shadow. So let's select our spotlight in our scene and go in to the Attribute Editor.
Now in the spotlight, we actually can Scroll Down, to the Shadows Tab. And this where we control our shadows. Though the first thing we can do is we can dial in a shadow color, so we can turn it to various shades of gray. So if you don't want jet black shadows you can certainly give it a light gray or a dark gray color. If you want to go kind of psychedelic, you can certainly change it to any other color that you want. You can also turn shadows on or off, so not every light has to cast a shadow.
So if we scroll down here, by default lights use ray trace shadows and we can just turn those off. And the light will not cast a shadow. Now we have two types of shadows for lights, we have ray trace shadows, which is a default. We also have an older technology called depth map shadows, let's turn that on and take a look at that. Now this creates shadows through a bitmap. So you have two separate parameters here, that are really important.
One is the resolution of the bitmap. The other is called a filter. So what it does is it creates a shadow map of this resolution, and then it uses the filter to blur that. So if we keep our filter size to zero and dial down our resolution say to 64. You can kind of see this blockiness here and that's really how Maya is creating the shadow. So, if I bring up the map to say 128, you can see how it gets a little less pixellated.
Now if I were to render this, you can see the blockiness of that shadow. Now we can blur this out simply by upping the filter. So if I bring the filter up to say three or four that blurs the shadow. And now I have a very fast rendering, soft shadow. So right there is my soft shadow. So depth map shadows are actually fairly quick to render, and so sometimes they are nice to use. Now if I want a finer shadow, i can certainly increase the resolution of my bit map. Let's go ahead and bring it back up to about a thousand or so, then drop down the filter size to one. And when I render that, you'll see that I get a much sharper shadow than I had before. Now in Maya we can turn off depth map shadows and turn on the default ray trace shadows. Ray trace shadows are generally sharper and they can also go through transparent surfaces, so they're more realistic. Now by default, we have very sharp shadows in Maya, using ray tracing. So you can see that this shadow has a very sharp edge. Now we have controls that allow us to soften the shadow and this is the radius of the light, as well as the number of shadow rays. So let's go ahead and soften this particular light. I'm going to up the shadow rays to 16. Now this is how many times it will sample this shadow. And then the light radiuses, how big of an area are we projecting those shadow rays. So we can dial this up to one but actually, I'm going to bring it up even higher.
I'm going to type in five. We're going to make this a fairly big light. Now let's go ahead and do a quick render. As you can see the shadow is not so sharp and it is softer. So, when you create soft shadows using ray tracing, you have to use more shadow rays and the bigger of a light you have the more rays you need. Now this will slow down rendering, so just be aware of that. Now we've been focusing mostly on the spotlight, which generates a shadow that's very directional.
But another one that we can use is the point light. So I'm actually going to delete this light here, I'm going to go to our render shelf here and just select Point Light and create one of those, and let's just go ahead and move that up so it's about half way underneath that spaceship. And let's just do a quick render. And this is one of the reasons why we use point lights, cause look at the shadows. The shadows are coming in all directions from this. So the shadows are going off in multiple directions.
And that's because the point light casts it's light in multiple directions. And so this can be very useful for all sorts of shadow effects. So those are some of the basics of shadows. By default, Maya uses ray trace shadows and for most purposes those should be good. But if you want you can also use depth map shadows to get different effects.
Author
Released
6/26/2014- Getting familiar with the Maya interface
- Creating hierarchies and layers
- Creating polygonal objects
- Working with subdivision surfaces
- Extruding a mesh
- Smoothing geometry
- Lofting and extruding with the NURBS curves tools
- Converting NURBS to polygons
- Creating and applying texture maps
- Applying UV mapping
- Adding lights and cameras to a scene
- Creating realistic effects such as depth of field
- Batch rendering
- Animating in Maya
Skill Level Beginner
Duration
Views
Related Courses
-
Maya: Character Rigging (2012)
with George Maestri4h 37m Intermediate -
Vehicle Rigging in Maya
with Adam Crespi3h 38m Intermediate -
Maya: 3D Printing with Shapeways
with Ryan Kittleson1h 45m Intermediate
-
Introduction
-
Welcome1m
-
-
1. Getting Started in Maya 2015
-
Navigation3m 20s
-
Selecting objects4m 59s
-
Using the Move tool5m 14s
-
Rotating and scaling4m 54s
-
Manipulating pivots2m 56s
-
Using the Grease Pencil tool3m 43s
-
2. Organizing Maya Scenes
-
Creating hierarchies5m 4s
-
Grouping objects4m 6s
-
Using groups as pivots2m 54s
-
Hiding and showing objects4m 18s
-
Creating layers5m 16s
-
Working with selection masks2m 38s
-
3. Creating Polygonal Models
-
Creating polygonal objects7m 41s
-
Using the Sculpt tool4m 4s
-
Boolean tools5m 37s
-
4. Editing Meshes
-
Using the Modeling Toolkit1m 53s
-
Using the extrude tools6m 15s
-
Extruding along a path2m 52s
-
Using the bevel tools2m 42s
-
Merging vertices and edges6m 29s
-
Poking and wedging faces2m 43s
-
Managing object history3m 30s
-
-
5. Refining Meshes
-
Working with edge loops2m 50s
-
Mirroring geometry5m 4s
-
Modeling with lattices2m 31s
-
-
6. NURBS Modeling Techniques
-
NURBS primitives5m 24s
-
Using the NURBS curve tools6m 38s
-
Using NURBS Revolve4m 31s
-
Using NURBS Loft3m 48s
-
Using NURBS Extrude2m 50s
-
Using NURBS Planar2m 47s
-
7. Refining NURBS Models
-
Creating curves on a surface6m 49s
-
Trimming NURBS surfaces3m 39s
-
Converting NURBS to polygons3m 14s
-
8. Creating Materials
-
Overview of Maya renderers6m 48s
-
Creating and applying maps5m 43s
-
Using bitmaps as texture3m 25s
-
Using the Ramp material5m 26s
-
mental ray materials6m 7s
-
-
9. Applying Textures
-
Applying UV mapping6m 31s
-
Using the UV Texture Editor6m 22s
-
10. Rendering in Maya
-
The Render Settings menu7m 4s
-
Creating shadows5m 22s
-
Adding depth of field5m 9s
-
Using Motion Blur3m 17s
-
Batch rendering3m 12s
-
-
11. Animating in Maya
-
Creating breakdown keys1m 58s
-
Ghosting animation3m 44s
-
Animating with constraints7m 51s
-
Creating animation cycles4m 35s
-
Adding sound to animations2m 33s
-
Conclusion
-
Next steps16s
-
- Mark as unwatched
- Mark all as unwatched
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.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Creating shadows