Grass Edges

From The DarkMod Wiki
Revision as of 21:21, 22 December 2010 by Grayman (talk | contribs)
Jump to navigationJump to search

written by Fidcal

This is about the grass edges, patches, and paths textures in update 1.03.

These are all textures under nature > grass > grass_edge.

I've not done prefabs at this time and I'm not sure it's worth it. The final versions consist of three types:

1. Basic grass edge for all three grass types (easy to add to if we get new grass textures in the future.) This is an endless 2-sided grass strip that you overlay over the hard join between grass and any other surface. You need to scale it approximately to the same as the grass but it does not need to be aligned with the grass particularly as its grass edge side blends in. You only need align the visible grass edge where you want it. There is a lot of space on this 1024 x 1024 tile, virtually half. This makes it easier to align (I tried using a 1024 x 512 tile without the space but however I adjusted and tweaked it was a nuisance to align.) You can also use this edge up against a wall by bevelling that edge a tiny amount up the wall. You can see many examples in the little courtyard in Biker's St. Alban's cathedral.

2. Grass patch. This is like a woolly bath mat. Place it over alignment errors, path ends, or just as a stand-alone grass patch.

3. Instant paths. These are endless 2-sided strips but they are the reverse of the above. They consist of many dirt and stone textures with grass blade alpha edges that blend into any grass texture. Just drop a patch onto any grass surface and give it one of these path textures and you've got a path with a soft edge. Width is limited to texture scale is the downside but at least once you've made the path you can stretch it sideways somewhat within reason. The long ends of these paths are hard so either you end them at some other surface like another path or doorstep or alternatively drop a grass patch over the end. I have provided all that seemed appropriate of our current dirt and cobble floor textures but it is relatively easy to copy one of those and make a new type if you need it. This path type might also work with materials other than grass to soften the edges but they are not random crumb; they are rough grass blade alpha. But you find dirt on straw or dirt on dirt stone on dirt might work I don't know.

When would you use one rather than another? The edges are more versatile and are not limited to just paths whereas the path types are quicker.

You can bend and twist both in all 3 directions so you can have a winding concave path with a dip in the middle up a curving hill. But the path type you cannot really make them go narrower or wider because the patch itself is the path whereas with the edge type they form a path by surrounding some other surface.