Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Algorithms > anim curves
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 4834 of 5064
Post > Topic >>

anim curves

by fz <shyalb@[EMAIL PROTECTED] > Jun 30, 2008 at 01:28 AM

Hi,

I'm trying to implement an anim curve interpolation based on the
bezier algorithm.

So if I have 4 points, P0, P1, P2 and P3.. every point has a x and y
value..

P1 is the right tangent to P0, and P3 is the left tangent to P2.

t is a continuous value between 0 and 1.

I'm currently using t as my x value.

I then have a function which gets my y value like this:

a = 1-t

y = t^3.P0y + 3.t^2.a.P1y + 3.t.a^2.P2y + a^3.P3y

It works the way I want, because it is close to bezier, but is a one
to one function..

But I'm not sure if this is the best way of doing this.

Thanks in advance.
 




 2 Posts in Topic:
anim curves
fz <shyalb@[EMAIL PROT  2008-06-30 01:28:09 
Re: anim curves
"[Jongware]" &l  2008-06-30 16:49:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 0:11:56 CST 2008.