   create a pipe!!
  i want to create a pipe which be used to simulate a gas pipeline.who can help me?the pipe just like 3D pipe of the Screen Saver in windows OS!!VC++ and opengl...P.S.  I want connect database(oracle)with opengl .how do i code?   
Quote:Original post by dlts26i want to create a pipe which be used to simulate a gas pipeline.who can help me?the pipe just like 3D pipe of the Screen Saver in windows OS!!VC++ and opengl...Short answer:1. Construct the medial axis for the pipe from line segments and quarter-circles (you could also use Beziers or some other type of spline for the curved portions).2. Run a parallel transport frame along the length of the (composite) pipe, filling in the vertices as you go.3. Compute the indices for the triangles (simple bookkeeping).I think the parallel transport frame will serve you best here, since you won't have to worry about degeneracies or 'flipping' regardless of how the pipe segments are oriented.There are other ways you could do it of course, but the above is how I'd proceed.[Edit: Here is a pipe mesh that was constructed using the technique described above, more or less. Obviously the medial curve of the pipe is arbitrary rather than essentially rectilinear (as I gather your pipe is supposed to be), but the concept is the same.]   ;Quote:Original post by jykQuote:Original post by dlts26i want to create a pipe which be used to simulate a gas pipeline.who can help me?the pipe just like 3D pipe of the Screen Saver in windows OS!!VC++ and opengl...Short answer:1. Construct the medial axis for the pipe from line segments and quarter-circles (you could also use Beziers or some other type of spline for the curved portions).2. Run a parallel transport frame along the length of the (composite) pipe, filling in the vertices as you go.3. Compute the indices for the triangles (simple bookkeeping).I think the parallel transport frame will serve you best here, since you won't have to worry about degeneracies or 'flipping' regardless of how the pipe segments are oriented.There are other ways you could do it of course, but the above is how I'd proceed.[Edit: Here is a pipe mesh that was constructed using the technique described above, more or less. Obviously the medial curve of the pipe is arbitrary rather than essentially rectilinear (as I gather your pipe is supposed to be), but the concept is the same.]   I know what you mean,but i can't do it by coding..i am a Novice! can you send the source code to me when you are convient?my email: dlts26@yahoo.com.cnthanks   ;Quote:I know what you mean,but i can't do it by coding..i am a Novice! can you send the source code to me when you are convient?I might be able to offer some further help, but first, may I ask what this is for exactly? Is it homework? A class assignment of some sort? A personal project? (I'm asking because we have some rules here on GDNet regarding helping with homework problems that I don't want to run afoul of.)   ;Quote:Original post by dlts26Can you please write my project for me?;Quote:I might be able to offer some further help, but first, may I ask what this is for exactly? Is it homework? A class assignment of some sort? A personal project? (I'm asking because we have some rules here on GDNet regarding helping with homework problems that I don't want to run afoul of.)hmm,it is my homework.my teacher asked me to construct a 3D pipeline,and he didn't restrict me to use any special tools.I have learned VC++.so, I decided to finish my homework by it.And OpenGL is a new thing for me.i am learning the basic knowledge about it, but for the complex design,i can't complete.   ;Quote:Original post by dlts26hmm,it is my homework.my teacher asked me to construct a 3D pipeline,and he didn't restrict me to use any special tools.I have learned VC++.so, I decided to finish my homework by it.And OpenGL is a new thing for me.i am learning the basic knowledge about it, but for the complex design,i can't complete.We are not here to do you homework for you, it should ideally be something you want to do yourself.Also, constructing a 3D pipe constructing a 3D pipeline are very different things, which one do you mean?   ;Quote:Original post by Driv3MeFarWe are not here to do you homework for you, it should ideally be something you want to do yourself.Also, constructing a 3D pipe constructing a 3D pipeline are very different things, which one do you mean?thanks for you advice,and i have already found the source code(acutally,i just have no thinking about the subject at the beginning of coding)!by the way,my homework is to construct a 3D pipeline.if you have some great ideas about it ,or some new articles.hope u can tell me..thanks again!!   