From: Nathaniel T. <loc...@ya...> - 2007-07-07 23:42:13
|
I found the bug, in line 75, in the function: def draw_body(body): """Draw an ODE body. """ x,y,z = body.getPosition() R = body.getRotation() rot = [R[0], R[3], R[6], 0., R[1], R[4], R[7], 0., R[2], R[5], R[8], 0., x, y, z, 1.0] glPushMatrix() glMultMatrixd(rot) if body.shape=="box": sx,sy,sz = body.boxsize glScale(sx, sy, sz) glutSolidCube(1) glPopMatrix() There is a call to: glScale(sx,sy,sz) there is no glScale, but glScaled and glScalef, note the "d" and "f" at the end of the function name. The illegal function call cause the function to exit without calling glPopMatrix() then the call back _drawfunc() is called which in turn calls draw_body() which calls glPushMatrix() and the process repeats without glPopMatrix() every being called. Nathaniel ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC |