On 16/12/2013 at 04:05, xxxxxxxx wrote:
ok, i'm doing and object plugin.
Everything that i draw which is 2D, like DrawPoint2D and other objects that are drawn in screen space, are drawn behind/overlapped by the objects in the scene. I'm drawing in the c4d.DRAWPASS_OBJECT pass.
def Draw(self, op, drawpass, bd, bh) : if drawpass==c4d.DRAWPASS_HIGHLIGHTS: return c4d.DRAWRESULT_SKIP elif drawpass == c4d.DRAWPASS_OBJECT: bd.SetMatrix_Screen() posList = [Vector(500,500,500), Vector(480,480,500), Vector(470,470,500), Vector(460,460,500), Vector(450,450,500), Vector(440,440,500), Vector(430,430,500), Vector(420,420,500), Vector(410,410,500), Vector(400,400,500)] for point in posList: bd.DrawPoint2D(point) bd.SetMatrix_Matrix(None,bh.GetMg(),0)