Information processing methods and devices

By constructing the relationship between voxels and surface elements, a light map is created, which solves the problem of low efficiency in lighting effect processing in existing technologies and achieves efficient lighting calculation and high-quality image generation.

CN115294262BActive Publication Date: 2026-03-10ZHUHAI KINGSOFT ONLINE GAME TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-08
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Existing technologies for lighting effect processing suffer from low efficiency in real-time calculation and optimization, and have high performance requirements, making it difficult to meet the demands for high image quality.

Method used

By determining the voxel information of the region to be processed, a pixel sequence is constructed, and the correlation between the detector marker and the pixel is established. A lighting map is created using the region's light information, and lighting processing is performed to achieve real-time calculation and optimization of the lighting effect.

Benefits of technology

It improves the efficiency and accuracy of lighting calculations, generates high-quality visual effects, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115294262B_ABST
    Figure CN115294262B_ABST
Patent Text Reader

Abstract

This application provides an information processing method and apparatus, wherein the information processing method includes: determining voxel information corresponding to a region to be processed, and constructing a facet sequence based on the voxel information; establishing an association relationship between a detection identifier associated with the region to be processed and the facets contained in the facet sequence; creating a lighting map based on the regional light information corresponding to the region to be processed and the association relationship; and performing lighting processing on the region to be processed based on the lighting map to obtain a regional display screen corresponding to the region to be processed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to information processing methods and apparatus. Background Technology

[0002] With the development of computer technology, users have increasingly higher demands for the realism of visual effects in various scenarios, such as science fiction movie scenes, game scenes, or virtual reality scenes. More realistic visual effects can bring users a more authentic experience. Lighting technology is particularly important in improving visual effects. By simulating real lighting effects in the image to be rendered using lighting information, the lighting effects in the image can be made closer to real lighting, thereby improving image quality. While existing technologies can process lighting effects, real-time calculation and optimization have certain limitations and high performance requirements. Therefore, an effective solution is urgently needed to address these issues. Summary of the Invention

[0003] In view of this, embodiments of this application provide an information processing method to address the technical deficiencies existing in the prior art. Embodiments of this application also provide an information processing apparatus, a computing device, and a computer-readable storage medium.

[0004] According to a first aspect of the embodiments of this application, an information processing method is provided, including:

[0005] Determine the voxel information corresponding to the region to be processed, and construct a facet sequence based on the voxel information;

[0006] Establish the association between the detection identifier associated with the region to be processed and the face elements contained in the face element sequence;

[0007] A lighting map is created based on the regional light information corresponding to the region to be processed and the correlation relationship;

[0008] The area to be processed is illuminated according to the illumination map to obtain the area display screen corresponding to the area to be processed.

[0009] Optionally, determining the voxel information corresponding to the region to be processed includes:

[0010] Determine the region to be processed, and call the geometry shader to select the target region projection axis corresponding to the region to be processed;

[0011] The region attribute information associated with the region to be processed is determined based on the projection axis of the target region.

[0012] The region to be processed is voxelized according to the region attribute information to obtain the voxel information corresponding to the region to be processed.

[0013] Optionally, constructing the facet sequence based on the voxel information includes:

[0014] Based on the index relationship between voxels and face elements, the face element information corresponding to the voxel information is generated;

[0015] Based on the surface element information, a surface element sequence containing multiple surface elements is constructed.

[0016] Optionally, establishing the association between the detection identifier associated with the region to be processed and the face elements contained in the face element sequence includes:

[0017] Acceleration index information is determined based on the face element information, and the face element sequence is sparsified according to the acceleration index information to obtain the target face element sequence.

[0018] The detection identifier is added to the area to be processed, and the association between the detection identifier and the face elements contained in the target face element sequence is established based on the addition result.

[0019] Optionally, establishing the association between the detection identifier and the face elements contained in the target face element sequence based on the addition result includes:

[0020] Based on the addition results, determine the detection coordinate information corresponding to the detection identifier in the spatial coordinate system to which the area to be processed belongs;

[0021] The detection area corresponding to the detection identifier is determined based on the detection coordinate information, and the target surface element associated with the detection area is selected from the target surface element sequence.

[0022] Establish the association between the detection identifier and the target surface element.

[0023] Optionally, creating a lighting map based on the regional light information corresponding to the region to be processed and the correlation includes:

[0024] Determine the regional illumination information corresponding to the region to be processed, and calculate the light parameters of each surface element in the surface element sequence based on the regional illumination information;

[0025] Based on the light parameters of each facet in the facet sequence, a new lighting map for the facet is created;

[0026] Based on the aforementioned association and the re-lighting map of the face elements, the lighting map is created.

[0027] Optionally, creating the lighting map based on the association relationship and the re-lighting map of the surface elements includes:

[0028] Based on the association relationship and the re-illumination map of the surface element, the illumination information corresponding to the detection identifier is calculated;

[0029] An indirect illumination volume map corresponding to the area to be processed is created based on the illumination information, and this map is used as the illumination map.

[0030] Optionally, calculating the light parameters of each surface element in the surface element sequence based on the regional illumination information includes:

[0031] Read the initial light parameters of each facet in the facet sequence;

[0032] The initial light parameters of each facet in the facet sequence are updated based on the regional illumination information to obtain the light parameters of each facet in the facet sequence.

[0033] Optionally, the step of performing illumination processing on the area to be processed according to the illumination map to obtain the area display image corresponding to the area to be processed includes:

[0034] The illumination map is sampled according to a preset indirect light processing strategy to obtain target illumination information;

[0035] The target lighting information is mapped onto a virtual object in the area to be processed to obtain the display screen of the area corresponding to the area to be processed;

[0036] The virtual objects displayed in the area have lighting effects.

[0037] According to a second aspect of the embodiments of this application, an information processing apparatus is provided, comprising:

[0038] The determination module is configured to determine the voxel information corresponding to the region to be processed, and construct a facet sequence based on the voxel information;

[0039] The module is configured to establish the association between the detection identifier associated with the region to be processed and the face elements contained in the face element sequence;

[0040] The creation module is configured to create a lighting map based on the regional light information corresponding to the region to be processed and the correlation relationship.

[0041] The processing module is configured to perform illumination processing on the area to be processed according to the illumination map to obtain the area display screen corresponding to the area to be processed.

[0042] According to a third aspect of the embodiments of this application, a computing device is provided, comprising:

[0043] Memory and processor;

[0044] The memory is used to store computer-executable instructions, and the processor executes the computer-executable instructions to implement the steps of the information processing method.

[0045] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided that stores computer-executable instructions, which, when executed by a processor, implement the steps of the information processing method.

[0046] According to a fifth aspect of the present application, a chip is provided that stores a computer program, which, when executed by the chip, implements the steps of the information processing method.

[0047] The information processing method provided in this application, after determining the voxel information corresponding to the area to be processed, can construct a facet sequence based on the voxel information. Then, it establishes the association between the detector markers associated with the area to be processed and the facets contained in the facet sequence. Based on this association, the binding relationship between the detector markers and the facets contained in the area to be processed can be clarified. Then, using the regional light information corresponding to the area to be processed and the association relationship, a lighting map simulating lighting can be created. Finally, lighting processing is performed on the area to be processed based on the lighting map, thus achieving a lighting effect on the object in the area to be processed, used to generate the corresponding regional display screen. This method realizes global lighting based on voxel tracking of the region, enabling real-time generation of regional lighting effects and effectively improving image quality. Attached Figure Description

[0048] Figure 1 This is a flowchart of an information processing method provided in an embodiment of this application;

[0049] Figure 2 This is a flowchart illustrating an information processing method provided in one embodiment of this application;

[0050] Figure 3 This is a schematic diagram of the structure of an information processing device provided in an embodiment of this application;

[0051] Figure 4 This is a structural block diagram of a computing device provided in one embodiment of this application. Detailed Implementation

[0052] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.

[0053] The terminology used in one or more embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the scope of one or more embodiments of this application. The singular forms “a,” “the,” and “the” used in one or more embodiments of this application and in the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” used in one or more embodiments of this application refers to and includes any or all possible combinations of one or more associated listed items.

[0054] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this application, and similarly, second may also be referred to as first.

[0055] First, the terminology used in one or more embodiments of the present invention will be explained.

[0056] G-Buffer (Geometric Buffer) is a shading technique in Video Post that uses object masks based on image filtering and layer events. Users can obtain dedicated image channels by tagging object IDs or material IDs.

[0057] Rasterization is the process of converting vertex data into fragments. It transforms a graph into an image composed of individual raster cells, with each element corresponding to a pixel in the frame buffer.

[0058] Ambient Cube: In standard lighting models, light entering a camera is categorized into four types: self-illumination, specular reflection, diffuse reflection, and ambient light. Ambient light is suitable for describing indirect lighting received by an object. Ambient Cubemaps can be used to create high-quality cube maps of lighting environments.

[0059] This application provides an information processing method. This application also relates to an information processing apparatus, a computing device, and a computer-readable storage medium, which will be described in detail in the following embodiments.

[0060] Figure 1 A flowchart of an information processing method according to an embodiment of this application is shown, which specifically includes the following steps:

[0061] Step S102: Determine the voxel information corresponding to the region to be processed, and construct a facet sequence based on the voxel information.

[0062] The information processing method provided in this application is used to realize real-time calculation of indirect lighting, improving computational efficiency while ensuring lighting effects. It can be applied to film scenes, such as lighting processing of film footage; virtual reality scenes, such as lighting processing of VR display footage; or game scenes, such as lighting processing of game footage.

[0063] This embodiment uses the application of information processing methods in a game scene as an example to illustrate the information processing method. For real-time calculation of indirect lighting in other scenes, please refer to the same or corresponding description in this embodiment. This embodiment will not elaborate further here.

[0064] Specifically, the "area to be processed" refers to the area that needs to be displayed in the current scene, where the lighting effects have not yet been processed. Correspondingly, "voxel information" refers to the voxel information obtained after voxelizing the area to be processed; it can be understood as a voxelized 3D texture of the area to be processed. The voxel information includes the surface information of the virtual object in the area to be processed and the internal attribute information of the model, which can be used for subsequent lighting calculations. Correspondingly, "face sequence" refers to a sequence composed of facets corresponding to voxels. A voxel is a volume element; a solid containing voxels can be represented through stereo rendering or by extracting polygonal isosurfaces from a given threshold contour. It is the smallest unit of digital data in three-dimensional space segmentation, used to represent a three-dimensional object. One voxel corresponds to six faces, and each face is a facet. A virtual object in the scene to be processed contains n voxels.

[0065] Based on this, in order to improve the lighting effect, we can first determine the voxel information corresponding to the area to be processed, so as to determine all the voxels of the virtual object contained in the area to be processed. In this process, considering that voxels can contain the surface information and internal attributes of the virtual object (model), we can determine the face element corresponding to each voxel based on the voxel information, and integrate all face elements to obtain the face element sequence corresponding to the area to be processed. This facilitates the subsequent calculation of indirect lighting based on this, thereby improving the image effect.

[0066] Furthermore, in determining the voxel information corresponding to the region to be processed, considering that the virtual objects contained in the region to be processed are composed of different models, in order to accurately determine the voxel information corresponding to the region to be processed and construct the facet sequence accordingly, the relevant information can be recorded and processed according to the optimal projection axis. In this embodiment, the specific implementation method is as follows:

[0067] The region to be processed is determined, and the geometry shader is invoked to select the target region projection axis corresponding to the region to be processed; the region attribute information associated with the region to be processed is determined according to the target region projection axis; the region to be processed is voxelized according to the region attribute information to obtain the voxel information corresponding to the region to be processed.

[0068] Specifically, the target region projection axis refers to the optimal region projection axis determined by the geometry shader in the spatial coordinate system during the processing stage. Voxelization based on the target region projection axis can improve voxelization accuracy. Correspondingly, the region attribute information refers to the attribute information corresponding to the region to be processed, including but not limited to albedo information and normal information. Albedo information represents the ratio of the light flow A1 scattered in each direction by the illuminated portion of the region to the light flow A2 incident on the region. Normal information represents the information corresponding to the normals of the mesh corresponding to the region to be processed.

[0069] Based on this, after determining the region to be processed for lighting calculation, the geometry shader can be called to select the target region projection axis in the spatial coordinate system. Then, the normal information and albedo information associated with the region to be processed can be determined according to the target region projection axis, forming the region attribute information associated with the region to be processed. At this time, in the rasterization stage in the GPU, the region to be processed is voxelized according to the region attribute information, and the voxel information corresponding to the region to be processed can be obtained to facilitate subsequent lighting calculation.

[0070] In practical applications, the voxelization process involves calling the geometry shader to select the optimal projection axis for the region to be processed, and recording the albedo and normal information of the region to be processed based on the selected optimal projection axis. Then, the specified region to be processed in the game scene is voxelized during the GPU's rasterization stage to obtain voxel information, i.e., the voxelized 3D texture corresponding to the region to be processed, which is used for subsequent lighting calculations.

[0071] In summary, by determining the region attribute information corresponding to the area to be processed based on the optimal projection axis, and then performing voxelization based on this information, the accuracy of voxelization can be effectively improved, thus laying the foundation for subsequent lighting calculations and ensuring the efficiency of lighting calculations.

[0072] Furthermore, after obtaining the voxel information corresponding to the region to be processed, subsequent lighting calculations need to be performed using polygons as the basic unit. Therefore, polygonization processing is required based on the voxel information of the region to be processed. In this embodiment, the specific implementation method is as follows:

[0073] Based on the index relationship between voxels and face elements, face element information corresponding to the voxel information is generated; face element sequence containing multiple face elements is constructed based on the face element information.

[0074] Specifically, the index relationship refers to the binding relationship between voxels and face elements. It is used to clarify the binding relationship between voxels and face elements. The number of voxels contained in the region to be processed can be determined through voxel information. Since the ratio between voxels and face elements is fixed, face element information can be calculated based on voxel information. That is, face element information represents the total number of face elements contained in the region to be processed.

[0075] Therefore, in order to traverse all voxels contained in the region to be processed and complete the illumination calculation at the surface level, we can first determine the index relationship between voxels and surfaces, then generate surface information corresponding to voxel information, use surface information to represent the total number of surfaces contained in the region to be processed, and finally construct a surface sequence containing multiple surfaces based on the surface information, so as to facilitate subsequent illumination calculations based on this.

[0076] In practical applications, the process of performing facetization using voxel information corresponding to the region to be processed actually involves constructing facet structure data, i.e., facet information, based on voxel information. This data is used to characterize the number of facets contained in the region to be processed, so that subsequent lighting calculations can be performed on this basis.

[0077] For example, in game J, the current goal is to show the player a scene where a game character is drinking water, with the surrounding environment being a house where the character is inside and there's a water glass on a table. To achieve more realistic lighting effects, the area to be processed is first defined within the current scene. Then, the geometry shader is called to select the optimal projection axis for this area as the Y-axis. Based on the optimal Y-axis, the albedo and normal information for the area to be processed are determined. During the rasterization stage in the GPU, objects within this area, such as the table, water glass, and clock, are voxelized to obtain the voxel information for the area. Based on this voxel information, the area contains n voxels. And based on the index relationship between voxels and face elements, the face element sequence corresponding to the area contains 6n face elements to facilitate subsequent lighting calculations.

[0078] In summary, by establishing the binding relationship between voxels and facets, a facet sequence containing multiple facets can be created. This facilitates subsequent lighting calculations based on facet granularity, effectively improving computational accuracy and efficiency. This results in higher-quality visuals and an enhanced user experience.

[0079] Step S104: Establish the association between the detection identifier associated with the region to be processed and the face elements contained in the face element sequence.

[0080] Specifically, after determining the face element sequence of the area to be processed, further considering that the face element sequence contains a large number of face elements and that different face elements have different degrees of influence on illumination, in order to improve the illumination effect, at least one detection marker can be added to the area to be processed. Then, based on the positional relationship between the detection marker and each face element, the association relationship between the detection marker and the face element can be established, which can be used for subsequent illumination calculation based on the association relationship.

[0081] Specifically, the probe identifier refers to the probe added to the area to be processed, used to associate the face elements within the area. Considering that subsequent lighting calculations will be based on these probes, it is necessary to establish the association between probes and face elements to clearly define all face elements visible within the range of each probe. Therefore, when adding probes to the area to be processed, a set number of probes can be added depending on the size of the area, and the area covered by each probe can be set according to actual needs; for example, on a PC, where the computing performance is relatively high, one probe can be controlled to associate with n face elements, while on a mobile device, where the computing performance is lower than on a PC, one probe can be controlled to associate with m face elements, where n > m. This allows for setting different numbers of probes and the number of face elements associated with each probe for different hardware devices, thereby improving the utilization of computing resources.

[0082] In practical applications, during the probe addition stage in the region to be processed, if a set number of probes are added, it is necessary to determine the associated surface elements based on the range of each probe to establish the relationship between each probe and surface element. Finally, the subsequent lighting calculations can be completed using the relationships between all probes and surface elements. For ease of description, this embodiment uses the lighting calculation process based on the relationship between any single probe and surface element as an example to illustrate the information processing method.

[0083] Furthermore, in the stage of establishing the association between the detection marker and the surface element, considering that the area to be processed contains a large number of surface elements and not all surface elements will have lighting effects, in order to reduce resource consumption and improve lighting calculation efficiency, after obtaining the surface element sequence, it can be sparsified, and then the association can be established according to the processing result. In this embodiment, the specific implementation method is as shown in steps S1042 to S1044.

[0084] Step S1042: Determine acceleration index information based on the face element information, and perform sparsification processing on the face element sequence according to the acceleration index information to obtain the target face element sequence;

[0085] Step S1044: Add the detection identifier to the area to be processed, and establish the association between the detection identifier and the face elements contained in the target face element sequence based on the addition result.

[0086] Specifically, the accelerated indexing information refers to information that accelerates sparsity processing. It is used to retrieve and remove useless face elements in the face element sequence, and to form the target face element sequence from the remaining face elements. Here, useless face elements are face elements in the area to be processed that are not affected by light, such as water in a cup or soil at the bottom of a vase. Correspondingly, the target face element sequence refers to the sequence of face elements obtained after sparsifying the useless face elements in the area to be processed.

[0087] Therefore, to reduce the computational resources consumed by useless face elements, acceleration index information can be determined first based on the face element information. This index is then used as a basis for sparsification of the face element sequence, removing useless face elements. The remaining face elements are then used to form the target face element sequence. Furthermore, to establish accurate binding relationships, probe markers can be added to the region to be processed. Based on the added markers, a relationship is established between the probe markers and the face elements in the target face element sequence, facilitating subsequent lighting calculations based on this relationship.

[0088] Furthermore, considering that a voxel has six facets, and these six facets correspond to six directions in space, there will be situations where light shines from the back of a facet as well as from the front. The effect of front illumination will cause occlusion, while the back will not. Therefore, in order to perform accurate lighting calculations, lighting direction information can be recorded on each facet in the target facet sequence to improve the lighting effect during the lighting calculation stage.

[0089] In summary, by using sparsification of the face element sequence, the impact of useless face elements can be effectively reduced, thereby reducing useless information in the area to be processed. This facilitates subsequent illumination calculations by combining face elements affected by illumination, thus improving the utilization rate of computing resources.

[0090] In practical applications, when adding detector markers to the area to be processed, considering that the positions of the detector markers in the area to be processed are different, and different positions can be associated with different face elements, each detector marker will represent different lighting effects depending on the lighting conditions of the face element. Therefore, it is necessary to accurately establish the association between face elements and detector markers in order to support subsequent accurate lighting calculations. In this embodiment, the specific implementation method is as follows:

[0091] Based on the addition result, determine the detection coordinate information corresponding to the detection identifier in the spatial coordinate system to which the area to be processed belongs; determine the detection area corresponding to the detection identifier based on the detection coordinate information, and select the target surface element associated with the detection area in the target surface element sequence; establish the association relationship between the detection identifier and the target surface element.

[0092] Specifically, the spatial coordinate system refers to the world coordinate system corresponding to the space to be processed; correspondingly, the probe coordinate information refers to the coordinate information of the probe marker in the world coordinate system of the area to be processed, which is used to clarify the location of the probe marker so as to facilitate the retrieval of the surface cells associated with the probe marker in the area to be processed; correspondingly, the probe area refers to the area constructed with the probe coordinate information of the probe marker as the midpoint and according to the set radius, which is used to characterize the probe marker corresponding to the area so as to select the target surface cells associated with the area in the target surface cell sequence.

[0093] Based on this, after the detector markers are added to the area to be processed, since each detector marker is located in a different position, the spatial coordinate system to which the area to be processed belongs can be determined based on the addition result. Within this coordinate system, the detector coordinate information corresponding to the detector markers is determined, and a detection region corresponding to each detector marker is constructed based on this coordinate information. The detection region is less than or equal to the size of the area to be processed. Then, target elements belonging to the detection region are selected from the target element sequence, and the association between the target elements and the detector markers is established. This process is repeated until all detector markers and their associated elements are associated, after which subsequent illumination calculations can be performed.

[0094] In practical applications, when adding probe markers (probes) to the area to be processed, the surface elements in the surrounding space can be retrieved based on the world coordinate information of each probe in the world coordinate system to determine the surface elements in the area corresponding to the probe. The surface element IDs visible within the range of each probe are recorded according to the retrieval results. This is used to clarify the relationship between the surface elements contained in the area to be processed and each probe. After the illumination map of the surface elements is calculated, the illumination information of the probes can be generated to complete the illumination calculation of the area to be processed.

[0095] Following the previous example, after determining the 6n face elements corresponding to the region to be processed, we can perform sparsification on these 6n face elements. Based on the face element information corresponding to the region to be processed, we determine the useless face element information in the region to be processed, that is, we determine the face elements in the region to be processed that will not undergo lighting changes. We determine that the water in the cup is useless information, so we remove the face elements corresponding to the water from the 6n face elements and use the remaining face elements as the target face element sequence of the region to be processed.

[0096] Furthermore, L probes are added to the area to be processed, and the world coordinates of probe L1 in the world coordinate system of the area to be processed are determined as (x1, y1, z1), the world coordinates of probe L2 in the world coordinate system of the area to be processed are (x2, y2, z2)... and the world coordinates of probe Ln in the world coordinate system of the area to be processed are (xn, yn, zn). Then, based on the detection range corresponding to each probe, the face elements contained in the target face element sequence are searched to determine the IDs of all visible face elements within the detection range of probe L1 as {ID_M11; ID_M12...}; the IDs of all visible face elements within the detection range of probe L2 as {ID_M21; ID_M22...}... and the IDs of all visible face elements within the detection range of probe Ln as {ID_Mn1; ID_Mn2...}. At this point, the relationship between each probe and its associated face elements can be clearly defined, which facilitates the subsequent calculation of lighting effects based on this.

[0097] In summary, by establishing the association between the detector marker and the surface element based on the coordinates of the detector marker, all surface elements in the area to be processed can be bound to the detector marker of their respective detector area. This allows subsequent lighting calculations to be performed based on the detector marker, further improving the efficiency and accuracy of lighting calculations.

[0098] Step S106: Create a lighting map based on the regional light information corresponding to the area to be processed and the correlation relationship.

[0099] Specifically, after establishing the association between the detector marker and the face element, the face element bound to the detector marker can be clearly identified. Furthermore, considering that the lighting effect is the combined effect of the lighting influence on each face element, when performing lighting calculations, the regional lighting information of the area to be processed, i.e., the real-time lighting information of the area to be processed, can be determined first. Then, combining the association between the face element and the detector marker, a lighting map containing lighting information can be created to facilitate subsequent rendering of the lighting effect of the area to be processed according to the lighting map. Specifically, the regional lighting information refers to the real-time lighting information corresponding to the area to be processed, i.e., the light source information. The lighting map specifically refers to the map used to assign lighting effects to the virtual objects contained in the area to be processed, carrying the lighting information calculated based on the face element and regional lighting information.

[0100] Furthermore, during the creation of the lighting map, considering that the lighting effect is caused by the illumination of the light source and the occlusion of the surface elements, it is necessary to first create a new lighting map for the surface elements to clarify the lighting effect on the surface elements, and then construct the lighting map based on this, so as to ensure the quality of the lighting effect. In this embodiment, the specific implementation method is as shown in steps S1062 to S1066.

[0101] Step S1062: Determine the regional illumination information corresponding to the region to be processed, and calculate the light parameters of each surface element in the surface element sequence based on the regional illumination information.

[0102] Specifically, the light parameters refer to the parameters of each surface element after being affected by illumination, used to determine the illumination effect of the surface element in the current illumination environment. Based on this, after determining the regional illumination information corresponding to the area to be processed, in order to improve the calculation of the illumination effect, the light parameters of each surface element in the surface element sequence can be calculated based on the regional illumination information.

[0103] Furthermore, calculating the light parameters based on the area illumination information can be understood as illuminating the surface element with its color, and the parameters after illumination are the light parameters of the surface element. In this embodiment, the specific implementation method is as follows:

[0104] Read the initial light parameters of each facet in the facet sequence; update the initial light parameters of each facet in the facet sequence according to the regional illumination information to obtain the light parameters of each facet in the facet sequence.

[0105] Specifically, the initial light parameters refer to the default light parameters corresponding to each surface element, which are not illuminated by a light source and have not changed. Correspondingly, updating the initial light parameters refers to updating the default light parameters according to the illumination effect of the regional illumination information.

[0106] Therefore, in order to improve the quality of lighting effects, we can first read the initial light parameters of each facet in the facet sequence, and then update the initial light parameters of each facet in the facet sequence according to the regional lighting information. This is used to calculate the parameters of each facet after being affected by lighting. Based on the update results, we can obtain the light parameters of each facet, which will facilitate the creation of the lighting map based on the light parameters in the future.

[0107] In summary, by updating the initial lighting parameters of each surface element based on the regional lighting information, the accuracy of lighting calculation can be effectively improved, thereby ensuring that the region to be processed is given a higher quality lighting effect during the lighting calculation stage.

[0108] Step S1064: Create a new illumination map for each surface element based on the light parameters of each surface element in the surface element sequence.

[0109] Specifically, after determining the lighting parameters of each facet as described above, further, since each virtual object in the area to be processed is composed of voxels, and each voxel is composed of multiple facets, by integrating the lighting parameters of all facets, a closely arranged facet relighting map can be obtained based on the integration result. Here, the facet relighting map refers to a Texture 2D map, on which all facets are concentrated, and is used to create the lighting map subsequently.

[0110] In practical applications, when creating a re-illuminated map of facets, the real-time light information from the camera corresponding to the area to be processed is read, and the influence of each light source on each facet is calculated in combination with the facet sequence. The light parameters corresponding to each facet are obtained based on the calculation results. By integrating the light parameters, a tightly arranged re-illuminated map of facets can be obtained, which facilitates the subsequent creation of the illumination map.

[0111] Step S1066: Create the lighting map based on the association relationship and the re-lighting map of the surface elements.

[0112] Specifically, after obtaining the re-illuminated surface image, further considering that the illumination effect on the surface elements cannot be integrated into the illumination effect of the area to be processed based solely on the surface element granularity, it is necessary to map the re-illuminated surface image to the detector markers based on the correlation relationships. This is used to construct the illumination image based on the detector markers. In this embodiment, the specific implementation method is as follows:

[0113] Based on the association relationship and the re-illumination map of the surface element, calculate the illumination information corresponding to the detection identifier; create an indirect illumination volume map corresponding to the area to be processed based on the illumination information, as the illumination map.

[0114] Specifically, the illumination information refers to the illumination information corresponding to the detection marker. It is obtained by integrating the light parameters of the surface elements associated with the detection marker. Correspondingly, the indirect illumination volume map refers to the illumination map generated by integrating the illumination information of all detection markers. It belongs to the Texture 3D map. The illumination map that integrates the illumination information has a smoother and more delicate illumination effect.

[0115] Based on this, after obtaining the re-illuminated surface map, in order to reflect the overall lighting effect in the area to be processed, it is necessary to switch from the surface dimension to the region dimension. Therefore, the lighting information corresponding to the detection marker can be calculated based on the correlation and the re-illuminated surface map carrying the light parameters, which is used to clarify the lighting information of each detection marker. Finally, an indirect lighting volume map corresponding to the area to be processed can be created based on the lighting information, which can be used as a lighting map to subsequently give the area to be processed lighting effects.

[0116] In practical applications, when the detection markers respond to changes in the illumination of the surface elements, they actually link the surface element ID data with the surface element re-illumination map through the detection markers. This is used to calculate the illumination information corresponding to each detection marker by combining the link relationship and the surface element re-illumination map. Then, by integrating the illumination information corresponding to all detection markers, an indirect illumination volume map can be obtained, which can be used to apply illumination effects to the area to be processed.

[0117] Following the previous example, after clarifying the relationship between each probe and its associated facets, we can first determine the real-time light information on the camera in the area to be processed. Then, we can use the real-time light information to update the initial light parameters of each facet, that is, by illuminating the facets with light sources and other parameters, to obtain the light parameters corresponding to each facet. At this point, we can determine that each facet is affected by the light source. Then, we can integrate the light parameters corresponding to the facets to obtain a closely arranged and associated re-illuminated facet map of the remaining facets to be processed.

[0118] Furthermore, after obtaining the re-illuminated surface image, by combining the visible surface IDs within the detection range corresponding to probes L1 to Ln, the illumination information on each probe can be calculated by integrating the light parameters corresponding to the surface elements associated with the probes. By integrating the illumination information corresponding to probes L1 to Ln, the indirect illumination volume map corresponding to the area to be processed can be obtained, which can be used for subsequent application of illumination effects.

[0119] In practice, since the indirect lighting volume map is obtained by combining the light parameters of all facets, each facet belongs to a unit on the map. Once the facet ID associated with the probe is determined, the position of the facet can be determined through the map. Then, its corresponding light parameters can be read to create the lighting information corresponding to the probe. In this way, the indirect lighting volume map can be created for subsequent rendering.

[0120] In summary, by calculating the lighting map corresponding to the detection marker, the lighting effect can be mapped onto each object in the area to be processed, which facilitates the accurate generation of an image containing the lighting effect during subsequent rendering.

[0121] Step S108: Perform illumination processing on the area to be processed according to the illumination map to obtain the area display screen corresponding to the area to be processed.

[0122] Specifically, after obtaining the lighting map corresponding to the area to be processed, it means that the lighting effect calculation for the area to be processed has been completed. In order to present the lighting effect to the user, the area to be processed can be lit according to the lighting map, so as to obtain the area display screen corresponding to the area to be processed based on the processing result.

[0123] Specifically, lighting processing refers to applying the lighting calculation results to the area to be processed, so that the area to be processed can present lighting effects; correspondingly, the area display screen refers to the screen that needs to be displayed to the user after the lighting effects are applied to the area to be processed.

[0124] Furthermore, to improve the quality of lighting effects when creating the area display screen, the specific implementation method is as follows:

[0125] The illumination map is sampled according to a preset indirect light processing strategy to obtain target illumination information; the target illumination information is mapped onto virtual objects in the area to be processed to obtain the area display screen corresponding to the area to be processed; wherein the virtual objects contained in the area display screen have illumination effects.

[0126] Specifically, the indirect lighting processing strategy refers to a strategy of sampling the lighting map to extract lighting information that can be applied to virtual objects in the area to be processed, i.e., target lighting information. Correspondingly, the virtual objects in the area to be processed refer to objects in the area to be processed that can have lighting effects, such as metal objects in the game screen.

[0127] Based on this, after obtaining the lighting map, it can be sampled according to a preset indirect lighting processing strategy to obtain target lighting information that can be applied to virtual objects in the area to be processed. Then, the target lighting information is mapped onto the virtual objects in the area to be processed to obtain the area display screen corresponding to the area to be processed; wherein, the virtual objects contained in the area display screen have lighting effects. These lighting effects include, but are not limited to, light reflection, diffuse reflection, halo effects, etc.

[0128] In practical applications, when considering indirect lighting volume maps in the lighting calculation stage, the calculated indirect lighting volume map is actually sampled in the Gbuffer stage using the Ambient Cube method. Based on the sampling results, the lighting information is reflected on scene objects to obtain the area display screen corresponding to the area to be processed, and then displayed to the user.

[0129] Following the previous example, after obtaining the indirect lighting volume map, the calculated indirect lighting volume map can be sampled in the Gbuffer stage using the Ambient Cube method. Based on the sampling results, the lighting information corresponding to objects such as cups, tables, and chairs can be obtained. The lighting information can then be mapped onto each object according to the corresponding relationship to obtain a picture that matches the real lighting effect, which can then be displayed to the player.

[0130] The information processing method provided in this application, after determining the voxel information corresponding to the area to be processed, can construct a facet sequence based on the voxel information. Then, it establishes the association between the detector markers associated with the area to be processed and the facets contained in the facet sequence. Based on this association, the binding relationship between the detector markers and the facets contained in the area to be processed can be clarified. Then, using the regional light information corresponding to the area to be processed and the association relationship, a lighting map simulating lighting can be created. Finally, lighting processing is performed on the area to be processed based on the lighting map, thus achieving a lighting effect on the object in the area to be processed, used to generate the corresponding regional display screen. This method realizes global lighting based on voxel tracking of the region, enabling real-time generation of regional lighting effects and effectively improving image quality.

[0131] The following is in conjunction with the appendix Figure 2 Taking the application of the information processing method provided in this application in a game scenario as an example, the information processing method will be further explained. Among other things, Figure 2 This application provides a flowchart of an information processing method according to an embodiment, which includes the following steps:

[0132] Step S202: Determine the area to be processed and call the geometry shader to select the target area projection axis corresponding to the area to be processed.

[0133] Specifically, after determining the area to be processed, the geometry shader can be called to process the mesh triangles corresponding to the area to be processed. This processing is to project and copy the data based on the six positive directions of the spatial rectangular coordinate system, so as to determine the projection axis of the target area based on the projection copying result.

[0134] Step S204: Determine the region attribute information associated with the region to be processed based on the projection axis of the target region.

[0135] Step S206: Voxelize the region to be processed according to the region attribute information to obtain the voxel information corresponding to the region to be processed.

[0136] Step S208: Generate the surface information corresponding to the voxel information based on the index relationship between voxels and surface elements.

[0137] In other words, during the voxelization process, the results of projecting the mesh triangles corresponding to the area to be processed in orthogonal directions are used to determine the information that can be rasterized. Based on this information, the number and orientation of each voxel are determined, i.e., the surface information corresponding to the voxel information, for subsequent processing.

[0138] Step S210: Construct a face sequence containing multiple face elements based on the face element information.

[0139] In practical applications, the voxelization process involves calling the geometry shader to select the optimal projection axis for the region to be processed, and recording the albedo and normal information of the region to be processed based on the selected optimal projection axis. Then, the specified region to be processed in the game scene is voxelized during the GPU's rasterization stage to obtain voxel information, i.e., the voxelized 3D texture corresponding to the region to be processed, which is used for subsequent lighting calculations.

[0140] Furthermore, the process of performing surface-based processing using the voxel information corresponding to the region to be processed actually involves constructing surface structure data, i.e., surface information, based on the voxel information. This data is used to characterize the number of surfaces contained in the region to be processed, so that subsequent lighting calculations can be performed on this basis.

[0141] Step S212: Determine the acceleration index information based on the surface element information, and perform sparsification processing on the surface element sequence according to the acceleration index information to obtain the target surface element sequence.

[0142] Step S214: Add a detection marker to the area to be processed, and determine the detection coordinate information corresponding to the detection marker in the spatial coordinate system to which the area to be processed belongs based on the addition result.

[0143] In practical applications, when adding probe markers (probes) to the area to be processed, the surface elements in the surrounding space can be retrieved based on the world coordinate information of each probe in the world coordinate system to determine the surface elements in the area corresponding to the probe. The surface element IDs visible within the range of each probe are recorded according to the retrieval results. This is used to clarify the relationship between the surface elements contained in the area to be processed and each probe. After the illumination map of the surface elements is calculated, the illumination information of the probes can be generated to complete the illumination calculation of the area to be processed.

[0144] Step S216: Determine the detection area corresponding to the detection identifier based on the detection coordinate information, and select the target surface element associated with the detection area from the target surface element sequence.

[0145] Step S218: Establish the association between the detection marker and the target surface element.

[0146] Step S220: Read the initial light parameters of each surface element in the target surface element sequence.

[0147] Step S222: Update the initial light parameters of each facet in the target facet sequence according to the regional illumination information to obtain the light parameters of each facet in the target facet sequence.

[0148] Step S224: Create a new illumination map for each surface element based on the light parameters of each surface element in the target surface element sequence.

[0149] In practical applications, when creating a re-illuminated map of facets, the real-time light information from the camera corresponding to the area to be processed is read, and the influence of each light source on each facet is calculated in combination with the facet sequence. The light parameters corresponding to each facet are obtained based on the calculation results. By integrating the light parameters, a tightly arranged re-illuminated map of facets can be obtained, which facilitates the subsequent creation of the illumination map.

[0150] Step S226: Calculate the illumination information corresponding to the detection marker based on the association relationship and the re-illumination map of the surface element.

[0151] Step S228: Create an indirect illumination volume map corresponding to the area to be processed based on the illumination information, as an illumination map.

[0152] In practical applications, when the detection markers respond to changes in the illumination of the surface elements, they actually link the surface element ID data with the surface element re-illumination map through the detection markers. This is used to calculate the illumination information corresponding to each detection marker by combining the link relationship and the surface element re-illumination map. Then, by integrating the illumination information corresponding to all detection markers, an indirect illumination volume map can be obtained, which can be used to apply illumination effects to the area to be processed.

[0153] Step S230: Sample the illumination map according to the preset indirect light processing strategy to obtain target illumination information.

[0154] Step S232: Map the target lighting information onto virtual objects in the area to be processed to obtain the area display screen corresponding to the area to be processed. The virtual objects contained in the area display screen have lighting effects.

[0155] In practical applications, when considering indirect lighting volume maps in the lighting calculation stage, the calculated indirect lighting volume maps are actually sampled using the Ambient Cube method in the Gbuffer stage. The lighting information is then reflected on scene objects based on the sampling results, thereby obtaining the area display screen corresponding to the area to be processed, and then displayed to the user.

[0156] In summary, after determining the voxel information corresponding to the region to be processed, a facet sequence can be constructed based on the voxel information. Then, the association between the detector markers associated with the region to be processed and the facets contained in the facet sequence can be established. Based on this association, the binding relationship between the detector markers and the facets contained within the region to be processed can be clarified. Then, using the regional light information and association relationships corresponding to the region to be processed, a lighting map simulating lighting can be created. Finally, lighting processing is applied to the region to be processed based on the lighting map, thus achieving lighting effects for objects in the region to be processed, used to generate the corresponding regional display image. This achieves global lighting based on voxel tracking of the region, enabling real-time generation of regional lighting effects and effectively improving image quality.

[0157] Corresponding to the above method embodiments, this application also provides information processing apparatus embodiments. Figure 3 A schematic diagram of the structure of an information processing apparatus according to an embodiment of this application is shown. Figure 3 As shown, the device includes:

[0158] The determination module 302 is configured to determine the voxel information corresponding to the region to be processed, and construct a facet sequence based on the voxel information;

[0159] The module 304 is configured to establish the association between the detection identifier associated with the region to be processed and the face elements contained in the face element sequence;

[0160] The creation module 306 is configured to create a lighting map based on the regional light information corresponding to the region to be processed and the association relationship.

[0161] The processing module 308 is configured to perform illumination processing on the area to be processed according to the illumination map to obtain the area display screen corresponding to the area to be processed.

[0162] In an optional embodiment, the determining module 302 is further configured to:

[0163] The region to be processed is determined, and the geometry shader is invoked to select the target region projection axis corresponding to the region to be processed; the region attribute information associated with the region to be processed is determined according to the target region projection axis; the region to be processed is voxelized according to the region attribute information to obtain the voxel information corresponding to the region to be processed.

[0164] In an optional embodiment, the determining module 302 is further configured to:

[0165] Based on the index relationship between voxels and face elements, face element information corresponding to the voxel information is generated; face element sequence containing multiple face elements is constructed based on the face element information.

[0166] In an optional embodiment, the establishment module 304 is further configured to:

[0167] Acceleration index information is determined based on the face element information, and the face element sequence is sparsified according to the acceleration index information to obtain the target face element sequence; the detection identifier is added to the area to be processed, and the association between the detection identifier and the face elements contained in the target face element sequence is established based on the addition result.

[0168] In an optional embodiment, the establishment module 304 is further configured to:

[0169] Based on the addition result, determine the detection coordinate information corresponding to the detection identifier in the spatial coordinate system to which the area to be processed belongs; determine the detection area corresponding to the detection identifier based on the detection coordinate information, and select the target surface element associated with the detection area in the target surface element sequence; establish the association relationship between the detection identifier and the target surface element.

[0170] In an optional embodiment, the creation module 306 is further configured to:

[0171] Determine the regional illumination information corresponding to the region to be processed, and calculate the light parameters of each facet in the facet sequence based on the regional illumination information; create a facet re-illumination map based on the light parameters of each facet in the facet sequence; create the illumination map based on the association relationship and the facet re-illumination map.

[0172] In an optional embodiment, the creation module 306 is further configured to:

[0173] Based on the association relationship and the re-illumination map of the surface element, calculate the illumination information corresponding to the detection identifier; create an indirect illumination volume map corresponding to the area to be processed based on the illumination information, as the illumination map.

[0174] In an optional embodiment, the creation module 306 is further configured to:

[0175] Read the initial light parameters of each facet in the facet sequence; update the initial light parameters of each facet in the facet sequence according to the regional illumination information to obtain the light parameters of each facet in the facet sequence.

[0176] In an optional embodiment, the processing module 308 is further configured to:

[0177] The illumination map is sampled according to a preset indirect light processing strategy to obtain target illumination information; the target illumination information is mapped onto virtual objects in the area to be processed to obtain the area display screen corresponding to the area to be processed; wherein the virtual objects contained in the area display screen have illumination effects.

[0178] The information processing apparatus provided in this application, after determining the voxel information corresponding to the area to be processed, can construct a facet sequence based on the voxel information. Then, it establishes the association between the detection markers associated with the area to be processed and the facets contained in the facet sequence. Based on this association, the binding relationship between the detection markers and the facets contained in the area to be processed can be clarified. Then, using the regional light information corresponding to the area to be processed and the association relationship, a lighting map simulating lighting can be created. Finally, lighting processing is performed on the area to be processed based on the lighting map, thereby achieving a lighting effect on the object in the area to be processed, used to generate the corresponding regional display screen. This realizes global lighting based on voxel tracking of the area, enabling real-time generation of regional lighting effects and effectively improving image quality.

[0179] The above is an illustrative scheme of an information processing device according to this embodiment. It should be noted that the technical solution of this information processing device and the technical solution of the aforementioned information processing method belong to the same concept. Details not described in detail in the technical solution of the information processing device can be found in the description of the technical solution of the aforementioned information processing method. Furthermore, the components in the device embodiment should be understood as functional modules necessary to implement each step of the program flow or each step of the method; these functional modules are not actual functional divisions or separations. A device claim defined by such a set of functional modules should be understood as a functional module architecture that primarily implements the solution through the computer program described in the specification, and not as a physical device that primarily implements the solution through hardware.

[0180] Figure 4 A structural block diagram of a computing device 400 according to an embodiment of this application is shown. The components of the computing device 400 include, but are not limited to, a memory 410 and a processor 420. The processor 420 is connected to the memory 410 via a bus 430, and a database 450 is used to store data.

[0181] The computing device 400 also includes an access device 440, which enables the computing device 400 to communicate via one or more networks 460. Examples of these networks include a Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device 440 may include one or more of any type of wired or wireless network interface (e.g., a Network Interface Card (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) interface, a Wi-MAX interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.

[0182] In one embodiment of this application, the aforementioned components of the computing device 400 and Figure 4 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 4 The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.

[0183] The computing device 400 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 400 can also be a mobile or stationary server.

[0184] The processor 420 is used to execute computer-executable instructions of the information processing method.

[0185] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the information processing method described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the information processing method described above.

[0186] One embodiment of this application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are used for an information processing method.

[0187] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the information processing method described above belong to the same concept. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the information processing method described above.

[0188] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in the computer-readable medium may be appropriately added to or subtracted according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media may not include electrical carrier signals and telecommunication signals.

[0189] One embodiment of this application also provides a chip storing a computer program, which, when executed by the chip, implements the steps of the information processing method. It should be noted that, for the foregoing method embodiments, for the sake of simplicity, they are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application. In the above embodiments, the descriptions of each embodiment have different focuses; parts not described in detail in a certain embodiment can be referred to the relevant descriptions of other embodiments.

[0190] The preferred embodiments disclosed above are merely illustrative of this application. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this application. These embodiments are selected and specifically described in this application to better explain the principles and practical applications of this application, thereby enabling those skilled in the art to better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.

Claims

1. An information processing method characterized by comprising: The method comprises the following steps: determining the voxel information corresponding to the to-be-processed region, and constructing a bin sequence according to the voxel information; establishing an association relationship between the probe identifier associated with the to-be-processed region and the bin included in the bin sequence; creating a light map according to the regional light information corresponding to the to-be-processed region and the association relationship; wherein the creation of the light map according to the regional light information corresponding to the to-be-processed region and the association relationship comprises: determining the regional light information corresponding to the to-be-processed region, and calculating the light parameter of each bin in the bin sequence according to the regional light information; creating a bin re-illumination map according to the light parameter of each bin in the bin sequence, wherein the bin re-illumination map refers to a Texture 2D map; and creating the light map according to the association relationship and the bin re-illumination map; performing illumination processing on the to-be-processed region according to the light map to obtain a regional display picture corresponding to the to-be-processed region.

2. The method of claim 1, wherein, The determination of the voxel information corresponding to the to-be-processed region comprises: determining the to-be-processed region, and calling a geometry shader to select a target region projection axis corresponding to the to-be-processed region; determining the regional attribute information associated with the to-be-processed region according to the target region projection axis; performing voxelization processing on the to-be-processed region according to the regional attribute information to obtain the voxel information corresponding to the to-be-processed region.

3. The method of claim 1, wherein, The construction of the bin sequence according to the voxel information comprises: generating bin information corresponding to the voxel information according to the index relationship between the voxel and the bin; constructing the bin sequence containing multiple bins based on the bin information.

4. The method of claim 3, wherein, The establishment of the association relationship between the probe identifier associated with the to-be-processed region and the bin included in the bin sequence comprises: determining acceleration index information according to the bin information, and performing sparsification processing on the bin sequence according to the acceleration index information to obtain a target bin sequence; adding the probe identifier in the to-be-processed region, and establishing an association relationship between the probe identifier and the bin included in the target bin sequence according to the addition result.

5. The method of claim 4, wherein, The establishment of the association relationship between the probe identifier and the bin included in the target bin sequence according to the addition result comprises: determining the probe coordinate information corresponding to the probe identifier in the space coordinate system to which the to-be-processed region belongs according to the addition result; determining the probe region corresponding to the probe identifier according to the probe coordinate information, and selecting a target bin associated with the probe region in the target bin sequence; establishing the association relationship between the probe identifier and the target bin.

6. The method of claim 1, wherein, The creation of the light map according to the association relationship and the bin re-illumination map comprises: calculating the light information corresponding to the probe identifier according to the association relationship and the bin re-illumination map; creating an indirect light volume map corresponding to the to-be-processed region according to the light information as the light map.

7. The method of claim 1, wherein, The calculation of the light parameter of each bin in the bin sequence according to the regional light information comprises: reading the initial light parameter of each bin in the bin sequence; According to the region light information, the initial light parameter of each face element in the face element sequence is updated, and a light parameter of each face element in the face element sequence is obtained.

8. The method of claim 1, wherein, The light processing of the to-be-processed region according to the light map is performed, and a region display picture corresponding to the to-be-processed region is obtained. The light map is sampled according to a preset indirect light processing strategy, and target light information is obtained. The target light information is mapped to a virtual object in the to-be-processed region, and the region display picture corresponding to the to-be-processed region is obtained. The virtual object in the region display picture has a light effect.

9. An information processing apparatus, characterized by comprising: Comprising: A determination module is configured to determine voxel information corresponding to a to-be-processed region, and construct a face element sequence according to the voxel information; An establishment module is configured to establish an association relationship between a detection identifier associated with the to-be-processed region and a face element included in the face element sequence; A creation module is configured to create a light map according to region light information corresponding to the to-be-processed region and the association relationship; The creation module is further configured to determine the region light information corresponding to the to-be-processed region, and calculate a light parameter of each face element in the face element sequence according to the region light information; create a face element re-light map according to the light parameter of each face element in the face element sequence, wherein the face element re-light map refers to a Texture 2D map; and create the light map according to the association relationship and the face element re-light map; A processing module is configured to perform light processing on the to-be-processed region according to the light map, and obtain a region display picture corresponding to the to-be-processed region.

10. A computing device, comprising: Comprising: A memory and a processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions to realize the steps of the method in any one of claims 1 to 8.

11. A computer-readable storage medium storing computer instructions, wherein, The instructions are executed by the processor to realize the steps of the method in any one of claims 1 to 8.

12. A computer program product, characterised in that, Comprising computer instructions, which are executed by the processor to realize the steps of the method in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Rendering method, device and equipment for illumination information in game scene

    CN113034656A