// You can get the bus .ply and .exr files from here: // https://drive.google.com/open?id=1BLqq6HtNvQRSV_u6sCqptbX8Vx9i_k-d #include #include #include #include #include #include using namespace std; using namespace cv; int linear_function() { static int i = 0; return i+=30; } /* 1) Open the param.pbrt file 2) Create an empty replaced.pbrt file 2) Find all occurences of {{param1}} and replace it with the "replace" string 3) Save the edited file as replaced.pbrt */ void populate_pbrt_file(string search, string replace) { ofstream outFile; ifstream readFile; string readout; size_t found; outFile.open("replaced.pbrt"); readFile.open("param.pbrt"); cout< y(12); generate(y.begin(), y.end(), linear_function); VideoWriter video("video.avi",VideoWriter::fourcc('M','J','P','G'),10, Size(frame_width,frame_height)); for (int i=0; i