I’ve imported some of our artists trees into Unity for painting on the terrain, set them up with the right material/shader combos, and the leaves on the trees won’t animate. I’ve tried re importing, different export settings, etc. and about the only difference I can see between these trees and the Unity provided trees and that the two materials use two separate textures in the Unity trees, and our artist has only used one texture that is being used on both materials.
The trees are built in 3DS Max with the following setup.
- Multi-sub object material setup, using material ID’s.
- Material ID 1 set to the trunk polygons.
- Material ID 2 set to leaf polygons.
Then Import settings into Unity
- Material Generation : Per Material
I’ve tried setting Material generation to per texture, but it creates only one material (as expected) and then applies that material to the two ID’s, which means I can’t set them up for leaves/bark materials.
This isn’t just causing an animation problem, as we are using replacement shaders, and the replacement shader doesn’t seem to be picking up the leaves at all, and so the post processing effect isn’t being applied.
Is there anything obviously wrong I’m doing? I’ve done a fair bit of searching and can’t find any answers.