v1

used the original code, solved several problems caused by the graphics
card limit.