POV-Ray : Newsgroups : povray.unix : Rendering several scenes from c++ program : Re: Rendering several scenes from c++ program Server Time
28 Sep 2024 18:03:36 EDT (-0400)
  Re: Rendering several scenes from c++ program  
From: Vincent LE PRINCE
Date: 28 Mar 2005 03:05:03
Message: <pan.2005.03.28.08.05.05.637919@nospam.wanadoo.fr>
On Sun, 27 Mar 2005 17:09:04 -0500, Cesar wrote:

> I'll have to render like 100 images using povray from inside a c++ program.
> Ideally, I would like to get raw data in a buffer (instead of a png file.
> Maybe get the png file in memory and not in a file, so that I don't have to
> waste time reading the file) but I don't know if it's possible. If not, no
> big deal, but I don't know how to find out when the rendering is over, so I
> can start the next rendering.

I had to do the same once. Here is how it works, in my case :
  _ i create 2 pipes : 1 for povray text output ( to catch error messages,
  stats etc... ) and 1 for image raw data.
  _ i launch povray with +GApipe1 +Opipe2 +FP
  _ i also launch 2 threads to read each pipe
 
You know render is over when you got all image data, but you have to
relaunch povray for each image ( you can use the same pipes i think ). I
guess you can do without threads if you don't need to catch error message,
cancel render etc... it would be really more simple :)

Bye.


Post a reply to this message

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