   [.net] Drawing on Tao Simple opengl control
  HiI am facing a problem on drawing a object on Tao Simple opengl control, like(Points, Lines, Circle etc). I am getting only black area on the running form. I am attaching the code here.Plz kindly suggest me the solution of this problem.ThanksCODE:Imports Tao.OpenGl.Gl   'import Tao.OpenGl.Gl classImports Tao.OpenGl.Glu 'import Tao.OpenGl.Glu classImports Tao.Platform.Windows.Wgl 'import Tao.Platform.Windows.Wgl classPublic Class Form1    Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load   Dim OGL As New Tao.Platform.Windows.SimpleOpenGlControl   Me.Controls.Add(OGL)   OGL.AccumBits = CType(0, Byte)   OGL.AutoCheckErrors = False   OGL.AutoFinish = False   OGL.AutoMakeCurrent = True   OGL.AutoSwapBuffers = True   OGL.BackColor = System.Drawing.Color.BlueViolet   OGL.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None   OGL.Borderstyle = System.Windows.Forms.Borderstyle.Fixed3D   OGL.ColorBits = CType(32, Byte)   OGL.Cursor = System.Windows.Forms.Cursors.Hand   OGL.DepthBits = CType(16, Byte)   OGL.Location = New System.Drawing.Point(4, 0)   OGL.Name = "OGL"   OGL.StencilBits = CType(0, Byte)   OGL.Width = Me.Width   OGL.Height = Me.Height   OGL.InitializeContexts()   OGL.MakeCurrent()   OGL.BackColor = System.Drawing.Color.White   glEnable(GL_POLYGON_OFFSET_FILL)   glPolygonOffset(1, 1)   glEnable(GL_DEPTH_TEST) glEnable(GL_COLOR_MATERIAL)   glEnable(GL_NORMALIZE) glEnable(GL_LINE_SMOOTH)   glEnable(GL_BLEND)   glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)    glHint(GL_LINE_SMOOTH_HINT, GL_NICEST)   glCullFace(GL_BACK)   glDisable(GL_CULL_FACE)   Dim a As Font = New Font("Tahoma", 8, Fontstyle.Bold)   Tao.Platform.Windows.Gdi.SelectObject(wglGetCurrentDC(), a.ToHfont())   wglUseFontBitmaps(wglGetCurrentDC(), 0, 256, 1000)   glColor3ub(0, 0, 0)   glBegin(GL_LINES)   glVertex3f(0, 0, 0)   glVertex3f(50, 100, 0)   glEnd()   OGL.Refresh()   glDisable(GL_POLYGON_OFFSET_FILL)    End SubEnd Class   
  I don't think you're setting up a camera position in that code. The usual source of an OpenGL black screen is that you're looking away from your object.You might get better answers on the OpenGL forum ...   