ScriptSpot

Script

Grass Generator

By Midge_S · 2014-01-20

Version
1.5
Version requirement
2013+
Date updated
2014-05-02
Votes
29
Download
Download
Description

 

Grass Generator

Grass Generator v1.5 (Updated)

Create individual grass blades and patches of grass quickly!
Interface with customizable settings for controlling both grass creation and scattering.

So grass. Much generator. 

-- changelog --

1.5 - 29/05/14

New scatter option: Mesh
Added control to specify blade segments
New addon script: PFlow2Proxy
BIGFIX: Width and Length spinner now have more range

1.1a - 02/05/14

BUGFIX: Some of the grass UV's were getting messed up.

1.1 - 17/02/14
Code optimization (thanks to barigazy)
Speed improvements
Added option to automatically create Multi/Sub material

1.0 - 20/01/14
Initial release 

 

Installation:

- Run the script in Max.
- Look for the category "DAZE" in the "Customize user interface" section.
- Add the "Grass Generator" command to a toolbar / quadmenu.
- Click it and have fun!

Tested in 2013 / 2014, will probably work in older versions.

 

Spanish tutorial provided by Alejandro Valverde

 

Examples:

Videos

Tags: grass patch generator

Comments (18)

Homepage website was down/expired/abandoned for this script

nnq2603 · 2022-08-04

Would be great if someone has this script and could upload a mirror download link.

Elenana · 2020-05-07

а как скачать генератор? я не понимаю

addon

oncire · 2014-04-04

Can you add option in the script to automatically adjust your "default values" to the current system units..Its a bit confusing while changing the values..and theres a limit to the values.. I think the code is written in Centimeter...
When I try to create grass its to small ..by the way my system units is in mm... I know that a simple scale will do after the creation... but if you can add it to the code I think its better.. Thanks nice script

fajar · 2014-03-30

maybe some preset, load n save would be great ....

suggestions

Derp Meowslurp · 2014-03-30

some suggestions if you plan on advancing this script,

maybe add the option for veins especially one along the center,

have the leaf blades able to bend/curve/arc like a real grass blade.

there are a bunch of different type of grasses, bermuda, fescue, rye, tif, turf, zoysia, buffalo, bahia, st augustine, etc.

it would be nice to have some more flavors

Cool script!Is it possible

jgk1981 · 2014-03-27

Cool script!
Is it possible to put animated grass too?
This is the only thing that the script missing to be complete ;)
Keep up the good work and thanks again for sharing.

Thanks!

asadar · 2014-02-19

It works just fine (max 2014). Simple and efficient!
For a future version, a good option could be to add some control over the amount of edges (verticaly and horizontaly). And why not, a simple preset material.

Thanks for sharing!

ice-boy · 2014-02-10

thanks for this script.

can you add an option to remove the middle loop? sometimes we create grass for background and we dont need the edge in the middle.

Loop

Midge_S · 2014-02-11

I'll keep this in mind for the future.
I'm collecting all the input people provided and am looking to expand the script with it.

Thanks for the feedback! :)

Midge_S · 2014-01-24

Thanks for all the great comments and suggestions!

I'll be looking into expanding the script further with a lot of the suggested features, as soon as they're added I'll be updating it. Could take a while though, bit busy lately, but I'm getting on it for sure! ;)

sweet grass

robobear510 · 2014-01-24

nice work, it would be cool if you could do like a real time update - what sort of an approach do you need to do that in this case
- and some scattering on geometry, but this is pretty cool, always on the lookout for nice grass..
- also, maybe create some standard maps via random wirecolor - just to get that initial variation also submaterials might be generated that way, to get even more satisfying default results - most render plugins have some sort of conversion from standard shader to their native shader (but not from wirecolor)

Cool

Nevil · 2014-01-24

This is Cool stuff

I have some more suggestion

1. Use the "type:#worldUnits" option for your spinners depends on Size value.
2. Each time hit the GENERATE button create new grass, you can delete the older one on generate the new one
3. You have used "select $....." command this is so Heavy than the select Node.
4. Editable Mesh object is lighter the editable Poly, lower disc space too.
5. If you can generate grasses by surface that will be ultra Cool ( I have no idea for this one :D )

barigazy · 2014-01-24

@Nevil
I make some minor optimization to current script and sended yesterday to author
1. this option is OK
2. simple "delete previous" button is better choise
3. fixed
4. fixed
5. can be done, it's not a problem but always is better to manualy adjust placement or PFlow

@igamaximus
Can you post class name for frProxy. For material im not sure but I think "frAdvanced" is right one. Also fR have layered map and some 2Sides Material or map solution.

Barigazy, thank you very much for your efforts

igamaximus · 2014-01-24

Class name for fR-Proxy should be "fR_Proxy" (when i click fR-Proxy button in finalRender, i get "fR_Proxy ()" in listener so i hope this is it). I think the best material choice would be fR-Architectural, this material looks very similar as Mental Ray's Arch&Design, just has some fR optimisations under the hood. Yes, fR has many materials and maps, including fR-2Sided and fR-Layer Map. Please let me know if i should send you any additional info regarding fR. Thanks a lot once again!

barigazy · 2014-01-24

I used fR 3.5sp7 which works on max2012. Now I'm on max2014.
I'll be wait "long awaited" FinalRender 4GPU. I love cebas products but I do not believe that fr4GPU can offer something different then recent renderes (iRay, VRayRT, NOX, Corona and even Arnold). Anyway we will see.

Thanks

Nevil · 2014-01-24

@barigazy

You are one step forward.
well done, thank you.

barigazy · 2014-01-24

I have few suggestions:
#1 support for mentalRay, VRay, Corona

Depending on the installed renderer user can choose:

- automatic creation of compatible proxy object which will be stored on HDD:
---> mrProxy, VRayProxy, CoronaProxy
---> this can be useful for AdvancedPainter tool and max Object Paint tool

- automatic creation of multimaterial with compatible sub-materials like:
---> Arch&Design or single A&D material with Multi/Sub map in diffuse slot
---> VRayMtl (or VRay2SidedMtl) or single VRayMtl with VRayMultiSubTex map
---> CoronaMtl with CoronaFrontBackMap in diffuse slot

For now that's all :) #2 ... hmmm ... another time
BTW I send you PM with optimized code for current version

little addition on Barigazy's suggestion - finalRender support.

igamaximus · 2014-01-24

#1 support for mentalRay, Vray, Corona and finalRender

Depending on the installed renderer user can choose:

- automatic creation of compatible proxy object which will be stored on HDD:
---> mrProxy, VRayProxy, CoronaProxy and fRProxy
---> this can be useful for AdvancedPainter tool and max Object Paint tool

Thank you for this beautiful tool.