initial 3d transform implementation