Right, so I am working on this environment. And is currently in the process of making the vegetation and foliage for the scene.
And I am facing two problems with the shader. This is the first time I make a material in UDK so I wouldn't be surprised if the problem is something very basic.
So this is the scene:
And the first problem I have is with how the lighting affects different sides of the grass. Sides of the plane that is being lit is still dark and the other way around.
I have followed several different tutorials, that all address this problem, so I am assuming that it is common, but their result is different from mine.
This is how it looks:
And the shader:
And secondly. I am also trying to get a nice wind-effect on the grass. This works mostly the way it should. Except the wind should not affect the lower parts of the grass. The way the shader is made is so that you can vertex-paint the windeffect on the object. But I am using foliage mode when placing the grass, and as far as I have noticed, you cannot vertex paint these objects (and I don't really want to paint every single plane anyway).
What I have figured myself is that perhaps I could add a mask to the shader itself, but I have not succeded in doing so.
Picture:
Anyone know a solution?
Replies
normally you would use vertex colour to mask the wind movement.
The trick is not to vertex paint the grass in UDK. What you do is import the grass mesh with vertex colours already applied in Max/Maya or whatever. This way every placement of the grass will have the same vertex colours on it.
Thank you, but could you explain transmission or show me something to help me better understand it?
Ah, of cause. Thank you!
Transmission means the ability of light to pass through onto the other side of a two-sided material.
http://udn.epicgames.com/Three/CustomLighting.html#Transmission and _TwoSided
I will try that, Thank you again.