#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)

frozen pasture
zenith owl
#

Is nanite enabled?

hasty pulsar
#

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

zenith owl
#

Yeah that would make sense

hasty pulsar
#

try that instead of it

zenith owl
#

Maybe you need to bake the pivot point to a spare UV Chanel?

hasty pulsar
#

#ue5features

#

:D

frozen pasture
#

I think it has something to do with Bounding Box Dazed

hasty pulsar
#

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.

candid pilot
#

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.

frozen pasture
#

I think this will not be easy to do, given that I will have to color all the trees, moreover, with smooth gradients

candid pilot
#

I have a function written for that, but I'm not home right now. I can send you a screenshot later. After the weekend.

candid pilot
frozen pasture
#

I'll try as soon as I wake up tomorrow

candid pilot
frozen pasture
candid pilot
frozen pasture
candid pilot
#

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

frozen pasture
#

The leaf problem only appears with nanite