Planetside Software Forums

General => Terragen Discussion => Topic started by: mogn on September 29, 2007, 04:01:31 AM

Title: Bezier Curves
Post by: mogn on September 29, 2007, 04:01:31 AM
It is interresting to note that bezier curves are easy to generate in TG2.
In http://en.wikipedia.org/wiki/B%C3%A9zier_curve (http://en.wikipedia.org/wiki/B%C3%A9zier_curve)
a bezier curve is defined as a linear interpolation between two bezier curves of lesser degree.
I.E a bezier interpolation can be constructed by tree of mix functions, with a common controller (0..1).
Title: Re: Bezier Curves
Post by: dhavalmistry on September 29, 2007, 11:16:49 AM
those equations scare me.....lol.....
Title: Re: Bezier Curves
Post by: rcallicotte on September 29, 2007, 12:48:00 PM
@mogn - Thanks.    ;D  <-- (me pretending I understand)
Title: Re: Bezier Curves
Post by: mogn on September 30, 2007, 01:53:10 AM
Thanks, but I don't know yet how to use it. The output from the tree is: x(t) and y(x(t)) value, but what we really want
is the output to be: x=t and y(t)
Title: Re: Bezier Curves
Post by: cyphyr on September 30, 2007, 11:14:09 AM
Great work. If this can be made to work how would you envisage using it in TG?
Richard
Title: Re: Bezier Curves
Post by: Harvey Birdman on September 30, 2007, 11:26:24 AM
I was out riding my bike a couple of days ago and I had an idea for a Bezier application in TG2.... and now I can't remember what it was. Gotta get those endorphins flowing again and it'll come back to me.

:)
Title: Re: Bezier Curves
Post by: Mr_Lamppost on October 01, 2007, 10:23:43 PM
Thanks for that, the graphics and explanation are very clear The math less so, It's a long time since I looked at any "Nuts and Bolts" math like that.  I remember reading how to do this in one of the early versions of POV-Ray (Beziers are now built in), but the version I am thinking of had function capability similar to that which we now have in TG2.  No promises but "I'm in the middle of 15 things all of them annoying". A virtual biscuit for anybody who can attribute that quote ;D  I'll see if I can dig it up.
Title: Re: Bezier Curves
Post by: red_planet on October 02, 2007, 03:48:56 AM
babylon 5 - Ivanova. .. Episode - Midnight on the Firing Line written by J. Michael Straczynski.

ginger nut please !

rgds

Chris
Title: Re: Bezier Curves
Post by: Mr_Lamppost on October 02, 2007, 07:12:16 PM
OK well done but are you sure you wouldn't prefer a Garibaldi?