Interface layer generation method, generation device, electronic equipment and storage medium
By rendering a 2D image of the target model in a 3D scene and generating a target interface layer, the problem of difficulty in adjusting the stacking order of interface layers in existing technologies is solved, and flexible stacking and efficient adjustment of interface layers are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2022-12-28
- Publication Date
- 2026-06-02
AI Technical Summary
The existing technology for generating interface layers in a 3D scene is complex and difficult to adjust the stacking order, resulting in poor flexibility in interface creation.
By acquiring the vertex animation texture map of the target model, the model object is rendered in a 3D scene using a virtual camera, generating a 2D rendered image, which is then saved in a specified cache. Subsequently, a target interface layer is generated based on the target 2D rendered image, allowing for flexible adjustment of the stacking order.
The generated target interface layer can be flexibly stacked with other interface layers, improving the flexibility and visual experience of interface creation while reducing manpower and time costs.
Smart Images

Figure CN116204256B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for generating interface layers. Background Technology
[0002] In game systems or other interactive systems, it is often necessary to set up interactive interfaces primarily based on interactive controls, or information interfaces primarily based on displaying information. The interface typically includes multiple layers, each containing different content, and the stacking order of the layers also affects the final appearance of the interface. To enhance the visual experience, animation effects are often added to some layers.
[0003] In related technologies, a model is created in a 3D scene, a skeleton is attached to the model to control its movements, and a scene rendering is obtained. The interface layer is then derived from this scene rendering. This method has a complex production process, and the resulting interface layers are difficult to stack or apply to other interfaces, resulting in poor flexibility in interface creation. Summary of the Invention
[0004] In view of this, the present invention provides a method, apparatus, electronic device, and storage medium for generating an interface layer, the obtained target interface layer being used more flexibly for interface creation.
[0005] In a first aspect, embodiments of the present invention provide a method for generating an interface layer, comprising: obtaining a vertex animation texture map corresponding to a target model; wherein the vertex animation texture map includes: vertex positions of model vertices in the target model at multiple time points; the vertex animation texture map is used to: control the vertex positions of the model vertices when rendering the target model; setting the target model and a virtual camera in a three-dimensional scene; rendering the model object according to the vertex animation texture map through the virtual camera to obtain a two-dimensional rendered image of the model object, and storing the two-dimensional rendered image in a designated cache; wherein the designated cache includes two-dimensional rendered images of the model object at multiple time points; in different two-dimensional rendered images, at least some of the model vertices in the target model have different vertex positions; obtaining a target two-dimensional rendered image corresponding to a preset time point from the designated cache, and generating a target interface layer based on the target two-dimensional rendered image.
[0006] According to the foregoing embodiments of the first aspect of the present invention, the step of obtaining a vertex animation texture map corresponding to a target model includes: obtaining a target model and controlling the target model to undergo dynamic changes; baking the vertex positions of the model vertices in the target model during the dynamic changes to obtain a vertex animation texture map of the model object.
[0007] According to any of the foregoing embodiments of the first aspect of the present invention, the target model includes: a particle effect model; the step of acquiring the target model and controlling the target model to dynamically change includes: generating the particle effect model; wherein the particle effect model includes a plurality of particle objects; adjusting the object parameters of the particle objects to control the particle objects in the particle effect model to be arranged in a line shape; and controlling the line-shaped particle objects to dynamically change.
[0008] According to any of the foregoing embodiments of the first aspect of the present invention, the step of rendering the model object by means of the virtual camera according to the vertex dynamic texture map to obtain a two-dimensional rendered image of the model object includes: exposing the camera attributes, scene attributes and image attributes corresponding to the two-dimensional rendered image.
[0009] According to any of the foregoing embodiments of the first aspect of the present invention, the step of generating a target interface layer based on the target two-dimensional rendered image includes: determining a target frame in the target two-dimensional rendered image based on camera attributes, scene attributes, and image attributes of the target two-dimensional rendered image; obtaining an adjusted target two-dimensional rendered image by adjusting the target frame; and generating the target interface layer based on the adjusted target two-dimensional rendered image.
[0010] According to any of the foregoing embodiments of the first aspect of the present invention, the step of obtaining the adjusted target two-dimensional rendering image by adjusting the target frame includes: processing the target frame in the target two-dimensional rendering image based on a preset mask to obtain a partially transparent target two-dimensional rendering image; wherein, the partially transparent target two-dimensional rendering image includes a model object region and a non-model object region processed to be transparent, the model object region being the corresponding region of the model object in the target two-dimensional rendering image, and the non-model object region being the region outside the model object region in the target two-dimensional rendering image.
[0011] According to any of the foregoing embodiments of the first aspect of the present invention, in the two-dimensional rendered image, the target model is placed in a solid color background of a specified color, the color of the solid color background being different from the color of the model object, and the step of obtaining the adjusted target two-dimensional rendered image by adjusting the target frame includes: obtaining a model object region in the target frame based on the color difference between the model object and the solid color background, wherein the model object region is the corresponding region of the model object in the target frame; and obtaining the adjusted target two-dimensional rendered image based on the model object region in each target frame.
[0012] According to any of the foregoing embodiments of the first aspect of the present invention, after the step of generating a target interface layer based on the target two-dimensional rendered image, the method further includes: obtaining a target image by stacking the target interface layer with other interface layers; wherein the target image is used to display on a graphical user interface.
[0013] According to any of the foregoing embodiments of the first aspect of the present invention, the step of obtaining a target image by stacking the target interface layer with other interface layers includes: adjusting the stacking order between the target interface layer and the other interface layers based on the target display position of the target model in the target image.
[0014] According to any of the foregoing embodiments of the first aspect of the present invention, the time point of the two-dimensional rendered image in the designated buffer corresponds to the time point in the vertex animation texture map.
[0015] Secondly, embodiments of the present invention provide an interface layer generation device, comprising: a vertex animation texture map acquisition module, used to acquire a vertex animation texture map corresponding to a target model; wherein, the vertex animation texture map includes: vertex positions of model vertices in the target model at multiple time points; the vertex animation texture map is used to: control the vertex positions of the model vertices when rendering the target model; a scene editing module, used to set the target model and a virtual camera in a three-dimensional scene; a rendering image caching module, used to render the model object according to the vertex animation texture map through the virtual camera to obtain a two-dimensional rendering image of the model object, and save the two-dimensional rendering image in a designated cache area; wherein, the designated cache area includes two-dimensional rendering images of the model object at multiple time points; in different two-dimensional rendering images, at least some model vertices in the target model have different vertex positions; and a target interface layer generation module, used to acquire a target two-dimensional rendering image corresponding to a preset time point from the designated cache area, and generate a target interface layer based on the target two-dimensional rendering image.
[0016] Thirdly, embodiments of the present invention provide an electronic device including a processor and a memory, the memory storing machine-executable instructions executable by the processor, the processor executing the machine-executable instructions to implement the interface layer generation method according to any of the foregoing embodiments of the first aspect of the present invention.
[0017] Fourthly, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to implement the interface layer generation method according to any of the foregoing embodiments of the first aspect of the present invention.
[0018] According to embodiments of the present invention, a method, apparatus, electronic device, and machine-readable storage medium for generating interface layers obtain vertex animation texture maps corresponding to a target model, set the target model and a virtual camera in a three-dimensional scene, and then render the model object according to the vertex dynamic texture maps using the virtual camera to obtain a two-dimensional rendered image of the model object. The two-dimensional rendered image is stored in a designated cache area, which is the render target (RT). The designated cache area includes two-dimensional rendered images of the model object at multiple time points. Then, the target two-dimensional rendered image corresponding to a preset time point is obtained from the designated cache area, and a target interface layer is generated based on the target two-dimensional rendered image. The target interface layer generated by the above scheme can be directly imported into a user interface (UI) editor, where relevant parameters can be adjusted. In the interface layer generation method of the present invention, an additional three-dimensional scene is used to obtain the two-dimensional rendered image of the model object during the generation of the target interface layer. This additional three-dimensional scene is different from the scene used in the generation of other interface layers. Therefore, the generated target interface layer can be flexibly stacked with other interface layers to generate the required image. The target interface layer can be flexibly stacked with other interface layers. This is reflected in the ability to adjust the stacking order between the target interface layer and other interface layers, and also in the ability to stack the target interface layer with different other interface layers as needed.
[0019] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0020] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0021] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0022] Figure 1 A flowchart illustrating a method for generating an interface layer according to an embodiment of the present invention;
[0023] Figure 2This is a flowchart illustrating the process of obtaining the vertex animation texture map corresponding to the target model in a method for generating an interface layer according to an embodiment of the present invention.
[0024] Figure 3 This is a flowchart illustrating the method for generating a target interface layer based on a target two-dimensional rendered image, as provided in an embodiment of the present invention.
[0025] Figure 4 A flowchart of a method for generating an interface layer according to another embodiment of the present invention;
[0026] Figure 5 A structural block diagram of an interface layer generation device provided in one embodiment of the present invention;
[0027] Figure 6 A structural block diagram of an interface layer generation device provided in another embodiment of the present invention;
[0028] Figure 7 This is a structural block diagram of an electronic device provided in one embodiment of the present invention. Detailed Implementation
[0029] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0030] In game systems or other interactive systems, it is often necessary to set up interactive interfaces primarily based on interactive controls, or information interfaces primarily based on displaying information. The interface typically includes multiple layers, each containing different content, and the stacking order of the layers also affects the final appearance of the interface. To enhance the visual experience, animation effects are often added to some layers.
[0031] In related technologies, a model is created in a 3D scene, a skeleton is attached to the model to control its movements, and a scene rendering is obtained. The interface layer is then derived from this scene rendering. This method has a complex production process, and the resulting interface layers are difficult to stack or apply to other interfaces, resulting in poor flexibility in interface creation.
[0032] Based on this, the present invention provides a method, apparatus, electronic device and machine-readable storage medium for generating an interface layer, and the obtained target interface layer can be used more flexibly for interface creation.
[0033] The interface layer generation method in one embodiment of the present invention can run on a local terminal device or a server. When the interface layer generation method runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0034] In some alternative implementations, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of the interface layer generation method are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0035] In some alternative implementations, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0036] In one possible implementation, the present invention provides a method for generating an interface layer, which provides a graphical user interface through a terminal device, wherein the terminal device may be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system.
[0037] To facilitate understanding of this embodiment, a method for generating an interface layer disclosed in this embodiment of the invention will first be described in detail. Figure 1 This is a flowchart illustrating a method for generating an interface layer according to an embodiment of the present invention. In this embodiment, the method for generating the interface layer includes steps S110 to S140.
[0038] In step S110, the vertex animation texture map corresponding to the target model is obtained; wherein, the vertex animation texture map includes: the vertex positions of the model vertices in the target model at multiple time points; the vertex animation texture map is used to: control the vertex positions of the model vertices when rendering the target model.
[0039] Figure 2 The flowchart of obtaining the vertex animation texture map corresponding to the target model in the interface layer generation method provided in one embodiment of the present invention includes steps S111 and S112 in some embodiments.
[0040] In step S111, the target model is acquired and the target model is controlled to undergo dynamic changes.
[0041] In some embodiments, the target model includes a particle effect model. In this case, the step S111 of acquiring the target model and controlling its dynamic changes may include: generating a particle effect model; wherein the particle effect model includes multiple particle objects; adjusting the object parameters of the particle objects to control the particle objects in the particle effect model to be arranged in a line shape; and controlling the line-shaped particle objects to dynamically change.
[0042] In step S112, the vertex positions of the model vertices in the target model during the dynamic change process are baked to obtain the vertex animation texture map of the model object.
[0043] In some embodiments, the target model is created using a model editor within the game engine, for example, by creating a particle effects model using a particle editor within the game engine. In some embodiments, the target model is created using a 3D effects editing tool outside the game engine, for example, by creating the target model using Houdini.
[0044] like Figure 1 In step S120, the target model and the virtual camera are set in the three-dimensional scene.
[0045] In some embodiments, during the process of setting the target model and virtual camera in a 3D scene, the 3D scene is first created, then the virtual camera and empty texture are created, and finally the target model is set in the 3D scene.
[0046] In step S130, the model object is rendered using a virtual camera according to the vertex dynamic texture map to obtain a two-dimensional rendering image of the model object. The two-dimensional rendering image is saved in a specified buffer area, which is the rendering target (RT). The specified buffer area includes two-dimensional rendering images of the model object at multiple time points. In different two-dimensional rendering images, the vertex positions of at least some model vertices in the target model are different.
[0047] In some embodiments, the time point of the 2D rendered image in the specified buffer corresponds to the time point in the vertex animation texture map.
[0048] In some embodiments, step S130, which renders a model object according to a vertex dynamic texture map to obtain a two-dimensional rendered image of the model object, includes: exposing the camera attributes, scene attributes, and image attributes corresponding to the two-dimensional rendered image.
[0049] In step S140, the target two-dimensional rendering image corresponding to the preset time point is obtained from the specified cache area, and the target interface layer is generated based on the target two-dimensional rendering image.
[0050] As mentioned above, in some embodiments, step S130 includes exposing the camera attributes, scene attributes, and image attributes corresponding to the 2D rendered image. In this case, such as... Figure 3 , Figure 3 The flowchart of the interface layer generation method provided in an embodiment of the present invention is a process for generating a target interface layer based on a target two-dimensional rendering image. The step of generating the target interface layer based on the target two-dimensional rendering image may include steps S141 to S143.
[0051] In step S141, the target frame in the target 2D rendered image is determined based on the camera attributes, scene attributes, and image attributes of the target 2D rendered image.
[0052] In step S142, the adjusted target 2D rendered image is obtained by adjusting the target frame.
[0053] In step S143, a target interface layer is generated based on the adjusted target 2D rendered image.
[0054] Optionally, step S142, which involves adjusting the target frame to obtain the adjusted target 2D rendered image, includes: processing the target frame in the target 2D rendered image based on a preset mask to obtain a partially transparent target 2D rendered image; wherein, the partially transparent target 2D rendered image includes a model object region and a non-model object region processed to be transparent, the model object region being the corresponding region of the model object in the target 2D rendered image, and the non-model object region being the region outside the model object region in the target 2D rendered image. Through the above steps, the non-model object region of the target 2D rendered image becomes transparent, thereby facilitating the application of the finally generated target interface layer to the foreground layer.
[0055] Optionally, in the 2D rendered image, the target model is placed against a solid-color background of a specified color, the color of which differs from the color of the model object. Optionally, step S142, which involves adjusting the target frame to obtain the adjusted target 2D rendered image, includes: obtaining the model object region in the target frame based on the color difference between the model object and the solid-color background; the model object region being the corresponding area of the model object in the target frame; and obtaining the adjusted target 2D rendered image based on the model object region in each target frame. After these steps, the target 2D rendered image contains the model object region, and the non-model object regions outside the model object region are essentially transparent or non-existent, thus facilitating the application of the finally generated target interface layer to the foreground layer.
[0056] According to the interface layer generation method of this invention, the vertex animation texture map corresponding to the target model is obtained. The target model and a virtual camera are set in a three-dimensional scene. Then, the model object is rendered according to the vertex dynamic texture map through the virtual camera to obtain a two-dimensional rendering image of the model object. The two-dimensional rendering image is saved in a specified cache, which includes two-dimensional rendering images of the model object at multiple time points. Then, the target two-dimensional rendering image corresponding to a preset time point is obtained from the specified cache, and a target interface layer is generated based on the target two-dimensional rendering image. The target interface layer generated by the above scheme can be directly imported into a user interface (UI) editor, and the UI editor can adjust relevant parameters. In the interface layer generation method of this invention, the two-dimensional rendering image of the model object is obtained using an additional three-dimensional scene during the generation of the target interface layer. This additional three-dimensional scene is different from the scene used in the generation of other interface layers. Therefore, the generated target interface layer can be flexibly stacked with other interface layers to generate the required image. The target interface layer can be flexibly stacked with other interface layers, which is reflected in the ability to adjust the stacking order between the target interface layer and other interface layers, and also in the ability to stack the target interface layer with different other interface layers as needed.
[0057] In the interface layer generation method of the above embodiment, the target model and virtual camera are set in a three-dimensional scene. The model object is rendered according to the vertex dynamic texture mapping through the virtual camera to obtain a two-dimensional rendering image of the model object. This makes the final target interface layer more accurate and facilitates the acquisition of high-quality three-dimensional art UI assets.
[0058] Figure 4 This is a flowchart of a method for generating an interface layer according to another embodiment of the present invention. In another embodiment, the method for generating an interface layer includes steps S210 to S260.
[0059] In step S210, the vertex animation texture map corresponding to the target model is obtained; wherein, the vertex animation texture map includes: the vertex positions of the model vertices in the target model at multiple time points; the vertex animation texture map is used to: control the vertex positions of the model vertices when rendering the target model.
[0060] In step S220, the target model and virtual camera are set in the three-dimensional scene.
[0061] In step S230, the model object is rendered using a virtual camera according to the vertex dynamic texture map to obtain a two-dimensional rendered image of the model object. The two-dimensional rendered image is saved in a specified cache area, which is the rendering target. The specified cache area includes two-dimensional rendered images of the model object at multiple time points. In different two-dimensional rendered images, the vertex positions of at least some of the model vertices in the target model are different.
[0062] In step S240, the target two-dimensional rendering image corresponding to a preset time point is obtained from the specified cache area, and the target interface layer is generated based on the target two-dimensional rendering image.
[0063] In this embodiment, step S240 is followed by step S250. In step S250, a target image is obtained by stacking the target interface layer with other interface layers; wherein the target image is used to display in the graphical user interface.
[0064] Optionally, step S250, which obtains the target image by stacking the target interface layer with other interface layers, includes: adjusting the stacking order between the target interface layer and other interface layers based on the target display position of the target model in the target image. For example, if the target display position of the target model in the target image is the foreground, then the stacking order between the target interface layer and other interface layers is adjusted so that the target interface layer is in the foreground layer.
[0065] According to the interface layer generation method of this invention, the vertex animation texture map corresponding to the target model is obtained. The target model and a virtual camera are set in a three-dimensional scene. Then, the model object is rendered according to the vertex dynamic texture map through the virtual camera to obtain a two-dimensional rendering image of the model object. The two-dimensional rendering image is saved in a specified cache, which includes two-dimensional rendering images of the model object at multiple time points. Then, the target two-dimensional rendering image corresponding to a preset time point is obtained from the specified cache, and a target interface layer is generated based on the target two-dimensional rendering image. The target interface layer generated by the above scheme can be directly imported into the UI editor, and the UI editor can adjust the relevant parameters. In the interface layer generation method of this invention, the two-dimensional rendering image of the model object is obtained using an additional three-dimensional scene during the generation of the target interface layer. This additional three-dimensional scene is different from the scene used in the generation of other interface layers. Therefore, the generated target interface layer can be flexibly stacked with other interface layers to generate the required image. The target interface layer can be flexibly stacked with other interface layers, which is reflected in the ability to adjust the stacking order between the target interface layer and other interface layers, and also in the ability to stack the target interface layer with different other interface layers as needed.
[0066] In the interface layer generation method of the above embodiments, the two-dimensional rendered image is stored in a designated cache area. When generating the target interface layer, the target two-dimensional rendered image corresponding to a preset time point is obtained from the designated cache area, and the target interface layer is generated based on the target two-dimensional rendered image. When the target image needs frequent adjustments during the project development phase, the effect of the target interface layer can be changed by fine-tuning several elements in the generation process of the target interface layer. Then, the target interface layer is stacked with other interface layers to obtain the adjusted target image. The above-mentioned adjustment of the required target image is transformed into a modular adjustment of a specific layer, which can reduce the labor and time costs of adjusting the target image and facilitate the reuse of the target interface layer for multiple different target images.
[0067] This invention also provides an apparatus for generating interface layers. Figure 5 This is a structural block diagram of an interface layer generation device according to an embodiment of the present invention. The interface layer generation device includes a vertex animation texture map acquisition module 110, a scene editing module 120, a rendering image caching module 130, and a target interface layer generation module 140.
[0068] The vertex animation texture map acquisition module 110 is used to acquire the vertex animation texture map corresponding to the target model; wherein, the vertex animation texture map includes: the vertex positions of the model vertices in the target model at multiple time points; the vertex animation texture map is used to: control the vertex positions of the model vertices when rendering the target model.
[0069] The scene editing module 120 is used to set the target model and virtual camera in the 3D scene.
[0070] The rendering image caching module 130 is used to render the model object according to the vertex dynamic texture map through a virtual camera, obtain the two-dimensional rendering image of the model object, and save the two-dimensional rendering image in a specified cache area; wherein, the specified cache area includes two-dimensional rendering images of the model object at multiple time points; in different two-dimensional rendering images, at least some of the vertex positions of the model vertices in the target model are different.
[0071] The target interface layer generation module 140 is used to obtain the target two-dimensional rendering image corresponding to a preset time point from the specified cache area, and generate the target interface layer based on the target two-dimensional rendering image.
[0072] According to the interface layer generation apparatus of the present invention, the vertex animation texture map acquisition module 110 acquires the vertex animation texture map corresponding to the target model, the scene editing module 120 sets the target model and the virtual camera in a three-dimensional scene, and the rendering image caching module 130 renders the model object according to the vertex dynamic texture map through the virtual camera to obtain a two-dimensional rendering image of the model object, and saves the two-dimensional rendering image in a designated cache area, which includes two-dimensional rendering images of the model object at multiple time points. The target interface layer generation module 140 acquires the target two-dimensional rendering image corresponding to a preset time point from the designated cache area, and generates a target interface layer based on the target two-dimensional rendering image. The target interface layer generated by the above scheme can be directly imported into the UI editor, and the UI editor can adjust the relevant parameters. In the process of generating the target interface layer, an additional three-dimensional scene is used to acquire the two-dimensional rendering image of the model object. This additional three-dimensional scene is different from the scene used in the generation process of other interface layers. Therefore, the generated target interface layer can be flexibly stacked with other interface layers to generate the required image. The target interface layer can be flexibly stacked with other interface layers. This is reflected in the ability to adjust the stacking order between the target interface layer and other interface layers, and also in the ability to stack the target interface layer with different other interface layers as needed.
[0073] According to the interface layer generation device of the above embodiment, the scene editing module 120 sets the target model and virtual camera in the three-dimensional scene, and the rendering image caching module 130 renders the model object according to the vertex dynamic texture map through the virtual camera to obtain the two-dimensional rendering image of the model object, so that the final target interface layer has higher image precision and is easier to obtain high-quality three-dimensional art UI assets.
[0074] In some embodiments, the vertex animation texture map acquisition module 110 includes a dynamic control unit and a baking unit. The dynamic control unit is used to acquire the target model and control the target model to undergo dynamic changes. The baking unit is used to bake the vertex positions of the model vertices in the target model during the dynamic changes to obtain the vertex animation texture map of the model object.
[0075] In some embodiments, the target model includes a particle effect model. The dynamic control unit is configured to: generate the particle effect model; wherein the particle effect model includes multiple particle objects; adjust the object parameters of the particle objects to control the particle objects in the particle effect model to be arranged in a line shape; and control the line-shaped particle objects to dynamically change.
[0076] In some embodiments, the time point of the 2D rendered image in the specified buffer corresponds to the time point in the vertex animation texture map.
[0077] In some embodiments, the rendering image caching module 130 is configured to expose camera attributes, scene attributes, and image attributes corresponding to the two-dimensional rendered image.
[0078] In some embodiments, the target interface layer generation module 140 includes a target frame determination unit, a target frame adjustment unit, and a layer generation unit. The target frame determination unit determines the target frame in the target 2D rendered image based on camera attributes, scene attributes, and image attributes of the target 2D rendered image. The target frame adjustment unit obtains an adjusted target 2D rendered image by adjusting the target frame. The layer generation unit generates a target interface layer based on the adjusted target 2D rendered image.
[0079] Optionally, the target frame adjustment unit is configured to: process the target frame in the target 2D rendered image based on a preset mask to obtain a partially transparent target 2D rendered image; wherein, the partially transparent target 2D rendered image includes a model object region and a non-model object region processed to be transparent, the model object region being the corresponding region of the model object in the target 2D rendered image, and the non-model object region being the region outside the model object region in the target 2D rendered image. After the above processing, the non-model object region of the target 2D rendered image becomes transparent, thereby facilitating the application of the finally generated target interface layer to the foreground layer.
[0080] Optionally, in the 2D rendered image, the target model is placed against a solid-color background of a specified color, the color of which differs from the color of the model object. The target frame adjustment unit is configured to: based on the color difference between the model object and the solid-color background, obtain the model object region in the target frame, where the model object region is the corresponding area of the model object in the target frame; and obtain the adjusted target 2D rendered image based on the model object region in each target frame. After the above processing, the target 2D rendered image contains the model object region, and the non-model object regions outside the model object region are essentially transparent or non-existent, thus facilitating the application of the finally generated target interface layer to the foreground layer.
[0081] Figure 6 This is a structural block diagram of an interface layer generation device provided in another embodiment of the present invention. In another embodiment, the interface layer generation device includes a vertex animation texture map acquisition module 210, a scene editing module 220, a rendering image caching module 230, a target interface layer generation module 240, and a target image acquisition module 250.
[0082] The vertex animation texture map acquisition module 210 is used to acquire the vertex animation texture map corresponding to the target model; wherein, the vertex animation texture map includes: the vertex positions of the model vertices in the target model at multiple time points; the vertex animation texture map is used to: control the vertex positions of the model vertices when rendering the target model.
[0083] The scene editing module 220 is used to set the target model and virtual camera in the 3D scene.
[0084] The rendering image caching module 230 is used to render the model object according to the vertex dynamic texture map through a virtual camera, obtain the two-dimensional rendering image of the model object, and save the two-dimensional rendering image in a specified cache area; wherein, the specified cache area includes two-dimensional rendering images of the model object at multiple time points; in different two-dimensional rendering images, at least some of the vertex positions of the model vertices in the target model are different.
[0085] The target interface layer generation module 240 is used to obtain the target two-dimensional rendering image corresponding to a preset time point from the specified cache area, and generate the target interface layer based on the target two-dimensional rendering image.
[0086] The target image acquisition module 250 is used to obtain a target image by stacking the target interface layer with other interface layers; wherein the target image is used to display on the graphical user interface.
[0087] In some embodiments, the target image acquisition module 250 is configured to adjust the stacking order between the target interface layer and other interface layers based on the target display position of the target model in the target image.
[0088] According to the interface layer generation apparatus of the present invention, the vertex animation texture map acquisition module 110 acquires the vertex animation texture map corresponding to the target model, the scene editing module 220 sets the target model and the virtual camera in a three-dimensional scene, and the rendering image caching module 230 renders the model object according to the vertex dynamic texture map through the virtual camera to obtain a two-dimensional rendering image of the model object, and saves the two-dimensional rendering image in a designated cache area, which includes two-dimensional rendering images of the model object at multiple time points. The target interface layer generation module 240 acquires the target two-dimensional rendering image corresponding to a preset time point from the designated cache area, and generates a target interface layer based on the target two-dimensional rendering image. The target interface layer generated by the above scheme can be directly imported into the UI editor, and the UI editor can adjust the relevant parameters. In the process of generating the target interface layer, an additional three-dimensional scene is used to acquire the two-dimensional rendering image of the model object. This additional three-dimensional scene is different from the scene used in the generation process of other interface layers. Therefore, the generated target interface layer can be flexibly stacked with other interface layers to generate the required image. The target interface layer can be flexibly stacked with other interface layers. This is reflected in the ability to adjust the stacking order between the target interface layer and other interface layers, and also in the ability to stack the target interface layer with different other interface layers as needed.
[0089] According to the interface layer generation apparatus of the above embodiment, the rendering image caching module 230 stores the two-dimensional rendering image in a designated cache area. When the target interface layer generation module 240 generates the target interface layer, it retrieves the target two-dimensional rendering image corresponding to a preset time point from the designated cache area and generates the target interface layer based on the target two-dimensional rendering image. When the target image needs frequent adjustments during the project development phase, the effect of the target interface layer can be changed by fine-tuning several elements in the generation process of the target interface layer. Then, the target image acquisition module 250 stacks the target interface layer with other interface layers to obtain the adjusted target image. The above-mentioned adjustment of the required target image is transformed into a modular adjustment of a specific layer, which can reduce the labor and time costs of adjusting the target image and facilitate the reuse of the target interface layer for multiple different target images.
[0090] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the above-described method for generating interface layers. This electronic device can be a server or a terminal device.
[0091] Figure 7The present invention provides a structural block diagram of an electronic device, which includes a processor 901 and a memory 902. The memory 902 stores machine-executable instructions that can be executed by the processor 901. The processor 901 executes the machine-executable instructions to implement the above-described method for generating interface layers.
[0092] The method for generating the interface layer includes: obtaining the vertex animation texture map corresponding to the target model; wherein, the vertex animation texture map includes: the vertex positions of the model vertices in the target model at multiple time points; the vertex animation texture map is used to: control the vertex positions of the model vertices when rendering the target model; setting the target model and a virtual camera in a 3D scene; rendering the model object according to the vertex animation texture map through the virtual camera to obtain a 2D rendered image of the model object, and saving the 2D rendered image in a specified cache; wherein, the specified cache includes 2D rendered images of the model object at multiple time points; in different 2D rendered images, the vertex positions of at least some model vertices in the target model are different; obtaining the target 2D rendered image corresponding to a preset time point from the specified cache, and generating the target interface layer based on the target 2D rendered image.
[0093] Furthermore, the electronic device may also include a communication interface 903 and a bus 904, with the processor 901, communication interface 903 and memory 902 connected via the bus 904.
[0094] The memory 902 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 903 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 904 may be an ISA bus, PCI bus, or EISA bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, a bus is represented by only a single bidirectional arrow in the accompanying drawings, but this does not imply that there is only one bus or one type of bus.
[0095] The processor 901 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 901 or by instructions in software form. The processor 901 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 902. Processor 901 reads information from memory 902 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0096] In some embodiments, the time point of the 2D rendered image in the specified buffer corresponds to the time point in the vertex animation texture map.
[0097] In some embodiments, the step of obtaining the vertex animation texture map corresponding to the target model includes: obtaining the target model and controlling the target model to undergo dynamic changes; baking the vertex positions of the model vertices in the target model during the dynamic changes to obtain the vertex animation texture map of the model object.
[0098] In some embodiments, the target model includes: a particle effect model; the step of acquiring the target model and controlling the target model to dynamically change includes: generating the particle effect model; wherein the particle effect model includes multiple particle objects; adjusting the object parameters of the particle objects to control the particle objects in the particle effect model to be arranged in a line shape; and controlling the line-shaped particle objects to dynamically change.
[0099] In some embodiments, the step of obtaining a two-dimensional rendered image of a model object by rendering the model object according to the vertex dynamic texture map using a virtual camera includes: exposing the camera attributes, scene attributes, and image attributes corresponding to the two-dimensional rendered image.
[0100] In some embodiments, the step of generating a target interface layer based on a target 2D rendered image includes: determining a target frame in the target 2D rendered image based on camera attributes, scene attributes, and image attributes of the target 2D rendered image; obtaining an adjusted target 2D rendered image by adjusting the target frame; and generating a target interface layer based on the adjusted target 2D rendered image.
[0101] Optionally, the step of obtaining the adjusted target 2D rendered image by adjusting the target frame includes: processing the target frame in the target 2D rendered image based on a preset mask to obtain a partially transparent target 2D rendered image; wherein, the partially transparent target 2D rendered image includes a model object region and a non-model object region processed to be transparent, the model object region is the corresponding region of the model object in the target 2D rendered image, and the non-model object region is the region outside the model object region in the target 2D rendered image.
[0102] Optionally, in the 2D rendered image, the target model is placed in a solid color background of a specified color, and the color of the solid color background is different from the color of the model object. The step of obtaining the adjusted target 2D rendered image by adjusting the target frame includes: obtaining the model object region in the target frame based on the color difference between the model object and the solid color background, wherein the model object region is the corresponding region of the model object in the target frame; and obtaining the adjusted target 2D rendered image based on the model object region in each target frame.
[0103] In some embodiments, after the step of generating a target interface layer based on a target two-dimensional rendered image, the method for generating the interface layer further includes: obtaining a target image by stacking the target interface layer with other interface layers; wherein the target image is used to display on a graphical user interface.
[0104] In some embodiments, the step of obtaining a target image by stacking a target interface layer with other interface layers includes: adjusting the stacking order between the target interface layer and other interface layers based on the target display position of the target model in the target image.
[0105] An electronic device according to an embodiment of the present invention includes a processor 901 and a memory 902. When the processor 901 executes machine-executable instructions to implement the above-described method for generating an interface layer, it acquires a vertex animation texture map corresponding to a target model, sets the target model and a virtual camera in a three-dimensional scene, and then renders the model object according to the vertex dynamic texture map using the virtual camera to obtain a two-dimensional rendered image of the model object. The two-dimensional rendered image is stored in a designated cache, which includes two-dimensional rendered images of the model object at multiple time points. Then, the target two-dimensional rendered image corresponding to a preset time point is acquired from the designated cache, and a target interface layer is generated based on the target two-dimensional rendered image. The target interface layer generated by the above scheme can be directly imported into a UI editor, where relevant parameters can be adjusted. In the process of generating the target interface layer, an additional three-dimensional scene is used to acquire the two-dimensional rendered image of the model object. This additional three-dimensional scene is different from the scene used in the generation of other interface layers. Therefore, the generated target interface layer can be flexibly stacked with other interface layers to generate the required image. The target interface layer can be flexibly stacked with other interface layers. This is reflected in the ability to adjust the stacking order between the target interface layer and other interface layers, and also in the ability to stack the target interface layer with different other interface layers as needed.
[0106] This embodiment also provides a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the above-described method for generating the interface layer.
[0107] The method for generating the interface layer includes: obtaining the vertex animation texture map corresponding to the target model; wherein, the vertex animation texture map includes: the vertex positions of the model vertices in the target model at multiple time points; the vertex animation texture map is used to: control the vertex positions of the model vertices when rendering the target model; setting the target model and a virtual camera in a 3D scene; rendering the model object according to the vertex animation texture map through the virtual camera to obtain a 2D rendered image of the model object, and saving the 2D rendered image in a specified cache; wherein, the specified cache includes 2D rendered images of the model object at multiple time points; in different 2D rendered images, the vertex positions of at least some model vertices in the target model are different; obtaining the target 2D rendered image corresponding to a preset time point from the specified cache, and generating the target interface layer based on the target 2D rendered image.
[0108] In some embodiments, the time point of the 2D rendered image in the specified buffer corresponds to the time point in the vertex animation texture map.
[0109] In some embodiments, the step of obtaining the vertex animation texture map corresponding to the target model includes: obtaining the target model and controlling the target model to undergo dynamic changes; baking the vertex positions of the model vertices in the target model during the dynamic changes to obtain the vertex animation texture map of the model object.
[0110] In some embodiments, the target model includes: a particle effect model; the step of acquiring the target model and controlling the target model to dynamically change includes: generating the particle effect model; wherein the particle effect model includes multiple particle objects; adjusting the object parameters of the particle objects to control the particle objects in the particle effect model to be arranged in a line shape; and controlling the line-shaped particle objects to dynamically change.
[0111] In some embodiments, the step of obtaining a two-dimensional rendered image of a model object by rendering the model object according to the vertex dynamic texture map using a virtual camera includes: exposing the camera attributes, scene attributes, and image attributes corresponding to the two-dimensional rendered image.
[0112] In some embodiments, the step of generating a target interface layer based on a target 2D rendered image includes: determining a target frame in the target 2D rendered image based on camera attributes, scene attributes, and image attributes of the target 2D rendered image; obtaining an adjusted target 2D rendered image by adjusting the target frame; and generating a target interface layer based on the adjusted target 2D rendered image.
[0113] Optionally, the step of obtaining the adjusted target 2D rendered image by adjusting the target frame includes: processing the target frame in the target 2D rendered image based on a preset mask to obtain a partially transparent target 2D rendered image; wherein, the partially transparent target 2D rendered image includes a model object region and a non-model object region processed to be transparent, the model object region is the corresponding region of the model object in the target 2D rendered image, and the non-model object region is the region outside the model object region in the target 2D rendered image.
[0114] Optionally, in the 2D rendered image, the target model is placed in a solid color background of a specified color, and the color of the solid color background is different from the color of the model object. The step of obtaining the adjusted target 2D rendered image by adjusting the target frame includes: obtaining the model object region in the target frame based on the color difference between the model object and the solid color background, wherein the model object region is the corresponding region of the model object in the target frame; and obtaining the adjusted target 2D rendered image based on the model object region in each target frame.
[0115] In some embodiments, after the step of generating a target interface layer based on a target two-dimensional rendered image, the method for generating the interface layer further includes: obtaining a target image by stacking the target interface layer with other interface layers; wherein the target image is used to display on a graphical user interface.
[0116] In some embodiments, the step of obtaining a target image by stacking a target interface layer with other interface layers includes: adjusting the stacking order between the target interface layer and other interface layers based on the target display position of the target model in the target image.
[0117] According to an embodiment of the present invention, a machine-readable storage medium stores machine-executable instructions. When these machine-executable instructions are called and executed by a processor, they cause the processor to implement the aforementioned method for generating an interface layer. Specifically, the vertex animation texture map corresponding to the target model is obtained. The target model and a virtual camera are set in a three-dimensional scene. Then, the model object is rendered according to the vertex dynamic texture map using the virtual camera to obtain a two-dimensional rendered image of the model object. The two-dimensional rendered image is saved in a designated cache, which includes two-dimensional rendered images of the model object at multiple time points. Then, the target two-dimensional rendered image corresponding to a preset time point is obtained from the designated cache, and a target interface layer is generated based on the target two-dimensional rendered image. The target interface layer generated by the above scheme can be directly imported into a UI editor, where relevant parameters can be adjusted. During the generation of the target interface layer, an additional three-dimensional scene is used to obtain the two-dimensional rendered image of the model object. This additional three-dimensional scene is different from the scene used in the generation of other interface layers. Therefore, the generated target interface layer can be flexibly stacked with other interface layers to generate the required image. The target interface layer can be flexibly stacked with other interface layers. This is reflected in the ability to adjust the stacking order between the target interface layer and other interface layers, and also in the ability to stack the target interface layer with different other interface layers as needed.
[0118] The computer program product of the interface layer generation method, apparatus, electronic device, and machine-readable storage medium provided in the embodiments of the present invention includes a machine-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments. For specific implementation, please refer to the method embodiments, which will not be repeated here.
[0119] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0120] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0121] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a machine-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a portion 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, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. 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.
[0122] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0123] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, 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 the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for generating an interface layer, characterized in that, The method includes: Obtain the vertex animation texture map corresponding to the target model; wherein, the vertex animation texture map includes: the vertex positions of the model vertices in the target model at multiple time points; the vertex animation texture map is used to: control the vertex positions of the model vertices when rendering the target model; The target model and virtual camera are set in a three-dimensional scene; Using the virtual camera, the model object is rendered according to the vertex dynamic texture map to obtain a two-dimensional rendered image of the model object, and the two-dimensional rendered image is saved in a designated cache area; wherein, the designated cache area includes two-dimensional rendered images of the model object at multiple time points; in different two-dimensional rendered images, at least some of the vertex positions of the target model are different; Obtain the target 2D rendered image corresponding to a preset time point from the specified cache area, and generate a target interface layer based on the target 2D rendered image.
2. The method according to claim 1, characterized in that, The steps to obtain the vertex animation texture map corresponding to the target model include: Obtain the target model and control the target model to change dynamically; The vertex positions of the model vertices in the target model during the dynamic change process are baked to obtain the vertex animation texture map of the model object.
3. The method according to claim 2, characterized in that, The target model includes: a particle effect model; the step of acquiring the target model and controlling the target model to dynamically change includes: Generate a particle effect model; wherein the particle effect model includes multiple particle objects; Adjust the object parameters of the particle object to control the particle objects in the particle effect model to be arranged in a line shape; Control the dynamic changes of the linear particle objects.
4. The method according to claim 1, characterized in that, The step of rendering the model object using the virtual camera according to the vertex dynamic texture map to obtain a two-dimensional rendered image of the model object includes: Expose the camera attributes, scene attributes, and image attributes corresponding to the two-dimensional rendered image.
5. The method according to claim 4, characterized in that, The step of generating a target interface layer based on the target 2D rendered image includes: Based on the camera attributes, scene attributes, and image attributes of the target 2D rendered image, the target frame in the target 2D rendered image is determined; The adjusted target 2D rendered image is obtained by adjusting the target frame; The target interface layer is generated based on the adjusted target 2D rendered image.
6. The method according to claim 5, characterized in that, The step of obtaining the adjusted target 2D rendered image by adjusting the target frame includes: Based on the preset masking process, the target frame in the target 2D rendered image is processed to obtain a partially transparent target 2D rendered image; wherein, the partially transparent target 2D rendered image includes a model object region and a non-model object region processed to be transparent, the model object region is the corresponding region of the model object in the target 2D rendered image, and the non-model object region is the region outside the model object region in the target 2D rendered image.
7. The method according to claim 5, characterized in that, In the 2D rendered image, the target model is placed against a solid color background of a specified color, the color of which is different from the color of the model object. The step of obtaining the adjusted target 2D rendered image by adjusting the target frame includes: Based on the color difference between the model object and the solid color background, the model object region is obtained in the target frame, and the model object region model is the corresponding region of the model object in the target frame; The adjusted target 2D rendered image is obtained based on the model object region in each target frame.
8. The method according to claim 1, characterized in that, After the step of generating the target interface layer based on the target 2D rendered image, the method further includes: A target image is obtained by stacking the target interface layer with other interface layers; wherein the target image is used to display in a graphical user interface.
9. The method according to claim 8, characterized in that, The step of obtaining a target image by stacking the target interface layer with other interface layers includes: Based on the target display position of the target model in the target image, adjust the stacking order between the target interface layer and the other interface layers.
10. The method according to claim 1, characterized in that, The time point of the 2D rendered image in the designated cache area corresponds to the time point in the vertex animation texture map.
11. An apparatus for generating an interface layer, characterized in that, The device includes: A vertex animation texture map acquisition module is used to acquire the vertex animation texture map corresponding to the target model; wherein, the vertex animation texture map includes: the vertex positions of the model vertices in the target model at multiple time points; the vertex animation texture map is used to: control the vertex positions of the model vertices when rendering the target model; The scene editing module is used to set the target model and virtual camera in a 3D scene; A rendering image caching module is used to render the model object according to the vertex dynamic texture map through the virtual camera to obtain a two-dimensional rendering image of the model object, and save the two-dimensional rendering image in a designated cache area; wherein, the designated cache area includes two-dimensional rendering images of the model object at multiple time points; in different two-dimensional rendering images, at least some of the vertex positions of the model vertices in the target model are different; The target interface layer generation module is used to obtain the target two-dimensional rendering image corresponding to a preset time point from the specified cache area, and generate the target interface layer based on the target two-dimensional rendering image.
12. An electronic device, characterized in that, The method includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the interface layer generation method according to any one of claims 1 to 10.
13. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the interface layer generation method according to any one of claims 1 to 10.