[osg-users] Best way to draw a tube

Paul Martz pmartz at skew-matrix.com
Sun Nov 29 14:37:55 PST 2009


François Bodic wrote:
> Hi everybody,
> 
> I want to draw a simple tube and so as to do that I draw two cylinders (one outer and one inner). The problem comes when I want to draw the bottom and the top "rings". Is there a nice way to do that with OSG?

Well, you already have the vertices for the ends of the two tubes, and 
presumably they're already on the graphics card in a buffer object. Is 
there a reason why you can't just render then as a DrawElementsUShort 
triangle strip?
    -Paul



More information about the osg-users mailing list