Implemented by @zhc45 and @JocelynWSJ
Result presentation:
https://www.youtube.com/watch?v=NEyDPxp1tHE&t=18s
Maya Animation Rendering:
- right click and set up rendering speed
- Go to render setting ---select render camera and frame range ---select image format and the Frame/Animation ext to name_#.ext. ---notice the top of the window has the path to which your rendered images are saved
- from Modeling to Render field
- Select Render > Render Sequence >
---from the Rendering menu set to open the Render Sequence options window - Enable Add to Render View
- Click Render Sequence
Note:
- Before simulate need to manually select and delete all objects on the scene
- The last line of your data scnariofile should not contain \n
- Moving obstacle has minimum radiu 0.6
- Need to modify the following code in CrowdCmd.cpp(line 30-32)
const string TEMP_FILE_NAME = "YOUR PATH TO PROJECT LOCATION/CrowdsParameters/tempScene.txt";
const string ORIGINAL_FILE_NAME = "YOUR PATH TO PROJECT LOCATION/CrowdsParameters/original_file.txt";
MString parameterFile = "YOUR PATH TO PROJECT LOCATION/settings.ini";