PDA

View Full Version : Creating tube using path--Rendering hermite spline



jimwalks
02-21-2012, 08:47 AM
Hi All,

I'm trying to render a hermite spline curve by creating cubes using GL_QUADS. However, I'm having problems getting results anywhere near correct.

I'm guessing i need to create a series of quads from the path created by the hermite spline. Does anyone have any example code or can assist in creating a tube by following a path?

tksuoran
02-21-2012, 03:56 PM
See the *tube.cs here:

http://neure.ath.cx/curve.html