Unity-Technologies / Unity.Animation.Samples

Repository of projects that showcase the new DOTS animation package (com.unity.animation).
Other
418 stars 77 forks source link

Upgraded Packages to new animation package but animation does not work.(BlendTree2D Simple Direction) #20

Open arpanraj opened 4 years ago

arpanraj commented 4 years ago

Hi,

My Setup Universal Rendering Pipeline (I am not using bone rendering component so it might not be the issue maybe.) Animation Package Version 0.6.0-preview.2
all the required dependencies are installed. Reference example Scenes->Examples -> BlendTree2D Simple Direction Model -> Rig - Humanoid Animations - > Rig - Humanoid (avatar configured from above model)

Changes I made

where TAnimationGraphTag : struct, IGraphTag    (changed into)  ->  where TAnimationSystemTag : struct, IAnimationSystemTag
where TAnimationGraph  : ComponentSystemBase, IGraphSystem<TAnimationGraphTag>    (changed into)   ->    where TAnimationGraph : ComponentSystemBase, IAnimationSystem<TAnimationSystemTag>
public class BlendTree2DGraphSystem : SampleSystemBase<BlendTree2DSetup, BlendTree2DData, PreAnimationGraphTag, PreAnimationGraphSystem>    (changed into)   ->   public class BlendTree2DGraphSystem : SampleSystemBase<BlendTree2DSetup, BlendTree2DData, PreAnimationGraphSystem.Tag, PreAnimationGraphSystem>
PostUpdateCommands.AddComponent(entity, graphSystem.Tag);        (changed into)   ->  PostUpdateCommands.AddComponent(entity, graphSystem.TagComponent);

output I am able to see rendered model with no errors with static T pose (As per provided count settings). I am able to debug inputs I passed and BlendTree2DData is also showing proper data through entity debugger. I dont know its relevent or not I was able to see DisableRootTransformReadWriteTag in one entity list.

Thank you in advance.

nicolasgramlich commented 4 years ago

@arpanraj I think URP is technically not even supported still, is it?

Which version did you have success with prior? I think a lot of people would be interested in any adjusted sample code that does work with URP (or at all)

arpanraj commented 4 years ago

Thanks @nicolasgramlich for reaching out. I did not knew that it does not work with URP(because I thought maybe the bone rendering component is only defined in the hdrp and other calculations of different animations happen using data flow graph). I did not have any success prior using this.

I will now try in HDRP Pipeline and will let you know if I get any success.

arpanraj commented 4 years ago

ok, I tried in HDRP and it has same output as URP. (Bone rendering still does not work.) I am only able to move root bone as per animation (created by input) and child bones does not move.

darnogor commented 3 years ago

I have the same problem (child bones don't move)... @arpanraj Have you fixed it? Animation - version 0.9.0-preview.6 Hybrid Renderer - version 0.11.0-preview.44 Unity 2021.1.10f1