Beherith, How does we maek trees wave?
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Beherith, How does we maek trees wave?
You showed off some sort of shader a while back that would make trees more or less blow in the wind. Hao duz I?
Re: Beherith, How does we maek trees wave?
Well, that was an ugly hack. Because back then shaders could only be attached to units, so the tree was a unit.
jK knows best now if features can feasibly been drawn through lua, and have a shader attached.
After that, its just a matter of jiggling the vertexes of the trees in the shader (you can use the bump map shader as a simple base).
So attaching a shader is the hard part, making it move is easy (at least thats what it seems like to me). If you get a shader attached, ill gladly jiggle them trees.
jK knows best now if features can feasibly been drawn through lua, and have a shader attached.
After that, its just a matter of jiggling the vertexes of the trees in the shader (you can use the bump map shader as a simple base).
So attaching a shader is the hard part, making it move is easy (at least thats what it seems like to me). If you get a shader attached, ill gladly jiggle them trees.