
Glu.gluSphere and Glu.gluСylinder
Posted Saturday, 24 October, 2009 - 20:46 by aklev inI alter old programs on new alternatives with usage OpenTK.
Where to take clones of Glu.gluSphere objects and Glu.gluСylinder so not to alter a great many of the subprograms linked to a full-sphere and the cylinder?
It is necessary to save all old modes of colouring...
thanks
Aklev


Comments
Re: Glu.gluSphere and Glu.gluСylinder
Add a reference to OpenTK.Compatibility.dll. This contains Glu bindings and Tao bindings so you can continue to use existing programs without modifications (this is why it's called "compatibility").
Re: Glu.gluSphere and Glu.gluСylinder
And what to do if it would be desirable to do without OpenTK.Compatibility.dll ?
Aklev.
Re: Glu.gluSphere and Glu.gluСylinder
It is very easy to construct spheres and cylinders using simple math. GLU is officially deprecated in OpenGL 3.0, so that's the best way forward.
There is code available for spheres in these forums (please use the search function, I don't have the link handy) and cylinders are very simple to derive from that.
Re: Glu.gluSphere and Glu.gluСylinder
Yes. I saw these codes at a forum and in other places...
Here common versions (VB.NET) for a Sphere and Cylinder(cone).
They work quickly enough, draw correctly, BUT NOT SO INTERREACT With IRRADIATING AS Glu.gluSphere and Glu.gluСylinder ...
VERY MUCH IT WOULD NOT BE DESIRABLE TO ADD IN THE PROGRAM OpenTK.Compatibility.dll
I do not have initial codes Glu.gluSphere and Glu.gluСylinder ... I do not know where to discover them ...
But I know that many tasks use it.
Can we joint force of a forum we will discover old codes Glu.gluSphere and Glu.gluСylinder or let's update that I show here (it a little works):
Aklev
Re: Glu.gluSphere and Glu.gluСylinder
Mesa3d contains an open source implementation of GLU. The code is written in C and is licensed under the Library General Public License (an older version of the LGPL).
You can re-implement Glu.gluSphere with a small modification to your code: use two parameters (
int slices, int stacks) instead ofint precision.Re: Glu.gluSphere and Glu.gluСylinder
Thanks.
I will try.
Aklev.