POV-Ray : Newsgroups : povray.general : Bug: final_frame not working as described in docs... Server Time
26 Dec 2024 14:34:17 EST (-0500)
  Bug: final_frame not working as described in docs... (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Tim Nikias v2 0
Subject: Bug: final_frame not working as described in docs...
Date: 2 Apr 2003 09:29:44
Message: <3e8af3d8$1@news.povray.org>
In the docs, it says following:
6.1.3.4.2
...
final_frame
This identifier reads the value set through the INI file option
Final_Frame=n or the command-line switch +KFFn.

But, in effect, final_frame returns the last frame rendered.
For example this:
+KFI1 +KFF150 +EF19

would return 19 for final_frame, instead of 150.

Is this behaviour correct and described wrong in the docs, or
the behaviour wrong and described correct in the docs?

I'm using POV-Ray for Windows 3.5, on Win98, 1.4GHz Athlon, 768 MB RAM.

Any confirmations?


--
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: final_frame not working as described in docs...
Date: 2 Apr 2003 09:32:01
Message: <3e8af461$1@news.povray.org>
Oh, here's minimum source:

//+KFI1 +KFF3 +EF2
#debug concat("final_frame:",str(final_frame,0,0),"\n")

Put the comment into the commandline.

--
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde

> In the docs, it says following:
> 6.1.3.4.2
> ...
> final_frame
> This identifier reads the value set through the INI file option
> Final_Frame=n or the command-line switch +KFFn.
>
> But, in effect, final_frame returns the last frame rendered.
> For example this:
> +KFI1 +KFF150 +EF19
>
> would return 19 for final_frame, instead of 150.
>
> Is this behaviour correct and described wrong in the docs, or
> the behaviour wrong and described correct in the docs?
>
> I'm using POV-Ray for Windows 3.5, on Win98, 1.4GHz Athlon, 768 MB RAM.
>
> Any confirmations?
>
>
> --
> Tim Nikias v2.0
> Homepage: http://www.digitaltwilight.de/no_lights
> Email: Tim### [at] gmxde
>
>


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: final_frame not working as described in docs...
Date: 2 Apr 2003 15:38:39
Message: <3e8b4a4f$1@news.povray.org>
In article <3e8af461$1@news.povray.org> , "Tim Nikias v2.0" 
<tim### [at] gmxde> wrote:

> Oh, here's minimum source:
>
> //+KFI1 +KFF3 +EF2
> #debug concat("final_frame:",str(final_frame,0,0),"\n")
>
> Put the comment into the commandline.

It used to work this way in MegaPOV 0.x before, and everybody was fine with
it, so I guess the current behavior is what is desired, but I don't know.

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: final_frame not working as described in docs...
Date: 2 Apr 2003 16:10:41
Message: <3e8b51d1$1@news.povray.org>
If it is the desired method, I think it would be
best to describe that in the docs. Additionally,
since POV-Ray is also used for animations,
it might be a consideration to add another two
floats. I've noticed that initial_frame also only
returns the number from Subset-Framing. So
perhaps it might be a good idea to add some
constant-floats which will return the actual
KFI and KFF values...



--
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde

>
> > Oh, here's minimum source:
> >
> > //+KFI1 +KFF3 +EF2
> > #debug concat("final_frame:",str(final_frame,0,0),"\n")
> >
> > Put the comment into the commandline.
>
> It used to work this way in MegaPOV 0.x before, and everybody was fine
with
> it, so I guess the current behavior is what is desired, but I don't know.
>
>     Thorsten
>
> ____________________________________________________
> Thorsten Froehlich
> e-mail: mac### [at] povrayorg
>
> I am a member of the POV-Ray Team.
> Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: W&#322;odzimierz ABX Skiba
Subject: Re: final_frame not working as described in docs...
Date: 5 Apr 2003 12:20:04
Message: <web.3e8f0fd5b5b20e9e8ae0d1080@news.povray.org>
Tim Nikias v2.0 wrote:
> Additionally,
> since POV-Ray is also used for animations,
> it might be a consideration to add another two
> floats. I've noticed that initial_frame also only
> returns the number from Subset-Framing. So
> perhaps it might be a good idea to add some
> constant-floats which will return the actual
> KFI and KFF values...

IIRC those values can be calculated using values of clock related
identifiers. In particular using frame_number + clock +
initial_clock/final_clock + clock_delta.

ABX


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: final_frame not working as described in docs...
Date: 5 Apr 2003 19:40:42
Message: <3e8f778a@news.povray.org>
Hm, you're right, this should be possible. I'll
see if it'll work.
Nontheless, I do think that either initial_frame and
final_frame should return the actual values of
KFI and KFF respectively, or two new constant
float-identifiers should be introduced. To me they
seem to be essential for creating animation-includes.

Anyways, at least the Docs should be changed then.
Do I have to make a note in some other newsgroup
for that, I'm not sure sure...

--
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde

> Tim Nikias v2.0 wrote:
> > Additionally,
> > since POV-Ray is also used for animations,
> > it might be a consideration to add another two
> > floats. I've noticed that initial_frame also only
> > returns the number from Subset-Framing. So
> > perhaps it might be a good idea to add some
> > constant-floats which will return the actual
> > KFI and KFF values...
>
> IIRC those values can be calculated using values of clock related
> identifiers. In particular using frame_number + clock +
> initial_clock/final_clock + clock_delta.
>
> ABX
>
>
>


Post a reply to this message

From: ABX
Subject: Re: final_frame not working as described in docs...
Date: 9 Apr 2003 02:33:25
Message: <p8f79vkntvlk3lnmh4af1a2l8146gtp8od@4ax.com>
On Sun, 6 Apr 2003 02:37:03 +0200, "Tim Nikias v2.0" <tim### [at] gmxde> wrote:
> two new constant
> float-identifiers should be introduced. To me they
> seem to be essential for creating animation-includes.

Isn't that you who said "I'm the kind of guy who wants to script his
own stuff"? It can be made via script, and with this thread it is already
documented for future references. Do not forget to post the code for less
experienced users.

ABX


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: final_frame not working as described in docs...
Date: 9 Apr 2003 05:13:59
Message: <3e93e457$1@news.povray.org>
:-) Okay okay. I'll post some code shortly.

--
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde

> > two new constant
> > float-identifiers should be introduced. To me they
> > seem to be essential for creating animation-includes.
>
> Isn't that you who said "I'm the kind of guy who wants to script his
> own stuff"? It can be made via script, and with this thread it is already
> documented for future references. Do not forget to post the code for less
> experienced users.
>
> ABX


Post a reply to this message

From: Tim Nikias v2 0
Subject: Re: final_frame not working as described in docs...
Date: 9 Apr 2003 08:06:11
Message: <3e940cb3$1@news.povray.org>
Here's the code. It'll return the amount of frames of the
animation and set a variable if or if not the animation is cyclic.

#if ((final_frame-initial_frame)*clock_delta>=(final_clock-initial_clock))
 #declare Total_Frames=1/clock_delta+1;
 #declare Cyclic_Animation=off;
#else
 #declare Total_Frames=1/clock_delta;
 #declare Cyclic_Animation=on;
#end

Regards,
Tim

--
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde

> :-) Okay okay. I'll post some code shortly.
>
> --
> Tim Nikias v2.0
> Homepage: http://www.digitaltwilight.de/no_lights
> Email: Tim### [at] gmxde
>
> > > two new constant
> > > float-identifiers should be introduced. To me they
> > > seem to be essential for creating animation-includes.
> >
> > Isn't that you who said "I'm the kind of guy who wants to script his
> > own stuff"? It can be made via script, and with this thread it is
already
> > documented for future references. Do not forget to post the code for
less
> > experienced users.
> >
> > ABX
>
>


Post a reply to this message

From: ABX
Subject: Re: final_frame not working as described in docs...
Date: 9 Apr 2003 08:12:58
Message: <kd389vgut0n0i9m7tmohvtros8qor5n808@4ax.com>
On Wed, 9 Apr 2003 13:57:14 +0200, "Tim Nikias v2.0" <tim### [at] gmxde> wrote:
> #if ((final_frame-initial_frame)*clock_delta>=(final_clock-initial_clock))
>  #declare Total_Frames=1/clock_delta+1;
>  #declare Cyclic_Animation=off;
> #else
>  #declare Total_Frames=1/clock_delta;
>  #declare Cyclic_Animation=on;
> #end

Are you sure ?

This seems only valid when ( final_clock - initial_clock ) = 1

ABX


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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