Friday, June 27, 2008

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 we’ll 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 don’t need to move the light because it’s a directional light and where you place the light doesn’t 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).



Let’s do a test render. As you can see although you turn on shadows paint effects strokes doesn’t 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. Here’s the final animation with shadows.


23 comments:

ExpandForFree said...

Would you like your blog to gain more popularity? Please visit my blog at expandforfree.blogspot.com, which provides a free Blog Expansion service.

btw, your site seems really useful, a while back I was trying to figure out how to make unit models using Maya.

Muzdakir Muhlisin said...

My Dearest Friend

It is with trust and believes that I write to you despite we don’t know each other before, but I pray that God will make it possible for us to developing a good relationship toward our web. I am Zaki Muclision, a student of Gadjah Mada University in Indonesia. Your post is likeable, and your blog is very interesting, I will add in my link list. If possible gives a last there on my blog, it is about Indonesian country, I hope you enjoy. My web address is www.dz4ki.blogspot.com. Thanks for your attention and cooperation.

Best regards,

Zaki Muclision

visit indonesia year said...

Hallo friend

Crigler said...

actually you CAN render shadows with paint effects:

in the stroke attributes, in shadow effects enable "cast shadows" in the check box. i think this might only function with depth map shadows though.

Anonymous said...

love the site you should check out www.cgwhat.com

Anonymous said...

i cant bolive this site is on top of googel for the keyworkd maya tutorials that is crazy www.cgwhat.com

Dennis J. said...

Pretty cool tutorial. I recommend the video tutorials at:

http://poly-face.com/tutorials.php

It is also very basic.

Cheers

/Dennis

Dennis J. said...

Cool.

You should check out some of my maya tutorial at my site: http://poly-face.com

Cheers

/Dennis

CakeWalkCG said...

Hi,

Did you show how to animate the paint effects? I didn't find. It will be nice if you add.

Regards,
Cakewalkcg
----------------------------
For Free video tutorials and free models please visit www.cakewalkcg.com

Unknown said...

Thanks it really wondering me that I've never thought that Maya is this much interesting subject.

Unknown said...

Thanks for sharing this great tips! Its really very helpful Good job.
These Hindi TV Serial Full Episodes Available. All India Free Home Delivery, All Episodes In Dvd. Just Five Hundred. Anyone Need These Tv Serial All Episodes. Contact Me. Cell : 9688778500, 9688779499

Unknown said...

Thank you for giving the great information.
W3 D Technologies is a pioneer in Dell Boomi Training sector, providing the Dell Boomi Online Training course we have experienced expert faculty for Dell Boomi

Dell Boomi Online Training | Dell Boomi Certification Course

Unknown said...

W3 D Technologies provide comprehensive SAP HYBRIS Online Training through industry

SAP experts, aiming with Right knowledge about B2B Multi channel eCommerce SAP Hybris

that best suits your needs.

SAP HYBRIS Online

Training | Best SAP HYBRIS Training India

Unknown said...

Nice information..... Thank you

Unknown said...

I like your post
for more information clickhere below
Ehow-india | How to Guides India | Ehow-India How To India Guides

Sandeep SEO said...

Nice effort, very informative, this will help me to complete my task. Thanks for sharing it. Have a look at the process blogs to see more........................................Please contact us for Oracle Fusion Financials training details in our Erptree Training Institute

srcalfre009 said...

thanks for sharing nice information Oracle Fusion Procurement Training in Deira, Dubai

Unknown said...

Thanks for posting this blog. This was very interesting blog, I felt comfortable while reading this post, thank you
Please Click Here For More Information About Any Course or Training Institute all over the world
Machine Learning Training in Houston

Rajesh said...

This site has lots of advantage.I found many interesting things on this site. It helps me in many ways. Thanks for posting this again.
Oracle Fusion PPM Training in Hyderabad

pslvseo a3 said...

Paint.net is (at least in our opinion) the simplest option on the list. It still comes with a ton of powerful features like layers, adjustments, and user-created plugins, but is simple enough that complete newcomers can grasp it immediately. The features are across the top, and filters are accessible from a drop-down menu.
Some of the special effects are pretty cool: sharpen, blur, distort, emboss, etc. You can even get some Instagram-esque vintage effects in there for good measure. We don’t want to waste too much time on this one. It’s got a lot of features, an easy interface, and a simple layout. If you’re struggling with others on this list, then stick with the easiest option.

pslvseo a3 said...

Paint.net is (at least in our opinion) the simplest option on the list. It still comes with a ton of powerful features like layers, adjustments, and user-created plugins, but is simple enough that complete newcomers can grasp it immediately. The features are across the top, and filters are accessible from a drop-down menu.
Some of the special effects are pretty cool: sharpen, blur, distort, emboss, etc. You can even get some Instagram-esque vintage effects in there for good measure. We don’t want to waste too much time on this one. It’s got a lot of features, an easy interface, and a simple layout. If you’re struggling with others on this list, then stick with the easiest option.

Revathi said...

Really very nice blog information for this one and more technical skills are improve,i like that kind of post.keep sharing more information!!!

Android Training in Chennai

Android Online Training in Chennai

Android Training in Bangalore

Android Training in Hyderabad

Android Training in Coimbatore

Android Training

Android Online Training

David said...

Thank you so much for your information, its very useful and helpful to me. Keep updating and sharing.

https://www.fastprepacademy.com/gmat-coaching-in-hyderabad/