Hey guys i have had this issue for a long time now and i see games where the 2d plane branches will all sway all together on an
absolute world position and the tree base its self also sways with the 2d plane branches with none of them disconnecting from the tree base.
I can find absolutely 0 tutorials on how to do this, what is it that keeps all the branches from disconnecting and swaying in their own pattern
i have setup currently the 2d plane branches to be gray from the bottom to white at the top and the bases where those 2d branches sit on the tree base itself to be gray and the bottom of the tree base to be black.
With that all setup i thought that the weights setup evenly would of stopped branches swaying inside each other and all move globally together
but it doesn't.
Is the way other people doing this script related or material related??
If someone knows please help thankyou.
Replies
Like this:
You could also have a uv channel, just for this. And all the branches would be laid out in a way that they go from left to right or right to left, and their start is on the edge of uv 0-1 area so if you would simply apply the x channel of those uvs as a gradient, it would do the same thing.
If you really want it with vertex colors, you could also have a gradient texture that is mapped on the mesh based on like a third uv channel. And then, I guess you could bake that into the vertex colors in Blender. This way it would have a linear gradient without a need to painfully paint it with a vertex painting tool.
If you would want the trunk too to move, you could just build up an another chain and mask for the movement of that, and add it to the branch movement. That way, the branches would be affected by the trunk movement and mask as well.