New animated grass smd parameters in Spring 0.82+

New animated grass smd parameters in Spring 0.82+

Tutorials & Resources For Mappers

Moderator: Moderators

Post Reply
User avatar
Beherith
Moderator
Posts: 4925
Joined: 26 Oct 2007, 16:21

New animated grass smd parameters in Spring 0.82+

Post by Beherith » 05 Aug 2010, 16:29

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
0 x

User avatar
KaiserJ
Community Representative
Posts: 3113
Joined: 08 Sep 2008, 22:59

Re: New animated grass smd parameters in Spring 0.82+

Post by KaiserJ » 05 Aug 2010, 19:03

woah anim grass....

sounds awesome
0 x

User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: New animated grass smd parameters in Spring 0.82+

Post by knorke » 30 Apr 2011, 10:33

also on wiki since some time:
http://springrts.com/wiki/Gras_on_maps
0 x

Post Reply

Return to “Map Tutorials & Resources”