def setRotation(self, dx, dy, dz): print "dx, dy, dz =", dx, dy, dz #print "Now I want to construct a rotation....", dx,dy,dz rotQ = pygl_coord.Quat(dx,dy,dz,0) self.quat.postMult(rotQ)
def initializeGL(self): opengl.glClearColor(0.0,0.0,0.0,1.0) #self.origin = [0,0,0] self.origin = [0, 0, -15] self.scale = 1.0 self.quat = pygl_coord.Quat(0.0,0.0,0.0,0)