POV-Ray : Newsgroups : povray.newusers : Re: Vibrate objects in animation : Re: Vibrate objects in animation Server Time
30 Jul 2024 02:26:10 EDT (-0400)
  Re: Vibrate objects in animation  
From: Bathurstfreak
Date: 25 Nov 2004 21:20:00
Message: <web.41a6923ffa0d3b25fce34a90@news.povray.org>
> Why I can not write this:
> ======================================
> rotate <xvibrate, 0, 0>?
> ======================================
> It gives me an error.

the cosd function requires that transforms.inc has been included into the
script
the other way is to use not worrying about transforms.inc
cos(clock*2*pi*[rest_of_function]) instead of
cosd(clock*360*[rest_of_function])

#include "transforms.inc"
> > #declare damping = 5;
> > #declare frequency = 5;
> > #declare framerate = 25;
> > #declare frames = 100
> >
#declare xvibrate = [distance or rotation
angle]*cosd(clock*360*(frames/framerate)*frequency)*pow(2.817,-clock*(frames/framerate)*damping);


Post a reply to this message

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