johnroper100 / CrowdMaster

Crowd Simulation for the Masses
http://crowdmaster.org
GNU General Public License v3.0
133 stars 24 forks source link

Action slows down when the agent does #9

Closed johnroper100 closed 8 years ago

johnroper100 commented 8 years ago

Someone had noticed in other crowd systems that when the agent slows down to not creash into somebody or something, it's animation slows down as well. Any ideas as to if this is dooable?

Peter-Noble commented 8 years ago

Yeah, this is something I've been thinking about for a while but the problem is that you can't keyframe the playback speed of NLA tracks (they can individually have different playback speeds but only one playback speed per action clip). A potential solution would be to extract the animation from the actions into a series of keyframes and then set the keyframes manually per frame. However, this would be loads of work so hasn't been done yet.

johnroper100 commented 8 years ago

Yea, this was what the old BlenderPeople script did. Take a look in https://github.com/johnroper100/CrowdMaster/blob/master/old-bp-code/Locomotion.py

Peter-Noble commented 8 years ago

This is a bigger issue so I'll look into it when I have more time at the end of the week/next week.