grass on my mesh terrain

hello guys, I’m new
'm learning Unity
I need help to better understand some functions
you can create the grass on a personal mesh? (no unity traditional terrain)
excuse for my bad english!
thanks :wink:

help me please :cry:

The grass tools in Unity are for Unity terrains only. You can implement your own system for making grass on a normal mesh if you want, although it won’t be simple. (There actually was a script for doing so floating around somewhere in the 1.x days, probably needs to be adapted/fixed for 2.x.)

–Eric

ok, realy thanks

https://servicemedia.s3.amazonaws.com/grass_on_mesh.unitypackage.zip

Here’s an simple example of the grass on mesh script at work. Tweak the splat map texture’s RGBA values to control where the grass appears. Seems to work fine on v2.6. HTH!

ok thanks
now I try :wink:

ok, I have my personal mesh terrain,
I have create a large texture of terrain and I have create an alpha channel of grass zone.

import a TerrainAssets.unitypackage and select grass I prefer, and now??

How do I create the grass on my mesh with alpha?

excuse but I’m new of unity!!
[/img]

another info:

I have create terrain in xsi, I have create texture called rendermap (total terrain texture with shadows and lights), import in unity and want to create grass in terrain surface with paint tool (if possible)
tnx :wink:

This looks like it would be a really good tool. But I too can’t get it working. I noticed that the six “ParticleGrass…” shaders all say “Shader has errors or is not supported by your graphics card”

What’s so special about these shaders, or is it another case of my old Radeon X1950 being too old.

Here’s one of them…

Shader "Hidden/ParticleGrass" {
	Properties {
		_Color ("Main Color", Color) = (.5, .5, .5, 0)
		_Color2 ("Fade Color", Color) = (1, .9, .8, 0)
		_Color3 ("Dry Color", Color) = (1, .9, .8, 0)
		_MainTex ("Base (RGB) Alpha (A)", 2D) = "white" {}
		_LightTex ("Lightmap", 2D) = "white" {}
		_NoiseTex ("Noise", 2D) = "grey" {}
		_waveStrength ("Wind Strength", Range (0,50)) = 30
		_waveSpeed ("Wind speed", Range (0,30)) = 30
		_fadeDistance ("Fade Distance", float) = 10
	}
	SubShader {
		Tags { "Queue" = "Transparent" }
		
		Pass {
		CGPROGRAM
		// vertex Vertex
		#include "ParticleGrass.cginc"		// Get in the helper wave functions
		ENDCG			

			ColorMask rgb
			Blend SrcAlpha OneMinusSrcAlpha
			ZWrite Off
			Cull Off
			SetTexture [_MainTex] { combine primary * texture DOUBLE, texture * previous }
		}
	} 
}

check if the shaders or the included code somewhere uses RenderTextures or another Pro only feature. That would cause the “not supported …” message to appear as well.

Technically your GPU should be able to handle nearly anything Unity has to offer with its maximum of Shader Model 3 unless your driver / ati decided to not support it.

As long as you have a August 2009+ driver you should be fine

I’ve got Pro. Have you had this working? I’m only guessing it’s these shaders that are holding it up.

hrm, it worked fine in the scene I exported it from, but not when I imported it back in… standby, I’ll try to fix…

Hi, so how did it go? I’d love to try this out.

I resolved
I created grass on the terrain of unity and I modeled the terrain for my mesh
perhaps not the best way but it works :lol: