PDA

View Full Version : HELP - Problems in creating bend pipe sections(ex. 90 deg or 180deg)



04-10-2002, 04:05 AM
Any idea to create 90deg or 180deg bend pipes?

Thanks in advance

P.S: I used gluCylinder and gluDisk to create pipes. I think i have to use glTranslate or glRotate but i can't figure out how to create the curve.
I tried this link http://linas.org/gle/index.html. One of the contributer 'J P' suggested me to use stuffs in that that page. But I'm not able to download GLE32 from that page because the it's a broken link.

Any other ideas other than using GLE32 or specifying vertices?

mproso
04-10-2002, 06:03 AM
There is source code in MSDN of 3D Pipes screensaver.
Maybe you can use that.
Good luck!

DFrey
04-10-2002, 06:26 AM
If you want some ideas on drawing bends, the perfect example that comes to my mind is the OpenGL 3D Pipes screen saver source code.
You can get that code from MSDN I believe, or at least could, I know it is on my MSDN Library CD anyway.

J P
04-11-2002, 12:50 PM
The "GLE Tubing and Extrusion" Lib home page
http://linas.org/gle/index.html

has multiple download site's. In my opinion
http://sourceforge.net/projects/gle/

is the best and it is working!

J P
04-11-2002, 01:25 PM
I should also mention that the "GLE Tubing and Extrusion" Lib is distributed with the current version of glut (windows V3.7.6) and this comes with GLE demo apps with VC++ (*.dsw) workspaces.