In the medical image visualization, ray-casting algorithm is a common algorithm. However, traditional ray-casting algorithm is not efficient for real-time volume rendering because of the excessive calculation and the high redundancy .In this paper, the resampling process by skipping the empty voxel is improved according to the medical image characteristics existing concentrated empty voxel. Experimental results demonstrate that the improved algorithm can accelerate the rendering speed and maintenance the quality of rendering image simultaneously.