Jump to content

Houdini 15.5 crowd setup with multiple agents


Nik S

Recommended Posts

Hi there, 

working on a system with Houdini crowds in which I have a bunch of bugs writhing around on a dudes body. I can get one agent with multiple clips working no problem but when I try to add another agent (via a merge before I plug into crowd source) the clip attribute does not respect the agent group. That is, a maggot clip is being assigned to a mealworm for example. 

Of course the mealworm (second agent given to the agent group in the crowd source sop) gets screwed up in dops. While the first agent is fine. 

All of the examples I've found deal with only one agent. 

Is it possible to have multiple agents (say 10 different types of bugs) all working in the same crowd simulation?

thanks in advance,

nik

Link to comment
Share on other sites

There shouldn't be any issues with having multiple types of agents in the same simulation. Just make sure that for each state the agent may be in, the clip name is valid for that type of agent (if the Randomize Clips option is used, the clip name patterns are matched against the agent's clip catalog before selecting a clip).

  • Like 1
Link to comment
Share on other sites

Hi Nik,
We have crowds with many different agents, and there are many methods for setting this up.

When feeding multiple agents into a crowdsource node, you need to leave the 'initial state' field empty so that the each agent will use it's 'current clip' setting when simulating.
If this is not set up correctly, then you will get agents either not simulating, or incorrect behaviour.

Hope this helps!
Matt.

  • Like 1
Link to comment
Share on other sites

I do indeed have the randomize initial state enabled! I will try the above and let you know how it goes. 

Thank you! :)

Edit:

Update! Modified my setup to have a different agent per clip and everything is working. thanks for pointing me on the right direction!

Edited by Nik S
Link to comment
Share on other sites

  • 6 months later...
On 2/18/2017 at 11:55 AM, Matt_K said:

 

When feeding multiple agents into a crowdsource node, you need to leave the 'initial state' field empty so that the each agent will use it's 'current clip' setting when simulating.
If this is not set up correctly, then you will get agents either not simulating, or incorrect behaviour.

 

How do you input multiple agent nodes into one crowdsource node? I am finding that not to be possible.

Link to comment
Share on other sites

  • 11 months later...

You can freely merge the transition graphs for each agent type, as long as you've set up different agentname values for each. The transition graph geometry has an 'agentname' point attribute to disambiguate between different agents that have the same clip names.

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...