Crowd simulation via importing text file, animating dummies with an attached biped.

Crowd simulation via importing text file, animating dummies with an attached biped.

Anonymous
Not applicable
268 Views
1 Reply
Message 1 of 2

Crowd simulation via importing text file, animating dummies with an attached biped.

Anonymous
Not applicable
Hi
I have some colleagues that are using a java application that does agent based simulation. They can generate agents that move throughout a space. Their app is not a 3d space only a 2d image with moving representational "agents" or points. They want to be able to view the simulation in a 3d space with humans as the agents.
They can generate a text file that will give x y cordinates for each agent every x seconds. Is there a way with biped and/or crowd in max to generate a number of bipeds that each read a text file of a (time) series of xy positions?

I found this useful post on importing text to create an animated dummy along coordinates derived from a text file.
area.autodesk.com/forum/Autodesk-3ds-Max/maxscript/import-xyz-into-max-using-dummy-object/

Borislavs script was doing exactly what i wanted....

I would like to expand on this and be able to create multiple dummies (line break in the text file).
And then have the script place and link a biped to each dummy that faces where the next point in the sequence is in space (so it faces where it is going).
To expand this more i would like to have the biped load a bip (motion file) that gives it a walk cycle ideally based on its speed (OK im asking too much now).
I am not a max scripter but am willing to pay for someones services if they could deliver a finished product.
thanks
0 Likes
269 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
This is a excerpt from the text file that shows 2 agents positions over a time sequence (time shown in first column (seconds)
Note the line break seperating the agents.

4 90.1590308 18.81911031 1
5 89.0361109 18.74914178 1
6 88.04533312 18.65407426 1
......(continues)
47 50.97679088 27.21317835 1
48 50.14849758 27.74028276 1
49 49.32024877 28.26650748 1
50 48.49265906 28.78538094 1

5 89.61371077 16.8612008 1
6 88.80190073 16.83893446 1
7 88.06392475 16.83250297 1
......(continues)
73 47.77264477 28.45751075 1
74 47.215136 28.81059566 1
75 46.85521811 29.19463311 1
0 Likes