See the link for what I’m getting:
This is driving me round the bend! Below is the piece of code that produces the above, it’s in VB .net but that should not detract from the problem.
Draw the scene:
gl.ClearColor(1, 1, 1, 0) gl.Clear(OpenGL.gl.COLOR_BUFFER_BIT) Dim quadric As IntPtr quadric = glu.NewQuadric gl.Color3f(1, 0, 0) glu.Sphere(quadric, 1.2, 10, 10) Me.RenderingContext.SwapBuffers()
The Resize event:
gl.Viewport(0, 0, Me.Width, Me.Width)
I know it’s a sillly example but demenstrates the problem. Any thing larger than 1.0 for the radius of the sphere and the hole will start to appear. I my actual program I use gl.Ortho to do all my scaling zooming etc and I still get the problem. I am programming a 2D CAD system. I seems that gluPerspective is OK but I’m only doing 2D.
Any help would really be approciated