From: daid303 Date: Fri, 5 Oct 2012 20:26:40 +0000 (+0200) Subject: Make the 3D platfrom transparent. X-Git-Tag: 13.03~267 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=036e16f76c30a32b17c415ae0aaf71b4f33764ae;p=cura.git Make the 3D platfrom transparent. --- diff --git a/Cura/gui/opengl.py b/Cura/gui/opengl.py index f8077ab8..a1fb9754 100644 --- a/Cura/gui/opengl.py +++ b/Cura/gui/opengl.py @@ -55,7 +55,9 @@ def DrawMachine(machineSize): glEnable(GL_LIGHTING) glTranslate(100,120,-285) glLightfv(GL_LIGHT0, GL_DIFFUSE, [0.8,0.8,0.8]) - glLightfv(GL_LIGHT0, GL_AMBIENT, [0.3,0.3,0.3]) + glLightfv(GL_LIGHT0, GL_AMBIENT, [0.5,0.5,0.5]) + glEnable(GL_BLEND) + glBlendFunc(GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR) global platformMesh if platformMesh == None: