POV-Ray : Newsgroups : povray.animations : Problems with the Pre_Frame_Command Server Time: 30 Sep 2020 00:46:49 GMT
 Problems with the Pre_Frame_Command (Message 1 to 3 of 3)
 From: Satadorus Subject: Problems with the Pre_Frame_Command Date: 3 Mar 2016 18:20:01 Message:
```Years ago I created an animation with Povray.

Now with a faster PC and a much better version of Povray I like to create the
same movie in Full HD ( 1920 x 1080 )

For older versions op Povray I used a Pre_Frame_Command to generate an insert
file for Povray.

like:

Pre_Frame_Command   = \raytrace\cbx\tools\makeobj.exe
\raytrace\cbx\inifiles\movies\camfol\camfol %n

In fact I call my Borland Pascal program makeobj.exe with 2 parameters:

1) the path and name of a number of files to create the animation.
2) the frame number for the animation.

With Povray 3.7 it doesn't work anymore:

Ik looks like the program MAKEOBJ.EXE is executed, but without the parameters.

If I call a batch file and redirect the output of MAKEOBJ.EXE to a file I see a

And If I call a batch file with parameters it (sometimes) crashes Povray.

If I open a command prompt and copy the command line it works fine!

Now I remember that there was a note somewhere that in an earlier release the
Pre_Frame_Command did not work.

Is there a workaround for this problem?

- Olaf -
```
 From: Bald Eagle Subject: Re: Problems with the Pre_Frame_Command Date: 3 Mar 2016 18:35:00 Message:
```"Satadorus" <nomail@nomail> wrote:
> Years ago I created an animation with Povray.
>

I remember watching this on Youtube, and I was very impressed!
I especially like the accurate involute gear profiles, and the manner in which
you "machine" and assemble all of the parts using CSG and animation.

I'd love to learn some of the skills you have   :O
How many lines of code do you have, and how long did it take you to write it
all?   How long does it take to render all the frames (How many are there?!!)

Thanks!
```
 From: Satadorus Subject: Re: Problems with the Pre_Frame_Command Date: 4 Mar 2016 19:45:01 Message:
```"Bald Eagle" <cre### [at] netscapenet> wrote:
> > Years ago I created an animation with Povray.
> >
>
>
> I remember watching this on Youtube, and I was very impressed!
> I especially like the accurate involute gear profiles, and the manner in which
> you "machine" and assemble all of the parts using CSG and animation.
>
> I'd love to learn some of the skills you have   :O
> How many lines of code do you have, and how long did it take you to write it
> all?   How long does it take to render all the frames (How many are there?!!)
>
> Thanks!

Hi,

The code is not that big.
I wrote a kind of script to animate the parts:

1) declared each basic part in a macro
2) wrote a file that shows which parts are shown and how long and how they move
and their appearance.
3) used a Borland Pascal 7 program to assemble and insert file for each frame.
This program was called once for every frame with the name of the object ( like
"piston" or "conrod" ) and the frame number.

The animation runs at 30 FPS for 6 min and 4 sec. A total of 10920 frames.

It took weeks to run on a 2001 PC using and older version of Povray.
I just left it running when I was sleeping or away for the weekend. Luckily
Povray does not crash!

- Olaf -
```