growing a stormy tree with paint effects

Report this File

03_channel_box_800

Views:

79,757

Updated:

Nov 10, 2005

Readership Level:

Intermediate

Tags:

Maya Versions:

3.x, 4.x, 5.x, 6.x, 7.x

Platforms:

irix, linux, mac, windows

Owner:

Language:

English

Here�s how to grow a tree in Maya using a Paint Effects Brush. This assumes that you have a working knowledge of the Maya interface (you know how to access the Attribute Editor and you know what the Channel Box looks like).

Let�s get started, we'll make a tree that looks like this (click on quick time)growing_tree.mov

1. Start Maya. Delete the preference folder and restart Maya if you like (it always ensure that no previous tool settings are left from other sessions).

2. Create a NURBS plane on the grid. Create > NURBS Primitives > Plane and scale it up by a factor of 25. Delete the history and freeze the transforms (always safe to do that)

3. Make sure you have the rendering menu set on (upper left corner drop down) and that the plane is selected and choose Paint Effects > Make Paintable.

click for larger version

4. Choose Window > General Editors > Visor. The Visor (don�t ask why it�s called like that) will pop. In the left column scroll down until you see the tree folder and click on it to reveal the tree thumbnails in the visor�s right window. Double Click a tree thumbnail such as TreeLeafy.mel. Very good choice!

click for larger version

5. If you bring your mouse cursor over to the plane in the perspective view you�ll notice that it has changed into a pencil which means that now you can paint on the plane. Give it a go! Swab a curve on the plane. Ohoh. Tons of tiny trees. Undo.

6. To make the trees bigger hold down the B key (the brush changes into a red gizmo) and scrub with your mouse left button. The red gizmo changes in size. Adjust the brush size, paint and undo until you have a tree approximately the size of your resolution gate (View > Camera Setting > Resolution Gate in the perspective view panel). You�ll notice that in order to only have one tree you need to paint a rather short curve / stroke. Go back and forth until you like the result.

7. Increase your playback range and play the animation. You�ll notice that a slight breeze makes the tree shiver. That�s not enough, we want a storm. Make sure you have saved your work.

8. Open the Outliner and select the tree stroke. Go to the Channel Box and scroll down to the Inputs section.

click for larger version

9. Click on treeLeafy1 and scroll down (you�re getting dizzy already) until you see the Turbulence attribute. I know it�s a very long scroll list and the easiest way to find the turbulence attribute is to remember that it�s next to the Turbulence Interpolation Attribute which is one of the longest names in the list. Increase the Turbulence value from the default of 0.005 to 1

10. Make sure you are playing your animation in real time and not �every frame�. Go to the preference settings to check on that please). Wow! That tree is tormented! Decrease the turbulence value if you prefer to a conservative 0.5. Play the animation again.

11. At this stage you can hide the plane if you want: turn it�s visibility attribute to off or press CTRL-H. You can also change the environment color to white (the tree won�t render very nicely against black). I also suggest you place a directional light in the scene. And do a couple of test renders. Looking good.



12. Let�s make that tree grow! Select the tree stroke (in the outliner maybe) and open the attribute editor. Select the treeLeafy1 tab there and scroll down until you see the Flow Animation folder. Open it.

13. Check the Time Clip attribute (on) and bring the value of the Flow Animation attribute to 1. Play your animation. The tree should be growing. Although the slider goes up to 1 you can input a higher value manually.

click for larger version

14. Render your sequence and watch it in fcheck. Yew!!!! The bark on the trunk is all flowing and disgusting! Go back to the Flow animation attributes and uncheck the Texture Flow attribute. Re-render.




15. Et voila. Tree growing in the wind. Finished scene file here growing_tree.zip

Comments

View Josh Perry's profile
Nov 16, 2009
Post id: 9154
Report this comment to moderators [SPAM]

can you do a tutorial on grass.. how to make a grassey field and animate it?? if not, its cool.
thanks. send me a message if you have done it. thanks!

Dashboard_avatar
Feb 17, 2010
Post id: 10173
Report this comment to moderators [SPAM]

even though you have refrence images your tutorial is unclear

Dashboard_avatar
Feb 17, 2010
Post id: 10174
Report this comment to moderators [SPAM]

how about instead of saying bring the value of the flow attribute to 1. you just say increase the flow speed to 1

Dashboard_avatar
Jun 23, 2010
Post id: 11599
Report this comment to moderators [SPAM]

http://www.3dlessons.com/tutorials/Realistic-Grass-in-Maya-65776.html

http://en.9jcg.com/comm_pages/blog_content-art-93.htm

These are tutorials someone might want to reference while following this tutorial to tweak their scenes to their preferences.

In terms of rendering realistic grass with animation...I followed the tutorial from 3Dlessons and then referenced the tutorial posted above. I adjusted the turbulence and turbulence freq in the channel box under inputs. And under Flow Animation, I tweaked the Flow Speed but left the 'Texture Flow" selected because I don't want my grass to appear to be growing. I simply want to animate it.

If anyone has experimented with this lesson, I'd love some insight! :D

Write a Comment

You must be logged in to leave a comment. Login or create an account

Related Marketplace Items

  • 000

  • Hd883_01

  • Subwaygates3

  • S3d-cloths-casual0

  • Gargoyle2

  • 1

  • Hans03

  • Kitchen_0008_01