POV-Ray : Newsgroups : povray.animations : Stretching object with clock Server Time
23 Nov 2024 11:56:38 EST (-0500)
  Stretching object with clock (Message 1 to 2 of 2)  
From: thisroad
Subject: Stretching object with clock
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

From: Warp
Subject: Re: Stretching object with clock
Date: 11 Feb 2008 18:37:21
Message: <47b0dc31@news.povray.org>
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

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