Nik S Posted February 18, 2017 Share Posted February 18, 2017 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 Quote Link to comment Share on other sites More sharing options...
cwhite Posted February 18, 2017 Share Posted February 18, 2017 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). 1 Quote Link to comment Share on other sites More sharing options...
Matt_K Posted February 18, 2017 Share Posted February 18, 2017 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. 1 Quote Link to comment Share on other sites More sharing options...
Nik S Posted February 20, 2017 Author Share Posted February 20, 2017 I do indeed have the randomize initial state enabled! I will try the above and let you know how it goes. Thank you! Quote Link to comment Share on other sites More sharing options...
Nik S Posted February 21, 2017 Author Share Posted February 21, 2017 (edited) 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 February 21, 2017 by Nik S Quote Link to comment Share on other sites More sharing options...
chanson Posted August 24, 2017 Share Posted August 24, 2017 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. Quote Link to comment Share on other sites More sharing options...
Joss Posted August 8, 2018 Share Posted August 8, 2018 Reviving old thread: with merge op. The question is how to make transition graphs for each agent with different set of motions, and then feed it into the DOP... Quote Link to comment Share on other sites More sharing options...
cwhite Posted August 8, 2018 Share Posted August 8, 2018 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.