home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
misc
/
bezier
/
poster
< prev
next >
Wrap
Text File
|
1995-02-27
|
4KB
|
124 lines
The following postings accompanied the three bezier related programs on
this disk.
Note that the bouncing bezier was renamed BezierB, to distiguish it from
the regular one. It is best run from the CLI if you want to enter the
parameters for bouncing.
Enjoy - EdLib Aug '91
****************************************************************************
Article 4522 of comp.sys.amiga:
Path: mcdsun!noao!hao!ames!ucbcad!ucbvax!CORY.BERKELEY.EDU!dillon
From: dillon@CORY.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga
Subject: BEZIER CURVES EXAMPLE (executable + source)
Message-ID: <8705102037.AA25960@cory.Berkeley.EDU>
Date: 10 May 87 20:37:05 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 504
Here is a little program I wrote to fool around with Bezier curves. It
allows you to fool around with a 4 point bezier curve, using the mouse to move
the points, and using a prop gadget to change the granularity of the
curve generation loop. A granualarity of about 40 is almost indestinguishable
from a granularity of 1, and draws the curve 40 times faster (as in, **fast**)
Have Fun!
-Matt
****************************************************************************
Article 4526 of comp.sys.amiga:
Path: mcdsun!noao!hao!ames!ucbcad!ucbvax!CORY.BERKELEY.EDU!dillon
From: dillon@CORY.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga
Subject: Splurge #3 ... Bouncing Beziers
Message-ID: <8705110627.AA22443@cory.Berkeley.EDU>
Date: 11 May 87 06:27:18 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 624
Oh what the hell.. Here's Bezier again, but this time I've added
an automation option... you can watch the Bezier curve bounce all over its
window by specifying a random seed:
bezier [seed [delay]]
example:
bezier 24
If you don't want it to run continuously, you can specify a delay
(passed directly to Delay()):
bezier 24 10
Otherwise, if you give it no arguments, it allows you to play with the
bezier curve like in my first posting.
P.S. running it on automatic 'bezier #', and setting the granularity to
about 40 looks very impressive.... I've found it somewhat appeasing to have
running on my workbench screen. I also optimized the source quite a bit.
-Matt
****************************************************************************
Article 4591 of comp.sys.amiga:
Path: mcdsun!noao!hao!gatech!seismo!esosun!ucsdhub!sdcsvax!ucbvax!CORY.BERKELEY.EDU!dillon
From: dillon@CORY.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga
Subject: Super Splurge: BEZIER CUBIC SURFACES! (source and executable)
Message-ID: <8705130658.AA24676@cory.Berkeley.EDU>
Date: 13 May 87 06:58:05 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 899
For those of you who don't know what a Bezier Cubic surface is, it's
a way of defining a curved surface in 3D. The Bezier Cubic uses 16 control
points to define the surface.
The mouse control is somewhat trickier than my previous postings,
so I added a '?' gadget that you can click on to get help.
I fear that many of you will not appreciate the speed that this thing
updates in the window when you move control points around. Just keep in mind
the fact that the algorithm is basically n^2 where n is the granularity, and
involves a *huge* amount of matrix algebra to boot. The source is incredibly
optimized (though I didn't resort to assembly language), and only those
who are familar with Hermite/Bezier/Bspline surfaces will understand what
I did to get the speed.
Feel free to add automation and other bells and whistles!!
-Matt
Article 4599 of comp.sys.amiga:
Path: mcdsun!noao!hao!oddjob!uwvax!husc6!mit-eddie!ll-xn!ames!ucbcad!ucbvax!CORY.BERKELEY.EDU!dillon
From: dillon@CORY.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga
Subject: Sorry... repost of BCUBIC (Bezier Cubic Surfaces)
Message-ID: <8705131716.AA03272@cory.Berkeley.EDU>
Date: 13 May 87 17:16:43 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 887
Sorry about the repost... the one I posted yesterday openned a window
that extended past row 200 (which means it wouldn't work unless you were
using morerows)... I didn't *mean* to do that, but didn't notice it because
the NW.Height was set to 150 (But the top edge was set to 64.. whoops)
-Matt