PDA

View Full Version : How to make a cylinder using OpenGL in VB.NET ?



the_rising
06-20-2005, 01:49 AM
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,

jide
06-20-2005, 01:57 AM
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 :D

No, I'm kidding...

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

the_rising
06-20-2005, 03:17 AM
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,

jide
06-20-2005, 03:30 AM
Originally posted by the_rising:

Object reference not set to an instance of an objectIt 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.