Create 3D geometry using masks, project textures onto distorted planes, export the geometry to other 3D apps that communicate with After Effects, this is one of those plugins that re-define what's possible inside of After Effects.
Can by purchased over at aescripts.com.