Scene sort and obstacle handling