sidebar features
sidebar content

Go Back   Blender Artists Forums > Support > Tutorials

Reply
 
Thread Tools
Imperitor's Avatar
Imperitor Imperitor is offline
Member
 
Join Date: Feb 2006
Location: Winnipeg, MB, Canada
Posts: 345
Grass Tutorial (Now updated for 2.46)

I had some people ask me how to make grass so I thought I’d write a tutorial on it.
Remember that this grass may need to be tweaked for different applications. So don’t be afraid to play around with the settings.

OK let’s start.
  • Add a plane
  • Object button
  • Particle button
  • Click the new button


Now let’s make some grass.
  • First change the type of partial system to 'Hair'.
  • Up the amount to 6000. But this might need to be changed depending on the size of your plane. Mine was about twice the size of the default plane.
  • Click the rand and even buttons. This will make the grass random but evenly spaced.
  • Change the normal velocity to .080, this pushes the particles up making them look like grass growing up out of the ground.
  • Change the random velocity to .050, this adds some randomness to the length and direction since grass is obviously not perfect.
  • Make the acceleration in the Z direction -.01, this will simulate some gravity pulling the grass down.
  • If you want the plane underneath the grass to be rendered click the 'Emitter' button.


Now it’s starting to look like grass. Your render (F12) should look something like the picture below. If it doesn’t, go back and make sure every thing is set up right.



Now for some texture.
I’m assuming you can add a material and name it grass, so do it. This is the part that will make our grass look very real.

The important stuff is the color, the strand settings, and the spec and hardness. Make sure the get the strand settings correct, they will make the blades of grass thick at the bottom and thin at the top. To edit these settings hit the strand button and the options will pop up.



One other thing to think about is the 'Use Tangent Shading' button at the top of the strands menu. If you turn this off light hitting the back of each blade of grass will not transmit through it. You may want it on or off depending on your scene. I'll leave it on. Here is an example with the light placed directly above the plane of grass:
With Tangent Shading
Without Tangent Shading

Now grass isn’t all the same color, so we need some texture. I would use one of these:
http://img171.imageshack.us/img171/9800/grass2kl3.jpg
http://img179.imageshack.us/img179/1304/grasszn1.jpg

Add it and leave all the setting the way they are except change the color to .75
Here's an instructional picture to help you if you need it.
http://img162.imageshack.us/img162/5318/111hc3.jpg

And that’s it!



--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Common Problems & Tips:

- PUT SOME BUMPS! Grass is rarely on a flat surface. It looks way better if you subdivide your plane and add some small bumps and dips.

- If you place your light directly above the grass the strands appear very dark. Move your light to the side so that it hits the plane from an angle.

- If your grass looks very bright or white in some spots try turning down the spec and turning up the hardness. If its too dark don't turn up the spec, just make the color brighter.

- For uneven grass turn off the 'even' button in the particles menu. When the 'even' button is turned off blender will divide up the particles and give each face of the mesh an equal amount. So if your mesh has a lot of faces in a small area the grass will be denser. For better and more controlled uneven grass I suggest weight painting.



Weight Paint:

To weight paint your grass do the following:
- While in edit mode select all the vertex's on your mesh (the one with the particles) then go to the editing tab (F9). On the far left it should say 'vertex groups'. Under that are a few buttons, click the 'new button and the 'assign' button. NOTE: There are TWO new and assign buttons, the smaller one on the left is the one we want. Also note that the name of the vertex group is 'Group'. Feel free to change the name but make sure you type that name in all of the places I say to type 'Group'.
- Now head back to the partical buttons and look at the very bottom of the 'Extras' tab. Here under the vertex group title you can select velocity, density, length, etc. and assign a vertex group to each one. velocity will control the length of your grass and density will control the density of your grass (duh).

Now you can go to weight paint mode and paint those strands onto the ground!


Curve Guides:

To make grass that always grows 'up' instead of following the normals of your mesh I suggest using curve guides. Here's how:
- Set your particle 'normal' velocity to 0.
- Add a bezier curve. Go to edit mode and make the curve into a straight line, and align it with the z-axis.
- Now go to the fields menu in the physics buttons and change the field to 'curve guide'. Your particles should now mimic the shape and size of the curve. If they don't change go make to the partials menu and hit the 'RecalcAll' button.
- Lastly, you can change the size and direction of that bezier curve to point the grass in any direction and make it and length.

If you really want to you can make the curve any shape you wish and the strands will make that shape. This is a common technique for making hair but can be applied to grass.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

If you have anymore questions or problems feel free to ask them on this thread or private message me.
And don't be afraid to post your renders here. Half the fun of making a tutorial is seeing what people are able to create with what they have learned.
Here's what I came up with: http://img172.imageshack.us/img172/3...alhiresuj7.jpg
............................................
My Grass Tutorial
My UV Texturing Tutorial

The one and only,
IMPERITOR

Last edited by Imperitor; 04-Mar-09 at 04:44. Reason: None
#1   Old 26-May-06, 07:19   
Reply With Quote


vitaliy's Avatar
vitaliy vitaliy is offline
Member
 
Join Date: Jan 2006
Location: Brooklyn, NY
Posts: 1,708
nise and simple tut, good 1
#2   Old 17-Aug-06, 14:33   
Reply With Quote
chuzzy06's Avatar
chuzzy06 chuzzy06 is offline
Member
 
Join Date: Feb 2006
Location: Massachusetts
Posts: 356
just in time for my new project thanks
............................................
ChuZzy09
#3   Old 18-Aug-06, 18:43   
Reply With Quote
norbykov norbykov is offline
Member
 
Join Date: Jun 2006
Posts: 12
Now we just need one where you can animate the grass, and where the grass interacts with other objects.

But even without that, it's useful, thanks.
#4   Old 18-Aug-06, 19:42   
Reply With Quote
charliemcf's Avatar
charliemcf charliemcf is offline
Member
 
Join Date: Jul 2006
Location: Bothwell ( Glasgow), Scotland
Posts: 533
nice and simple, ill use a varation of it on my airport!


heres a modified result:
___________
click to enlarge

Click image for larger version

Name:	grass2.jpg
Views:	3373
Size:	54.4 KB
ID:	9427

___________

thx
............................................
http://charliemcfarlane.com- portfolio
HD 3850 512mb
#5   Old 18-Aug-06, 21:03   
Reply With Quote
Orinoco Orinoco is offline
Member
 
Join Date: Jun 2006
Location: Los Angeles
Posts: 5,355
Got some crits,though.
First place you lost me was here:
Quote:
Copy the setting shown below. Make sure the get the strand settings correct, they will make the blades of grass thick at the bottom and thin at the top.
Click image for larger version

Name:	GrassSettings.jpg
Views:	941
Size:	153.7 KB
ID:	9428
Here's my materials panel (2.42a) Where's the Use Tangent Shading box? To make a too long story short, I eventually found out that pressing the Strands button makes that box show up. A few well chosen words such as
Quote:
Press the Strands button and copy the setting shown below...
would have saved a lot of time and aggravation. Its a tutorial. You'll get a lot of newcomers reading this who won't know to try that.

Not a crit, but I didn't see much point in using the texture image, when a big clouds texture set to hack the color with brown does the same job.

Back to crits again. When I pressed the mesh button
Quote:
go back and click the ‘mesh’ button
the bloody plane lit up like a christmas tree and the render looked like... well, it did not look good at all. Same thing happened when I added a new plane and copied the grass material.

Maybe this is because I didn't use the image texture? At any rate, I fixed it by making the plane's material single user and turning the reflectivity in the shader way down. WAY down. Like below 0.2. Here's the result.
Click image for larger version

Name:	grass03.jpg
Views:	3944
Size:	111.1 KB
ID:	9430

Like I say, good tutorial. A bad one is one I can't finish with good results, and, as you can see, the results are good. Do you want to write a GREAT tutorial? Keep the same level of detail at the end as you had in the beginning.
............................................
Work in Progress: Another female model--- Getaway Airship
Finished Project: Treasure Chest -- Laser Platform -- The Watcher -- Chess Set
Blender Tests: Bone Roll Angles and Joint Deformations -- Tone and Gamma Corrections
#6   Old 18-Aug-06, 22:01   
Reply With Quote
apfelbeißer's Avatar
apfelbeißer apfelbeißer is offline
Member
 
Join Date: Aug 2006
Location: berlin,germany
Posts: 39
thanx
a tutorial which i understand

but give it any ways to animate the grass maybe in wind?

w.n.r.
............................................
visit my site www.tf-movies.de
#7   Old 19-Aug-06, 07:15   
Reply With Quote
Imperitor's Avatar
Imperitor Imperitor is offline
Member
 
Join Date: Feb 2006
Location: Winnipeg, MB, Canada
Posts: 345
I don't do much animating so I can't help you there.

Orinoco: Sorry I made this with the older version of blender so I thought it would be easy to find with my picture. I didn't anticipate them moving it on me. As for the brightness you probably didn't turn the color dark enough (the texture makes it darker but isn't necessary), or maybe you put a lamp too close.
............................................
My Grass Tutorial
My UV Texturing Tutorial

The one and only,
IMPERITOR
#8   Old 26-Aug-06, 02:43   
Reply With Quote
Orinoco Orinoco is offline
Member
 
Join Date: Jun 2006
Location: Los Angeles
Posts: 5,355
Quote:
Originally Posted by Imperitor
As for the brightness you probably didn't turn the color dark enough (the texture makes it darker but isn't necessary), or maybe you put a lamp too close.
Possibly. Probably, even. Want to turn a Great tutorial into an Outstanding one? Put in some sidebars on how to diagnose and fix common errors.
............................................
Work in Progress: Another female model--- Getaway Airship
Finished Project: Treasure Chest -- Laser Platform -- The Watcher -- Chess Set
Blender Tests: Bone Roll Angles and Joint Deformations -- Tone and Gamma Corrections
#9   Old 26-Aug-06, 05:32   
Reply With Quote
Imperitor's Avatar
Imperitor Imperitor is offline
Member
 
Join Date: Feb 2006
Location: Winnipeg, MB, Canada
Posts: 345
I added 2 common problem solutions. If there are any other problems people are having you can post them and I'll try to help.
............................................
My Grass Tutorial
My UV Texturing Tutorial

The one and only,
IMPERITOR
#10   Old 26-Aug-06, 23:46   
Reply With Quote
sprinkles's Avatar
sprinkles sprinkles is offline
Member
 
Join Date: Nov 2004
Posts: 550
Great tut. I have one question, is there a way to make certain places on the plane less dense than others?
............................................
Deviantart Profile :: My Blog
Does life suck? Get a Second Life!
#11   Old 28-Aug-06, 05:41   
Reply With Quote
Imperitor's Avatar
Imperitor Imperitor is offline
Member
 
Join Date: Feb 2006
Location: Winnipeg, MB, Canada
Posts: 345
Yes there is. Weight painting is the best method.
............................................
My Grass Tutorial
My UV Texturing Tutorial

The one and only,
IMPERITOR

Last edited by Imperitor; 11-Oct-06 at 20:30.
#12   Old 28-Aug-06, 07:17   
Reply With Quote
timeless's Avatar
timeless timeless is offline
Member
 
Join Date: Aug 2005
Posts: 105
to animate the wind

I was just googling and experimenting, this is what i came up with:
(warning, i have know idea what half this stuff is, but i just played around and got it to work by doing what i am outlining here, good luck!)

1) add an empty (in obj mode, space > empty) and move it to the side of your grass

2) physics button, field type set to 'wind'

3) rotate empty to where z is pointing in the direction you want the wind to blow

4) play with strength, that's how much wind. here, you can do a still render of some wind effecting your grass, for animation, continue reading

5) open an ipo window with the empty selected

6) click 'FStreng', hit N and click 'add driver'

7) hit i, click the message about 'one-to-one' whatever

8) zoom out to where you have more range to play with, tab into edit mode of the curve (the slanted line that appeared), click 'remove driver' (i don't know why this works, but it does) and move the nodes and handles around.

9) to add more keyframes, go to the frame while in edit mode of the curve and hit i

i haven't rendered yet, but it looks good with alt-a, i'll render soon but i wanted to hurry up and get this post out to you guys
............................................
i do stuff
#13   Old 01-Sep-06, 02:59   
Reply With Quote
timeless's Avatar
timeless timeless is offline
Member
 
Join Date: Aug 2005
Posts: 105
i can't seem to get any waves of movement in the grass, any one else have better luck? all my blades move the exact same way, no ripples or waves
............................................
i do stuff
#14   Old 01-Sep-06, 04:30   
Reply With Quote
Cuby's Avatar
Cuby Cuby is offline
Member
 
Join Date: Aug 2006
Location: New Zealand
Posts: 921
Wow, thats a really good tutorial. I've been trying to create effective looking grass for ages now but not any more!

Thanks
Cuby
............................................
Cuby site: The story of a cute, orange cube
#15   Old 01-Sep-06, 22:48   
Reply With Quote
osten osten is offline
Member
 
Join Date: Aug 2006
Posts: 10
I love it man, thanks a lot. No crits, From the point where i was done with your tutorial the experimenting got much better. For understanding particles etc!
#16   Old 02-Sep-06, 18:31   
Reply With Quote
Hugh Manatee Hugh Manatee is offline
Member
 
Join Date: Dec 2004
Posts: 47
Quote:
Originally Posted by timeless View Post
i can't seem to get any waves of movement in the grass, any one else have better luck? all my blades move the exact same way, no ripples or waves

What if you put multiple empties in your grass and have them blow at different times? where does the "wind" start is it a endless line that follows along the empty or does it start AT the empty like a fan?
#17   Old 02-Sep-06, 20:49   
Reply With Quote
timeless's Avatar
timeless timeless is offline
Member
 
Join Date: Aug 2005
Posts: 105
it seems to be an endless line along where the empty is, all the blades move together in the same direction from the general direction of the empty. you don't even have to point it at the grass, it can be pointed perpendicular to the grass and the blades will still bend in the direction of the wind.
............................................
i do stuff
#18   Old 03-Sep-06, 00:42   
Reply With Quote
Imperitor's Avatar
Imperitor Imperitor is offline
Member
 
Join Date: Feb 2006
Location: Winnipeg, MB, Canada
Posts: 345
I looked around and this is what I think would be the best way to animate grass.

1. make some grass (duh)
2. add an empty
3. go to the object menu(F7) and change the field to wind.
4. change the strength to about .8 - 2 depending on how strong you want this wind.
5. change the fall-off value to 1 - 1.5 This makes the field only affect a small area around the empty.
6. Add some key frames and make the empty fly past the grass. I suggest a linear IPO curve for better wind.

Now you have a very small ripple in the grass. For realistic animation I would add may empties and make then fly by at slightly different angles to create a constant rippling wind effect.
............................................
My Grass Tutorial
My UV Texturing Tutorial

The one and only,
IMPERITOR

Last edited by Imperitor; 06-Sep-06 at 19:41.
#19   Old 06-Sep-06, 17:01   
Reply With Quote
timeless's Avatar
timeless timeless is offline
Member
 
Join Date: Aug 2005
Posts: 105
fall-off?!

D-oh!!!

thanks for the tip!
............................................
i do stuff
#20   Old 07-Sep-06, 05:00   
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making Grass Flash Tutorial nico Basics & Interface 14 13-Feb-06 12:38
Is their a grass tutorial out their. yor1001 Basics & Interface 3 11-Oct-05 06:23
Grass tutorial pleez! Siike92 Basics & Interface 5 22-May-05 08:09
Grass Tutorial??? Muckiem14 Basics & Interface 2 18-May-05 12:52
Grass Tutorial karsten Basics & Interface 0 01-Sep-02 22:17


All times are GMT. The time now is 02:08.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Logo and website design copyright © 2006 by froodee design bureau. All rights reserved.
Other Blender Sites
new icon Blender Homepage »
The official Blender homepage
new icon BlenderNation »
Fresh Blender News, Every Day
new icon Blenderart Magazine »
Blender articles, tutorials and images.
Blender Headlines
Featured Artwork
Short animation: Barrel by Phlopper
Woolly mammoth by sebastian_k
Photorealistic classic furniture by eMirage
Social BlenderArtists