View Full Version : Create a swept surface ?
12-20-2007, 09:05 PM
I got a question that how to create a swept surface like the picture below.
A circle and a curve are given, then a swept surface will be create.
Is the any code or tutorials similiar to this?
12-20-2007, 09:29 PM
This should explain everything you need to know:
12-21-2007, 08:11 AM
but I don't know how to code? I don't know any idea about this
12-21-2007, 04:35 PM
Perhaps you had better explain what this is for and what you are trying to achieve.
Also if you can tell me what language and OpenGL experience you have. (If this is your first OpenGL program, it is probably too difficult for a beginner)
12-23-2007, 01:26 AM
I have a curve and a cirle like the picture above, what I want is to render a 3D pipeline.
I use Visual C++ and OpenGL
12-23-2007, 04:16 AM
The link sqrt[-1] gave you explains everything. If you don't understand, then you should probably start with simpler things. Do the NeHe tutorials and someday the solution will appear in your head :)
But to make it easier I will outline the idea for you: you walk along the curve and create circles of vertices on every step. Then you use quads to connect each circle. This is actually pretty simple after you got basic grasp of OpenGL and programming in general.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.