I once wrote my own little rendering program (similar to POV ray). So I kind of got the hang of it.
My lightmapping would be very similar to classical raytracing.
I just cant figure out how Unreal organizes, repacks and atlases the UVs for the encoded lightmaps and how the encoding works in detail.
Also I dont understand how lightmass accesses scene geometry, etc…