i need to work with some Quadrics in OpenGL. I can draw some Zylinder with it. But im still wondering what form they use?
Is is implicit, or parametric? For my work i need a Zylinder which is presented in both. Is it possible to change the used form?
And finally can i Access the used formula to get parameter?
Hmm, I’m not sure what parameters you are referring to. You pass parameters into the call to draw a quadric (i.e. gluCylinder takes radii and tesselation parameters). If you need the produces vertices you’ll have to use GLU tesselators or nurbs (those allow specifying callbacks to get the generated vertex attributes), or (probably better in most cases anyway) use a different library - GLU is ancient.
However, if you search a bit you should also be able to find SGI’s reference implementation to learn what it does under the hood.
The parameters in the form?
I’m assuming you mean you want the source code for gluCylinder. You can download the Mesa3D library which has OpenGL code and also GLU. Just take the GLU project and search for gluCylinder. The code is in quad.c.
mhh, pretty nice ideas. Unfortunately i have to work with GLU, so i looked for the GLU tesselators, but im not getting it. Can u tell me how i would get the data for the vertices and the face data without actually drawing the Zylinder?
Also found the mesa quad tree and looking through this, not sure if this takes too much time though…
[QUOTE=CapoDaster;1250034]mhh, pretty nice ideas. Unfortunately i have to work with GLU, so i looked for the GLU tesselators, but im not getting it. Can u tell me how i would get the data for the vertices and the face data without actually drawing the Zylinder?
Also found the mesa quad tree and looking through this, not sure if this takes too much time though…[/QUOTE]