In this session I created an smart SM mesh on defined layers. we want to have special grass and vegetations spawns on specific materials layer so in addition of that it will prevent us to integrate these meshes manually, because of the size of this world and variety of vegetations this method will come handy to us.
first of all we add the Landscape Grass Output Node in the M_Landscape material and defined our Array elements with verity of SM meshes of vegetations. and define the respective material layers of those meshes.
after that we created a Landscape Grass Type Parameter. and define our SM meshes of our Grasses.
after that for sake our game's performance we need to define a method in Material functions blue print and in our GT layers that create a distance Blending. which spawns the vegetations in respective minimum and maximum distances.
after that we need to integrate the node with our Slope Blend Method so in addition of that we could connect the combined nodes with our main Material Layer and replace the previous method.
For this Approach we take the W/Vertex Normals of World Aligned Blend Node of each layers and substract it from other layers and connect it to the Grass Landscape Node. however this method will be have some issues on spawning vegetations on some regions that is not on our interest. So in addition of that we need to define another layer Node that I called "No Grass" and subtract it from the vertexNormals of each layer and connect it to the the Grass Layer. after this integrations we could easily paint on our layers with no grass layer and remove unnecessary meshes.
Comments