try: import psyco psyco.full() except ImportError: print 'No psyco? Sad panda mode initiated.' from PyScene.Backends.OpenGL import Cube, Scene, Transform from PyScene import Color from pyglet import clock scene = Scene(640, 480) colors = [] colors.append(Color(1.0, 0.0, 0.0)) colors.append(Color(0.0, 1.0, 0.0)) colors.append(Color(0.0, 0.0, 1.0)) colors.append(Color(1.0, 1.0, 0.0)) colors.append(Color(1.0, 0.0, 1.0)) colors.append(Color(0.0, 1.0, 1.0)) cube = Cube(colors=colors) locs = [ (-1.75, 0.0, -5.0), (1.75, 0.0, -5.0), (0.0, 1.5, -5.0), (0.0, -1.5, -5.0), (0.0, 0.0, -6.5), ] neg = 1.0 for loc in locs: trans = Transform( trans=loc, rot=(0.0, neg*30.0, neg*15.0, neg*15.0) ) trans.append(cube) scene.append(trans) neg *= -1.0 while True: scene.children.rotate(clock.tick() * 120.0) scene.render()