The invention discloses a real-time dynamic rendering method based on multi-layer
ray tracing and cache
collaboration, and relates to the technical field of three-dimensional rendering of an energy
station, and the method comprises the steps: converting a scene grid of the energy
station into a voxelized grid, generating a global distance field, and generating grid surface data at the same time; a mixed
ray tracing mode including
software ray tracing and hardware ray tracing is combined to process static and dynamic objects respectively. Through a mixed ray tracing mode, the advantages of
software ray tracing and hardware ray tracing are combined, illumination changes in a dynamic scene can be processed in real time, the
software ray tracing utilizes a global distance field to quickly respond to intersection query of rays and the scene, the method is suitable for complex static scenes, and the real-time performance of the scene is improved. According to hardware ray tracing, high-precision reflection and shadow of a dynamic object are processed through the
hardware acceleration capacity of an RTX display card, the real-time performance and dynamic performance of rendering are improved, and the requirement of an energy field
station scene for real-time dynamic rendering is met.