Download

Tree swaying material problem

hello guys for a job i have to create a storm environment, i need to add a swaying effect to trees (as i did) and it works nicely, i replicated the material used inside unreal content examples about pivot painter, my problem is that i need this tree to rotate as you can see in last part of video and when rotation happens all the swaying get messed up! do you know what can i tweak to make the swaying local? this is the original material setup: M_palmtree posted by anonymous | blueprintUE | PasteBin For Unreal Engine 4

after some test i come to conclusion that the problem is caused by this node (M_palmtree_2 posted by anonymous | blueprintUE | PasteBin For Unreal Engine 4) that randomize the oscillation, if i replace object position with actor position or anything else it get fixed but then all tree sway in same direction and is not so good, is there any way i can make randomization happening just one time and then not updating on each position change? thanks

VIDEO