some surface and light map handling