You're probably asking "why make another grass script?" Well, I couldn't find one that addressed all of my needs. So, I made this one. It took me over a week to accomplish, and I am happy with it. Since there may be others that need it, I thought I'd share it. The features in this one include:
*Grass on an MDL terrain.
*Grass on hilly terrain.
*Grass only plants on terrain, and not on top of other objects.
*Grass created automatically on level start. No need to model in WED.
*Use a colormap to define where grass can/cannot be planted.
*You can tweak the script a little to improve framerate performance.
*The grass fades in smoothly. No pop ups.
The limitations are:
*Works with only 1 terrain. You have to reprogram if for multi terrains.
*Not tested with HMPs. I've never used HMPs before.
Info from the script:
//GRASS SCRIPT - HOUSE BLEND. Works with A6.40.5 and above.
//This is a script for placing grass models on an MDL terrain. It has not been tested on an HMP.
//It only works with a single terrain. You must modify the script if using multiple terrains.
//The MDL terrain uses JCL's multitexture shader from the wiki.
//A color map is used to specify the areas where grass can/cannot be placed.
//This script was created by nifty, using many different scripts and resources from 3DGS community, thus the
//term house blend. I have added some secret ingredients of my own
//to make it a complete solution for most projects.
//The author wishes to thank the following people for their contributions:
//JCL, Matt Aufderheide, Loopix, Sourcerer, Lolek, and George. Long live AUM!
//You may use this script in commercial games without restrictions.
Instructions are in the grass.wdl file.
DOWNLOAD SCREENSHOT:
Note - The white box is to show that the grass will not plant on top of other objects.