POV-Ray : Newsgroups : povray.programming : sine/cosine and exponents with animations? : sine/cosine and exponents with animations? Server Time
28 Jul 2024 22:16:55 EDT (-0400)
  sine/cosine and exponents with animations?  
From: Lounento
Date: 30 Apr 1999 05:20:54
Message: <372967e6.0@news.povray.org>
Hi,
I've done some expirement animations with Povray, but have been missing a
couple of useful features. In order to make objects to move smoothly, the
object has to have a mathematical function that define the object's path.
Sine/cosine and exponent functions would be of great help there. Although
you can type "clock*clock" to make it a parabel, an exponent feature would
be much easier to use and it would also make possible to take the square
root (x^.5).
One other improvement would be an animation script through which you could
set individual enviroment for every frame of the animation.
For example: ball bouncing on th floor. The ball loses energy every time it
bounces from the floor (of course also in the air, but that's minimal) and
the maximal altitude lowers. A function which describes this is
y=<max.altitude>*sin x, where <max. altitude> is an individual value for
every bounce. It's value should be calculated for every bounce, not for
every frame.

This ball is one example, which would gain advantidge of all of those
features I'm missing:
1) sine function
2) ability to use exponent in scene language
3) a separate script file, which would control animation (for example:
calculate multipliers)

If someone has different solutions I'd gladly like to know about them.

Htl


Post a reply to this message

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