Hello! I created a wind swaying tree material and in 4.27 it works on all trees, but in ue5 the material only works correctly if the tree is not being mapped as foliage. What could be the reason? https://youtu.be/DT0s-GdVGxQ
#Hello! I created a wind swaying tree material and in 4.27 it works on all trees, but in ue5 the mate
1 messages ยท Page 1 of 1 (latest)
Is nanite enabled?
I think it is because the object pivot point
on instanced meshes it is not on the tree, but somewhere in the middle of the blob of trees
Yeah that would make sense
Maybe you need to bake the pivot point to a spare UV Chanel?
It did not help((
I think it has something to do with Bounding Box Dazed
Yeah, later that topic came up and the bounding box does not work well. With some hardcoded values it can work probably, but I could not finish testing it.
Bounding box based uv will not work with foliage
You should create object space gradient without vertex interpolation, but it has some heght lemitation. Or create vertex paint gradient it would be better.
are you talking about the method our blogger used for his weed? ))
I think this will not be easy to do, given that I will have to color all the trees, moreover, with smooth gradients
I have a function written for that, but I'm not home right now. I can send you a screenshot later. After the weekend.
Well I will wait!
Hi. Sorry for the delay, here is the object space gradien function as I promised. Use instead of bounding box based uv as a multiplier. It should work)) https://youtu.be/roHKaXS83b4
Thank you very much! I spent a lot of time trying to solve this problem. Switching to a new version of the engine is so problematic))
I'll try as soon as I wake up tomorrow
You're welcome) glad I could help.
Hi dude. I still couldn't fix the wind. I inserted the code like yours, but you can see the result in the video.
https://youtu.be/KbF1M8YhFTk
Hi. You need to decrease the offset to make the gradient smoother. Change the value in node power to a smaller one, like 2 or try different values and see which is better. You can also try changing the height of the gradient so that the bend starts closer to the top of the tree.
Here is an example of my trees.https://youtu.be/tIMAv6vYm60
Available on Unreal Engine marketplace
https://unrealengine.com/marketplace/en-US/product/stylized-trees-pack
Check my projects on Unreal Engine marketplace, maybe you will find something interesting!
https://unrealengine.com/marketplace/en-US/profile/Evgeniy+Kashirskiy?count=20&sortBy=effectiveDate&sortDir=DESC&start=0
Thank you.
Played around with the settings and it looks better. It remains to solve the problem with leaf artifacts when I apply nanite: https://www.youtube.com/watch?v=m9VEwVSu9FY&ab_channel=IlasSubeev
Try changing the velocity pass
Also, if you use virtual shadow maps, I recommend limiting the maximum wind distance. This is a good way to improve performance. As there is an update of shadows every frame
Already enabled Velocity
The leaf problem only appears with nanite