POV-Ray : Newsgroups : povray.animations : Stretching object with clock : Stretching object with clock Server Time
18 May 2024 17:02:59 EDT (-0400)
  Stretching object with clock  
From: thisroad
Date: 11 Feb 2008 17:50:00
Message: <web.47b0cf639c26536971f31c40@news.povray.org>
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

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