POV-Ray : Newsgroups : povray.general : POV to GIF? Server Time
7 Aug 2024 11:18:09 EDT (-0400)
  POV to GIF? (Message 46 to 55 of 65)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: ingo
Subject: Re: POV to GIF?
Date: 21 Nov 2001 03:47:56
Message: <Xns916063AE07F63seed7@povray.org>
in news:slr### [at] fwicom Ron Parker wrote:

> netpbm.

Well I tried to use it (and imagemagick) in an ini file and failed.

;conv.ini
;for using the post_frame option to convert images on the fly.

[ngif256]  ;netpbm
Post_Frame_Command=pnmfile %o
Post_Frame_Command=ppmquant -fs 256 %o | ppmtogif > gif.gif

[igif256]  ;imagemagick
Post_Frame_Command=identify -verbose %o
Post_Frame_Command=convert -color 256 -dither %o gif.gif

In both situations the first post frame works, the second fails. The 
second works when executed 'by hand' from a commandlinebox.

Also I couldn't figure out how to give the outputfile the 'right' name.
PietjePuk03.ppm >> PietjePuk03.gif

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Warp
Subject: Re: POV to GIF?
Date: 21 Nov 2001 04:16:14
Message: <3bfb70dd@news.povray.org>
ingo <ing### [at] homenl> wrote:
: Also I couldn't figure out how to give the outputfile the 'right' name.
: PietjePuk03.ppm >> PietjePuk03.gif

  You don't specify which platform you are using, but in a regular unix shell
you could make the conversion to all the files like this:

for F in *.ppm; do ppmquant -fs 256 $F | ppmtogif > `basename $F .ppm`.gif; done

  If you are using zsh, the above command works just fine, but you can also
use a shortcut version:

for F (*.ppm) ppmquant -fs 256 $F | ppmtogif > `basename $F .ppm`.gif

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


Post a reply to this message

From: ingo
Subject: Re: POV to GIF?
Date: 21 Nov 2001 04:27:43
Message: <Xns91606A6C23651seed7@povray.org>
in news:3bfb70dd@news.povray.org Warp wrote:

>   You don't specify which platform you are using

WinNT4, but you knew that ;)
I'll try this with bash.


Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Ron Parker
Subject: Re: POV to GIF?
Date: 21 Nov 2001 07:33:09
Message: <slrn9vn7o6.50k.ron.parker@fwi.com>
On 21 Nov 2001 01:54:04 -0500, Warp wrote:
> Ron Parker <ron### [at] povrayorg> wrote:
>: netpbm.
> 
>: Of course, that's my answer to everything...
> 
>   In fact, any image conversor suffices, even if it can convert just one image
> at a time, as long as it can be used from the command line and you are using
> a regular unix shell.
>   One of the main problems in a windowed-only interfaces (read: Windows) is
> that if a program doesn't support something (eg. doing something to a series
> of files instead of just one file), then there's nothing you can do about it,
> you just have to live with it.

Fortunately, cmd.exe (and I think also command.com) support a FOR command
that's almost identical to the one in bash.

-- 
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker


Post a reply to this message

From: Warp
Subject: Re: POV to GIF?
Date: 21 Nov 2001 08:49:55
Message: <3bfbb103@news.povray.org>
Ron Parker <ron### [at] povrayorg> wrote:
: Fortunately, cmd.exe (and I think also command.com) support a FOR command
: that's almost identical to the one in bash.

  But at least with command.com there's no way to change the name of the
file (for the output), so in that case the converter program has to change
the name automatically (which fortunately most converters do).

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


Post a reply to this message

From: ingo
Subject: Re: POV to GIF?
Date: 21 Nov 2001 09:14:35
Message: <Xns91609B0F91A8Eseed7@povray.org>
in news:slr### [at] fwicom Ron Parker wrote:

> Fortunately, cmd.exe (and I think also command.com) support a FOR
> command that's almost identical to the one in bash.
> 

Have not tried this FOR thing yet, but mentioning 'cmd.exe' triggered a 
solution for my problem.

Post_Frame_Command=ppmquant -fs 256 %o | ppmtogif > gif.gif
does not work, nothing seems to happen.

Post_Frame_Command=cmd /c ppmquant -fs 256 %o | ppmtogif > gif.gif
works fine.

Post_Frame_Command=command /c ppmquant -fs 256 %o | ppmtogif > gif.gif
does not work. POV says: could not create process.

Is there something I can do to POV-Ray or my system (WinNT 4) that 
autmatically cmd.exe is used?

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Ron Parker
Subject: Re: POV to GIF?
Date: 21 Nov 2001 09:36:01
Message: <slrn9vneui.542.ron.parker@fwi.com>
On 21 Nov 2001 08:49:55 -0500, Warp wrote:
> Ron Parker <ron### [at] povrayorg> wrote:
>: Fortunately, cmd.exe (and I think also command.com) support a FOR command
>: that's almost identical to the one in bash.
> 
>   But at least with command.com there's no way to change the name of the
> file (for the output), so in that case the converter program has to change
> the name automatically (which fortunately most converters do).

But it can append to the existing name.  So, for example:

D:\myfiles\POV>for %i in (*.bmp) do copy %i %i.bak

D:\myfiles\POV>copy dispersion.bmp dispersion.bmp.bak
        1 file(s) copied.

D:\myfiles\POV>copy disp.bmp disp.bmp.bak
        1 file(s) copied.

D:\myfiles\POV>copy sig000.bmp sig000.bmp.bak
        1 file(s) copied.

-- 
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker


Post a reply to this message

From: Peter Popov
Subject: Re: POV to GIF?
Date: 21 Nov 2001 17:20:55
Message: <818ovtsp4nn04pajs75hhms5330r7pbmu8@4ax.com>
On Tue, 20 Nov 2001 16:28:55 +0200, Kari Kivisalo
<ray### [at] engineercom> wrote:

>I have processed succesfully 16bpc images in Win98SE Photostop.

Me too.

>You are mixing presentation with processing. 

I am not. What I meant was that truly professional graphics work is
done on graphics workstation where 48 bit color is native.


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


Post a reply to this message

From: Bill DeWitt
Subject: Re: POV to GIF?
Date: 21 Nov 2001 17:27:55
Message: <3bfc2a6b$1@news.povray.org>
"Peter Popov" <pet### [at] vipbg> wrote :
>
> I am not. What I meant was that truly professional graphics work is
> done on graphics workstation where 48 bit color is native.

    And I have to agree that your definition of "professional" is unusual.
Almost all professional computer art is -not- done on such workstations.
Some of the best and biggest jobs are, but not any large percentage of the
total of professional artwork.


Post a reply to this message

From: Peter Popov
Subject: Re: POV to GIF?
Date: 21 Nov 2001 19:52:59
Message: <fsiovt09glu0friptienp47311rnf8ap1d@4ax.com>
On Wed, 21 Nov 2001 17:28:03 -0500, "Bill DeWitt"
<bde### [at] cflrrcom> wrote:

>    And I have to agree that your definition of "professional" is unusual.
>Almost all professional computer art is -not- done on such workstations.
>Some of the best and biggest jobs are, but not any large percentage of the
>total of professional artwork.

I know a girl who can draw a better sunset in MS Paintbrush (16
colors) than I would ever do in POV. But this is art, and I was
talking about work (although I have to agree that in CG the line is
quite blurred)


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


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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