Tech Support > Computers & Technology > Games > Outerlining of the graph and anti-anliasing for smooth surface.
Outerlining of the graph and anti-anliasing for smooth surface.
Posted by ashwani on March 30th, 2006


hello everyone !

I am doing some openGL programming with vb.Net. i'm the beginner in
this field. Basically i'm working on graph charts.
i got able to make graph and render it. i'm showing these
graph(2Dpiechart, 2Dbar graph) on the basis of some value.The problem
is that i'm getting these graph with rough surface.
i'm not getting able to make it smooth or to anti-anliasing it's
surface.
what code i'm using for this i'm pasting it downside.

' Enable OpenGL features
glEnable(GL_DEPTH_TEST) ' this test cuts invisible objects
glEnable(GL_COLOR_MATERIAL) ' allow to use colors
glEnable(GL_NORMALIZE) ' allow normalization of normals

glEnable(GL_BLEND)
glEnable(GL_LINE_SMOOTH)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE)

glPolygonMode(GL_FRONT_AND_BACK, GL_FILL)
glCullFace(GL_BACK)
glDisable(GL_CULL_FACE)

i want to make boarder of all pieces of pie chart or 2D bar's
boarderline with black color.
and fill those pieces with different colors.
can any one show me a graph with boarder line .

PLZ, help me to learn new thing.

Looking for forworded mail .

Thanks.
Ashwani


Similar Posts