Hello. Sorry for disturbing, but I have a same problem and I simply don't understand a source of that problem. I tried to drawing the OpenGL point, as you can see in the code below, but it doesn't work! Sorry for my english either. Could you share with me your VB code? Some examples? Please! I never worked with OpenGL before. ISceneGraphEvents_Event events = axSceneControl1.SceneGraph as ISceneGraphEvents_Event; events.AfterDraw += new ISceneGraphEvents_AfterDrawEventHandler(events_AfterDraw); void events_AfterDraw(ISceneViewer pViewer) { ISceneControlEvents_OnMouseDownEvent events = e; if (events != null) { ISceneGraph pSceneGraph = axSceneControl1.SceneGraph; object pOwner = null, //слой pObject = null; //объект, на который указывает мышь IPoint point = null; pSceneGraph.Locate(pSceneGraph.ActiveViewer, events.x, events.y, esriScenePickMode.esriScenePickFastLocation, true, out point, out pOwner, out pObject); if (point != null) { IGeometry geom = point as IGeometry; geom.Project(axSceneControl1.Scene.SpatialReference); point = geom as IPoint; Gl.glPointSize(999.0f); Gl.glColor3ub(0, 0, 0); Gl.glBegin(Gl.GL_POINTS); Gl.glVertex3d(point.X, point.Y, point.Z); Gl.glEnd(); Gl.glFlush(); axSceneControl1.Invalidate(); } } }
... View more