| Real-time rendering of rainy traffic scenes is an important requirement in the fields of car driving simulators and autonomous driving simulation test platforms.The road traffic scene has the characteristics of large scene scale,complex structure,rich details and many rendering objects,which has high requirements on the efficiency of scene processing and rendering.When rendering a rainy traffic scene,in order to obtain sufficient fidelity,it is necessary to consider various factors such as the light reflection effect of the ground with different degrees of wetness,the impact of the rainfall process on the light source,etc.,which is a challenge to the traditional rendering mode and the classic lighting model..This paper studies the real-time rendering problem of rainy traffic scenes.The specific work is as follows.Starting from the requirements of traffic scene rendering optimization and rainfall scene visual effects,this research designs a set of rendering solutions suitable for rainy traffic scenes.In order to solve the problem of real-time rendering efficiency caused by scene complexity,GPU computing power is used in the rendering optimization process,and the traditional CPUbased frustum culling process is decomposed into coarse-grained culling based on BVH on the CPU side and fine-grained culling on the GPU side.The feasibility and efficiency of the rendering optimization algorithm are simply verified by constructing a simple scene according to the characteristics of the traffic scene.In order to realize the simulation of various phenomena in rainy scenes,the key technologies involved in the rendering of rainy scenes are studied,and the reflection,glare phenomenon and the change of road surface materials are analyzed in principle,and each sub-process is connected with the rendering equation,and the Determine the data and execution dependencies between them,and design a rain scene visual effect rendering process based on group deferred shading.Finally,the rendering system is implemented based on Vulkan,the feasibility of the rendering scheme is verified,and the rendering of the rainy traffic scene is obtained.The results show that in the face of complex scenes such as traffic scenes,this solution can greatly shorten the culling time by using the parallel computing power of the GPU,greatly reduce the scene data handed over to the GPU for rendering processing,and effectively improve the rendering frame rate.At the same time,the rendering scheme can render a more realistic rainy traffic scene on the basis of ensuring real-time performance,and improve the realism of the driving simulator.The design of the rendering process in this scheme can also provide a feasible idea for similar application scenarios. |