OS4 DepotLogo by Alkaron 
(anonymous IP: 3.145.131.28,2193) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (596)
   o Document (22)
   o Driver (97)
   o Emulation (147)
   o Game (1004)
   o Graphics (497)
   o Library (115)
   o Network (232)
   o Office (66)
   o Utility (923)
   o Video (69)

Total files: 4365

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Development » Example » curvetest.lha

Curvetest

Description: Spline, Bezier and Hemite SDL examples
Download: curvetest.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 470kb
Date: 17 Oct 2006
Author: Tyler Montbriand, AmigaOS 4.0 compile by Spot / Up Rough
Submitter: Spot / Up Rough
Email: spot/triad se
Homepage: http://burningsmell.org
Category: development/example
License: Other
Distribute: yes
Min OS Version: 4.0
FileID: 2180
 
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 275  (Current version)
275  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
curve_test by Tyler Montbriand, 2005
tsm()accesscomm.ca http://burningsmell.org

curve_test is a set of 3 programs to demonstrate 3 different kind of 
third-order parametric curves:  Hemite curve segments, Bezier curve 
segments, and Splines.  Hemite curves are defined by two endpoints and 
two vectors, Bezier curves are defined by four points, and Spline curves 
are defined by 4+n points.  In particular, my program draws *closed* 
spline curves.

All 3 programs are operated the same way;  the 0-9 keys select a 
particular point.  x or shift-x increases or decreases the X coordinate 
of the selected point or vector, y or shift-y increases or decreases the 
Y coordinate of the selected point or vector, ESC quits.  You will see 
the results of the modified curve redrawn in realtime.

It's probably stupidly slow and inefficient both in design and 
implimentation, but I hope the idea at least is fairly clear.

------------------------------------------------------------------------

This makefile was a bit odd, so i compiled the examples by hand using 
the following lines. The link phase went wrong, as the libs ended up
at the wrong place.

gcc hemite.c matrix.o midpoint_line.o -o spline -L/SDK/Local/newlib/lib -lGL
-lGLU -lSDL -lauto -lpthread -lm -lm -lstdc++
gcc spline.c matrix.o midpoint_line.o -o spline -L/SDK/Local/newlib/lib -lGL
-lGLU -lSDL -lauto -lpthread -lm -lm -lstdc++
gcc hemite.c matrix.o midpoint_line.o -o hemite -L/SDK/Local/newlib/lib -lGL
-lGLU -lSDL -lauto -lpthread -lm -lm -lstdc++
gcc bezier.c matrix.o midpoint_line.o -o bezier -L/SDK/Local/newlib/lib -lGL
-lGLU -lSDL -lauto -lpthread -lm -lm -lstdc++
strip bezier 
strip spline 
strip hemite 

.. Spot / Up Rough 2006

Copyright © 2004-2024 by Björn Hagström All Rights Reserved