Modelling the geological process of hydraulic action in RealFlow.
RealFlow is a particle simulation software typically used for generating photorealistic water in films. In order to model hydraulic action using RealFlow Laurence wrote a Node.js script to track objects as they move through the scene.
The script and process is available to view and download from GitHub.
A node.js utility to convert .obj files exported from RealFlow to .csv files for importing to Grasshopper.
You've got a series of objects that move within a RealFlow scene and you would like to track their coordinates frame by frame so you can import and plot the data in Grasshopper.
.asc files for each object in RealFlow.csv file generated by obj_to_csv.jsThe application requires Node.js and npm to be installed, instructions can be found at nodejs.org. Then follow the following steps:
cd C:\Users\path\to\realflow-object-tracking\
npm update to install & update realflow-object-tracking's dependenciesnpm update
Once installed ensure to change the source_directory variable in the ./config.js file to your RealFlow scene objects folder and object_name to match the name of your object.
You may also like to change the other settings:
source_directory The objects folder of your RealFlow scene
object_name Name of the RealFlow object you wish to track
export_directory Directory to export files to
track_frames An array of frame numbers to track
track_mode Track the object vertices using vert or midpoints with mid
To run the utility change to the relevant directory and run node obj_to_csv
cd C:\Users\path\to\realflow-object-tracking\
node obj_to_csv
Ensure you've followed the installation and configuration instructions precisely. If you're still having issues feel free to create an issue here on GitHub and I'll try and assist you as soon as I can.