We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › bezier tweening
Page Index Toggle Pages: 1
bezier tweening (Read 1130 times)
bezier tweening
Feb 1st, 2010, 10:38am
 
has anyone seen examples doing bezier tweening using the bezier methods (bezier, bezierPoint, bezierTangent, etc..)? ive seen some using as3 but wanted to see if there was something in java... what i wanted to do is make a method similar to toxis spline2d and 3d methods which takes a list of points and makes the control points so that a curved path is drawn through them...
Re: bezier tweening
Reply #1 - Feb 1st, 2010, 11:19am
 
Hi ekenei,

http://en.wikipedia.org/wiki/B%C3%A9zier_curve
look at how bezier works on wikipedia, see the Constructing Bézier curves section.

also

that page may interest you cause it shows a bezier example in opengl
here is the link http://gritche.perso.libertysurf.fr/OpenGL/Bezier.html

ill keep searching
Re: bezier tweening
Reply #2 - Feb 2nd, 2010, 5:53pm
 
also, if you want some 3D bezier, i think you need to know more about NURBS. anyways, if i find you something really helpfull, ill post it.

cya
Re: bezier tweening
Reply #3 - Feb 3rd, 2010, 4:00pm
 
thanks bloom. it took me a day or two... but i found how to do it using different interpolation types! so ill be posting some new changes to the tween library with a path tweening class/method which has 3-4 different modes and takes an array of points . im also going to release the 2d and 3d path classes as part of a core library im making which will be required to the path tweening functions...
Re: bezier tweening
Reply #4 - Feb 3rd, 2010, 5:31pm
 
Here are two examples:

2D Path:
http://ekeneijeoma.com/processing/corelib/examples/Path2DTest/applet/

3D Path:
http://ekeneijeoma.com/processing/corelib/examples/Path3DTest/applet/
Re: bezier tweening
Reply #5 - Feb 3rd, 2010, 7:00pm
 
and another one:

Tween 3D Path:
http://ekeneijeoma.com/processing/motionlib/examples/TweenPath_3DPath/applet/
Page Index Toggle Pages: 1