POV-Ray : Newsgroups : povray.unix : New microversion of MegaPov with big Unix changes Server Time
31 Oct 2024 16:15:58 EDT (-0400)
  New microversion of MegaPov with big Unix changes (Message 1 to 10 of 16)  
Goto Latest 10 Messages Next 6 Messages >>>
From: Mark Gordon
Subject: New microversion of MegaPov with big Unix changes
Date: 26 Jun 2000 04:01:55
Message: <39570FBD.5DD36BF3@mailbag.com>
I'm using MegaPov (still 0.5a) as a testbed for some of the
platform-specific enhancements I've been playing with.  Since the
changes are Unix-specific, I decided it made the most sense to announce
it here.

- configure script.  Should be simple: ./configure; make; su; make
install
Please let me know if you have any problems! This is a pretty rough
draft, and I'd like to get the bugs out of it.  If you have a Unix
system you can test this on, you would be doing me a favor by trying
this out and letting me know how it goes.

- one big executable.  There's now just one binary that generates the
right kind of display based on the context in which it is executed.  
Specifics: 
--if you have $DISPLAY set or pass --display on the command line, you
get X preview.
--if you're at the console, and either you're root or you have MegaPov
suid root, you get SVGA preview.
--if none of the above (you're at the console as pondscum, you're in a
telnet session without specifying a --display, etc.), you get ASCII.
Let me know if anyone has any other needs not met by this.
This is conditionally compiled, so it should compile fine on machines
that don't have X or SVGAlib.

- I'm leaving out the libpng and zlib source code, since libpng
especially doesn't play well with the configure script.  Maybe if I find
a way (lots of m4 and shell scripts, I suppose), I'll put it back later.

- The precompiled binary requires X and SVGA libraries.  If you don't
have these, you'll have to either get them or compile your own from the
source.  I'll look into ways around this in the future.

- RPM's available for those using Red Hat and related Linux
distributions.  I'm going to look into .deb versions.

- The source code has been rearranged a bit to make it easier to use
autoconf and automake.  The arrangement is also a bit more GNUish, for
similar reasons.

- automake provides all the GNU-standard Makefile targets.

- The docs and sample scenes now come with the source or binaries, as
appropriate.

As usual, the files live at
http://www.mailbag.com/users/mtgordon/megapov.html

-Mark Gordon


Post a reply to this message

From: Francois Dispot
Subject: Re: New microversion of MegaPov with big Unix changes
Date: 26 Jun 2000 12:44:17
Message: <3957885F.DEC9F1E@club-internet.fr>
Mark Gordon wrote:

> - one big executable.  There's now just one binary that generates the
> right kind of display based on the context in which it is executed.
> Specifics:
> --if you have $DISPLAY set or pass --display on the command line, you
> get X preview.
> --if you're at the console, and either you're root or you have MegaPov
> suid root, you get SVGA preview.
> --if none of the above (you're at the console as pondscum, you're in a
> telnet session without specifying a --display, etc.), you get ASCII.
> Let me know if anyone has any other needs not met by this.
> This is conditionally compiled, so it should compile fine on machines
> that don't have X or SVGAlib.

Maybe a stupid (and selfish ;-) idea: would it be possible to have
something that would continue running if you log out and shut down the X
server even if povray was started with X display and without nohup?

-- 

      __  __ __  __  _
|  | /  \  /  / |_  /  |/
\/\/ \__/ /_ /_ |__ \_ |\


Post a reply to this message

From: Peter Popov
Subject: Re: New microversion of MegaPov with big Unix changes
Date: 26 Jun 2000 17:02:54
Message: <4qgflso5ljv3shcr4nlq8bof0lnvb5pm0d@4ax.com>
On Mon, 26 Jun 2000 03:09:33 -0500, Mark Gordon <mtg### [at] mailbagcom>
wrote:

>Let me know if anyone has any other needs not met by this.

Hmm... I ssh into my blind Linux box and have a X server for Windows
with DISPLAY being export-ed upon logon accordingly. My brother and I
usually log on as root in order to use updatecvs to keep track of gcc
and avr-gcc updates and do other stuff not available to the mere user.

This setup requires that long renders are left in the background so
that they are unaffected when (not 'if') Windows crashes. Because of
this, I use the unix target and redirect the output to a file which is
then analyzed by a perl script available through CGI that converts the
partial output to jpg and sends it back along with the stats and
current progress reports.

My question is, will the new Unix addition work for me?


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


Post a reply to this message

From: Mark Gordon
Subject: Re: New microversion of MegaPov with big Unix changes
Date: 26 Jun 2000 19:41:02
Message: <3957EBDB.90F1275F@mailbag.com>
Francois Dispot wrote:

> Maybe a stupid (and selfish ;-) idea: would it be possible to have
> something that would continue running if you log out and shut down the X
> server even if povray was started with X display and without nohup?

My advice at this point is to kill the render and continue it nohup
without display when you decide to log off.  In theory I could try
hacking some of the signal-handling code, but I'm pretty sure it would
involve some major surgery.  Also, most users would expect logging out
and shutting down the X server to kill POV-Ray, so I'd have to find a
way for the user to request this behaviour.  I'm trying to keep this as
simple as possible; POV-Ray already has a confusing number of
command-line switches.  I might look into this for 4.0, but unless I
have some sort of epiphany, I don't see it coming in 3.5.

BTW, I plan on implementing frame numbering in X display of animations,
but that's going to wait for a future test release.  No promises for
3.5, but I haven't abandoned the project.

-Mark Gordon


Post a reply to this message

From: Mark Gordon
Subject: Re: New microversion of MegaPov with big Unix changes
Date: 26 Jun 2000 19:42:53
Message: <3957EC4B.AA1020BE@mailbag.com>
Peter Popov wrote:

> My question is, will the new Unix addition work for me?

The X display will only come up if you've said you want display.  If you
have display turned off, you're fine.  Do you want to use the ASCII
display in these cases?  If so, running POV-Ray (MegaPov for now)
through a script that nukes $DISPLAY might do the trick.  I'm trying to
avoid the need for users to specify what they want to happen.  Is this
reasonable?

-Mark Gordon


Post a reply to this message

From: Peter Popov
Subject: Re: New microversion of MegaPov with big Unix changes
Date: 27 Jun 2000 00:51:58
Message: <cecglska5bki5dgf3egtkuugjehp41hq9j@4ax.com>
On Mon, 26 Jun 2000 18:50:35 -0500, Mark Gordon <mtg### [at] mailbagcom>
wrote:

>The X display will only come up if you've said you want display.  If you
>have display turned off, you're fine.  Do you want to use the ASCII
>display in these cases?  If so, running POV-Ray (MegaPov for now)
>through a script that nukes $DISPLAY might do the trick.  I'm trying to
>avoid the need for users to specify what they want to happen.  Is this
>reasonable?

Good enough for me. As far as I understand, I should make a script
that undefs $DISPLAY, launches megapov and exports $DISPLAY again in
case I want to start a X app from the same console (though logging on
is three keystrokes away :) ).

Perhaps a small set of scripts would be handy? I know many users of
Unix POV-Ray have their own, maybe we could share and include the most
useful ones in the next (un)official release of (Mega)POV?


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


Post a reply to this message

From: Warp
Subject: Re: New microversion of MegaPov with big Unix changes
Date: 27 Jun 2000 04:51:00
Message: <39586af4@news.povray.org>
Francois Dispot <woz### [at] club-internetfr> wrote:
: Maybe a stupid (and selfish ;-) idea: would it be possible to have
: something that would continue running if you log out and shut down the X
: server even if povray was started with X display and without nohup?

  Why code this into povray when you can do it with Unix itself?
  You can use nohup or screen for this.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Axel Hecht
Subject: Re: New microversion of MegaPov with big Unix changes
Date: 28 Jun 2000 09:42:09
Message: <395A00C8.756BD78E@numerik.uni-kiel.de>
Hey Peter,
if I remember your box right, it doesn't have the X or SVGA libs, right?
Then, as far as I groked Mark, you will compile the no-fancy-display
version, so setting the DISPLAY variable or stuff won't be neccessary.

Axel


Post a reply to this message

From: Peter Popov
Subject: Re: New microversion of MegaPov with big Unix changes
Date: 28 Jun 2000 18:55:50
Message: <bg0lls0kluvr01r6v71bhfo2taiosbsn7n@4ax.com>
On Wed, 28 Jun 2000 15:42:32 +0200, Axel Hecht
<ah### [at] numerikuni-kielde> wrote:

>Hey Peter,
>if I remember your box right, it doesn't have the X or SVGA libs, right?
>Then, as far as I groked Mark, you will compile the no-fancy-display
>version, so setting the DISPLAY variable or stuff won't be neccessary.

It does not have them as it does not need them due to the lack of an
extra monitor. I do however use X apps quite often by means of a
remote X server. You're right, though, the generic unix target suits
me the most.


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


Post a reply to this message

From: Steve
Subject: Re: New microversion of MegaPov with big Unix changes
Date: 29 Jun 2000 08:39:47
Message: <slrn8lmbb6.vp.steve@zero-pps.localdomain>
On Tue, 27 Jun 2000 07:51:16 +0300, Peter Popov wrote:
>On Mon, 26 Jun 2000 18:50:35 -0500, Mark Gordon <mtg### [at] mailbagcom>
>wrote:
>
>Perhaps a small set of scripts would be handy? I know many users of
>Unix POV-Ray have their own, maybe we could share and include the most
>useful ones in the next (un)official release of (Mega)POV?
>

Something I really miss from my VMS days is the sequential numbering
of saved files, so that if I'm working on a scene file and save it
it would save it as something like roundabout.pov;0000 and the next
time I save it would write to roundabout.pov;0001 etc if I set my 
directory history to 20 that means that I'll always have the 20 most
recent saves, a simple purge on the commandline will leave me with 
only the most recent files.  I'm sure that in bash it's possible to
write something that will do the same job though the file naming
will be slightly different to the way it is on VMS.  

It'd be good if such a script could be called from pov's command line
to let it usse the most recent for the current render you'd also need
your editor to be able to understand this so maybe it's not going to 
be all that easy to implement.  I'll look into this myself but I don't
promise to be able to come up with anything.  

-- 
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

 12:57am  up 38 min,  2 users,  load average: 1.30, 1.34, 1.13


Post a reply to this message

Goto Latest 10 Messages Next 6 Messages >>>

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