|  |  | Hi all,
I'm trying to code this simple animation: Define a thin cylinder between two
points, and with the clock going from 0 to 1, the cylinder starts at point A
and "grows" toward point B.
When I run this code snippet, I get two problems:
1) The cylinder steadfastly refuses to grow from A to B.  It grows from B to A.
2) The object doesn't actually begin at point B.  It starts *beyond* point B,
along the axis connecting the two points, and moves slowly back toward B as the
animation progresses.  Only in the final frame is this point in the correct
place.
I've inserted minus signs on both 'axis' and 'clock', with no success.  Any
ideas?
cylinder{A, B, 0.25
 Axial_Scale_Trans(axis,clock)
  texture{
    pigment {color Coral}
    finish{phong 0.4 ambient 0.8}
  }
}
Many thanks...
Post a reply to this message
 |  | 
|  |  | thisroad <nomail@nomail> wrote:
> cylinder{A, B, 0.25
>  Axial_Scale_Trans(axis,clock)
>   texture{
>     pigment {color Coral}
>     finish{phong 0.4 ambient 0.8}
>   }
> }
  What is 'axis'?
  How about simply doing some simple math instead:
cylinder { A, A + clock*(B-A), 0.25
  texture{
    pigment {color Coral}
    finish{phong 0.4 ambient 0.8}
  }
}
-- 
                                                          - Warp
Post a reply to this message
 |  |