|
|
Hi !
I'm working on a povray frontend called Truevision, and i got a few
difficulties with streams handling of version 3.61. Any idea is welcome !
Here is the story :
_ i'm working with povray 3.61 and c++ on a linux box
_ i launch povray from my frontend using :
_ execve to create the process
_ option +GA to redirect stats to a first pipe ( opened with mkfifo and option
NONBLOCK )
_ a console redirection '&> ' to a second pipe ( opened with mkfifo and no option )
_ each pipe is handled by a thread
_ i also use option 'Display' ( with Xwindow ) and 'Pause When Done' so that user
can watch his pretty new image :)
_ the first pipe ( stats ) gets povray output but ends when render is complete. Last
line
could be, for example, 'rendering line 125 of 425...' and then povray waits for the
user to
click on the window.
_ the second pipe gets nothing until i click on the window and THEN gets "Click on
window to exit..."
I feel povray does not flush its streams before starting to wait for user click... Any
idea to workaround this ?
I could, off course, handle graphic output but i wouldn't have mosaic preview etc...
P.S : This does not happened with povray 3.1
Post a reply to this message
|
|