bending pipe

Is there anyone know how to draw a bending pipe? It is like a cylinder pipe forming an arc shape, or like a partial donut. Thanks.

Hi !

This is not very easy to do with just OpenGL, even though you could create a torus and add two clipping planes to do it.

You need some extra code to do that in an easy way, maybe something like GLE could help you:



I have just started looking at openGl. I thought I might also like to draw some pipes (kinda like the windows screensaver).
If you are still interested I have created a drawer of donuts (as well as partial donuts)It still needs some work and is probably slow because I have just made it out of triangle strips. If you want a look I will try and remember to post the code at home.
I do however have an artifact at the join which I don’t understand.