dynamic grass?


PanFrie
11-14-2005, 03:38 PM
i think thats whatits called... how do i make that grass with the little bits of grass sticking up all over?

haircut
11-14-2005, 03:43 PM
In DoD:S?

That seems to be apart of the marterial that you use?

Scooty Puff Senior
11-14-2005, 03:56 PM
Yea, those are sprites. Set in the VMT file, i do believe.

PanFrie
11-14-2005, 03:56 PM
what mat do i need to use to get those then?

FuzzDad
11-14-2005, 05:16 PM
The vmt for each texture might reference a "details" setting. Those detail settings call the details.vbsp file (located in the dod root directory). Example:

The anzio_grass_blend002.vmt in dod_anvil looks like this:

"WorldVertexTransition"
{
"$basetexture" "nature/cobblegrass001"
"$baseTexture2" "nature/anzio_grass002"
"%detailtype" "anzio_grass_dense"
"$surfaceprop" "dirt"
"%keywords" "dod"
}

Notice the line I bolded/oranged...it's referenced in the details.vbsp file like this (part of it...not the entire listing):

anzio_grass_dense

Model1 //main grass
{
"sprite_shape" "tri"
"sprite" "776 0 248 121 1024"
"spritesize" "0.5 0.0 50 30"
"spriterandomscale" "0.2"
"amount" "0.7"
"detailOrientation" "0"
"shape_angle" "25" //degrees of tip/flare
"shape_size" "0.025"
"sway" "0.3"
}

The details.vbsp file sets all sorts of things for each sprite to be rendered to include whether or not it moves (the "sway" setting. Use GFCScape to decompile the details.vbsp and go from there.

ultranew_b
01-10-2006, 11:37 PM
Yes, I resurrected an old thread ! :p

Is it possible to add custom sprite settings for custom grass? Fuzzdad, I noticed you referenced an existing set-up in the detail.vbsp.

Can I create a custom vbsp file and specify my own custom sprite settings?

Ca-Chicken-Soup
01-11-2006, 12:59 AM
Heh I knew I saw this before.

Yes it's all possible; there's a butt load of information over at the valve wiki, search for detail shapes.

Make your own custom vbsp so it doesn't over write the defult, just have it in the bsp when destrubuiting.

ultranew_b
01-11-2006, 06:04 AM
Originally posted by Ca-Chicken-Soup


Thanks for pointing me in the right direction.

:)

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.