POV-Ray : Newsgroups : povray.programming : POV pipes : Re: POV pipes Server Time
28 Jul 2024 10:16:16 EDT (-0400)
  Re: POV pipes  
From: Fabien Hénon
Date: 9 Apr 2002 16:14:16
Message: <3CB34AB3.4099C290@club-internet.fr>
Actually the problem not merely the lack of picture.
I never managed to get both the stats(eg output to the console) and the
picture.
It was always either the picture or the output to the console.

Anyway I'll give your tip a try.
Thanks

Fabien




> > With the command below I can only get the credits as though I do a mere
> > "x-povray". I don't get any picture.
>
> Is the lack of a picture the only problem?  It may be that the shell in
> which the x-povray command is getting spawned doesn't have a DISPLAY
> variable set.  If you're not familiar with the DISPLAY variable, try
> opening a terminal window, enter the command 'unset DISPLAY' at the prompt,
> then try running x-povray.  You will no longer get a picture window when
> x-povray runs.  For any X application do open a window, it needs to know
> where to display the window - this is usually done by reading the DISPLAY
> environment variable.  Typically, its value is ':0.0' which causes the
> window to be displayed on the machine where x-povray is running on xserver
> zero screen zero.  I don't know enough about python to know how the
> environment gets passed to your popen command, but a quick hack would be to
> change
>
> cmd= "/bin/sh x-povray +i/mnt/win_c/image/pov/7.pov +w320 +h240 -f +dgt"
>
> to
>
> cmd= "/bin/sh -c '{ DISPLAY=:0.0; x-povray +i/mnt/win_c/image/pov/7.pov
> +w320 +h240 -f +dgt; }'"
>
> A better solution would be to read the current value of the DISPLAY
> environment variable (not sure how to read environment variables in python)
> and pass that along instead.  There also might be a command-line flag to
> directly tell x-povray which display to use.
>
> Ken


Post a reply to this message

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