Download

SpeedTree wind incorrect calculation on instanced meshes (foliage)

SpeedTree material node does not work correctly with instanced meshes (foliage). It calculates World Offset as if each tree is located in 0,0,0 World Coordinates. So if your SpeedTree is not in the center of the world, it will go crazy. On picture you can see red Tree is in 0,0,0 and blue Tree is 0,0,1500 - you can see how its trunk is bended like as if tree is growing from 0,0,0. With non-instanced meshes it works fine. So it has to be something to do with calculatin local position for instanced meshes.