A method and apparatus for processing a graphic floodlight effect, and a storage medium

By acquiring the projection and bounding box information of the target component, and performing downsampling and specular condition filtering, the problem of computationally intensive Gaussian convolution is solved, and efficient processing of graphic floodlight effects is achieved.

CN117670651BActive Publication Date: 2026-05-19SHENZHEN TENCENT NETWORK INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN TENCENT NETWORK INFORMATION TECH CO LTD
Filing Date
2022-08-12
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

Existing technologies consume a lot of computational resources when processing graphic bloom effects, as the Gaussian convolution of the specular buffer consumes a lot of computational resources, resulting in low processing efficiency for complex multi-component rendering scenes.

Method used

By acquiring the projection information of the target component, the bounding box information is determined, and the color buffer is downsampled and specular conditionally filtered based on the bounding box information to obtain the specular buffer. Then, multiple downsampling and upsampling are superimposed to reduce the calculation range.

Benefits of technology

It improves the processing efficiency of graphic floodlight effects by selectively collecting and calculating highlight areas, thereby reducing the calculation range of floodlight effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117670651B_ABST
    Figure CN117670651B_ABST
Patent Text Reader

Abstract

The application discloses a processing method and device of a graphic spotlight effect and a storage medium. The method comprises the following steps: obtaining a target component to be rendered; projecting the target component, determining a component projection coordinate axis component range to obtain bounding box information; performing down-sampling based on the bounding box information, filtering high light sampling points in the down-sampling process to obtain a high light buffer; performing down-sampling and up-sampling based on the high light buffer, and superimposing the sampling graphics to obtain graphics corresponding to the target component and configured with the spotlight effect. Thus, a region-targeted spotlight effect processing process is realized, the high light region in the color buffer corresponding to the bounding box information is collected in a targeted manner, the calculation range of the spotlight effect is reduced, and the processing efficiency of the graphic spotlight effect is improved.
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 a method, apparatus, and storage medium for processing graphic floodlight effects. Background Technology

[0002] With the rapid development of computer technology, people have increasingly higher demands for the richness of graphics. In order to meet the diverse needs of graphics, various post-processing methods are used in the field of graphics rendering research and industry applications, among which blooming is one of the most commonly used methods.

[0003] Generally, the process of creating a flood effect involves rendering a color buffer from the model scene, pre-filtering the color buffer to obtain a highlight buffer, performing a Gaussian convolution on the highlight buffer, and finally overlaying the blurred highlight buffer with the original color buffer to output the flood effect graphic.

[0004] However, performing Gaussian convolution in the specular buffer consumes a lot of computational resources. For complex multi-component rendering scenes, it requires a lot of computational resources and time, affecting the processing efficiency of the graphics bloom effect. Summary of the Invention

[0005] In view of this, this application provides a method for processing graphic floodlight effects, which can effectively improve the processing efficiency of graphic floodlight effects.

[0006] The first aspect of this application provides a method for processing graphic floodlight effects, which can be applied to a system or program in a terminal device that includes graphic floodlight effect processing functions, specifically including:

[0007] Get the target component to be rendered;

[0008] The target component is projected onto the target interface to obtain component projection information, which includes the coordinate information of the target component on the target interface.

[0009] Determine the component range of the component projection information on each coordinate axis in the target interface to obtain bounding box information;

[0010] Downsampling is performed based on the color buffer corresponding to the bounding box information, and sampling points that meet the highlight conditions are filtered during the downsampling process to obtain the highlight buffer.

[0011] Based on the high-light buffer, multiple downsampling operations are performed sequentially to obtain a downsampling sequence;

[0012] The temporary buffer in the downsampling sequence is upsampled multiple times to restore the temporary buffer to the highlight buffer, and the temporary buffer corresponds to the upsampling sequence;

[0013] The images in the upsampled sequence and the images in the downsampled sequence are superimposed to obtain the image of the configuration floodlight effect corresponding to the target component.

[0014] Optionally, in some possible implementations of this application, the step of downsampling based on the color buffer corresponding to the bounding box information, and filtering sampling points that meet the specular conditions during the downsampling process to obtain the specular buffer, includes:

[0015] Obtain the projected vertices indicated by the bounding box information to determine the parameter vectors corresponding to the projected vertices in the target interface;

[0016] Determine the color buffer corresponding to the parameter vector;

[0017] The resolution of the color buffer is downsampled based on a preset ratio, and the pixel value corresponding to the sampling point in the color buffer is obtained during the downsampling process.

[0018] If the pixel value reaches the highlight threshold indicated by the highlight condition, the corresponding sampling point is filtered to obtain the highlight buffer.

[0019] Optionally, in some possible implementations of this application, the step of downsampling the resolution of the color buffer based on a preset ratio and obtaining the pixel value corresponding to the sampling point in the color buffer during the downsampling process includes:

[0020] The resolution of the color buffer is downsampled based on the preset ratio to determine the sampling buffer;

[0021] The sampling buffer is aligned with the coordinate axis corresponding to the color buffer to obtain the pixel value corresponding to the sampling point in the color buffer during the downsampling process;

[0022] Correspondingly, the images in the upsampled sequence and the images in the downsampled sequence are superimposed to obtain the image of the configuration floodlight effect corresponding to the target component, including:

[0023] The images in the upsampled sequence and the images in the downsampled sequence are restored to the resolution of the color buffer to obtain the restored sequence;

[0024] The highlight buffer in the restored sequence is adjusted to the position of the sampling buffer and superimposed to obtain the graphic of the configuration floodlight effect corresponding to the target component.

[0025] Optionally, in some possible implementations of this application, the method further includes:

[0026] Determine the proportion of the coordinate axis components of the highlight buffer to the corresponding coordinate axis;

[0027] If the percentage information is less than the percentage threshold, the preset percentage is adjusted so that the percentage information of the highlight buffer obtained according to the adjusted preset percentage reaches the percentage threshold.

[0028] Optionally, in some possible implementations of this application, obtaining the projected vertices indicated by the bounding box information to determine the parameter vectors corresponding to the projected vertices in the target interface includes:

[0029] Obtain the projected vertex indicated by the bounding box information;

[0030] Determine extended parameters in response to the input floodlight configuration information;

[0031] The projected vertex is expanded based on the expansion parameters to obtain the expanded vertex;

[0032] The parameter vector in the target interface is determined based on the extended vertices.

[0033] Optionally, in some possible implementations of this application, determining the extended parameters in response to the input floodlight configuration information includes:

[0034] Obtain the type information corresponding to the target component;

[0035] The type expansion factor is determined in response to the input floodlight configuration information;

[0036] The extension parameter corresponding to the type information is determined based on the type extension coefficient.

[0037] Optionally, in some possible implementations of this application, the projection of the target component onto the target interface to obtain component projection information includes:

[0038] Determine the bounding box of the target component in the first space;

[0039] Extract the vertex set information corresponding to the bounding box of the target component in the first space;

[0040] Based on the vertex coordinates in the vertex set information, the component projection information is obtained by projecting them into the second space corresponding to the target interface. The dimension of the second space is smaller than that of the first space.

[0041] Optionally, in some possible implementations of this application, determining the bounding box of the target component in the first space includes:

[0042] Obtain the effect description information corresponding to the target component;

[0043] The bounding box configuration information is invoked based on the effect description information;

[0044] The bounding box of the target component in the first space is determined based on the bounding box configuration information.

[0045] Optionally, in some possible implementations of this application, obtaining the target component to be rendered includes:

[0046] In response to the configuration operation of the target object in the configuration interface, determine the component type;

[0047] The target component is obtained by traversing the set of rendering components based on the component type.

[0048] Optionally, in some possible implementations of this application, the method further includes:

[0049] In response to the adjustment operation in the configuration interface, a debugging scenario is triggered in the target interface;

[0050] Based on the debugging scenario, the component bounding box and scene bounding box corresponding to each of the target components are displayed;

[0051] The overlap between the boundary of the scene bounding box and the component bounding box is detected to obtain overlap detection information;

[0052] Based on the overlap detection information, the parameters of the overlapping items contained in the component bounding box are adjusted.

[0053] Optionally, in some possible implementations of this application, the target component is a component in a target scene, the target scene including a first frame and a second frame, and the method further includes:

[0054] Obtain the first position information of the target component in the first frame, and the second position information of the target component in the second frame;

[0055] The first location information and the second location information are compared to obtain the offset parameter;

[0056] If the offset parameter is less than the offset threshold, the graphic corresponding to the target component with the configured floodlight effect is input into the frame buffer of the second frame.

[0057] Optionally, in some possible implementations of this application, comparing the first location information and the second location information to obtain the offset parameter includes:

[0058] Based on the first location information, the target component is projected onto the target interface to obtain the first bounding box information;

[0059] Based on the second location information, the target component is projected onto the target interface to obtain the second bounding box information;

[0060] The vertices indicated by the first bounding box information and the vertices indicated by the parameters of the second bounding box information are compared to obtain the offset parameters.

[0061] A second aspect of this application provides a processing apparatus for a graphic bloom effect, comprising: an acquisition unit for acquiring a target component to be rendered;

[0062] A projection unit is used to project the target component onto a target interface to obtain component projection information, the component projection information including the coordinate information of the target component on the target interface;

[0063] A determining unit is used to determine the component range of the component projection information of the component in the target interface for each coordinate axis, so as to obtain bounding box information;

[0064] The processing unit is used to downsample based on the color buffer corresponding to the bounding box information, and to filter the sampling points that meet the highlight conditions during the downsampling process to obtain the highlight buffer.

[0065] The processing unit is also configured to perform multiple downsampling operations based on the high-light buffer to obtain a downsampling sequence;

[0066] The processing unit is further configured to upsample the temporary buffer in the downsampling sequence multiple times to restore the temporary buffer to the highlight buffer, wherein the temporary buffer corresponds to the upsampling sequence;

[0067] The processing unit is further configured to overlay the images in the upsampled sequence and the images in the downsampled sequence to obtain an image with a configured floodlight effect corresponding to the target component.

[0068] Optionally, in some possible implementations of this application, the processing unit is specifically used to obtain the projection vertex indicated by the bounding box information in order to determine the parameter vector corresponding to the projection vertex in the target interface;

[0069] The processing unit is specifically used to determine the color buffer corresponding to the parameter vector;

[0070] The processing unit is specifically used to downsample the resolution of the color buffer based on a preset ratio, and to obtain the pixel value corresponding to the sampling point in the color buffer during the downsampling process.

[0071] The processing unit is specifically used to filter the corresponding sampling points to obtain the highlight buffer if the pixel value reaches the highlight threshold indicated by the highlight condition.

[0072] Optionally, in some possible implementations of this application, the processing unit is specifically used to downsample the resolution of the color buffer based on the preset ratio to determine the sampling buffer;

[0073] The processing unit is specifically used to align the sampling buffer according to the coordinate axis corresponding to the color buffer, so as to obtain the pixel value corresponding to the sampling point in the color buffer during the downsampling process;

[0074] The processing unit is specifically used to restore the graphics in the upsampled sequence and the graphics in the downsampled sequence to the resolution of the color buffer to obtain a restored sequence;

[0075] The processing unit is specifically used to adjust the highlight buffer in the restored sequence to the position of the sampling buffer and superimpose them to obtain a graphic of the configuration floodlight effect corresponding to the target component.

[0076] Optionally, in some possible implementations of this application, the processing unit is specifically used to determine the ratio information of the coordinate axis components of the highlight buffer to the corresponding coordinate axis;

[0077] The processing unit is specifically configured to adjust the preset ratio if the percentage information is less than the percentage threshold, so that the percentage information of the highlight buffer obtained according to the adjusted preset ratio reaches the percentage threshold.

[0078] Optionally, in some possible implementations of this application, the processing unit is specifically used to obtain the projected vertex indicated by the bounding box information;

[0079] The processing unit is specifically used to determine extended parameters in response to the input floodlight configuration information;

[0080] The processing unit is specifically used to expand the projected vertex based on the expansion parameters to obtain the expanded vertex;

[0081] The processing unit is specifically used to determine the parameter vector in the target interface based on the extended vertices.

[0082] Optionally, in some possible implementations of this application, the processing unit is specifically used to obtain type information corresponding to the target component;

[0083] The processing unit is specifically used to determine the type expansion coefficient in response to the input floodlight configuration information;

[0084] The processing unit is specifically used to determine the extension parameter corresponding to the type information based on the type extension coefficient.

[0085] Optionally, in some possible implementations of this application, the projection unit is specifically used to determine the bounding box of the target component in the first space;

[0086] The projection unit is specifically used to extract the vertex set information corresponding to the bounding box of the target component in the first space;

[0087] The projection unit is specifically used to project the vertex coordinates in the vertex set information into the second space corresponding to the target interface to obtain the component projection information. The dimension of the second space is smaller than that of the first space.

[0088] Optionally, in some possible implementations of this application, the projection unit is specifically used to obtain effect description information corresponding to the target component;

[0089] The projection unit is specifically used to call bounding box configuration information according to the effect description information;

[0090] The projection unit is specifically used to determine the bounding box of the target component in the first space based on the bounding box configuration information.

[0091] Optionally, in some possible implementations of this application, the acquisition unit is specifically used to determine the component type in response to the configuration operation of the target object in the configuration interface;

[0092] The acquisition unit is specifically used to traverse the set of rendering components based on the component type to obtain the target component.

[0093] Optionally, in some possible implementations of this application, the processing unit is specifically used to trigger a debugging scenario in the target interface in response to the adjustment operation in the configuration interface;

[0094] The processing unit is specifically used to display the component bounding box and scene bounding box corresponding to each of the target components based on the debugging scenario.

[0095] The processing unit is specifically used to detect the overlap between the boundary of the scene bounding box and the component bounding box, so as to obtain overlap detection information.

[0096] The processing unit is specifically used to adjust the parameters of the overlapping items contained in the component bounding box based on the overlap detection information.

[0097] Optionally, in some possible implementations of this application, the processing unit is specifically used to obtain the first position information of the target component in the first frame and the second position information of the target component in the second frame;

[0098] The processing unit is specifically used to compare the first position information and the second position information to obtain the offset parameter;

[0099] The processing unit is specifically used to input the graphic of the configuration floodlight effect corresponding to the target component into the frame buffer of the second frame if the offset parameter is less than the offset threshold.

[0100] Optionally, in some possible implementations of this application, the processing unit is specifically used to project the target component onto the target interface based on the first location information to obtain the first bounding box information;

[0101] The processing unit is specifically used to project the target component onto the target interface based on the second location information to obtain the second bounding box information;

[0102] The processing unit is specifically used to compare the vertices indicated by the first bounding box information and the vertices indicated by the parameters of the second bounding box information to obtain the offset parameters.

[0103] A third aspect of this application provides a computer device, comprising: a memory, a processor, and a bus system; the memory is used to store program code; the processor is used to execute the processing method for the graphic bloom effect described in the first aspect or any one of the first aspects according to the instructions in the program code.

[0104] A fourth aspect of this application provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the processing method for the graphic floodlight effect described in the first aspect or any one of the first aspects.

[0105] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the graphical bloom effect processing method provided in the first aspect or various optional implementations of the first aspect.

[0106] As can be seen from the above technical solutions, the embodiments of this application have the following advantages:

[0107] The process involves acquiring the target component to be rendered, projecting it onto the target interface to obtain component projection information, and determining the component range of each coordinate axis in the target interface to obtain bounding box information. Further, downsampling is performed based on the color buffer corresponding to the bounding box information, filtering sampling points that meet the specular conditions during downsampling to obtain a specular buffer. Then, multiple downsampling operations are performed based on the specular buffer to obtain a downsampling sequence. The temporary buffer in the downsampling sequence is then upsampled multiple times to restore the temporary buffer to a specular buffer, which corresponds to the upsampling sequence. Finally, the graphics in the upsampling sequence and the downsampling sequence are superimposed to obtain the graphics corresponding to the target component with the configured floodlight effect. This achieves a region-specific floodlight effect processing process. By specifically collecting the specular areas in the color buffer corresponding to the bounding box information, and since the specular areas are the main components requiring floodlight effects, the calculation range of the floodlight effect is reduced, improving the processing efficiency of the graphic floodlight effect. Attached Figure Description

[0108] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0109] Figure 1 Network architecture diagram for the system that processes graphic floodlight effects;

[0110] Figure 2 A flowchart illustrating the processing architecture of a graphic floodlight effect provided in this application embodiment;

[0111] Figure 3 A flowchart illustrating a method for processing graphic floodlight effects provided in an embodiment of this application;

[0112] Figure 4 A scene diagram illustrating a method for processing graphic floodlight effect provided in an embodiment of this application;

[0113] Figure 5 A scene diagram illustrating another method for processing graphic floodlight effect provided in an embodiment of this application;

[0114] Figure 6A scene diagram illustrating another method for processing graphic floodlight effect provided in an embodiment of this application;

[0115] Figure 7 A scene diagram illustrating another method for processing graphic floodlight effect provided in an embodiment of this application;

[0116] Figure 8 A scene diagram illustrating another method for processing graphic floodlight effect provided in an embodiment of this application;

[0117] Figure 9 A scene diagram illustrating another method for processing graphic floodlight effect provided in an embodiment of this application;

[0118] Figure 10 A flowchart illustrating another method for processing graphic floodlight effects provided in this application embodiment;

[0119] Figure 11 A scene diagram illustrating another method for processing graphic floodlight effect provided in an embodiment of this application;

[0120] Figure 12 A scene diagram illustrating another method for processing graphic floodlight effect provided in an embodiment of this application;

[0121] Figure 13 A scene diagram illustrating another method for processing graphic floodlight effect provided in an embodiment of this application;

[0122] Figure 14 A scene diagram illustrating another method for processing graphic floodlight effect provided in an embodiment of this application;

[0123] Figure 15 A schematic diagram of a processing device for a graphic floodlight effect provided in an embodiment of this application;

[0124] Figure 16 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application;

[0125] Figure 17 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation

[0126] This application provides a method and related apparatus for processing graphic floodlight effects, which can be applied to systems or programs in terminal devices that include graphic floodlight effect processing functions. The method involves acquiring a target component to be rendered; projecting the target component onto a target interface to obtain component projection information; determining the component range of each coordinate axis of the component projection information on the target interface to obtain bounding box information; further, downsampling based on the color buffer corresponding to the bounding box information, and filtering sampling points that meet the specular conditions during downsampling to obtain a specular buffer; then, performing multiple downsampling operations based on the specular buffer to obtain a downsampling sequence; and then upsampling multiple times on the temporary buffer in the downsampling sequence to restore the temporary buffer to a specular buffer, which corresponds to the upsampling sequence; finally, superimposing the graphics in the upsampling sequence and the graphics in the downsampling sequence to obtain a graphic with a configured floodlight effect corresponding to the target component. This enables a region-specific flood effect processing process. By selectively collecting highlight areas in the color buffer corresponding to the bounding box information, and since the highlight areas are the main subjects for which flood effects need to be configured, the calculation range of the flood effect is reduced, thus improving the processing efficiency of the graphic flood effect.

[0127] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “corresponding to,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0128] First, some terms that may appear in the embodiments of this application will be explained.

[0129] Rendering optimization: Many performance bottlenecks exist in graphics rendering. Identifying these bottlenecks and implementing targeted optimizations can improve program efficiency. Common optimization methods include model optimization, culling, multithreading, and caching.

[0130] Post-processing: A common process in graphics rendering, following the scene rendering stage, involves processing the color buffer in image space. Common post-processing steps include bloom correction, vignetting, anti-aliasing, and color correction.

[0131] Bloom: A post-processing effect that, after 3D rendering is complete, diffuses the bright parts of the highlights into the surrounding area in the 2D image space to simulate the halo effect that occurs when highlights are scattered in the atmosphere.

[0132] A graphics processing unit (GPU) is a dedicated chip used in modern personal computers, servers, mobile devices, game consoles, and other devices for graphics and image processing.

[0133] Pixel shader: A mandatory part of the GPU rendering pipeline. The program performs color calculations on the rasterized pixels according to the code, and outputs them to the frame buffer after testing, thus completing one rendering pipeline process.

[0134] It should be understood that the graphic bloom effect processing method provided in this application can be applied to systems or programs in terminal devices that include graphic bloom effect processing functions, such as graphics rendering applications. Specifically, the graphic bloom effect processing system can run in, for example,... Figure 1 In the network architecture shown, such as Figure 1 The diagram shows the network architecture of the graphics bloom effect processing system. As can be seen, the system can process graphics bloom effects from multiple information sources. Specifically, it calls the rendering component on the server side, determines the component's projection in screen space, extracts the highlight buffer, and performs upsampling and downsampling to obtain the bloom effect graphic, which is then sent to the terminal for display. This can be understood as... Figure 1 The diagram shows various terminal devices, which can be computer devices. In actual scenarios, more or fewer types of terminal devices may participate in the processing of the graphic bloom effect. The specific number and types depend on the actual scenario and are not limited here. Additionally, Figure 1 The image shows one server, but in real-world scenarios, multiple servers can be involved, with the specific number depending on the actual situation.

[0135] In this embodiment, the server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, smart voice interaction device, smart home appliance, in-vehicle terminal, etc., but is not limited to these. The terminal and server can be directly or indirectly connected via wired or wireless communication, and the terminal and server can be connected to form a blockchain network; this application does not impose any restrictions.

[0136] It is understood that the above-mentioned graphic flood effect processing system can run on personal mobile terminals, such as as a graphics rendering application, or it can run on a server, or it can run on a third-party device to provide graphic flood effect processing to obtain the processing result of the graphic flood effect of the information source. Specifically, the graphic flood effect processing system can run in the above-mentioned device as a program, or it can run as a system component in the above-mentioned device, or it can run as a cloud service program. This embodiment can be applied to cloud technology, autonomous driving and other scenarios. The specific operation mode depends on the actual scenario and is not limited here.

[0137] With the rapid development of computer technology, people have increasingly higher demands for the richness of graphics. In order to meet the diverse needs of graphics, various post-processing methods are used in the field of graphics rendering research and industry applications, among which blooming is one of the most commonly used methods.

[0138] Generally, the process of creating a flood effect involves rendering a color buffer from the model scene, pre-filtering the color buffer to obtain a highlight buffer, performing a Gaussian convolution on the highlight buffer, and finally overlaying the blurred highlight buffer with the original color buffer to output the flood effect graphic.

[0139] However, performing Gaussian convolution in the specular buffer consumes a lot of computational resources. For complex multi-component rendering scenes, it requires a lot of computational resources and time, affecting the processing efficiency of the graphics bloom effect.

[0140] To address the aforementioned problems, this application proposes a method for processing graphic floodlight effects, which is applied to... Figure 2 The flowchart shown illustrates the processing framework for graphic floodlight effects, such as... Figure 2The diagram shown is a flowchart of a graphical flood effect processing method provided in this application embodiment. By collecting the set of axis-aligned bounding box vertices of potential specular objects and converting them to screen space, the screen space bounding box is solved. When calculating the flood, only the bounding box and the surrounding area are rendered and calculated to obtain a graphic with a flood effect, which is then sent to the terminal for display.

[0141] It is understood that the method provided in this application can be a program written as processing logic in a hardware system, or a processing device for a graphic bloom effect, implemented in an integrated or external manner. As one implementation, the graphic bloom effect processing device acquires the target component to be rendered; then projects the target component onto the target interface to obtain component projection information. It determines the component range of each coordinate axis in the target interface to obtain bounding box information; further, it downsamples based on the color buffer corresponding to the bounding box information, filtering sampling points that meet the specular conditions during downsampling to obtain a specular buffer; then, it performs multiple downsampling operations based on the specular buffer to obtain a downsampling sequence; and it upsamples the temporary buffer in the downsampling sequence multiple times to restore the temporary buffer to a specular buffer, which corresponds to the upsampling sequence; finally, it superimposes the graphics in the upsampling sequence and the graphics in the downsampling sequence to obtain the graphics with the configured bloom effect corresponding to the target component. This enables a region-specific flood effect processing process. By selectively collecting highlight areas in the color buffer corresponding to the bounding box information, and since the highlight areas are the main subjects for which flood effects need to be configured, the calculation range of the flood effect is reduced, thus improving the processing efficiency of the graphic flood effect.

[0142] Based on the above process architecture, the following section will describe the method for processing graphic floodlight effects in this application. Please refer to [link / reference]. Figure 3 , Figure 3 The flowchart illustrates a method for processing graphic floodlight effects provided in this application embodiment. This management method can be executed by a terminal or a server, and this application embodiment includes at least the following steps:

[0143] 301. Obtain the target component to be rendered.

[0144] In this embodiment, the target component to be rendered can be a three-dimensional component, a two-dimensional component, or a composite component of other custom forms.

[0145] Specifically, the target component can be obtained by calling it from the virtual scene, such as Model 1 in the current game scene; the target component can also be obtained by input from the target object, such as a cube model input by relevant personnel. The specific input form depends on the actual scene.

[0146] In one possible scenario, obtaining the target component can be done in response to the configuration operation of the target object in the configuration interface, determining the component type, such as plant, animal, etc.; then, based on the component type, the set of rendering components is traversed to obtain the target component, that is, components of that component type are extracted together to improve the rendering efficiency of the graphics.

[0147] It is understandable that the target object can be a user, a terminal, or a functional entity with specific indicative identifiers; no limitation is made here.

[0148] 302. Project the target component onto the target interface to obtain component projection information.

[0149] In this embodiment, the component projection information includes the coordinate information of the target component on the target interface, which is an interface used to display the floodlight effect, such as a mobile phone screen, a smartwatch interface, etc.

[0150] It is understandable that, since the target component may be a graphic of different dimensions, the projection process may involve spatial dimension transformation. The following explanation uses the projection process from three-dimensional to two-dimensional space as an example. Specifically, for the process of projecting a target component onto a target interface to obtain component projection information, firstly, the bounding box of the target component in the first space (three-dimensional space) is determined; then, the vertex set information corresponding to the bounding box of the target component in the first space is extracted; and based on the vertex coordinates in the vertex set information, projection is performed in the second space (two-dimensional space) corresponding to the target interface to obtain component projection information. The second space has a smaller dimension than the first space, meaning this embodiment is applicable to various projection scenarios with dimensional differences.

[0151] Specifically, the process involves defining the bounding box of the target component in the first space (3D space) and then extracting the vertex set information corresponding to the bounding box of the target component in the first space. This means solving for the vertices of the bounding box of the rendering component in the world space coordinate system. For example, for a static model, its local coordinate system axis-aligned bounding box is B, the smallest vertex is B1(x1,y1,z1), and the largest vertex is B2(x2,y2,z2). When this model is placed in world space with a specific transformation, its model matrix M is taken. Then, the vertices of the bounding box of this rendering component in world space are:

[0152] v1=(x1,y1,z1,1)×M; v2=(x1,y1,z2,1)×M; v3=(x1,y2,z1,1)×M; v4=(x2,y1,z1,1)×M ; v5=(x2,y1,z2,1)×M; v6=(x2,y2,z1,1)×M; v7=(x1,y2,z2,1)×M; v8=(x2,y2,z2,1)×M

[0153] Optionally, since bounding boxes may have historical caches, meaning that bounding box determination may have been performed for target components with different effects, this can be invoked. Specifically, the effect description information corresponding to the target component is first obtained, such as models with metallic specular material, light sources, water surfaces, and special effects. Then, the bounding box configuration information is invoked based on the effect description information. Finally, the bounding box of the target component in the first space is determined based on the bounding box configuration information, thereby improving the configuration efficiency of the bounding box.

[0154] 303. Determine the component range of the component projection information on each coordinate axis in the target interface to obtain the bounding box information.

[0155] In this embodiment, the component range of the component projection information on each coordinate axis in the target interface, that is, the light diffusion range corresponding to the simulated flood effect, that is, the flood effect is a gradual light display process. By constraining the range of the flood effect through the bounding box information, the amount of calculation in the rendering process can be reduced.

[0156] Specifically, the process of determining bounding box information involves calculating the parameter vector representation of the bounding box. After obtaining the set of world-space bounding box vertices for all components, all vertices can be transformed by view projection (PV) to obtain their projected space coordinates.

[0157] v′=PV×v

[0158] Here, P is the projection transformation, which transforms the vertices of the view space into the projection space; V is the view transformation, which transforms the world space into the view space; PV is the combination of these two transformations.

[0159] Then, perspective division is performed to obtain the standardized equipment space coordinates v”:

[0160]

[0161] Here, the x and y components represent the horizontal and vertical coordinates relative to the screen. For all vertices, solving for the range of the x and y components yields the screen-space bounding box, with its minimum point being B3(x3, y3) and its maximum point being B4(x4, y4).

[0162]

[0163] Furthermore, since the floodlight range expands outwards, the minimum and maximum points can be extended outwards by an appropriate value. For ease of subsequent calculations, the bounding box parameter vector Para is solved as follows:

[0164]

[0165] Where B3 represents the minimum point indicated in the bounding box information, and B4 represents the maximum point indicated in the bounding box information, thus obtaining the parameter vector corresponding to the bounding box information.

[0166] 304. Downsampling is performed based on the color buffer corresponding to the bounding box information, and sampling points that meet the specular conditions are filtered during the downsampling process to obtain the specular buffer.

[0167] In this embodiment, the specular buffer is the area that needs to be processed for flooding, meaning that the flooding effect is rendered based on the specular buffer.

[0168] It is understandable that the floodlight filtering and downsampling processes are performed simultaneously. This is because if a distributed execution method of filtering first and then downsampling is adopted, the filtering part needs to occupy a buffer for graphics processing, which generates parallel processing threads and consumes too many resources. Therefore, this embodiment adopts a pre-filtering process during downsampling.

[0169] Specifically, for the process of filtering to obtain the specular buffer, the projected vertices indicated by the bounding box information can be obtained first to determine the parameter vectors corresponding to the projected vertices in the target interface; and the color buffer corresponding to the parameter vectors can be determined; then the parameter vector Para is passed to the pixel shader for downsampling and pre-filtering, that is, the resolution of the color buffer is downsampled based on a preset ratio, and the pixel values ​​corresponding to the sampling points in the color buffer are obtained during the downsampling process; if the pixel value reaches the specular threshold indicated by the specular condition, the corresponding sampling points are filtered to obtain the specular buffer, for example, sampling points with pixel values ​​of 0.8 are filtered into the specular buffer.

[0170] Understandably, the setting of highlight conditions can be either pixels whose pixel values ​​reach the highlight threshold or pixels within a specified range of pixel values; the specific condition setting depends on the actual scene.

[0171] In one possible scenario, the process involves downsampling the resolution of the color buffer based on a preset ratio and obtaining the pixel values ​​corresponding to the sampled points in the color buffer during the downsampling process, such as... Figure 4 As shown, Figure 4This is a scene diagram illustrating a method for processing graphic floodlight effects provided in an embodiment of this application. The left side of the diagram represents a color buffer, and the right side represents a highlight buffer at a quarter resolution (preset ratio). This is to perform data comparison at low resolution, reducing the amount of data processing. Further, during rendering, the relationship between the fragment coordinates `pos` and the `para` parameter is determined. Fragments within this range are filtered using a downsampling function on the corresponding area of ​​the color buffer. Specifically, in the highlight buffer, the relationship between the `pos` coordinate and the `para` parameter for each fragment (sampling point pixel) is determined, as shown in the following formula:

[0172]

[0173] In this function, down() is the downsampling function, pre() is the pre-filtering function, pos is the coordinates of the sampling point, and para is the parameter vector.

[0174] It is understandable that the determination of the sampling point pixel is obtained through the color buffer, for example, for a scene with a one-quarter downsampling. Since the size of the specular buffer is only one-quarter of the size of the color buffer, the coordinate pos needs to be magnified by two times (i.e., 2*pos.xy) before querying during rendering, and the query range is the range corresponding to the component projection information, i.e., pos.xy≤Para.xy+Para.zw and pos.xy≥Para.xy.

[0175] Correspondingly, in the process of highlight superposition, such as Figure 5 As shown, Figure 5 This is a scene diagram illustrating another method for processing graphic floodlight effect provided in this application embodiment; that is, restoring and superimposing multiple upsampled and downsampled graphics, which is the reverse operation process of step 304.

[0176] Understandable, Figure 4 and Figure 5 The shaded part is the projection of the target component. This shaded part contains the area that needs floodlight (pixel value reaches 0.8), while the bounding box information corresponds to the bounding box, which is a constraint on the floodlight range, that is, to ensure that the floodlight effect is derived in this area. Thus, after determining the floodlight range, upsampling and downsampling are performed in the area, and a gradient floodlight effect is produced by superimposing samples of different resolutions.

[0177] In another possible scenario, the amount of data computation can be further reduced by aligning the coordinates of the shaded part within the bounding box. This is because if it is aligned to the lower left corner, only the relationship between pos and para.zw needs to be compared, reducing the amount of data comparison. However, if it is not aligned to the lower left corner, during rendering, the fragment needs to be compared to see if it is greater than the xy of the para region and less than para.xy + para.zw.

[0178] Specifically, for the axis-aligned sampling process, the resolution of the color buffer is first downsampled based on a preset ratio to determine the sampling buffer. Then, the sampling buffer is aligned according to the coordinate axis corresponding to the color buffer to obtain the pixel value corresponding to the sampling point in the color buffer during the downsampling process. If the pixel value reaches the highlight threshold indicated by the highlight condition, the corresponding sampling point is filtered to obtain the highlight buffer. Since the highlight buffer is determined after displacement during the axis alignment process, position restoration is required during the subsequent superposition of sampling sequences, which will be explained in later embodiments.

[0179] In another possible scenario, the process of determining the parameter vector corresponding to the projected vertex in the target interface can be based on parameter extension of the projected components. That is, firstly, the projected vertex indicated by the bounding box information is obtained; then, in response to the input flood configuration information, the extension parameters are determined; and the projected vertex is extended based on the extension parameters to obtain the extended vertex; and then the parameter vector in the target interface is determined based on the extended vertex, thereby realizing the dynamic configuration of the flood effect range.

[0180] Furthermore, the expansion factor can be set specifically based on the type of the target component. For example, for a component whose target component is a light, its floodlight effect needs to be highlighted, so the expansion factor is larger; while for a component whose target component is a fruit, the expansion factor is smaller. Specifically, first, the type information corresponding to the target component is obtained; then, in response to the input floodlight configuration information, the type expansion factor is determined; and then, based on the type expansion factor, the expansion parameters corresponding to the type information are determined, thereby improving the adaptability of the floodlight effect range.

[0181] This embodiment collects the areas in the buffer that require floodlight and colors these areas individually, skipping areas without highlights, thereby narrowing the calculation range of floodlight and further reducing overhead.

[0182] 305. Perform multiple downsampling operations based on the highlight buffer to obtain the downsampling sequence.

[0183] In this embodiment, the process of multiple downsampling is a continuation of the downsampling in step 304. For example, if the downsampling includes the operation sequence 1-5, then step 304 integrates the pre-filtering operation in sampling operation 1, so that sampling operations 2-5 continue to be executed. Correspondingly, for the upsampling restoration process, one needs to be added to the number of downsampling in step 305, so that the downsampling sequence corresponds to the upsampling sequence.

[0184] Specifically, specular downsampling only takes effect when uv.x is less than or equal to Para.z and uv.y is less than or equal to Para.w; other ranges return a color of 0. During downsampling and upsampling, calculations are performed back and forth across multiple buffers. uv.x and uv.y represent the coordinates of each pixel during the calculation.

[0185] In one possible scenario, regarding the downsampling and upsampling processes, such as Figure 6 As shown, Figure 6 This is a scene diagram illustrating another method for processing graphic floodlight effect provided in this application embodiment; G0-G3 in the figure are the graphics in the downsampling sequence. Specifically, the color buffer is pre-filtered into a quarter-size highlight buffer, and then the highlight buffer is downsampled several times to obtain increasingly smaller temporary buffers. Then, it is upsampled back to the original resolution size buffer, thereby superimposing a simulated gradient floodlight effect.

[0186] 306. Upsample the temporary buffer in the downsampled sequence multiple times to restore the temporary buffer to the highlight buffer.

[0187] In this embodiment, the temporary buffer corresponds to the upsampling sequence, which is the resolution restoration process of the downsampling sequence G0-G3 in step 305, thereby simulating a gradual floodlight effect.

[0188] Specifically, the downsampling and upsampling process can involve pre-filtering the color buffer into a quarter-sized highlight buffer, then downsampling the highlight buffer several times to obtain increasingly smaller temporary buffers, and finally upsampling it back into a buffer of the original resolution size, which is then superimposed on the original image. This method significantly reduces computational cost compared to Gaussian convolution and can achieve a bloom effect on the image.

[0189] 307. Overlay the images in the upsampled sequence and the images in the downsampled sequence to obtain the image of the configuration floodlight effect corresponding to the target component.

[0190] In this embodiment, superimposing the images in the upsampled sequence and the images in the downsampled sequence is the highlight superposition process at different resolutions. Highlight superposition is the reverse calculation process of step 304, that is, by configuring the resolution hierarchy, the image of the configuration floodlight effect corresponding to the target component is simulated.

[0191] Specifically, such as Figure 7 As shown, Figure 7 This is a scene diagram illustrating another method for processing graphic floodlight effects provided in this application embodiment; the diagram shows that after the floodlight effect processing of this embodiment, the component on the left has a floodlight effect around it.

[0192] Furthermore, step 304 outlines the axis alignment process during downsampling filtering, which will be explained below. This involves downsampling the color buffer's resolution based on a preset ratio and obtaining the corresponding pixel values ​​of the sampling points within the color buffer during the downsampling process. First, the color buffer's resolution is downsampled based on the preset ratio to determine the sampling buffer. Then, the sampling buffer is aligned according to the coordinate axes corresponding to the color buffer to obtain the corresponding pixel values ​​of the sampling points within the color buffer during the downsampling process. If the pixel value reaches the highlight threshold indicated by the highlight condition, the corresponding sampling point is filtered to obtain the highlight buffer. Specifically, the above axis-aligned filtering downsampling process is as follows: Figure 8 As shown, Figure 8 This is a scene diagram illustrating another method for processing graphic floodlight effects provided in this application embodiment; the left side of the diagram represents the color buffer, and the right side represents a quarter-sized specular buffer. Data processing is reduced by performing data comparison at low resolution. During rendering, the relationship between the fragment coordinates pos and the Para parameter is determined. Fragments within this range are then filtered using a downsampling function on the corresponding area of ​​the color buffer, specifically through the following formula:

[0193]

[0194] In this function, down() is the downsampling function, pre() is the pre-filtering function, pos is the coordinates of the sampling point, and para is the parameter vector.

[0195] As can be seen, if the alignment is to the bottom left corner, only the relationship between pos and para.zw needs to be compared, reducing the amount of data comparison. However, if the alignment is not to the bottom left corner, during rendering, the fragment needs to be compared to see if it is greater than the xy of the para region and less than para.xy + para.zw.

[0196] Furthermore, after determining the highlight buffer, steps 305-307 (downsampling and upsampling) and subsequent image overlay can be performed. It should be noted that since coordinate axis alignment was performed when determining the highlight buffer, position restoration should be performed during image overlay (e.g., moving back to the initial position from the lower left corner). Specifically, the process of overlaying the images in the upsampling sequence and the downsampling sequence to obtain the image with the configured floodlight effect corresponding to the target component involves first restoring the images in the upsampling and downsampling sequences to the resolution of the color buffer to obtain a restored sequence; then, the highlight buffer in the restored sequence is adjusted to the position of the sampling buffer and overlaid to obtain the image with the configured floodlight effect corresponding to the target component.

[0197] Specifically, regarding the process of highlight overlay, such as Figure 9 As shown, Figure 9 This is a scene diagram illustrating another method for processing graphic floodlight effects provided in this application embodiment. The left side of the diagram represents a highlight buffer at one-quarter the original resolution, and the right side represents the original color buffer. During rendering, the relationship between the fragment coordinates `pos` and the `Para` parameter is determined. Fragments within this range are sampled from the corresponding area of ​​the highlight buffer and superimposed on the color buffer; otherwise, the color from the color buffer is directly used. Specifically, this can be achieved using the following formula:

[0198]

[0199] Here, `up` is the upsampling function, and `tex` samples the color buffer. By collecting the screen space region of the flood and minimizing the computational cost of post-processing the flood, rendering overhead can be reduced and overall rendering performance improved while maintaining the same flood effect as the original.

[0200] Furthermore, if the area of ​​the specular buffer obtained by filtering is small, for example, when both Para.z and Para.w are less than 0.5, pre-filtering can choose to directly downsample to a buffer of one-sixteenth the size, further saving rendering resources. That is, first, the proportion of the coordinate axis components of the specular buffer to the corresponding coordinate axis is determined; if the proportion is less than the proportion threshold, the preset proportion is adjusted so that the proportion of the specular buffer obtained according to the adjusted preset proportion reaches the proportion threshold. This is because Para.z and Para.w being less than 0.5 means that the pre-filtering result will only occupy the lower left quarter of the entire specular buffer area, in which case it can be directly calculated to a smaller buffer.

[0201] The above embodiments describe the rendering process of static components. In one possible scenario, this embodiment can also be used for component rendering in dynamic scenes, that is, the target component is a component in the target scene, and the target scene includes the first frame and the second frame. In this case, the target components in the first frame and the second frame can be rendered respectively, and then played continuously.

[0202] Optionally, considering that the target component may move within a small range in a dynamic scene, and the change in the floodlight effect may not be obvious, the floodlight effect can be invoked. That is, firstly, the first position information of the target component in the first frame and the second position information of the target component in the second frame are obtained; then, the first position information and the second position information are compared to obtain the offset parameter; if the offset parameter is less than the offset threshold (for example, the offset parameter is less than 0.1), then the graphic of the target component with the configured floodlight effect is input into the frame buffer of the second frame, thereby saving computing resources.

[0203] In addition, the offset parameter can also be determined based on the bounding box information indicated in this embodiment, that is, by comparing the differences of the bounding boxes in the bounding box information. Specifically, the target component can first be projected onto the target interface based on the first position information to obtain the first bounding box information; then the target component can be projected onto the target interface based on the second position information to obtain the second bounding box information; and the vertices indicated by the first bounding box information and the vertices indicated by the parameters of the second bounding box information are compared to obtain the offset parameter, thereby avoiding position comparison errors caused by changes in component shape and improving the accuracy of floodlight effect invocation.

[0204] In one possible scenario, by collecting the screen space area of ​​the floodlight and minimizing the computational cost of post-processing the floodlight, rendering overhead can be reduced and overall rendering performance improved while maintaining the same floodlight effect. In the example listed in this embodiment, the area is reduced to an average of about 56%, which can bring certain benefits in rendering time and power consumption. Furthermore, the solution is compatible and usable, and can be extended to run in various platform environments, including but not limited to engines, platforms, or products other than Unreal and Unity.

[0205] As described in the above embodiments, the process involves: acquiring the target component to be rendered; projecting the target component onto the target interface to obtain component projection information; determining the component range of each coordinate axis of the component projection information in the target interface to obtain bounding box information; further, downsampling based on the color buffer corresponding to the bounding box information, and filtering sampling points that meet the specular conditions during downsampling to obtain a specular buffer; then, multiple downsampling operations based on the specular buffer to obtain a downsampling sequence; and then multiple upsampling operations on the temporary buffer in the downsampling sequence to restore the temporary buffer to a specular buffer, which corresponds to the upsampling sequence; finally, superimposing the graphics in the upsampling sequence and the graphics in the downsampling sequence to obtain the graphics corresponding to the target component with configured floodlight effects. This achieves a region-specific floodlight effect processing process. By specifically collecting the specular areas in the color buffer corresponding to the bounding box information, since the specular areas are the main body requiring configured floodlight effects, the calculation range of the floodlight effect is reduced, improving the processing efficiency of the graphic floodlight effect.

[0206] The above embodiments describe the process of processing the bloom effect of the target component. Since bloom effects are generally applied in 3D scenes, the following explanation focuses on the bloom processing process of rendering components in a 3D rendering scene. Please refer to... Figure 10 , Figure 10 A flowchart illustrating another method for processing graphic floodlight effects provided in this application embodiment. This application embodiment includes at least the following steps:

[0207] 1001. Input the rendering components for potential specular rendering.

[0208] In this embodiment, the potential rendering component for specular highlight rendering can be a component type in the 3D scene that the user has set as requiring bloom processing. Therefore, the determination of the rendering component (target component) can be based on the configuration operation of the target object in the configuration interface to determine the component type; then, the rendering component set is traversed based on the component type to obtain the target component.

[0209] Specifically, regarding the execution of configuration operations in the configuration interface, such as... Figure 11 As shown, Figure 11 This is a scene diagram illustrating another method for processing graphic floodlight effects provided in this application embodiment. The diagram shows adding a regional floodlight effect to the post-process volume component during application, i.e., performing a configuration operation. Specifically, a global mode can also be set, i.e., rendering all components in the scene, as well as the degree and specific form of the rendering effect.

[0210] In addition, regarding the selection of rendering components, such as Figure 12 As shown, Figure 12 This is a scene diagram illustrating another method for processing graphic bloom effects provided in an embodiment of this application. The diagram shows the addition of bloom object components to each potential specular renderer, which allows for the simultaneous rendering of multiple components. By clicking to add a component, the target component can be selected from different component sets.

[0211] 1002. Collect the bounding box set vertices of the rendering component.

[0212] In this embodiment, for each rendering component with potential specular highlights, such as models with metallic specular materials, light sources, water surfaces, and special effects, the vertices of the bounding box of the rendering component in the world space coordinate system are calculated. For example, for a static model, its axis-aligned bounding box in the local coordinate system is B, the smallest vertex is B1(x1,y1,z1), and the largest vertex is B2(x2,y2,z2). When this model is placed in world space with a specific transformation, its model matrix M is taken, and then the vertices of the bounding box of this rendering component in world space are:

[0213] v1=(x1,y1,z1,1)×M; v2=(x1,y1,z2,1)×M; v3=(x1,y2,z1,1)×M; v4=(x2,y1,z1,1)×M; v5=(x2,y1,z2,1)×M; v6=(x2,y2,z1,1)×M; v7=(x1,y2,z2,1)×M; v8=(x2,y2,z2,1)×M.

[0214] This yields the set of vertices of the bounding box of the rendering component.

[0215] 1003. Solve for the bounding box of the standardized equipment space.

[0216] In this embodiment, after obtaining the set of vertices of the bounding box of the rendering components, the set of vertices of the world space bounding box of all components is obtained. All vertices are then transformed by view projection (PV) to obtain the projection space coordinates.

[0217] v′=PV×v

[0218] Here, P is the projection transformation, which transforms the vertices of the view space into the projection space; V is the view transformation, which transforms the world space into the view space; PV is the combination of these two transformations.

[0219] Then, perspective division is performed to obtain the standardized equipment space coordinates v”:

[0220]

[0221] The x and y components represent the horizontal and vertical coordinates relative to the screen. For all vertices, solving for the range of the x and y components yields the screen-space bounding box, with its minimum point being B3(x3, y3) and its maximum point being B4(x4, y4).

[0222]

[0223] Note that the range expands outwards during floodlighting; the minimum and maximum points can be extended outwards by an appropriate value. For ease of subsequent calculations, the bounding box parameter vector Para is solved, as follows:

[0224]

[0225] Where B3 represents the minimum point indicated in the bounding box information, and B4 represents the maximum point indicated in the bounding box information, thus obtaining the parameter vector corresponding to the bounding box information.

[0226] 1004. Floodlight pre-filter.

[0227] In this embodiment, pre-filtering is to select the highlight area. Pre-filtering can be done in the first sampling step of blurring (downsampling), for example, the first downsampling of the pyramid algorithm can also pre-filter out the highlight area.

[0228] During rendering, the relationship between the fragment coordinates `pos` and the `Para` parameter is determined. Fragments within this range are then filtered using a downsampling function on the corresponding area of ​​the color buffer and aligned to the coordinate axes. The specific formula is as follows:

[0229]

[0230] Here, down() is the downsampling function, and pre() is the pre-filtering function.

[0231] 1005. Highlight downsampling and upsampling.

[0232] In this embodiment, specular downsampling only takes effect when uv.x is less than or equal to Para.z and uv.y is less than or equal to Para.w; other ranges return a color of 0. This involves pre-filtering the color buffer into a quarter-sized specular buffer, then downsampling the specular buffer several times to obtain increasingly smaller temporary buffers, and finally upsampling it back to the original resolution size buffer.

[0233] 1006. Highlight overlay.

[0234] In this embodiment, each pixel is rendered independently at coordinates pos.xy each time it is rendered from one buffer to another. During downsampling, the original image (color buffer) is referenced for rendering. During upsampling, an image four times smaller is referenced for rendering. Finally, when merging into the original image, position calibration is performed to obtain a graphic with a bloom effect.

[0235] Specifically, during overlay rendering, the relationship between the fragment coordinates `pos` and the `Para` parameter is determined. Fragments within this range are sampled from the corresponding area of ​​the specular buffer and overlaid with the color buffer; otherwise, the color from the color buffer is directly used. This can be achieved using the following formula:

[0236]

[0237] Here, up is the upsampling function, and tex samples the color buffer.

[0238] 1007. Output to frame buffer.

[0239] In this embodiment, the frame buffer is a buffer used for interface display, that is, the process of displaying the floodlight effect graphics. The specific display interface can be a terminal interface, a third-party interface projected by a projector, or a VR space interface for virtual display. The specific display interface depends on the actual scenario.

[0240] Optionally, components using floodlighting can be used for management processes within the interface. Figure 13This is a scene diagram illustrating another method for processing graphic floodlight effects provided in this application embodiment. The diagram shows that in this embodiment, a floodlight management component can be added to the scene. By clicking on the floodlight management component, the floodlight effect of the component can be adjusted, including but not limited to targeted floodlight of the component type, adjustment of the floodlight range, and various parameters that appeared in the above embodiments, which will not be elaborated here.

[0241] In another possible scenario, the rendered bloom effect can be detected and adjusted. This involves triggering a debug scene in the target interface in response to adjustment operations in the configuration interface. Then, based on the debug scene, the component bounding box (the bounding box of the rendered component in screen space) and the scene bounding box (the bloom range of all components in screen space) corresponding to each target component are displayed. The scene bounding box can be determined based on the extreme values ​​of the horizontal and vertical coordinates of all component bounding boxes. The overlap between the boundary of the scene bounding box and the component bounding box is detected to obtain overlap detection information. Then, based on the overlap detection information, the parameters of the overlapping items contained in the component bounding box are adjusted.

[0242] Specifically, the scenarios for adjusting the floodlight effect are as follows: Figure 14 As shown, Figure 14 This is a scene diagram illustrating another method for processing graphic floodlight effects provided in this application embodiment. The diagram shows that after debugging is enabled, component bounding box B1 and scene bounding box B2 can be displayed. The rationality of the bounding box information configuration is determined by the intersection of component bounding box B1 and scene bounding box B2.

[0243] Based on the statistical data from the above embodiments, compared to the default floodlight effect, it can achieve lower post-processing overhead and improve overall rendering performance. Specifically, during 3D scene rendering, the set of axis-aligned bounding box vertices of potential specular objects is collected, converted to screen space, and then the screen space bounding box is solved. When calculating the floodlight, only the bounding box and its surrounding area are rendered, reducing the size of the floodlight calculation area, thereby reducing GPU overhead and improving overall rendering performance.

[0244] To better implement the above-described solutions of the embodiments of this application, related apparatus for implementing the above solutions is also provided below. Please refer to... Figure 15 , Figure 15 This is a schematic diagram of a graphic floodlight effect processing device provided in an embodiment of this application. The graphic floodlight effect processing device 1500 includes:

[0245] Acquisition unit 1501 is used to acquire the target component to be rendered;

[0246] The projection unit 1502 is used to project the target component onto the target interface to obtain component projection information, the component projection information including the coordinate information of the target component on the target interface;

[0247] The determining unit 1503 is used to determine the component range of the component projection information of the component in the target interface of each coordinate axis, so as to obtain the bounding box information;

[0248] The processing unit 1504 is used to downsample based on the color buffer corresponding to the bounding box information, and to filter the sampling points that meet the highlight conditions during the downsampling process to obtain the highlight buffer.

[0249] The processing unit 1504 is also used to perform multiple downsampling operations based on the highlight buffer to obtain a downsampling sequence;

[0250] The processing unit 1504 is further configured to perform multiple upsamplings on the temporary buffer in the downsampling sequence to restore the temporary buffer to the highlight buffer, wherein the temporary buffer corresponds to the upsampling sequence;

[0251] The processing unit 1504 is further configured to superimpose the images in the upsampled sequence and the images in the downsampled sequence to obtain an image with a configured floodlight effect corresponding to the target component.

[0252] Optionally, in some possible implementations of this application, the processing unit 1504 is specifically used to obtain the projection vertex indicated by the bounding box information in order to determine the parameter vector corresponding to the projection vertex in the target interface;

[0253] The processing unit 1504 is specifically used to determine the color buffer corresponding to the parameter vector;

[0254] The processing unit 1504 is specifically used to downsample the resolution of the color buffer based on a preset ratio, and to obtain the pixel value corresponding to the sampling point in the color buffer during the downsampling process.

[0255] The processing unit 1504 is specifically used to filter the corresponding sampling points to obtain the highlight buffer if the pixel value reaches the highlight threshold indicated by the highlight condition.

[0256] Optionally, in some possible implementations of this application, the processing unit 1504 is specifically used to downsample the resolution of the color buffer based on the preset ratio to determine the sampling buffer;

[0257] The processing unit 1504 is specifically used to align the sampling buffer according to the coordinate axis corresponding to the color buffer, so as to obtain the pixel value corresponding to the sampling point in the color buffer during the downsampling process;

[0258] The processing unit 1504 is specifically used to restore the graphics in the upsampled sequence and the graphics in the downsampled sequence to the resolution of the color buffer to obtain a restored sequence;

[0259] The processing unit 1504 is specifically used to adjust the highlight buffer in the restored sequence to the position of the sampling buffer and superimpose it to obtain a graphic of the configuration floodlight effect corresponding to the target component.

[0260] Optionally, in some possible implementations of this application, the processing unit 1504 is specifically used to determine the ratio information of the coordinate axis components of the highlight buffer to the corresponding coordinate axis.

[0261] The processing unit 1504 is specifically used to adjust the preset ratio if the ratio information is less than the ratio threshold, so that the ratio information of the highlight buffer obtained according to the adjusted preset ratio reaches the ratio threshold.

[0262] Optionally, in some possible implementations of this application, the processing unit 1504 is specifically used to obtain the projected vertex indicated by the bounding box information;

[0263] The processing unit 1504 is specifically used to determine extended parameters in response to the input floodlight configuration information;

[0264] The processing unit 1504 is specifically used to expand the projected vertex based on the expansion parameters to obtain the expanded vertex;

[0265] The processing unit 1504 is specifically used to determine the parameter vector in the target interface based on the extended vertices.

[0266] Optionally, in some possible implementations of this application, the processing unit 1504 is specifically used to obtain type information corresponding to the target component;

[0267] The processing unit 1504 is specifically used to determine the type expansion coefficient in response to the input floodlight configuration information;

[0268] The processing unit 1504 is specifically used to determine the extension parameter corresponding to the type information based on the type extension coefficient.

[0269] Optionally, in some possible implementations of this application, the projection unit 1502 is specifically used to determine the bounding box of the target component in the first space;

[0270] The projection unit 1502 is specifically used to extract the vertex set information corresponding to the bounding box of the target component in the first space;

[0271] The projection unit 1502 is specifically used to project the vertex coordinates in the vertex set information into the second space corresponding to the target interface to obtain the component projection information. The dimension of the second space is smaller than that of the first space.

[0272] Optionally, in some possible implementations of this application, the projection unit 1502 is specifically used to obtain effect description information corresponding to the target component;

[0273] The projection unit 1502 is specifically used to call bounding box configuration information according to the effect description information;

[0274] The projection unit 1502 is specifically used to determine the bounding box of the target component in the first space based on the bounding box configuration information.

[0275] Optionally, in some possible implementations of this application, the acquisition unit 1501 is specifically used to determine the component type in response to the configuration operation of the target object in the configuration interface;

[0276] The acquisition unit 1501 is specifically used to traverse the set of rendering components based on the component type to obtain the target component.

[0277] Optionally, in some possible implementations of this application, the processing unit 1504 is specifically used to trigger a debugging scenario in the target interface in response to the adjustment operation in the configuration interface.

[0278] The processing unit 1504 is specifically used to display the component bounding box and scene bounding box corresponding to each of the target components based on the debugging scenario.

[0279] The processing unit 1504 is specifically used to detect the overlap between the boundary of the scene bounding box and the component bounding box, so as to obtain overlap detection information.

[0280] The processing unit 1504 is specifically used to adjust the parameters of the overlapping items contained in the component bounding box based on the overlap detection information.

[0281] Optionally, in some possible implementations of this application, the processing unit 1504 is specifically used to obtain the first position information of the target component in the first frame and the second position information of the target component in the second frame;

[0282] The processing unit 1504 is specifically used to compare the first position information and the second position information to obtain the offset parameter;

[0283] The processing unit 1504 is specifically used to input the graphic of the configuration floodlight effect corresponding to the target component into the frame buffer of the second frame if the offset parameter is less than the offset threshold.

[0284] Optionally, in some possible implementations of this application, the processing unit 1504 is specifically used to project the target component onto the target interface based on the first position information to obtain the first bounding box information;

[0285] The processing unit 1504 is specifically used to project the target component onto the target interface based on the second position information to obtain the second bounding box information;

[0286] The processing unit 1504 is specifically used to compare the vertices indicated by the first bounding box information and the vertices indicated by the parameters of the second bounding box information to obtain the offset parameters.

[0287] The process involves acquiring the target component to be rendered, projecting it onto the target interface to obtain component projection information, and determining the component range of each coordinate axis in the target interface to obtain bounding box information. Further, downsampling is performed based on the color buffer corresponding to the bounding box information, filtering sampling points that meet the specular conditions during downsampling to obtain a specular buffer. Then, multiple downsampling operations are performed based on the specular buffer to obtain a downsampling sequence. The temporary buffer in the downsampling sequence is then upsampled multiple times to restore the temporary buffer to a specular buffer, which corresponds to the upsampling sequence. Finally, the graphics in the upsampling sequence and the downsampling sequence are superimposed to obtain the graphics corresponding to the target component with the configured floodlight effect. This achieves a region-specific floodlight effect processing process. By specifically collecting the specular areas in the color buffer corresponding to the bounding box information, and since the specular areas are the main components requiring floodlight effects, the calculation range of the floodlight effect is reduced, improving the processing efficiency of the graphic floodlight effect.

[0288] This application also provides a terminal device, such as... Figure 16The diagram shown is a structural schematic of another terminal device provided in an embodiment of this application. For ease of explanation, only the parts related to the embodiment of this application are shown. For specific technical details not disclosed, please refer to the method section of the embodiment of this application. The terminal can be any terminal device including mobile phones, tablet computers, personal digital assistants (PDAs), point-of-sale (POS) terminals, in-vehicle computers, etc. Taking a mobile phone as an example:

[0289] Figure 16 This is a block diagram illustrating a portion of the structure of a mobile phone related to the terminal provided in the embodiments of this application. (Reference) Figure 16 The mobile phone includes components such as a radio frequency (RF) circuit 1610, a memory 1620, an input unit 1630, a display unit 1640, a sensor 1650, an audio circuit 1660, a wireless fidelity (WiFi) module 1670, a processor 1680, and a power supply 1690. Those skilled in the art will understand that... Figure 16 The mobile phone structure shown does not constitute a limitation on the mobile phone and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0290] The following is combined with Figure 16 A detailed introduction to each component of a mobile phone:

[0291] RF circuit 1610 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and processes it with processor 1680; additionally, it transmits uplink data to the base station. Typically, RF circuit 1610 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier (LNA), and a duplexer. Furthermore, RF circuit 1610 can also communicate wirelessly with networks and other devices. The aforementioned wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, and Short Message Service (SMS).

[0292] The memory 1620 can be used to store software programs and modules. The processor 1680 executes various mobile phone functions and data processing by running the software programs and modules stored in the memory 1620. The memory 1620 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, graphics playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, phonebook, etc.). In addition, the memory 1620 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0293] The input unit 1630 can be used to receive input numerical or character information, and to generate key signal inputs related to user settings and function control of the mobile phone. Specifically, the input unit 1630 may include a touch panel 1631 and other input devices 1632. The touch panel 1631, also known as a touch screen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel 1631, as well as air touch operations within a certain range on the touch panel 1631), and drive the corresponding connection devices according to a pre-set program. Optionally, the touch panel 1631 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to the processor 1680, and can receive and execute commands sent by the processor 1680. Furthermore, the touch panel 1631 can be implemented using various types of sensors, including resistive, capacitive, infrared, and surface acoustic wave sensors. In addition to the touch panel 1631, the input unit 1630 may also include other input devices 1632. Specifically, these other input devices 1632 may include, but are not limited to, one or more of the following: a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick.

[0294] The display unit 1640 can be used to display information input by the user or information provided to the user, as well as various menus of the mobile phone. The display unit 1640 may include a display panel 1641, which may optionally be configured as a liquid crystal display (LCD), organic light-emitting diode (OLED), or similar form. Further, a touch panel 1631 may cover the display panel 1641. When the touch panel 1631 detects a touch operation on or near it, it transmits the information to the processor 1680 to determine the type of touch event. Subsequently, the processor 1680 provides corresponding visual output on the display panel 1641 based on the type of touch event. Although in Figure 16 In this embodiment, the touch panel 1631 and the display panel 1641 are two separate components to realize the input and output functions of the mobile phone. However, in some embodiments, the touch panel 1631 and the display panel 1641 can be integrated to realize the input and output functions of the mobile phone.

[0295] The mobile phone may also include at least one sensor 1650, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 1641 according to the ambient light level, and the proximity sensor can turn off the display panel 1641 and / or backlight when the phone is moved to the ear. As a type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometer, taps), etc. Other sensors that may be configured in the mobile phone, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.

[0296] Audio circuit 1660, speaker 1661, and microphone 1662 provide an audio interface between the user and the mobile phone. Audio circuit 1660 converts received audio data into electrical signals and transmits them to speaker 1661, where speaker 1661 converts them into sound signals for output. On the other hand, microphone 1662 converts collected sound signals into electrical signals, which are received by audio circuit 1660, converted into audio data, and then processed by processor 1680 before being transmitted via RF circuit 1610 to, for example, another mobile phone, or the audio data can be output to memory 1620 for further processing.

[0297] WiFi is a short-range wireless transmission technology. Mobile phones, through the WiFi module 1670, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access. Although Figure 16 WiFi module 1670 is shown, but it is understood that it is not an essential component of a mobile phone and can be omitted as needed without changing the essence of the invention.

[0298] The processor 1680 is the control center of the mobile phone, connecting various parts of the phone through various interfaces and lines. It executes software programs and / or modules stored in the memory 1620, and calls data stored in the memory 1620 to perform various functions and process data, thereby providing overall monitoring of the phone. Optionally, the processor 1680 may include one or more processing units; optionally, the processor 1680 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the aforementioned modem processor may also not be integrated into the processor 1680.

[0299] The mobile phone also includes a power supply 1690 (such as a battery) that supplies power to various components. Optionally, the power supply can be logically connected to the processor 1680 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system.

[0300] Although not shown, mobile phones may also include a camera, Bluetooth module, etc., which will not be described in detail here.

[0301] In this embodiment of the application, the processor 1680 included in the terminal also has the function of performing the various steps of the page processing method described above.

[0302] This application also provides a server; please refer to [link / reference]. Figure 17 , Figure 17 This is a schematic diagram of a server structure provided in an embodiment of this application. The server 1700 can vary significantly due to different configurations or performance. It may include one or more central processing units (CPUs) 1722 (e.g., one or more processors) and memory 1732, and one or more storage media 1730 (e.g., one or more mass storage devices) for storing application programs 1742 or data 1744. The memory 1732 and storage media 1730 can be temporary or persistent storage. The program stored in the storage media 1730 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the server. Furthermore, the CPU 1722 may be configured to communicate with the storage media 1730 and execute the series of instruction operations in the storage media 1730 on the server 1700.

[0303] Server 1700 may also include one or more power supplies 1726, one or more wired or wireless network interfaces 1750, one or more input / output interfaces 1758, and / or one or more operating systems 1741, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0304] The steps performed by the management device in the above embodiments can be based on this Figure 17 The server structure shown.

[0305] This application also provides a computer-readable storage medium storing processing instructions for a graphic bloom effect. When executed on a computer, the instructions cause the computer to perform the aforementioned actions. Figures 3 to 14 The steps performed by the graphic floodlight effect processing device in the method described in the illustrated embodiment.

[0306] This application also provides a computer program product that includes processing instructions for a graphic bloom effect. When run on a computer, it causes the computer to perform the aforementioned actions. Figures 3 to 14 The steps performed by the graphic floodlight effect processing device in the method described in the illustrated embodiment.

[0307] This application embodiment also provides a graphic flood effect processing system, which may include: Figure 15 The processing apparatus for the graphic floodlight effect in the described embodiments, or Figure 16 The terminal device in the described embodiments, or Figure 17 The server described.

[0308] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0309] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.

[0310] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0311] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0312] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a graphics blooming effect processing device, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0313] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for processing graphic floodlight effects, characterized in that, include: Get the target component to be rendered; The target component is projected onto the target interface to obtain component projection information, which includes the coordinate information of the target component on the target interface. Determine the component range of the component projection information on each coordinate axis in the target interface to obtain bounding box information; Downsampling is performed based on the color buffer corresponding to the bounding box information, and sampling points that meet the highlight conditions are filtered during the downsampling process to obtain the highlight buffer. Based on the high-light buffer, multiple downsampling operations are performed sequentially to obtain a downsampling sequence; The temporary buffer in the downsampling sequence is upsampled multiple times to restore the temporary buffer to the highlight buffer, and the temporary buffer corresponds to the upsampling sequence; The images in the upsampled sequence and the images in the downsampled sequence are superimposed to obtain the image of the configuration floodlight effect corresponding to the target component.

2. The method according to claim 1, characterized in that, The process of downsampling based on the color buffer corresponding to the bounding box information, and filtering sampling points that meet the highlight conditions during downsampling to obtain the highlight buffer, includes: Obtain the projected vertices indicated by the bounding box information to determine the parameter vectors corresponding to the projected vertices in the target interface; Determine the color buffer corresponding to the parameter vector; The resolution of the color buffer is downsampled based on a preset ratio, and the pixel value corresponding to the sampling point in the color buffer is obtained during the downsampling process. If the pixel value reaches the highlight threshold indicated by the highlight condition, the corresponding sampling point is filtered to obtain the highlight buffer.

3. The method according to claim 2, characterized in that, The step of downsampling the resolution of the color buffer based on a preset ratio and obtaining the pixel value corresponding to the sampling point in the color buffer during the downsampling process includes: The resolution of the color buffer is downsampled based on the preset ratio to determine the sampling buffer; The sampling buffer is aligned with the coordinate axis corresponding to the color buffer to obtain the pixel value corresponding to the sampling point in the color buffer during the downsampling process; Correspondingly, the images in the upsampled sequence and the images in the downsampled sequence are superimposed to obtain the image of the configuration floodlight effect corresponding to the target component, including: The images in the upsampled sequence and the images in the downsampled sequence are restored to the resolution of the color buffer to obtain the restored sequence; The highlight buffer in the restored sequence is adjusted to the position of the sampling buffer and superimposed to obtain the graphic of the configuration floodlight effect corresponding to the target component.

4. The method according to claim 3, characterized in that, The method further includes: Determine the proportion of the coordinate axis components of the highlight buffer to the corresponding coordinate axis; If the percentage information is less than the percentage threshold, the preset percentage is adjusted so that the percentage information of the highlight buffer obtained according to the adjusted preset percentage reaches the percentage threshold.

5. The method according to claim 2, characterized in that, The step of obtaining the projected vertices indicated by the bounding box information to determine the parameter vectors corresponding to the projected vertices in the target interface includes: Obtain the projected vertex indicated by the bounding box information; Determine extended parameters in response to the input floodlight configuration information; The projected vertex is expanded based on the expansion parameters to obtain the expanded vertex; The parameter vector in the target interface is determined based on the extended vertices.

6. The method according to claim 5, characterized in that, The determination of extended parameters in response to input floodlight configuration information includes: Obtain the type information corresponding to the target component; The type expansion factor is determined in response to the input floodlight configuration information; The extension parameter corresponding to the type information is determined based on the type extension coefficient.

7. The method according to claim 1, characterized in that, The step of projecting the target component onto the target interface to obtain component projection information includes: Determine the bounding box of the target component in the first space; Extract the vertex set information corresponding to the bounding box of the target component in the first space; Based on the vertex coordinates in the vertex set information, the component projection information is obtained by projecting them into the second space corresponding to the target interface. The dimension of the second space is smaller than that of the first space.

8. The method according to claim 7, characterized in that, Determining the bounding box of the target component in the first space includes: Obtain the effect description information corresponding to the target component; The bounding box configuration information is invoked based on the effect description information; The bounding box of the target component in the first space is determined based on the bounding box configuration information.

9. The method according to claim 1, characterized in that, The process of obtaining the target component to be rendered includes: In response to the configuration operation of the target object in the configuration interface, determine the component type; The target component is obtained by traversing the set of rendering components based on the component type.

10. The method according to claim 9, characterized in that, The method further includes: In response to the adjustment operation in the configuration interface, a debugging scenario is triggered in the target interface; Based on the debugging scenario, the component bounding box and scene bounding box corresponding to each of the target components are displayed; The overlap between the boundary of the scene bounding box and the component bounding box is detected to obtain overlap detection information; Based on the overlap detection information, the parameters of the overlapping items contained in the component bounding box are adjusted.

11. The method according to any one of claims 1-10, characterized in that, The target component is a component in a target scene, the target scene includes a first frame and a second frame, and the method further includes: Obtain the first position information of the target component in the first frame, and the second position information of the target component in the second frame; The first location information and the second location information are compared to obtain the offset parameter; If the offset parameter is less than the offset threshold, the graphic corresponding to the target component with the configured floodlight effect is input into the frame buffer of the second frame.

12. The method according to claim 11, characterized in that, The step of comparing the first location information and the second location information to obtain the offset parameter includes: Based on the first location information, the target component is projected onto the target interface to obtain the first bounding box information; Based on the second location information, the target component is projected onto the target interface to obtain the second bounding box information; The vertices indicated by the first bounding box information and the vertices indicated by the parameters of the second bounding box information are compared to obtain the offset parameters.

13. A processing device for graphic floodlight effect, characterized in that, include: The acquisition unit is used to acquire the target component to be rendered. A projection unit is used to project the target component onto a target interface to obtain component projection information, the component projection information including the coordinate information of the target component on the target interface; A determining unit is used to determine the component range of the component projection information of the component in the target interface for each coordinate axis, so as to obtain bounding box information; The processing unit is used to downsample based on the color buffer corresponding to the bounding box information, and to filter the sampling points that meet the highlight conditions during the downsampling process to obtain the highlight buffer. The processing unit is also configured to perform multiple downsampling operations based on the high-light buffer to obtain a downsampling sequence; The processing unit is further configured to upsample the temporary buffer in the downsampling sequence multiple times to restore the temporary buffer to the highlight buffer, wherein the temporary buffer corresponds to the upsampling sequence; The processing unit is further configured to overlay the images in the upsampled sequence and the images in the downsampled sequence to obtain an image with a configured floodlight effect corresponding to the target component.

14. A computer device, characterized in that, The computer device includes a processor and memory: The memory is used to store program code; the processor is used to execute the processing method for the graphic floodlight effect according to any one of claims 1 to 12 according to the instructions in the program code.

15. A computer program product comprising a computer program / instructions stored in a computer-readable storage medium, characterized in that, When the computer program / instructions in the computer-readable storage medium are executed by a processor, they implement the steps of the processing method for the graphic floodlight effect according to any one of claims 1 to 12.