may be getting gimbal lock.  Trying to set correct cubemapping coordinates
duplicated and modified Scene.draw() in Scene.render_to_cubemap() to add a second rotation of the cubemap camera, thereby achieving correct UV_texture coordinates when the camera is rotated.