f
f
Global SectionArticlesBookstoreDictionaryDownloadsDVDsEventsForumsGalleryJob ListingsNewsNewslettersSchools
 Advanced Search
USER: PASS:  Login  Register

Subscribe
Site Links
Home > Maya > Tutorials > Paint FX > Creating Shadows For Maya Paint Effects > Page 1 Change background colorChange background colorChange background colorChange background color
Creating Shadows For Maya Paint Effects
Tutorial by Anuradha Jayathilaka
Login to add a Bookmark 1 votes for an average rating of 5.00

Updated:   06/27/08

Works on:    Irix  Windows  Linux  MacOS-X
Maya Versions:   5.x, 6.x, 7.x, 8.x, 2008
Readership Level:   Basic
Owner:   anuradha
Author Name:  Anuradha Jayathilaka
Homepage:   http://maya-tutorials-4u.blogspot.com/2008/06/crea...

Creating Shadows For Maya Paint Effects

Maya paint effects is a very powerful feature in Maya which you can use to create animated plants and grass without useing any third party plug-in. However Maya paint effects has its own drawbacks. The main drawback is you cannot render shadows with paint effects.

So I found this nifty little trick that you can use to render shadows. This tutorial will show you how to do this in a couple of simple steps.

You can download the completed scene file by clicking here.



Start a new scene in Maya. Press F6 to reach the rendering menu set. On the paint effects menu select get brush to open the visor window.

Under the flowers folder select DaisyLarge.mel and close the visor window.

 

Draw the mesh on the view grid. Press a on your keyboard to zoom in. Now your screen should look something like this. Press q to return to the select tool and press 5 on the numeric pad to turn on shading.


There are not enough flowers in our stroke so we will increase the number of flowers by changing some of the attributes. Select the stroke for the flower. And press ctrl+a to open the attribute editor. On the node named strokeShapeDaisyLarge1 increase the sample density as shown below.


To cast the shadows we need a light and a surface. Create a polygon plane object by selecting create>polygon primitives>plane.



Use the scale tool (hot key r) to scale up the plane so it looks something like this.


Next well create a light. Select create>lights>directional light.



Press e and use the rotate tool to rotate the light so it lightens from the side as shown below. I have moved the light to a side so you can clearly see it. You dont need to move the light because its a directional light and where you place the light doesnt really matter.



Ok so now we have the light but we need to enable shadows. If your attribute editor is already open locate the depth map shadow attributes section and turn on turn on depth map shadows (otherwise you need to open the attribute editor to do this).



Lets do a test render. As you can see although you turn on shadows paint effects strokes doesnt cast shadows. Now for the best part.



Select the paint effects stroke again and select modify>convert>paint effects to polygons.



Now the paint effects strokes has been converted to polygons. And you can try rendering a frame and see for your self.

You can also try making the stroke animate and rendering a movie.

 

This and more tutorials at http://maya-tutorials-4u.blogspot.com

.

Login to add a Bookmark 1 votes for an average rating of 5.00

stealth_kid writes:
    (06/29/08) Post id 3104


good tutorial. but you don't really need to convert pfx to polygons to get shadows. if you need a lot of pfx strokes, converting to polygons might increase poly count so much that it might break your renderer. depending on how much ram you have, even mental ray might choke. to avoid this, one can draw the strokes and create a light with depth map shadows, like you said, and in the attribute editor for the brush (in your example it would be daisyLarge1) under Shadow Effects enable Cast Shadow. render with the maya software renderer. the shadows need to be tweaked, the self shadowing will most likely make the strokes look too dark, but one could render a separate shadow pass and composite it later, thus having more control.

i hope my comment is usefull to you and others. thanks for your tutorial.


kadu3d writes:
    (07/09/08) Post id 3111


nice tutorial and nice comment!



To post a comment please login using the form above or register to post a comment.

Related Learning Tools
Maya Related DVDs



Digital Sets 3: Rendering and Compositing
Maya Related Books



Body Language: Advanced 3D Character Rigging
Global DVDs



Shake: Color Correction and Layers

Top Rated Maya Tutorials

1. Pen writing on paper (Maya paint effects) by Duncan Brindsmead (10/24/06)
2. Creating Shadows For Maya Paint Effects by Anuradha Jayathilaka (06/27/08)
3. How to paint on Subdivision Surface inside Maya by Fabio Bonvicini (09/13/05)
4. PAINT EFFECT : BROSSE DE TYPE RESTAURE by Pierre Kueny (09/19/05)
5. PAINT EFFECT : RESTORE BRUSH by Pierre Kueny (09/19/05)


Related Tips


No Results to Display


More Tutorials by anuradha

1. Creating Shadows For Maya Paint Effects by Anuradha Jayathilaka (06/27/08)
2. Making hair styles with Maya fur by Anuradha Jayathilaka (11/05/08)






Sponsors

Sponsor

Contact Us | Advertise | Post Jobs | Post News | Post Events | Terms