3d rotation using software