I have a great code to share with u. The author is Micmoc, open source, but please give her credits if you want to use it directly.
Comments are Chinese, so I hope Google translate will help.
Here is the download link:
http://www.negdev.com/3dgs/demo/ItemBox_Micmoc.zip


3DGS Commercial A7/A8
Intel i7, 8GB DDR3, AMD 5870