hi, i’m drawing a graph and i’m using LineSegs for drawing edges.
i have this code:
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
base.win.setClearColor(VBase4(1,1,1,1))
render.setTransparency(TransparencyAttrib.MAlpha)
....
seg = LineSegs()
for e in edges:
alpha = getSomeAlpha()
seg.setColor( VBase4(0,0,0,alpha) )
t0 = getVertex1(blabla)
t1 = getVertex2(blabla)
seg.moveTo( t0.getPos() )
seg.drawTo( t1.getPos() )
self.graphdraw = graphnode.attachNewNode( seg.create() )
the alpha is set as i want but there is no smooth, no anti aliasing.
some advice?