layer 3d spatial to pyramid