Jump to content

jheffel

Members
  • Content count

    3
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Community Reputation

0 Neutral

About jheffel

  • Rank
    Peon

Personal Information

  • Name
    Jamie
  1. I'm working on a simulation that has some crowd agents following a terrain using its normals as the up vector (for simplicity we can assume the terrain is a sphere). I've got my base simulation setup working fine, but in one case the sphere is moving really fast through the scene in world space. On certain frames where the terrain is moving extremely fast the crowd agents basically can't calculate the next frame so there positions end up being 'Nan' or undefined and they disappear. I tried running the simulation with up to 50 substeps, and that improves how many agents survive to the end of the simulation a bit, but still about half of them are still lost by the end of the sim. in order to combat this i managed to create a point vop that creates a transformation matrix from a tracked maya rivet/locator on the sphere. Then I applied the inverse matrix transformation to freeze the sphere at the origin to run the simulation. After the simulation is done, I'm able to re-apply the transformation matrix to the sphere to get it back to the correct spot. However, when I try to apply the matrix to the crowd agents, their final positions look correct, but their orientations are wrong. I believe the orientation attribute is the quaternion for all the agents rotations? Any ideas on how I would go about getting the agents to re-align correctly again after the simulation has been run? baking down the agents geometry and then applying the transformations seems to work, but this approach is really slow because of the amount of geometry it has to process, makes it quite difficult to iterate.
  2. Crowd simulation Velocity

    Thanks Atom, I ended up messing around with and without that setting seems like if I disable 'Limit Particle Speed to Gait Speed Range' the agents all will start at their initial velocity from the crowd source, and then slowly reduce to zero. Was also finding that if I added in obstacles and wanders that the agents would suddenly go to warp speed because there was nothing constraining their velocity. so for my best results have come from re-enabling the limit particle speed checkbox, and setting the allowed variance on the gait speed to 110%. Then I'm running some really rough vex in a popwrangle to try and freeze/unfreeze over time which is getting some ok results. f@freeze = abs( sin(0.5 * @Frame * rand(@ptnum) ) ); if(@freeze < 0.5){ v@v = v@v * @freeze; i@froze += 1; }
  3. Hi, I've been trying a couple different methods of introducing a start/stop dynamic to a crowd simulation. In the case of a simple walk cycle I want to be able to make the agent come to a full stop (Freezing at its current cycle time), and then after a certain amount of time return to its cycle. I was hoping to avoid using a transition network and zones in favor of a more procedural and random start/stop time by directly controlling the velocity. I'm currently setting my clip to use 'in place' as I believe this gives you more control over the velocity instead of 'locomotive'? I was checking out a couple tutorials that set the velocity to 0 in a popwrangle, but have been running into issues getting it to actually work - it seems like the crowd simulation ignores when I override the velocities to 0? v@v = (0,0,0); Will this method or something similar to it work?
×