flypig.co.uk

Curves

Curves is a library for rendering curves in 3D using OpenGL. It allows a variety of curves to be rendered and has the following features.

  • Bezier tubes: render fixed radius bezier tubes specified using control points.
  • Parametric curves: render curves following a parametrically defined path and parametric radius function.
  • Animation: animate the curves by specifying a time variable as part of the functions.

Future planned functionality includes the following.

  • Export the curves as meshes in Standford Triangle Format (PLY) files.
  • Render animated tubes entirely using vertex and fragment shaders.
  • Better functionality for colouring and texturing the tubes.

In addition to the library the code includes a small GTKGLExt-based application to demonstrate its use.

The Curves source is available on SourceForge as part of the Functy package.

You can access the SVN repository directly or browse the source.

Screenshots


Curves news

5 most recent items

6 May 2012 : Colourful curves #
Added a few screenshots and icons to the Curves library page to give some basic idea about what the library could be used for (and to brighten up the page a bit).
5 May 2012 : Curves on SourceForge #
The Curves Library code has now been moved over to SourceForge to become part of the Functy package. The plan is to allow Functy to render parametric curves, just as soon as the library can be properly integrated.

Download

  • Curves Library Curves Library
    Version 0.01 (5 May 2012) for Linux and Windows.
    Curves is a library for rendering curves in 3D using OpenGL. It allows a variety of curves to be rendered including Bezier tubes and arbitrary curves that follow a parametrically defined path function and with a parametrically defined radius. More info...
    Download: source, screenshot.