POV-Ray : Newsgroups : povray.advanced-users : auto running of OV-ray : Re: auto running of OV-ray Server Time
8 Jul 2024 20:10:57 EDT (-0400)
  Re: auto running of OV-ray  
From: sitha
Date: 2 Apr 2007 21:35:02
Message: <web.4611ae58cdbfcbd44ac3566b0@news.povray.org>
I uesd a following program in C++ to run a pov file...

#include <iostream>
#include <fstream>
#include <string>

using namespace std;

void runsystem(string cmm)
{
  cout << "          * " << cmm << " starts.n";
  system(cmm.c_str());
  cout << "          * " << cmm << " ends.n";
}

int main(void)
{
  string cmm;
  cmm ="./pvengine /render /exit dam.pov";
  runsystem (cmm);


return 0;
}

Here the problem is my program does not exit unless I close POV-ray window.
Once rendering finish program should exit from the loop, How can I do this?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.