Jump to content

Crowd agent transition issue


kstrod20

Recommended Posts

Hello,

I have a question about agent transitions. Right now it seems that agents will not accept a triggered activation if they are currently in a transition state. In my example attached the agents start running at frame 5 and should stop running any frame after 15. They won't stop until after transition 1 is complete. Is there a way to interrupt a transitions state blend to transition to another state without setting state transition duration to 0?

-Kjell

Transition.hip

Link to comment
Share on other sites

 

Hi Atom,

First thank you for your reply. I know you know quite a bit about crowds!

Weird, I have the units set to frames on the crowd triggers and they seem to be accurate as long as an agent isn't transitioning. Just double checked my attached file using Houdini 16.5.

I find that no matter what trigger i'm using, the second trigger will not activate until the first triggers transition is complete. I attached the same scene but using seconds and a second transition duration as 0 and have the same issue. The agents should run at 1 second (frame 24) and then stop at 1.1 seconds. The real reason I'm doing this is because I find that I can't cause an agent to ragdoll using RBD impact while it's transitioning.

Attached is the scene in seconds and a scene with the RBD example.

Thanks again for your reply!

Collision_RBD.hip

Transition_in_seconds.hip

Link to comment
Share on other sites

After playing around with the scene, the problem seems to be substeps. Your collider is moving very fast so it is actually passing through the agents, sometimes. The crowdsolver defaults to 5 min and 5 max substeps. Set the crowdsolver min max substeps to 1,1. Jump one level,and set the crowdsim dop network substeps to 5. This will cause all nodes, inside the dop network, to run five times, for every frame. A little slower to sim, but this seems to solve the RBD transition problem.

ragdoll.gif

ap_crowd_ragdoll_Collision_RBD_071519.hiplc

Edited by Atom
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...