|
![](/i/fill.gif) |
> Am 23.01.2015 um 04:38 schrieb gregjohn:
>> I found the offending code:
>>
>> #declare mouthsplines= //
>> spline {
>> linear_spline
>>
>> #declare n=0;
>> #while(n<numchars)
>>
>> voiceframes[n]/final_frame, moutharray[
>> asc(substr(voicechars,n+1,1))],
>> #declare n=n+1;
>> #end
>> }
>>
>> and the weird thing is that with Kff=1 dividing something by
>> final_frame gives
>> a divide by zero error (dividing by one??).
>
> IIRC setting initial and final frame to the same value disables the
> animation feature entirely; apparently this also sets final_frame to 0.
>
>> In povray 3.6, it just gave an error message, but somehow the scene
>> rendered
>> correctly, maybe almost as if the final_frame were actually counted as
>> "1".
>
> What's the error message you get with 3.6? Divide by zero?
>
>> In povray 3.7, there is no error message, but it's like povray just
>> decided to
>> delete the object associated with the error. And the association
>> seemed to
>> destroy all transforms associated with the object.
>
> The object most certainly isn't deleted; it's just translated to
> infinity...
>
>> I just rendered a few scenes in 3.7 with kff=1: I get people with
>> shoes "Left
>> Behind".
>> With kff=2, I get two frames with my family intact.
>
> I suggest dividing by (final_frame-initial_frame+1).
>
In my experience, when the animation is disabled, all animation related
variables are set to zero: clock, initial_frame, final_frame,
frame_number, ...
Alain
Post a reply to this message
|
![](/i/fill.gif) |