def init(): global scene global rt global throbber lA = 0.8 lD = 1 lS = 1 glClearColor(0.3, 0.3, 0.3, 0.3) glEnable(GL_DEPTH_TEST) glShadeModel(GL_SMOOTH) glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, 1) glLightfv(GL_LIGHT0, GL_POSITION, [4, 4, 4, 1]) glLightfv(GL_LIGHT0, GL_AMBIENT, [lA, lA, lA, 1]) glLightfv(GL_LIGHT0, GL_DIFFUSE, [lD, lD, lD, 1]) glLightfv(GL_LIGHT0, GL_SPECULAR, [lS, lS, lS, 1]) glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, [0.2, 0.2, 0.2, 1]) glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, [0.2, 0.2, 0.7, 1]) glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, [0.5, 0.5, 0.5, 1]) glMaterialf(GL_FRONT_AND_BACK, GL_SHININESS, 50) rt = BEE.RenderTarget() rt.create(*renderSize) throbber = Throbber() scene = toRender() scene.init(*renderSize)