An information processing method and an information processing apparatus
By performing layered processing and local rendering of the 3D mesh model in the virtual digital scene, the problem of monotonous rendering effects is solved, and the glow or overflow effect of the local model is realized, thereby improving the diversity and immersion of the rendering effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LENOVO (BEIJING) LTD
- Filing Date
- 2022-06-02
- Publication Date
- 2026-07-03
AI Technical Summary
In existing technologies, the rendering effect of image frames in virtual digital scenes is monotonous and lacks local highlighting effects.
By applying different processing to the first and second sub-mesh models in the 3D mesh model, global processing is used to give the first sub-mesh model the first effect, while the second sub-mesh model is not affected by the global processing. Finally, the image frame to be displayed is determined based on the two, thus achieving a local highlighting effect.
It achieves glow or spill effect on local models in virtual digital scenes, enhancing the diversity and immersion of rendering effects.
Smart Images

Figure CN115170763B_ABST
Abstract
Description
Technical Field
[0001] This application relates to, but is not limited to, the field of information technology, and in particular to an information processing method and an information processing apparatus. Background Technology
[0002] With social development and technological advancements, the internet has become an integral part of most people's work and lives. As a result, virtual digital scenes have emerged as a new form of internet experience. They represent a fusion of the virtual and real worlds, an augmented reality of the real world, thus satisfying the immersive experience needs of a wide range of users. Currently, when rendering image frames in virtual digital scenes, most methods employ global rendering for the entire image frame, resulting in a limited and monotonous rendering effect. Summary of the Invention
[0003] This application aims to provide an information processing method and an information processing apparatus.
[0004] The technical solution of this application is implemented as follows:
[0005] An information processing method, the method comprising:
[0006] Obtain the three-dimensional mesh model of the image frame to be processed, and determine the first sub-mesh model and the second sub-mesh model in the three-dimensional mesh model;
[0007] A first global processing is performed on the first sub-mesh model and the second sub-mesh model, and a second processing is performed on the second sub-mesh model, wherein the second processing makes the second sub-mesh model unaffected by the first global processing, wherein the first global processing gives the three-dimensional mesh model a first effect;
[0008] The image frame to be displayed is determined based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect.
[0009] An information processing apparatus, the information processing apparatus comprising:
[0010] The acquisition module is used to acquire the three-dimensional mesh model of the image frame to be processed, and to determine the first sub-mesh model and the second sub-mesh model in the three-dimensional mesh model;
[0011] The processing module is used to perform a first global processing on the first sub-mesh model and the second sub-mesh model, and to perform a second processing on the second sub-mesh model, wherein the second processing makes the second sub-mesh model unaffected by the first global processing, wherein the first global processing gives the three-dimensional mesh model a first effect;
[0012] The determination module is used to determine the image frame to be displayed based on a first sub-mesh model with the first effect and a second sub-mesh model without the first effect.
[0013] An electronic device, comprising: a processor, a memory, and a communication bus;
[0014] The communication bus is used to realize the communication connection between the processor and the memory;
[0015] The processor is used to execute the information processing program stored in the memory to implement the steps of the above-described information processing method.
[0016] A computer storage medium storing one or more programs, which can be executed by one or more processors to implement the steps of the information processing method described above.
[0017] The information processing method and apparatus provided in this application embodiment obtain a three-dimensional mesh model of an image frame to be processed, and determine a first sub-mesh model and a second sub-mesh model in the three-dimensional mesh model; perform a first global processing on the first sub-mesh model and the second sub-mesh model, and perform a second processing on the second sub-mesh model, wherein the second processing makes the second sub-mesh model unaffected by the first global processing, wherein the first global processing gives the three-dimensional mesh model a first effect; and determine the image frame to be displayed based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect; that is, in this application embodiment, during the processing of the three-dimensional mesh model of the image frame to be processed, the effects produced by processing the first sub-mesh model and the second sub-mesh model are different, and thus determine the image frame to be displayed based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect, thereby achieving the purpose of locally highlighting the first effect. Attached Figure Description
[0018] Figure 1 A flowchart illustrating an optional information processing method provided for embodiments of this application. Figure 1 ;
[0019] Figure 2 A flowchart illustrating an optional information processing method provided for embodiments of this application. Figure 2 ;
[0020] Figure 3 A schematic diagram illustrating how a model is placed in different layers according to glow requirements, as provided in an embodiment of this application;
[0021] Figure 4 A schematic diagram illustrating the replacement of the original material with a black material, provided for an embodiment of this application;
[0022] Figure 5 A comparative schematic diagram showing the process before and after processing a material requiring glow, provided as an embodiment of this application;
[0023] Figure 6 A schematic diagram of a Gaussian curve provided for an embodiment of this application;
[0024] Figure 7 A schematic diagram of sampling provided for an embodiment of this application;
[0025] Figure 8 A scene diagram with Gaussian blur processing is provided for an embodiment of this application;
[0026] Figure 9 A schematic diagram illustrating the replacement of the black material with the original material in an embodiment of this application;
[0027] Figure 10 A schematic diagram illustrating the rendering effect of an image frame to be displayed, provided for an embodiment of this application;
[0028] Figure 11 A flowchart illustrating an optional information processing method provided for embodiments of this application. Figure 3 ;
[0029] Figure 12 A schematic diagram of the structure of an information processing device provided for an embodiment of this application;
[0030] Figure 13 This is a schematic diagram of the structure of an electronic device provided as an embodiment of this application. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.
[0032] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0033] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0034] The following describes exemplary applications of the information processing device provided in the embodiments of this application. The information processing device provided in the embodiments of this application can be implemented as any electronic device with a screen display function, such as a laptop computer, tablet computer, desktop computer, mobile device (e.g., personal digital assistant, dedicated messaging device, portable gaming device), intelligent robot, and wearable device, or it can be implemented as a server. The following will describe exemplary applications when the information processing device is implemented as an electronic device.
[0035] Embodiments of this application provide an information processing method applied to an electronic device, with reference to... Figure 1 As shown, the method includes the following steps:
[0036] Step 101: Obtain the 3D mesh model of the image frame to be processed, and determine the first sub-mesh model and the second sub-mesh model in the 3D mesh model.
[0037] In this embodiment of the application, the first sub-mesh model in the three-dimensional mesh model is a specific model to be highlighted in the virtual digital scene.
[0038] In a feasible scenario, the information processing method provided in this application embodiment can be implemented on a web platform, which hosts various website applications. Furthermore, the information processing method provided in this application embodiment can, with the aid of the web platform, perform layered rendering of models within the Web Graphics Library (WebGL) and Three.js domains.
[0039] Here, given the 3D mesh model of the image frame to be processed, the first sub-mesh model to be highlighted and the second sub-mesh model not to be highlighted are distinguished within the 3D mesh model.
[0040] Step 102: Perform a first global processing on the first sub-mesh model and the second sub-mesh model, and perform a second processing on the second sub-mesh model, so that the second sub-mesh model is not affected by the first global processing.
[0041] The first global processing is a global rendering method that is effective for all 3D mesh models. The first global processing gives the 3D mesh model the first effect.
[0042] In this embodiment, the electronic device performs a first global processing on the first sub-mesh model and the second sub-mesh model, which can be achieved by performing image rendering processing on the first and second sub-mesh models in the same render pass. Here, a second processing is performed on the second sub-mesh model so that the second sub-mesh model is not affected by the first global processing.
[0043] Step 103: Determine the image frame to be displayed based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect.
[0044] In this embodiment, the electronic device includes a graphics processor, a memory, and a display screen. The memory includes system memory (corresponding to system memory) and cache memory for high-speed data exchange, the cache memory including cache blocks. An application program is deployed in the electronic device, and a rendering engine is deployed within the application program. When the electronic device runs the rendering engine through the application program, the graphics processor can calculate the first effect presented by a local sub-mesh model, such as the first sub-mesh model, in a 3D mesh model in real time, and display the rendering effect corresponding to the first effect on the display screen of the electronic device.
[0045] In a feasible scenario, on a web platform, the second sub-network model, after the second processing, bypasses the first global processing, achieving the goal of a local sub-mesh model in the 3D mesh model having the same effect as the first sub-mesh model.
[0046] This application provides an information processing method that obtains a three-dimensional mesh model of an image frame to be processed, and determines a first sub-mesh model and a second sub-mesh model within the three-dimensional mesh model. A first global processing is performed on the first and second sub-mesh models, and a second processing is performed on the second sub-mesh model, whereby the second processing makes the second sub-mesh model unaffected by the first global processing. The first global processing imparts a first effect to the three-dimensional mesh model. Based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect, an image frame to be displayed is determined. In other words, in this application embodiment, during the processing of the three-dimensional mesh model of the image frame to be processed, the effects produced by processing the first and second sub-mesh models are different. Therefore, the image frame to be displayed is determined based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect, achieving the purpose of locally highlighting the first effect.
[0047] In other embodiments of this application, in step 102, a second processing is performed on the second sub-mesh model. This second processing ensures that the second sub-mesh model is unaffected by the first global processing. This can be achieved through the following steps:
[0048] Before performing the first global processing on the first and second sub-mesh models, the original material of the second sub-mesh model is replaced with the target material to obtain the third sub-mesh model. The target material, after the first global processing, does not retain the first effect; and
[0049] After performing the first global processing on the first and second sub-mesh models, the third sub-mesh model with the target material is replaced with the second sub-mesh model with the original material.
[0050] In this embodiment of the application, before performing the first global processing on the first sub-mesh model and the second sub-mesh model, the original material of the second sub-mesh model is replaced with the target material to obtain the third sub-mesh model. Here, since the third sub-mesh model obtained after material replacement does not have the first effect after the first global processing, that is to say, the first global processing does not take effect on the third sub-mesh model.
[0051] In other embodiments of this application, step 102 performs a first global processing on the first sub-mesh model and the second sub-mesh model, and performs a second processing on the second sub-mesh model, wherein the second processing makes the second sub-mesh model unaffected by the first global processing, which can be achieved through... Figure 2 The steps shown are to be implemented as follows:
[0052] Step 201: Place the first sub-mesh model into the first layer, and place the second sub-mesh model into the second layer.
[0053] In some embodiments, the first sub-mesh model is identified as a first layer, and the second sub-mesh model is identified as a second layer. Understandably, the two identifiers are used to distinguish between two types of objects in the 3D mesh model that require different processing.
[0054] In this embodiment, a layer can be understood as a film containing elements such as text or graphics, which are stacked sequentially to form the final page effect. Layers are independent of each other; operations performed on objects within one layer generally do not affect other layers. Multiple layers can be displayed overlaid.
[0055] In a feasible scenario, taking the 3D mesh model of the image frame to be processed, which includes a glow-reflected model and a normal model without glow, as an example, see [link to relevant documentation]. Figure 3As shown, for example, the 3D mesh model includes two glow models and three ordinary models, wherein the two glow models serve as the first sub-mesh model, and the three ordinary models serve as the second sub-mesh model. The electronic device places the first sub-mesh model into the first layer, for example... Figure 3 In the new layer 1, place the second sub-mesh model into the second layer, for example... Figure 3 The original layer 0 in the image.
[0056] Step 202: Replace the original material of the second sub-mesh model in the second layer with the target material to obtain the third sub-mesh model with the target material.
[0057] In other embodiments of this application, the target material is black, and the black material does not have a glow effect after global glow rendering.
[0058] Combination Figure 3 and Figure 4 As shown, the electronic device replaces the original materials of the three ordinary models in the original layer 0 with the target material to obtain a third sub-mesh model with the target material. For example, it obtains a third sub-mesh model with a black material. The three ordinary models are backed up and saved so that they can be restored.
[0059] In some embodiments, the electronic device uses a synchronized frame rate processing method to replace the materials of the non-glowing parts of the model (i.e., the three ordinary models) in the original layer 0 with black materials, resulting in a third sub-mesh model with black materials, which is then saved for easy restoration after the glow rendering is completed. The synchronized frame rate processing method also renders the scene background as a black background to prevent the background from being affected by the glow effect.
[0060] In a feasible scenario, combined Figure 5 As shown, Figure 5 The presentation shows the comparison results before and after processing the material requiring glow through steps 201-202. Figure 5 The left side of the image shows the rendering effect of the glow model in the unprocessed image frame. Figure 5 The right side of the image shows the effect after processing the material and background that need glow. In this case, not only is the original material of the ordinary model replaced with the target material, but the background is also rendered as a black background.
[0061] Step 203: Perform the first global processing on the first sub-mesh model in the first layer and the third sub-mesh model in the second layer.
[0062] In other embodiments of this application, the first global processing includes: global glow rendering; the first effect includes: glow effect.
[0063] In other embodiments of this application, the global glow rendering is processed by Gaussian blurring.
[0064] In this embodiment, the electronic device performs global glow rendering on the first sub-mesh model in the first layer and the third sub-mesh model in the second layer, for example, by using Gaussian blur processing, as described above. Figure 6 As shown, based on the Gaussian curve, a high value is given near its center, and it gradually disappears as the distance increases, while adjacent pixels are weakened.
[0065] Combination Figure 7 and Figure 8 As shown, further explanation of the Gaussian blur processing method is provided; see [link to relevant documentation]. Figure 7 As shown, sampling a 32x32 bounding box around a fragment would require sampling each point in the 32x32 region 1024 times in a texture using conventional Gaussian blur processing, which is complex. In this embodiment, a two-step Gaussian blur process is used, dividing the two-dimensional equation into two smaller one-dimensional equations: one describing the horizontal weights and the other describing the vertical weights. Furthermore, horizontal blurring is first performed using the horizontal weights on the scene texture, and then vertical blurring is performed on the generated texture. This requires only 32+32 samples, saving significant processing power.
[0066] Furthermore, a blurred texture is added on top of the original High Dynamic Range Imaging (HDR) scene texture. See also Figure 8 As shown, because the blur filter expands the bright areas in both width and height, the bright areas of a scene that has been Gaussian blurred appear to glow or overflow light.
[0067] Step 204: Replace the third sub-mesh model in the second layer with the second sub-mesh model that has the original material.
[0068] In the embodiments of this application, Figure 4 Based on this, a synchronized frame rate method is adopted, referring to Figure 9 As shown, the third sub-mesh model with black material is replaced with a normal model with the original material, that is, the backed-up non-glowing part of the model is restored to the initial material.
[0069] In other embodiments of this application, step 103, based on a first sub-mesh model with the first effect and a second sub-mesh model without the first effect, determines the image frame to be displayed, which can be achieved through the following steps:
[0070] Overlay the first layer and the second layer to determine the image frame to be displayed.
[0071] In this embodiment, the electronic device overlays the first layer and the second layer to restore the background color of the scene, resulting in the following: Figure 10 The image frame shown is rendered in real time, thus achieving the desired local glow effect.
[0072] In other embodiments of this application, determining the first sub-mesh model and the second sub-mesh model in the three-dimensional mesh model in step 101 can be achieved by, for example... Figure 11 The steps shown are to be implemented as follows:
[0073] Step 401: Assign a first identifier to the 3D mesh model that needs the first effect, and assign a second identifier to the 3D mesh model that does not need the first effect.
[0074] In this embodiment, upon obtaining a 3D mesh model of the image frame to be processed, it is determined which 3D mesh models require a first effect and which do not. A first identifier is assigned to the 3D mesh models requiring the first effect, and a second identifier is assigned to the 3D mesh models not requiring the first effect. This allows for the marking of the 3D mesh models according to requirements, facilitating subsequent precise rendering based on the identifiers. When layers are introduced to render different 3D mesh models separately, the identifier of each 3D mesh model can be used to determine which layer to place it in. For example, 3D mesh models with a first identifier are placed in the first layer, and 3D mesh models with a second identifier are placed in the second layer.
[0075] Step 402: Determine the 3D mesh model with the first identifier as the first sub-mesh model, and determine the 3D mesh model with the second identifier as the second sub-mesh model.
[0076] In this embodiment of the application, when different identifiers are assigned to the three-dimensional mesh models, the three-dimensional mesh model with the first identifier is determined as the first sub-mesh model, and the three-dimensional mesh model with the second identifier is determined as the second sub-mesh model.
[0077] In other embodiments of this application, an information processing method is performed on each image frame to be processed to determine multiple image frames to be displayed, and the multiple image frames to be displayed are combined to obtain the animation to be displayed.
[0078] In this embodiment, the electronic device uses a synchronous frame rate processing method to perform information processing on each image frame to be processed, determines multiple image frames to be displayed, and synthesizes the multiple image frames to be displayed to obtain the animation to be displayed. This achieves more accurate rendering of local model glow. Compared with the related technology that uses point light sources, adjusts the position and direction of the light source, and highlights the local model separately, this achieves the effect of the model emitting glow or overflowing light locally.
[0079] Embodiments of this application provide an information processing apparatus that can be applied to... Figure 1 In a corresponding embodiment of an information processing method, referring to Figure 12 As shown, the information processing device 5 includes:
[0080] The acquisition module 501 is used to acquire the three-dimensional mesh model of the image frame to be processed, and to determine the first sub-mesh model and the second sub-mesh model in the three-dimensional mesh model;
[0081] The processing module 502 is used to perform a first global processing on the first sub-mesh model and the second sub-mesh model, and to perform a second processing on the second sub-mesh model. The second processing makes the second sub-mesh model unaffected by the first global processing, wherein the first global processing gives the three-dimensional mesh model a first effect.
[0082] The determination module 503 is used to determine the image frame to be displayed based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect.
[0083] In other embodiments of this application, the processing module 502 is used to replace the original material of the second sub-mesh model with the target material before performing the first global processing on the first sub-mesh model and the second sub-mesh model to obtain a third sub-mesh model, wherein the target material does not have the first effect after the first global processing; and after performing the first global processing on the first sub-mesh model and the second sub-mesh model, replace the third sub-mesh model with the target material with the second sub-mesh model with the original material.
[0084] In other embodiments of this application, the processing module 502 places the first sub-mesh model into the first layer and the second sub-mesh model into the second layer; replaces the original material of the second sub-mesh model in the second layer with the target material to obtain a third sub-mesh model with the target material; performs a first global processing on the first sub-mesh model in the first layer and the third sub-mesh model in the second layer; and replaces the third sub-mesh model in the second layer with the second sub-mesh model with the original material.
[0085] In other embodiments of this application, the determining module 503 is used to overlay the first layer and the second layer to determine the image frame to be displayed.
[0086] In other embodiments of this application, the first global processing includes: global glow rendering; the first effect includes: glow effect.
[0087] In other embodiments of this application, the target material is black, and the black material does not have a glow effect after global glow rendering.
[0088] In other embodiments of this application, the global glow rendering is processed by Gaussian blurring.
[0089] In other embodiments of this application, the acquisition module 501 is used to assign a first identifier to a 3D mesh model that needs to have a first effect, and to assign a second identifier to a 3D mesh model that does not need to have a first effect; to determine the 3D mesh model with the first identifier as a first sub-mesh model, and to determine the 3D mesh model with the second identifier as a second sub-mesh model.
[0090] In other embodiments of this application, the determining module 503 is used to perform an information processing method on each image frame to be processed, determine multiple image frames to be displayed, and perform composite processing on the multiple image frames to be displayed to obtain an animation to be displayed.
[0091] This application provides an information processing apparatus that acquires a three-dimensional mesh model of an image frame to be processed, and determines a first sub-mesh model and a second sub-mesh model within the three-dimensional mesh model. A first global processing is performed on the first and second sub-mesh models, and a second processing is performed on the second sub-mesh model, whereby the second processing renders the second sub-mesh model unaffected by the first global processing. The first global processing imparts a first effect to the three-dimensional mesh model. Based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect, an image frame to be displayed is determined. In other words, in this application embodiment, during the processing of the three-dimensional mesh model of the image frame to be processed, the effects produced by processing the first and second sub-mesh models are different. Therefore, the image frame to be displayed is determined based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect, achieving the purpose of locally highlighting the first effect.
[0092] It should be noted that the specific implementation process of the steps executed by the processor in this embodiment can be referred to Figure 1 The implementation process of the information processing method provided in the corresponding embodiments will not be described in detail here.
[0093] Embodiments of this application provide an electronic device that can be applied to... Figure 1 In a corresponding embodiment of an information processing method, referring to Figure 13 As shown, the electronic device 6 ( Figure 13 Electronic devices 6 and Figure 12 The information processing device 5 in the middle (corresponding to the above) includes: a processor 601, a memory 602, and a communication bus 603, wherein:
[0094] Communication bus 603 is used to realize the communication connection between processor 601 and memory 602;
[0095] The processor 601 is used to execute the information processing program stored in the memory 602 to perform the following steps:
[0096] Obtain the 3D mesh model of the image frame to be processed, and determine the first sub-mesh model and the second sub-mesh model in the 3D mesh model;
[0097] A first global processing is performed on the first sub-mesh model and the second sub-mesh model, and a second processing is performed on the second sub-mesh model. The second processing makes the second sub-mesh model unaffected by the first global processing, wherein the first global processing gives the 3D mesh model the first effect.
[0098] The image frame to be displayed is determined based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect.
[0099] In other embodiments of this application, processor 601 is used to execute an information processing program stored in memory 602 to perform the following steps:
[0100] Before performing the first global processing on the first and second sub-mesh models, the original material of the second sub-mesh model is replaced with the target material to obtain the third sub-mesh model. The target material, after the first global processing, does not retain the first effect; and
[0101] After performing the first global processing on the first and second sub-mesh models, the third sub-mesh model with the target material is replaced with the second sub-mesh model with the original material.
[0102] In other embodiments of this application, processor 601 is used to execute an information processing program stored in memory 602 to perform the following steps:
[0103] Place the first sub-mesh model in the first layer, and the second sub-mesh model in the second layer;
[0104] Replace the original material of the second sub-mesh model in the second layer with the target material to obtain the third sub-mesh model with the target material;
[0105] Perform the first global processing on the first sub-mesh model in the first layer and the third sub-mesh model in the second layer;
[0106] Replace the third sub-mesh model in the second layer with the second sub-mesh model that has the original material.
[0107] In other embodiments of this application, processor 601 is used to execute an information processing program stored in memory 602 to perform the following steps:
[0108] Overlay the first layer and the second layer to determine the image frame to be displayed.
[0109] In other embodiments of this application, the first global processing includes: global glow rendering; the first effect includes: glow effect.
[0110] In other embodiments of this application, the target material is black, and the black material does not have a glow effect after global glow rendering.
[0111] In other embodiments of this application, the global glow rendering is processed by Gaussian blurring.
[0112] In other embodiments of this application, processor 601 is used to execute an information processing program stored in memory 602 to perform the following steps:
[0113] Assign a first identifier to 3D mesh models that require a first effect, and assign a second identifier to 3D mesh models that do not require a first effect;
[0114] The 3D mesh model with the first identifier is designated as the first sub-mesh model, and the 3D mesh model with the second identifier is designated as the second sub-mesh model.
[0115] In other embodiments of this application, the processor 601 is used to execute the information processing program stored in the memory 602 to perform the following steps: perform an information processing method on each image frame to be processed, determine multiple image frames to be displayed, and perform composite processing on the multiple image frames to be displayed to obtain an animation to be displayed.
[0116] As an example, a processor can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where a general-purpose processor can be a microprocessor or any conventional processor, etc.
[0117] This application provides an electronic device that, by acquiring a three-dimensional mesh model of an image frame to be processed, determines a first sub-mesh model and a second sub-mesh model within the three-dimensional mesh model; performs a first global processing on the first and second sub-mesh models, and performs a second processing on the second sub-mesh model, wherein the second processing makes the second sub-mesh model unaffected by the first global processing, wherein the first global processing imparts a first effect to the three-dimensional mesh model; and determines an image frame to be displayed based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect. In other words, in this application embodiment, during the processing of the three-dimensional mesh model of the image frame to be processed, the effects produced by processing the first and second sub-mesh models are different, thereby determining the image frame to be displayed based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect, achieving the purpose of locally highlighting the first effect.
[0118] It should be noted that the specific implementation process of the steps executed by the processor in this embodiment can be referred to Figure 1 The implementation process of the information processing method provided in the corresponding embodiments will not be described in detail here.
[0119] Embodiments of this application provide a computer-readable storage medium storing one or more programs that can be executed by one or more processors to perform the following steps:
[0120] Obtain the 3D mesh model of the image frame to be processed, and determine the first sub-mesh model and the second sub-mesh model in the 3D mesh model;
[0121] A first global processing is performed on the first sub-mesh model and the second sub-mesh model, and a second processing is performed on the second sub-mesh model. The second processing makes the second sub-mesh model unaffected by the first global processing, wherein the first global processing gives the 3D mesh model the first effect.
[0122] The image frame to be displayed is determined based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect.
[0123] In other embodiments of this application, the one or more programs may be executed by one or more processors, and may also perform the following steps:
[0124] Before performing the first global processing on the first and second sub-mesh models, the original material of the second sub-mesh model is replaced with the target material to obtain the third sub-mesh model. The target material, after the first global processing, does not retain the first effect; and
[0125] After performing the first global processing on the first and second sub-mesh models, the third sub-mesh model with the target material is replaced with the second sub-mesh model with the original material.
[0126] In other embodiments of this application, the one or more programs may be executed by one or more processors, and may also perform the following steps:
[0127] Place the first sub-mesh model in the first layer, and the second sub-mesh model in the second layer;
[0128] Replace the original material of the second sub-mesh model in the second layer with the target material to obtain the third sub-mesh model with the target material;
[0129] Perform the first global processing on the first sub-mesh model in the first layer and the third sub-mesh model in the second layer;
[0130] Replace the third sub-mesh model in the second layer with the second sub-mesh model that has the original material.
[0131] In other embodiments of this application, the one or more programs may be executed by one or more processors, and may also perform the following steps:
[0132] Overlay the first layer and the second layer to determine the image frame to be displayed.
[0133] In other embodiments of this application, the first global processing includes: global glow rendering; the first effect includes: glow effect.
[0134] In other embodiments of this application, the target material is black, and the black material does not have a glow effect after global glow rendering.
[0135] In other embodiments of this application, the global glow rendering is processed by Gaussian blurring.
[0136] In other embodiments of this application, the one or more programs may be executed by one or more processors, and may also perform the following steps:
[0137] Assign a first identifier to 3D mesh models that require a first effect, and assign a second identifier to 3D mesh models that do not require a first effect;
[0138] The 3D mesh model with the first identifier is designated as the first sub-mesh model, and the 3D mesh model with the second identifier is designated as the second sub-mesh model.
[0139] In other embodiments of this application, the one or more programs may be executed by one or more processors, and may also perform the following steps:
[0140] For each image frame to be processed, an information processing method is executed to determine multiple image frames to be displayed. The multiple image frames to be displayed are then combined to obtain the animation to be displayed.
[0141] It should be noted that the specific implementation process of the steps executed by the processor in this embodiment can be referred to Figure 1 The implementation process of the information processing method provided in the corresponding embodiments will not be described in detail here.
[0142] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0143] The aforementioned computer storage media / memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM), etc.; or it can be various terminals that include one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0144] It should be understood that the terms "an embodiment," "an embodiment," "an embodiment of this application," "the foregoing embodiment," "some embodiments," or "some implementations" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, the phrases "an embodiment," "an embodiment," "an embodiment of this application," "the foregoing embodiment," "some embodiments," or "some implementations" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above embodiments of this application are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0145] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0146] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0147] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0148] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0149] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0150] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0151] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0152] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, 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, server, or network device, etc.) to execute all or part of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0153] It is worth noting that the accompanying drawings in this application are only for illustrating the schematic positions of various devices on the terminal device and do not represent their actual positions in the terminal device. The actual positions of each device or area may be changed or shifted according to the actual situation (e.g., the structure of the terminal device). Furthermore, the proportions of different parts in the terminal device in the drawings do not represent the actual proportions.
[0154] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An information processing method, the method comprising: Obtain the three-dimensional mesh model of the image frame to be processed, and determine the first sub-mesh model and the second sub-mesh model in the three-dimensional mesh model; A first global processing is performed on the first sub-mesh model and the second sub-mesh model, and a second processing is performed on the second sub-mesh model, wherein the second processing makes the second sub-mesh model unaffected by the first global processing, wherein the first global processing gives the 3D mesh model a first effect; the first global processing includes: global glow rendering; the first effect includes: glow effect; The image frame to be displayed is determined based on the first sub-mesh model with the first effect and the second sub-mesh model without the first effect.
2. The information processing method according to claim 1, wherein the second processing on the second sub-mesh model, wherein the second processing makes the second sub-mesh model unaffected by the first global processing, comprises: Before performing the first global processing on the first and second sub-mesh models, the original material of the second sub-mesh model is replaced with the target material to obtain the third sub-mesh model. The target material, after the first global processing, does not retain the first effect. After performing the first global processing on the first sub-mesh model and the second sub-mesh model, the third sub-mesh model with the target material is replaced with the second sub-mesh model with the original material.
3. The information processing method according to claim 2, wherein performing a first global processing on the first sub-mesh model and the second sub-mesh model, and performing a second processing on the second sub-mesh model, wherein the second processing makes the second sub-mesh model unaffected by the first global processing, comprises: Place the first sub-mesh model in the first layer, and the second sub-mesh model in the second layer; Replace the original material of the second sub-mesh model in the second layer with the target material to obtain the third sub-mesh model with the target material; Perform the first global processing on the first sub-mesh model in the first layer and the third sub-mesh model in the second layer; Replace the third sub-mesh model in the second layer with the second sub-mesh model having the original material.
4. The information processing method according to claim 3, wherein determining the image frame to be displayed based on a first sub-mesh model with the first effect and a second sub-mesh model without the first effect includes: Overlay the first layer and the second layer to determine the image frame to be displayed.
5. The information processing method according to claim 4, wherein the target material is a black material, and the black material does not have the glow effect after being rendered by the global glow.
6. The information processing method according to claim 4, wherein the global glow rendering is performed by Gaussian blur processing.
7. The information processing method according to claim 1, wherein determining the first sub-mesh model and the second sub-mesh model in the three-dimensional mesh model comprises: Assign a first identifier to the 3D mesh model that needs the first effect, and assign a second identifier to the 3D mesh model that does not need the first effect; The 3D mesh model with the first identifier is identified as the first sub-mesh model, and the 3D mesh model with the second identifier is identified as the second sub-mesh model.
8. The information processing method according to claim 1, wherein the information processing method is executed for each image frame to be processed, multiple image frames to be displayed are determined, and the multiple image frames to be displayed are synthesized to obtain an animation to be displayed.
9. An information processing apparatus, comprising: The acquisition module is used to acquire the three-dimensional mesh model of the image frame to be processed, and to determine the first sub-mesh model and the second sub-mesh model in the three-dimensional mesh model; The processing module is configured to perform a first global processing on the first sub-mesh model and the second sub-mesh model, and to perform a second processing on the second sub-mesh model, wherein the second processing makes the second sub-mesh model unaffected by the first global processing, wherein the first global processing gives the 3D mesh model a first effect; the first global processing includes: global glow rendering; the first effect includes: glow effect; The determination module is used to determine the image frame to be displayed based on a first sub-mesh model with the first effect and a second sub-mesh model without the first effect.