PDA

View Full Version : Bending Pipe



jimmy001
06-06-2002, 03:50 PM
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.


[This message has been edited by jimmy001 (edited 06-06-2002).]

SirKnight
06-06-2002, 05:24 PM
The easiest way would be to model it in 3ds max, maya, milkshape 3d, etc and load the model in your program.

-SirKnight

V-man
06-06-2002, 06:40 PM
Originally posted by jimmy001:
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.



I partial donut would be an arc shape. All you have to do is have a circle that you rotate by a certain increment until you reach the desired final angle. You use that circle to construct your polygons.

There is a EXT_vertex_weighting demo at nvidia that does this the easy way.

V-man