Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => Topic started by: Matrefeytontias on November 22, 2012, 01:01:44 pm

Title: [Ndless] Ndless meets Bezier !
Post by: Matrefeytontias on November 22, 2012, 01:01:44 pm
Hey guys !

I don't exactly know why, but I wanted to do a program working with Bezier curves somehow :P

I first tried with my 83+ and Axe, but integer numbers and parametric functions aren't good together. So I tried with Ndless :

Spoiler For Over-über-monstruously huge screenshot:
(http://mattias.refeyton.fr/espace-ti/bezier.gif)

The curve is drawn depending on 4 control points, which you can move by selecting them with [ + ] or [ - ] (they are visible as 3*3 squares when they are selected) and then use the arrows. Exit with [ESC].

I wonder if I can do a game of that ...
Title: Re: [Ndless] Ndless meets Bezier !
Post by: Eiyeron on November 22, 2012, 01:06:20 pm
Yeah, now Could you make Adboe Illustrator :D?
Title: Re: [Ndless] Ndless meets Bezier !
Post by: aeTIos on November 22, 2012, 01:09:06 pm
You have some nice projects lately. Mind sharing the idea you used?
Title: Re: [Ndless] Ndless meets Bezier !
Post by: Matrefeytontias on November 22, 2012, 01:23:17 pm
Well, I read a book entitled "3D animation and computer generated images algorithms" ("Algorithmes pour la synthèse d'images et l'animation 3D", a French book in fact, by Rémy Malgouyres), and there's a chapter (several ?) about Bezier curves. I thought that I could use it in a game (but for now I haven't any idea about a game), so first I tried to plot a Bezier curve.

EDIT : the parametric function for a Bezier curve with 4 control points P1 to P4 is :

Q(t) = P1 * (1 - t)3 + P2 * 3t(1 - t)2 + P3 * 3t2(1 - t) + P4 * t3