Results 1 to 4 of 4

Thread: How to make a cylinder using OpenGL in VB.NET ?

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2005
    Location
    Chennai - India
    Posts
    11

    How to make a cylinder using OpenGL in VB.NET ?

    Hello everyone,
    I want to draw a cylinder using OpenGL in VB.NET. I dont know how it can be done.
    Can somebody tell me how to draw it ?
    All the responses are welcome.

    Regards,
    Dushyant Maheshwari
    NatureSoft Pvt Ltd
    Chennai

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: How to make a cylinder using OpenGL in VB.NET ?

    Originally posted by the_rising:
    Hello everyone,
    I want to draw a cylinder using OpenGL in VB.NET. I dont know how it can be done.
    Can somebody tell me how to draw it ?
    All the responses are welcome.

    Regards,
    Because you're using VB.NET you won't be able to do any cylinder at all: this is forbidden

    No, I'm kidding...

    Glu quadrics are what you're looking for. Create one quadric and then call gluCylinder to make what you want.

  3. #3
    Junior Member Newbie
    Join Date
    Feb 2005
    Location
    Chennai - India
    Posts
    11

    Re: How to make a cylinder using OpenGL in VB.NET ?

    Hi
    Actually I did it in the same way. I created one quadric and called gluCylinder but there is coming some error "Object reference not set to an instance of an object" at the step where I used the created quadric. I dont know how to rectify this error.
    Please help.

    Regards,
    Dushyant Maheshwari
    NatureSoft Pvt Ltd
    Chennai

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,662

    Re: How to make a cylinder using OpenGL in VB.NET ?

    Originally posted by the_rising:

    Object reference not set to an instance of an object
    It seems that you declared and used a reference without having affected it to an existed instance of that object type. As a reference is just an 'alias' you are using something that doesn't exist.

    However I've done so few VB in the past that I can't ensure that, but that seems the way.

    Hope that helps.

Similar Threads

  1. how to make a line look like a cylinder?
    By jyoung77 in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 10-13-2003, 01:58 PM
  2. Replies: 1
    Last Post: 06-09-2002, 06:48 AM
  3. How do you make a Cylinder??
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-13-2001, 08:58 AM
  4. how to make a nurb circle or cylinder?
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-24-2000, 09:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean