3d_viewer fix translation and rotation issues (patch from Mario Luzeiro)