Page 1 of 1

Grassy plains

Posted: 03 Jul 2016, 18:19
by PicassoCT
Is there a way to customize the grass texturing?

For example if i want to cover my world in this, bound to the polygon grass we currently have- what must i do?


Image

Re: Grassy plains

Posted: 03 Jul 2016, 20:08
by gajop
Check https://springrts.com/wiki/Mapdev:grass , and try adding your custom map texture:
grassBladeTex = "",
grassShadingTex = "",

I haven't seen any used in games so there might be some limitations...! Would be interesting to see, grass can help make maps a bit more diverse.

Re: Grassy plains

Posted: 03 Jul 2016, 21:58
by Forboding Angel
I advise against using engine grass. It is extremely wasteful and doesn't render properly.

Re: Grassy plains

Posted: 03 Jul 2016, 22:25
by PicassoCT
It has no shadow- but should be less wastfull to render then feature grass or the likes of that.
Its clearly instanced as in - one set of grassblades is reused again and again.

I tryied around with this.
Results:
Textures taken are bmp, tga and png
The Texture is upside down.
Transparancy is not factored in.
If the texture is not found the default grass texture is used.
Image
Archievable effects are mainly subtile exotic differences.
It is not possible to specify a to be used geometry element.
It is not possible to customize the texture as i intended.
It is not possible to specify the height of the grass via map - or as a randomzed treshold.

Forb do you have a valid alternative suggestion?

Re: Grassy plains

Posted: 04 Jul 2016, 11:08
by Anarchid
Maybe you can override the grass shader. What if you override the grass shader.

Re: Grassy plains

Posted: 04 Jul 2016, 20:47
by PicassoCT
where does said shadder lurk?

Re: Grassy plains

Posted: 11 Jul 2016, 06:51
by smoth
Forboding Angel wrote:I advise against using engine grass. It is extremely wasteful and doesn't render properly.
how so?

Re: Grassy plains

Posted: 11 Jul 2016, 07:51
by Beherith

Re: Grassy plains

Posted: 17 Jul 2016, 00:32
by smoth
so it is fixed now and is a non-issue provided it makes it into the next spring?