POV-Ray : Newsgroups : povray.general : interactive Povray website? Server Time
8 Aug 2024 01:21:12 EDT (-0400)
  interactive Povray website? (Message 1 to 7 of 7)  
From: moonshadow
Subject: interactive Povray website?
Date: 30 Apr 2001 14:20:40
Message: <26aretg66me94pu030u2319bltp7e2g2et@4ax.com>
Hello,

I would like to make a website which makes it possible for  users to
modify a Pov source (or at least change a few parameters), and get a
new image rendered by povray on the server. The server would be on my
PC.

I believe I'll need the following things:

A webserver placed on my PC (win98, and I have no idea which server to
choose, I've tried Xitami and I liked it. )
An html form for the parameters, which will be directed into text or
pov files (I guess I'll be able to make it :)
A CGI-program which runs povray, runs a jpg encoder, and probably has
to do a  few other things (I know very little about programming, so
this would be difficult by myself)

That's all, I guess. I would be happy if someone offered a complete
solution (I hope someone has already done something like this), or a
CGI program that does the job. Also, any advice would be great.

Thanks in advance.

Cheers,

moonshadow


Post a reply to this message

From: Micha Riser
Subject: Re: interactive Povray website?
Date: 30 Apr 2001 19:18:48
Message: <3aedf2d8@news.povray.org>
I may be of help with programming the html form and the CGI (perl) scripts. 
I do not know of any predone script of that sort. Tell me if you want me to 
help with the programming

- micha

moonshadow wrote:

> Hello,
> 
> I would like to make a website which makes it possible for  users to
> modify a Pov source (or at least change a few parameters), and get a
> new image rendered by povray on the server. The server would be on my
> PC.
> 
> I believe I'll need the following things:
> 
> A webserver placed on my PC (win98, and I have no idea which server to
> choose, I've tried Xitami and I liked it. )
> An html form for the parameters, which will be directed into text or
> pov files (I guess I'll be able to make it :)
> A CGI-program which runs povray, runs a jpg encoder, and probably has
> to do a  few other things (I know very little about programming, so
> this would be difficult by myself)
> 
> That's all, I guess. I would be happy if someone offered a complete
> solution (I hope someone has already done something like this), or a
> CGI program that does the job. Also, any advice would be great.
>


Post a reply to this message

From: Ken
Subject: Re: interactive Povray website?
Date: 30 Apr 2001 22:46:57
Message: <3AEE2400.F40E8C26@pacbell.net>
moonshadow wrote:
> 
> Hello,
> 
> I would like to make a website which makes it possible for  users to
> modify a Pov source (or at least change a few parameters), and get a
> new image rendered by povray on the server. The server would be on my
> PC.

For inspiration see - http://www.badcheese.com/~steve/povray_form.shtml

-- 
Ken Tyler


Post a reply to this message

From: Warp
Subject: Re: interactive Povray website?
Date: 1 May 2001 07:03:33
Message: <3aee9805@news.povray.org>
I hope you are aware of the security problems of the current POV-Ray.
(You can easily make a POV-Ray source code which writes whatever it wants
to, for example, c:\autoexec.bat)

  POV-Ray 3.5 will include some protection against this.

-- 
#local D=array[6]{11117333955,7382340,3358,3900569407,970,4254934330}
#local I=0;#macro M()<mod(D[I],13)-6,mod(div(D[I],13),8)-3,10>#end
#while(I<6)cylinder{M()#local D[I]=div(D[I],104);M().1
pigment{rgb M()}}#local I=(D[I]>99?I:I+1);#end              /*- Warp -*/


Post a reply to this message

From: Ryan Constantine
Subject: Re: interactive Povray website?
Date: 1 May 2001 13:22:37
Message: <3AEEF0DD.88A09615@ucdavis.edu>
so it might be better to run something like this on a linux box?

Warp wrote:
> 
>   I hope you are aware of the security problems of the current POV-Ray.
> (You can easily make a POV-Ray source code which writes whatever it wants
> to, for example, c:\autoexec.bat)
> 
>   POV-Ray 3.5 will include some protection against this.
> 
> --
> #local D=array[6]{11117333955,7382340,3358,3900569407,970,4254934330}
> #local I=0;#macro M()<mod(D[I],13)-6,mod(div(D[I],13),8)-3,10>#end
> #while(I<6)cylinder{M()#local D[I]=div(D[I],104);M().1
> pigment{rgb M()}}#local I=(D[I]>99?I:I+1);#end              /*- Warp -*/


Post a reply to this message

From: Peter Popov
Subject: Re: interactive Povray website?
Date: 2 May 2001 06:53:59
Message: <ug6vetkiecb12pr47l9jjces4uck1idtjh@4ax.com>
On Tue, 01 May 2001 10:22:37 -0700, Ryan Constantine
<rcc### [at] ucdavisedu> wrote:

>so it might be better to run something like this on a linux box?

Yes, you could limit the memory and disk usage and of course restrict
file i/o any way you wish. Of course, it could still be possible to
write a harmful POV script, but it will be much, much harder.

Hmm... that's a nice idea for the time I have some spare time. Let's
see... last time it was six months ago.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Warp
Subject: Re: interactive Povray website?
Date: 2 May 2001 07:20:10
Message: <3aefed6a@news.povray.org>
Ryan Constantine <rcc### [at] ucdavisedu> wrote:
: so it might be better to run something like this on a linux box?

  Yes, because you can set more protection in Linux.
  However, you have to do some work for this. You have to create a separate
account for running povray and set the home directory of this account to
an empty directory. If Linux generates automatically .login files etc to
the home directory of the account, write-protect them (chmod a-w files).
Don't just delete them (because the script could create them again) but
just write-protect them. Never log in as the POV-Ray user, but edit the
contents of the POV-Ray home directory as someone else (you can set
write permission to the directories to a group where you are).
  Don't give the account permission to write anywhere else but its own
directory. Make POV-Ray and all its ini files with another account and
read-only. Set the ini files so that POV-Ray always writes the images
to a certain images directory.

  This to make sure.

-- 
#local D=array[6]{11117333955,7382340,3358,3900569407,970,4254934330}
#local I=0;#macro M()<mod(D[I],13)-6,mod(div(D[I],13),8)-3,10>#end
blob{#while(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2
pigment{rgb M()}}#local I=(D[I]>99?I:I+1);#end}               /*- Warp -*/


Post a reply to this message

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