POV-Ray : Newsgroups : povray.unix : freeBSD - dynamic povray {PHP} Server Time
31 Oct 2024 05:59:59 EDT (-0400)
  freeBSD - dynamic povray {PHP} (Message 1 to 3 of 3)  
From: argus
Subject: freeBSD - dynamic povray {PHP}
Date: 13 Dec 2002 04:02:05
Message: <3df9a20d$1@news.povray.org>
Key to getting this to work was setting -display variable in the
command line call from script. Even though I don't run X and
have -D in  the command line and Display=Off in povray.ini
Doesn't matter what display is specified i.e, -display 0 or
-display 23 or any value will work. I wish there was a povray
make file that is intended to be command line only and just
produces a binary that generates an image file without caring
about display or X issues. (No - the without X compile directives
do not work). I don't know make so it would be quite a while
before I could write one myself.

The schema I use for dynamically producing images using povray
from a web page utilizes both php compilied into apache and
a cgi version of php (compilied as stand alone).

Basically all the browser accessible .php file does is call a .ph
file which is handled by the cgi version of php. It's in the .ph
that the actual shell out to the povray binary occurs. This is
mostly for security reasons as I want no i/o restrictions and
I can easily write security filtering in the .ph file.

also -stderr stdoutput redirecting and -GA

Installation of povray on freeBSD seems to work best using
freeBSD's packages as the povray unix source from povray.org
will not compile as is -- also some of the dependencies install
best as packages -especially urt (utah raster toolkit) You get
povray-3.5b as of this date - watch out for trying
make & make install from /usr/ports/graphics/povray35 as
the current make file want XFree86-libraries version _4
and the povray package wants version _3

anyway - it's a relief  to get this working
comments welcome

Pan


Post a reply to this message

From: argus
Subject: Re: freeBSD - dynamic povray {PHP}
Date: 13 Dec 2002 04:45:17
Message: <3df9ac2d@news.povray.org>
"argus" <arg### [at] npqrnet> wrote in message news:3df9a20d$1@news.povray.org...
> Key to getting this to work was setting -display variable in the
> command line call from script. Even though I don't run X and
> have -D in  the command line and Display=Off in povray.ini
> Doesn't matter what display is specified i.e, -display 0 or
> -display 23 or any value will work.

ADDENDUM: it appears that the -display command line variable must
appear before the -D command line switch that turns off dispaly

It should be that -D obviates any need for -display checking.

Will look at source later, but I assume a check for a display name
runs before and regardless if -D switch is written. If -D, then why
does povray binary care if -display is set? Is it to ensure that parser
output, banner and messages have some place to go? If so, then the
command line parser might/should? look to see if err and output
redirection is written into the command line?

Pan


Post a reply to this message

From: Warp
Subject: Re: freeBSD - dynamic povray {PHP}
Date: 13 Dec 2002 05:40:21
Message: <3df9b914@news.povray.org>
Try compiling POV-Ray with the compiler option:

-DX_DISPLAY_MISSING

  Due to a lack in the configure script, you'll need to add this option
manually to the Makefile in the src/ directory. You can add it for example
to the 'CFLAGS' and 'CXXFLAGS' variables. (There's probably a variable more
suitable for this, but I'm too lazy to search now.)

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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