Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: GLUQUADRIC in OpenTK in VB .NET

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2012
    Posts
    12

    GLUQUADRIC in OpenTK in VB .NET

    I'm trying to convert my VB.NET code from TAO to OpenTK, so far so good except for this line:

    Public sphere As Tao.OpenGl.Glu.GLUquadric = New Tao.OpenGl.Glu.GLUquadric


    I have tried repleacing Tao.opengl with Opentk.Graphics and Opentk.Graphics.OpenGL but neither worked.

    David

  2. #2
    Junior Member Newbie
    Join Date
    Aug 2012
    Posts
    12
    Quote Originally Posted by darkdave View Post
    I'm trying to convert my VB.NET code from TAO to OpenTK, so far so good except for this line:

    Public sphere As Tao.OpenGl.Glu.GLUquadric = New Tao.OpenGl.Glu.GLUquadric


    I have tried repleacing Tao.opengl with Opentk.Graphics and Opentk.Graphics.OpenGL but neither worked.

    David

    Anybody?

  3. #3
    Junior Member Newbie
    Join Date
    Aug 2012
    Posts
    12
    Quote Originally Posted by darkdave View Post
    Anybody?
    Fine, im changing to DirectX, obviously open community doesnt work !!

  4. #4
    Super Moderator OpenGL Guru
    Join Date
    Feb 2000
    Location
    Montreal, Canada
    Posts
    4,264
    They probably removed GLU from OpenTK by now.
    This thread is from 2009 http://www.opentk.com/node/1275

    For cylinders, spheres, cubes, torus and such, you will either have to write your own code or use someone else's code.
    In my glhlib project, I do have those shapes http://sourceforge.net/projects/glhlib/
    but it is for vc++. You will probably have to write a wrapper to use the DLL or just take the code and convert to VB.NET.
    But writing it yourself is more fun
    ------------------------------
    Sig: http://glhlib.sourceforge.net
    an open source GLU replacement library. Much more modern than GLU.
    float matrix[16], inverse_matrix[16];
    glhLoadIdentityf2(matrix);
    glhTranslatef2(matrix, 0.0, 0.0, 5.0);
    glhRotateAboutXf2(matrix, angleInRadians);
    glhScalef2(matrix, 1.0, 1.0, -1.0);
    glhQuickInvertMatrixf2(matrix, inverse_matrix);
    glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
    glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •