As a global lighting method,ray tracing can simulate real lighting phenomena such as shadows,reflections,refractions and scattering,thus providing images with a high degree of realism.In order to improve the human-computer interaction experience of animated games,this research firstly optimises the traditional ray tracing algorithm,proposes the Metropolis ray tracing algorithm based on the mutation strategy,and completes the rendering of animated images of the game using the algorithm.In addition,a virtual human-computer interaction system was built by combining the Kinect V2 sensor.The results show that the animated images have good rendering performance in the proposed algorithm,with average gradient values and peak signal-to-noise ratio values up to 22.54 and 27.81,and mutual information quantity values and structural similarity index values up to 1.19 and 0.56.In addition,the inter-action accuracy values of the virtual system using Kinect V2 sensor are all above 0.90.In conclusion,the virtual interaction system designed in this research has better interaction performance and can improve the user's gaming experience to a greater extent.
关键词
光线追踪/虚拟仿真/人机交互/手势/控制/Unity/3D
Key words
ray tracing/virtual simulation/human-computer interaction/gesture/control/unity 3D