add density adaptation
Merge branch 'master' of https://github.com/changyou/anthPack