POV-Ray : Newsgroups : povray.general : POV to GIF? Server Time
7 Aug 2024 15:20:03 EDT (-0400)
  POV to GIF? (Message 41 to 50 of 65)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Xplo Eristotle
Subject: Re: POV to GIF?
Date: 20 Nov 2001 18:59:53
Message: <3BFAEEE2.21FF41B6@unforgettable.com>
Mahalis wrote:
> 
> Is there a POV option to output to GIF format? Better, is there a way to
> make POV-Ray output to a 256 color bitmap?

8-bit color? Ugh, why would you want to? Use Photoshop or something for that...

-Xplo


Post a reply to this message

From: Mahalis
Subject: Re: POV to GIF?
Date: 20 Nov 2001 19:59:21
Message: <3bfafc69$1@news.povray.org>
>Ugh, why would you want to?
I don't exactly *want* to, I *have* to. Besides. I don't have Photoshop, and
even if I did I doubt it can mass-process all the images in a folder.


Post a reply to this message

From: Ron Parker
Subject: Re: POV to GIF?
Date: 20 Nov 2001 20:25:49
Message: <slrn9vm0ku.mh.ron.parker@fwi.com>
On Tue, 20 Nov 2001 20:00:59 -0500, Mahalis wrote:
>>Ugh, why would you want to?
> I don't exactly *want* to, I *have* to. Besides. I don't have Photoshop, and
> even if I did I doubt it can mass-process all the images in a folder.

netpbm.

Of course, that's my answer to everything...

-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbt 1}hollow interior{media{emission T}}finish{
reflection.1}}#end Z(-x-x.2y)Z(-x-x.4x)camera{location z*-10rotate x*90}


Post a reply to this message

From: Jon A  Cruz
Subject: Re: POV to GIF?
Date: 21 Nov 2001 01:43:58
Message: <3BFB4CA0.D5779C48@geocities.com>
Mahalis wrote:

> >Ugh, why would you want to?
> I don't exactly *want* to, I *have* to. Besides. I don't have Photoshop, and
> even if I did I doubt it can mass-process all the images in a folder.

ImageMagick

http://www.imagemagick.org/

--
Jon A. Cruz
http://www.geocities.com/joncruz/action.html


Post a reply to this message

From: Warp
Subject: Re: POV to GIF?
Date: 21 Nov 2001 01:54:04
Message: <3bfb4f8c@news.povray.org>
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.
  The great thing about an OS that supports a proper command line/scripting
language is that the programs don't have to support things like that as you
can automatize its functionality for several targets at a time.

  (And now 90% of people reading this will think that I hate windowed
interfaces. *sigh*)

-- 
#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 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

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

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