Learning Internal Representations of 3D Transformations from 2D Projected Inputs