On 26/02/2013 at 06:07, xxxxxxxx wrote:
I'm toying around with a tag-plugin which draws a simple polygon into the viewport. The polygon should be transparent which I set by using BaseDraw.SetTransparency(-235). It works, the polygon is transparent but has one major flaw: every polygon-object behind my polygon is not visible except for it's wireframe-lines (the world-grid is also visible).
def Draw(self, tag, op, bd, bh) : bd.SetMatrix_Matrix(None, c4d.Matrix()) bd.SetTransparency(-235) p = ( c4d.Vector(0,0,0), c4d.Vector(100,0,0), c4d.Vector(50,100,0) ) f = ( c4d.Vector(1,0,0), c4d.Vector(0,0,1), c4d.Vector(0,1,0) ) bd.DrawPolygon(p, f)
Is there some kind of workaround for this? The transparency works fine in my tool-plugins.