Jump to content
Sign in to follow this  
Borkowski

Crowd Simulation

Recommended Posts

Hi everyone,

I'm a student new to houdini,

First of all I really appreciate this forum, I want to thank everyone who posted hip files in this character section

Share this post


Link to post
Share on other sites

Are your CHOPs general enough to generate a large number of random sequences of motion? If you could, then maybe one way to get more variation is to base your CHOPs network on a random seed that is based on the output of the time() expression function. Then set up a script which in a loop, outputs a .bgeo sequence, change the random seed, output another sequence, change the random seed, output another sequence .... basically 70 sequences. This has been just mainly thinking out loud ...

Share this post


Link to post
Share on other sites

I've been trying a similar thing myself and also hit a CHOP 'wall' heh. So far I've setup a single character (bird in my case), animated the rig with CHOPs and write out a slow motion version of the cycles. I've setup a particle network to give me the general movement, then I read in the cycle using a copy stamped 'speed' variable in my file sop to control how fast the birds flap depending on particle speed. (the file sop basicly skips frames to speed up the cylces ie. that why I have the slowmo cycles in the first place). But... :unsure: like you I'm still thinking that the bgeo sequence way of doing things is not the most optimal. Idealy I'd like to have one CHOP network returning different cycle speeds to the copied geometry based on particle speed. Will let you know if any of my attempts are successful. If anyone has any other suggestions I'd also love to hear them..

Cheers,

Adam

Share this post


Link to post
Share on other sites

Just thinking out loud here, and I don't think any of this is immediately applicable...

You don't want to make 70 copies of a skeleton because of memory, and more likely because it'd be a bitch to handle 70*number of bones objects. What if we had sop level skeletons? Say you could have an arbitrary number of character skeletons in a sop, and the chop could handle them all at once, instead of having 70 chops. the whole thing seems even more appealing when you're dealing with 7000 characters, and it'd be cool to be able to dial up and down the number of characters in that sop. I was thinking you could set up your character once, then make as many copies as you want. Since you have your chops and bones handeling all your deformations, you may be able to do things you couldn't do before, such as turning a characters foot as he turns to avoid an obstacle.

hmn... but cooking 7000 characters deforming in one sop is probably no good.

So then I'm thinking, what about that nifty new feature where you can call hscript from vmantra? What if we 'instance' 7000 characters, but the characters actually get deformed at rendertime. That seems more reasonable (I think), and is something you could try right out of the box.

Another idea, if you're not dealing with too many characters, is to whip up a nifty OTL with callback scripts to create characters at will, actually creating the skeletons and chops and whatever else you need.

Anyhoo, just thinking out loud... back to work now :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×