I recently started a nature scene in UDK and was wondering what's the best way to go about making trees and foliage sway in the wind? Is there any way to have it automatic or will I have to animate them? In the L4D2 Source Engine there's just a few commands that you plug into your material to make the trees sway but I haven't seen anything like that for UDK.
Thanks.
Replies
Forgot about that thread. I'll definitely take a look through there later, although I don't recall him ever mentioning anything about it in there.
I'd rather not use Speed Tree, but thanks for the suggestion. If doing it through materials isn't that feasible then I'll probably just animate them.
Does anyone have any idea exactly how they set the foliage up to utilize the WindDirectionalSources?
That's probably the closest thing to what I'm looking for. Thanks for posting it. It's a bit complex though. I'll take a closer look at the GDC 2010 assets to see how they did it and if I can't find out I'll probably set that up.
A friend of mine has this tutorial (http://eat3d.com/udk_cinematics) and I believe they mention that in a section called "modifying plants", I'll ask him how they did it
http://udn.epicgames.com/Three/WorldPositionOffset.html
http://udn.epicgames.com/Three/InteractiveFoliageActor.html
@Jzeeba, thanks. Would be nice to see how other people have set similar things up.
@Sprunghunt, thanks for the links!
That would be great. One thing I'd like (That could be in the shader already but I just didn't find the right settings to change) is to have the bottom of the object able to be still. I'm using this on some trees and it looks fine on the leaves but when I put it on the trunk it looks awkward with the bottom swaying around. I got it to look alright by just toning it down to where the movement near the bottom won't be as noticeable but it'd be nice to be able to have the top branches sway more.
There is also a way to generate a spherical fall off within a material but this both costs performance and isn't very flexible.