Like Tree1Likes
  • 1 Post By MutantJohn

How do I get POV-Ray to render something without the GUI coming up each time?

This is a discussion on How do I get POV-Ray to render something without the GUI coming up each time? within the Tech Board forums, part of the Community Boards category; I'm trying to batch render things with POV-Ray (several thousand things at that, trees made from Arbaro, since Arbaro lacks ...

  1. #1
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582

    How do I get POV-Ray to render something without the GUI coming up each time?

    I'm trying to batch render things with POV-Ray (several thousand things at that, trees made from Arbaro, since Arbaro lacks an automation feature) and the GUI is the biggest problem I'm having right now - I can't get it to stop coming up through command line execution. In the PROCESSINFO structure, I have the "SW_HIDE" flag set with (the appropriate flag set in the dwflags field to use it). In the CreateProcess function, I have the "CREATE_NO_WINDOW" flag set. Even with both of these, the GUI still comes up and I can't have it coming up every time. Is there a way to stop the GUI from coming up at all? Do I have to get an older version of POV-Ray just to use pure command line execution for a render without the GUI coming up? If so, what's the newest version of POV-Ray that I can get that has this pure command line execution without the GUI coming up? I've got everything else working now but the GUI is getting in the way. I only just want this to run in the background so I can, for example, eat, take a shower, or work on other things while this is going on. The unwanted GUI is the only thing left to deal with at the moment.
    High elevation is the best elevation. The higher, the better the view!
    My computer: XP Pro SP3, 3.4 GHz i7-2600K CPU (OC'd to 4 GHz), 4 GB DDR3 RAM, X-Fi Platinum sound, GeForce 460, 1920x1440 resolution, 1250 GB HDD space, Visual C++ 2008 Express

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,499
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Math wizard
    Join Date
    Dec 2006
    Location
    USA
    Posts
    582
    Basically, my setup is this:

    1. Generate the POV scene file to reflect the new seed used. This part has no problems.
    2. Run Arbaro which generates the tree, saving to an INC file, always replacing it, waiting until Arbaro is done before advancing. This part has no more problems.
    3. Run POV-Ray to render that tree to a PNG or TGA file with the file name including the seed, waiting until POV-Ray finishes before advancing. This part has a problem in that I can't get the GUI window to stop appearing each time I run POV-Ray. Until POV-Ray is closed, the loop won't continue meaning manual input is still required when I only want this to run in the background. Adding the "/EXIT" at the end of the command line does get the program to close once it's done, but the window still comes up which makes it difficult and unpredictable to click on the task bar to switch between windows which still means I have to get POV-Ray to stop bringing up the GUI every time I run it (plus, having these extra windows coming up can make typing or working in another program more difficult than it needs to be.
    4. Repeat steps 1 through 3 for each tree I want to generate. This is several thousand trees I need so this can go on for several days, if not weeks. My automation routine is working, I just got to get the POV-Ray window to stop coming up each time I run POV-Ray. It's the only thing holding me back right now.
    High elevation is the best elevation. The higher, the better the view!
    My computer: XP Pro SP3, 3.4 GHz i7-2600K CPU (OC'd to 4 GHz), 4 GB DDR3 RAM, X-Fi Platinum sound, GeForce 460, 1920x1440 resolution, 1250 GB HDD space, Visual C++ 2008 Express

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,499
    I don't suppose you've asked over here yet? -> POV-Ray: Newsgroups

    This isn't really a C or C++ problem, it's more of a 'how to I get program foo to do what I want', in which case the best place to ask is on the forum / emailing list dedicated to the foo program.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    1,052
    Hmm... I think bar would work better here than foo.
    Elkvis likes this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. dxgi.dll is taking all my render time , help please
    By thedodgeruk in forum Game Programming
    Replies: 1
    Last Post: 03-13-2012, 08:12 PM
  2. Render text
    By Livijn in forum C++ Programming
    Replies: 6
    Last Post: 07-06-2007, 03:32 PM
  3. Replies: 6
    Last Post: 01-14-2004, 01:53 AM
  4. woh~ Not coming for such long time
    By black in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 09-01-2002, 07:10 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21