POV-Ray : Newsgroups : povray.binaries.images : Complex transformations: 3.6 vs. 3.7 : Re: Complex transformations: 3.6 vs. 3.7 Server Time
2 Jul 2024 23:48:47 EDT (-0400)
  Re: Complex transformations: 3.6 vs. 3.7  
From: clipka
Date: 23 Jan 2015 02:18:36
Message: <54c1f5cc@news.povray.org>
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).


Post a reply to this message

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