Page 1 of 1

New animated grass smd parameters in Spring 0.82+

Posted: 05 Aug 2010, 16:29
by Beherith
You can specify some new parameters for the grass in the new spring:

Code: Select all

[MAP]{
	Description=Moor_v2 by [teh]Beherith, for up to 16 players. mysterme@gmail.com;
	TidalStrength=21;
	Gravity=115;
	MaxMetal=1;
	ExtractorRadius=90;
	MapHardness=185;
	AutoShowMetal=1;
	Detailtex=detailtex.bmp;
	GrassShadingTex=grassshading.bmp;
	GrassBladeTex=grassbladetex.bmp;

[GRASS]{
  
    GrassBladeWaveScale = 3.0;
    GrassBladeWidth = 0.5;
    GrassBladeHeight = 6.0;
    GrassBladeAngle = 1.57;
}}
These do the following:

GrassShadingTex
Specifies the color variation of the grass across the map. This defaults to the minimap, so the grass color can match the map color.

GrassBladeTex
Specifies the texture to be used on the grass blades themselves. Green-yellow gradients make for some interesting effects. Defaults to the internally generated blade texture.

GrassBladeWaveScale

Specifies how much the wind should effect grass blade movement, as well as the amplitude of the grass motion. Defaults to 1. Setting it to 0 will stop grass animation.

GrassBladeWidth
Specifies the width of each blade of grass. Defaults to 0.32 elmos

GrassBladeHeight
Specifies the length of each blade of grass. Defaults to 4 elmos.

GrassBladeAngle
Specifies the curvature of each blade of grass. Unit is radians, defaults to 1.57. 0 means completely straight blades of grass.

For an example of all these parameters in use, see Moor_v2

Re: New animated grass smd parameters in Spring 0.82+

Posted: 05 Aug 2010, 19:03
by KaiserJ
woah anim grass....

sounds awesome

Re: New animated grass smd parameters in Spring 0.82+

Posted: 30 Apr 2011, 10:33
by knorke
also on wiki since some time:
http://springrts.com/wiki/Gras_on_maps