I have a question here. I am using lines to plot a mesh, and these lines are always adjacent to a triangle. I have enabled the GL_LINE_SMOOTH, but because of the superposition between the two primitives, the quality of the lines turns out to be quite poor.
Does anybody know how can I solve this issue?
I send you here a copy of the code where I setup the SharpGL object (I've named it "ControlGL" here):
ControlGL.ClearColor(VisualizationParameters.ScreenColor.R / 255, VisualizationParameters.ScreenColor.G / 255, VisualizationParameters.ScreenColor.B / 255, VisualizationParameters.ScreenColor.A / 255)
If VisualizationParameters.AllowAlphaBlending Then
If VisualizationParameters.AllowLineSmoothing Then ControlGL.Enable(OpenGL.GL_LINE_SMOOTH) Else ControlGL.Disable(OpenGL.GL_LINE_SMOOTH)
Dim Origen As New EVector3
Dim Punto As EVector3 = VisualizationParameters.CameraPosition
Dim Orientacion As OrientationCoordinates = VisualizationParameters.CameraOrientation
Jan 23 at 12:17 PM
Edited Jan 23 at 2:36 PM
In your Initialized control method.. add these two lines at the end of it...
The 8 might be too high, try lowering it if needed.
Also, GL_SMOOTH only affects the surface of the polygons so it doesn't have that angle look from one polygon next to another. It has nothing to do with the quality of the picture.
EDIT UPDATE :
This is also fully supported extension for video cards that do not have native support for OpenGL 3.0 and newer.
Adding this info so you can have a direction to go in, especially when you get into shaders.