The application provides a
ray casting volume rendering method for an InterfaceGrid grid model, relates to the field of
ray casting volume rendering, and comprises the following steps: converting the InterfaceGrid grid model from display storage into an implicit
storage structure of an InterfaceGridBlock, transmitting the InterfaceGrid grid model to a GPU, and performing partial storage; using a vertex
shader to perform coordinate transformation on vertex coordinates of a texture according to an implicit storage texture set, so as to obtain transformed vertex coordinates; transmitting the transformed vertex coordinates to a fragment
shader, combining the implicit storage texture set, and obtaining implicit storage information corresponding to a current fragment by using a texture sampling technology; performing
volume rendering of the InterfaceGrid grid model according to the implicit storage information corresponding to the current fragment, and finding out attributes of the InterfaceGrid grid model at a current sampling point; updating the color and transparency of the sampling point, synthesizing by using a lighting model, and obtaining accumulated volume rendering color; and outputting to a screen, so as to complete
volume visualization of the InterfaceGrid model. The application is used to solve the problem of insufficient expression capability of a traditional three-dimensional geological model.