Interface display method, device, storage medium and electronic device

By using the configuration and rendering technology of the initial shadow model and the current shadow model in the game interface display, the lag problem caused by object instantiation is solved and the smoothness and user experience of the game interface are improved.

CN113608807BActive Publication Date: 2024-10-29SHANGHAI MIHAYOULIYUE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110886272.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-03
Publication Date
2024-10-29
Estimated Expiration
2041-08-03

AI Technical Summary

Technical Problem

The existing game interface display method can easily cause lag during the object instantiation process, affecting the game experience.

Method used

By receiving interface display instructions, the initial shadow model of the target object is called, and the initial shadow model is configured based on the current attribute information to form the current shadow model, and image frames are obtained to generate display data and rendered directly on the interface, avoiding the need for each display. Model instantiation process.

Benefits of technology

It achieves smooth interface display, reduces memory application and release, improves user gaming experience, and avoids lags.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113608807B_ABST
    Figure CN113608807B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses an interface display method, device, storage medium and electronic device. The method includes: receiving an interface display instruction, calling the initial shadow model of at least one target object corresponding to the interface to be displayed; configuring the initial shadow model based on the current attribute information of at least one target object to form a current shadow model; obtaining an image frame of the current shadow model, forming display data of at least one target object based on the image frame; rendering the display data of at least one target object at the interface display position. The technical solution of the embodiment of the present invention, by calling the initial shadow model, configuring the initial shadow model with the current attribute information of the target object, and forming the current shadow model, enables the user to realize the change of the interface display image under the real-time adjustment of the current shadow model when opening the interface to be displayed, thereby reducing the process of instantiating objects, thereby solving the problem of freezing of the display interface and improving the user's gaming experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to an interface display method, device, storage medium, and electronic device. Background Art

[0002] In current games, when you open a backpack, character attributes, a store dressing interface, or a mount riding interface, the game protagonist will usually be directly displayed on the current interface.

[0003] The current interface display method is usually that when a game player opens an interface with a protagonist character display, a character instantiation object is created on the spot based on the character itself, and then the instantiation object is photographed, and the photographed image is rendered to a texture operation for character display.

[0004] However, the above interface display method requires object instantiation each time a screen is displayed, which easily causes a jamming phenomenon during the object instantiation process, seriously affecting the gaming experience of opening the interface. Summary of the invention

[0005] The embodiments of the present invention provide an interface display method, device, storage medium and electronic device to solve the problem of freeze in the display interface and improve the user's gaming experience.

[0006] In a first aspect, an embodiment of the present invention provides an interface display method, comprising:

[0007] Receiving an interface display instruction, and calling an initial shadow model of at least one target object corresponding to the interface to be displayed;

[0008] Configuring the initial shadow model based on current attribute information of the at least one target object to form a current shadow model;

[0009] Acquire an image frame of the current shadow model, and form display data of the at least one target object based on the image frame;

[0010] The display data of the at least one target object is rendered at an interface display position.

[0011] In a second aspect, an embodiment of the present invention further provides an interface display device, including:

[0012] A model calling module, used to receive an interface display instruction and call an initial shadow model of at least one target object corresponding to the interface to be displayed;

[0013] A model generation module, configured to configure the initial shadow model based on the current attribute information of the at least one target object to form a current shadow model;

[0014] A data forming module, configured to obtain an image frame of the current shadow model, and form display data of the at least one target object based on the image frame;

[0015] The interface rendering module is used to render the display data of the at least one target object at the interface display position.

[0016] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0017] one or more processors;

[0018] a storage device for storing one or more programs,

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement any interface display method described in the embodiments of the present invention.

[0020] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute any of the interface display methods described in the embodiments of the present invention.

[0021] The present invention receives an interface display instruction, calls the initial shadow model of at least one target object corresponding to the interface to be displayed, configures the initial shadow model based on the current attribute information of at least one target object, forms the current shadow model, realizes the real-time synchronization of the attribute information of the initial shadow model and the target object, and ensures the consistency of the content displayed on the interface between the formed current shadow model and the target object; further, by acquiring the image frame of the current shadow model, forming the display data of at least one target object based on the image frame, rendering the display data of at least one target object at the interface display position, the display of the target object on the interface is realized. The interface display method provided by the embodiment of the present invention does not need to instantiate the model every time the interface is displayed, so there is no large-scale memory application and release, and the display interface will not be stuck, thereby improving the user's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 It is a flowchart of an interface display method provided in the first embodiment of the present invention;

[0024] Figure 2 It is a flowchart of an interface display method provided in Embodiment 2 of the present invention;

[0025] Figure 3 It is a flowchart of an interface display method provided by Embodiment 3 of the present invention;

[0026] Figure 4 It is a flowchart of an interface display method provided by Embodiment 4 of the present invention;

[0027] Figure 5 is a structural schematic diagram of an interface display device provided in Embodiment 5 of the present invention;

[0028] Figure 6 It is a structural schematic diagram of an electronic device provided in Embodiment 6 of the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention.

[0030] It should also be noted that, for ease of description, only the part relevant to the present invention but not all content is shown in the accompanying drawings. It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processing or methods depicted as flow charts. Although the flow chart describes each operation (or step) as sequential processing, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. When its operation is completed, the processing can be terminated, but it can also have additional steps not included in the accompanying drawings. The processing can correspond to methods, functions, procedures, subroutines, subprograms, etc.

[0031] Embodiment 1

[0032] Figure 1 This is a flow chart of an interface display method provided in the first embodiment of the present invention. This embodiment is applicable to the case where a target object is displayed in real time when a game interface is opened. The method can be executed by the interface display device provided in the embodiment of the present invention. The device can be implemented by software and / or hardware. The device can be configured on an electronic computing device, such as a mobile phone, a personal computer, a tablet computer or an electronic game console. Specifically, the following steps are included:

[0033] S110: Receive an interface display instruction, and call an initial shadow model of at least one target object corresponding to the interface to be displayed.

[0034] The interface display instruction may be generated by operating a game interface control or a signal input by an input device such as a keyboard or a mouse. Specifically, the game interface includes the main interface of the game (such as a game lobby, etc.), and the main interface of the game may include multiple controls (such as a backpack control, a character attribute control, and a team control, etc.). The user may trigger the generation of the interface display instruction and trigger the display of the interface to be displayed by operating the control.

[0035] The interface to be displayed may include but is not limited to a backpack interface, a character attribute interface, a team interface, and other interfaces with target object display. The interface to be displayed includes at least a display area for rendering display data. In some embodiments, the interface to be displayed also includes at least one information display area for displaying selected information. The information display areas corresponding to different interfaces to be displayed may be different. For example, the information display area included in the backpack interface may be used to display the identification or attributes of items in the backpack. The target object may include but is not limited to one or more of a character, a mount, and a pet. The initial shadow model can be understood as the basic model of the target object, which is configured with the same basic information as the target object. Among them, the basic information may include but is not limited to the identity information, facial features or body shape of the target object. It can be understood that the initial shadow model corresponding to the target object with the same identity information is the same. For example, in the game scene, there are multiple characters with identity information as mages, but the initial shadow models of each character are the same. The advantage of this setting is that the initial shadow model can be more widely called, improve the model reuse rate, and save storage resources. It should be noted that the initial shadow model may be created by the terminal or by the server, and after the terminal requests the server, the initial shadow model is downloaded and stored locally.

[0036] For example, in a game scene, when a user opens a store dressing interface, the initial shadow model of the character corresponding to the store dressing interface is called; when a user opens a mount display interface, the initial shadow models of the character and mount corresponding to the backpack interface are called. It should be noted that in the interface to be displayed, the initial shadow model of one target object can be called, or the initial shadow models of multiple target objects can be called at the same time, and this embodiment does not limit this.

[0037] S120: Configure the initial shadow model based on current attribute information of the at least one target object to form a current shadow model.

[0038] Among them, the attribute information may include but is not limited to the equipment information, fashion information and skin information of the target object, such as the attribute information of any object that can be configured on the target object. The configurable objects include but are not limited to props, equipment, fashion, hair accessories, skin, etc. The attribute information may specifically include but is not limited to information such as shape, color and special effects. For example, the attribute information may be the shape, color or special effects of a weapon. In another embodiment, the attribute information may be the identifier of each of the above-mentioned configurable objects, which is a unique identifier of the object. The current attribute information is determined by identifying the identifier of the object that has been configured on the target object. The current attribute information is the attribute information of the target object when entering the page to be displayed. In some embodiments, the current attribute of the target object may be the attribute information of the target object before entering the interface to be displayed. In some embodiments, the current attribute information of the target object may also be pre-set attribute information, which is not limited to this.

[0039] The current attribute information of the target object is passed to the initial shadow model, so that the initial shadow model is configured by the current attribute information to form a current shadow model with the current attribute information. For example, when the weapon held by the character in the game is an axe, the initial shadow model will be configured according to the attribute information such as the shape and color of the axe, so that the weapon in the hand of the formed current shadow model is the same axe; when the character in the game is equipped with a Spring Festival limited suit, the initial shadow model is configured based on the attribute information such as the special effects of the Spring Festival limited suit, so that the formed current shadow model is also equipped with the special effects of the Spring Festival limited suit.

[0040] S130: Acquire an image frame of the current shadow model, and form display data of the at least one target object based on the image frame.

[0041] The image frame of the current shadow model can be formed by collecting images of the current shadow model. Each image collection obtains an image frame, which can be understood as the shadow image of the target object. It should be noted that the current shadow model is a model obtained after attribute configuration processing. The image frames obtained by collecting image frames of the current shadow model after attribute configuration processing can be directly used as display data of the target object without secondary processing, which simplifies the acquisition process of display data and improves data processing efficiency.

[0042] On the basis of the above embodiment, the current shadow model is mounted on a preset empty node, and the current shadow model is configured with a virtual camera for collecting image frames of the current shadow model. Among them, the preset empty node is a node without any model mounted. The current shadow model mounted on the empty node is photographed by the virtual camera to obtain the image frame of the current shadow model.

[0043] On the basis of the above embodiment, the acquiring the image frame of the current shadow model includes: controlling the virtual camera to acquire the image frame of the current shadow model based on a preset shooting angle.

[0044] Specifically, when the target object is a three-dimensional image, the current shadow model is also a three-dimensional image, and can be photographed from multiple angles. Therefore, the shooting angle of the virtual camera can be controlled to shoot the current shadow model, and an image frame of the current shadow model corresponding to the target object can be obtained. The shooting angle can be preset. In some embodiments, the shooting angle can be adjusted to be the same as the display angle of the target object to improve the consistency between the display data and the display of the target object. Exemplarily, the shooting angle of the virtual camera is adjusted to 0 degrees, and the image frame of the current shadow model is obtained at this shooting angle. In some embodiments, it can also be based on the display angle of the page to be displayed, and the display angle is used as a preset shooting angle to obtain an image frame that meets the display requirements. Exemplarily, the display angle can be 0 degrees. It should be noted that the relationship between each shooting angle and the target object can be preset, and the shooting angles of 0-360 degrees correspond to the circumferential direction of the target object 0-360 degrees, for example, the shooting angle of 0 degrees is the frontal orientation facing the target object.

[0045] The embodiment of the present invention controls the virtual camera to acquire the image frame of the current shadow model based on a preset shooting angle, thereby meeting the display requirements of the target object on the interface to be displayed.

[0046] S140: Rendering the display data of the at least one target object at an interface display position.

[0047] The interface display position refers to the position in the interface where the target object can be displayed, and the interface display position can be located at any position of the interface to be displayed. For example, the interface display position can be the character display frame in the upper left corner, or the mount display frame in the middle. This embodiment does not specifically limit the interface display position.

[0048] In the embodiment of the present invention, by rendering the display data of at least one target object at the interface display position, the display of the target object on the interface is realized. The target object can be one or more, and there is no restriction on this. When there are multiple target objects, the multiple target objects can be rendered at the same interface display position.

[0049] Exemplarily, the content box in the upper left corner of the backpack interface is the interface display location, and the display data of the two target objects, the character and the mount, can be rendered in the content box. What can be obtained in the end is that the content box in the upper left corner of the backpack interface displays a three-dimensional animation of the character riding the mount.

[0050] In this embodiment, the display data generated by the current shadow model is rendered at the interface display position to realize the display of the interface. The interface display method provided by the embodiment of the present invention does not need to perform the instantiation process of the model every time the interface is displayed, so the data processing resources and storage resources required for realizing the interface display can be reduced, and the requirements for hardware can be reduced so that a smooth visual effect can be obtained even in devices with relatively low hardware performance.

[0051] The embodiment of the present invention provides an interface display method, which receives an interface display instruction, calls the initial shadow model of at least one target object corresponding to the interface to be displayed, configures the initial shadow model based on the current attribute information of the at least one target object, forms the current shadow model, and realizes the real-time synchronization of the attribute information of the initial shadow model and the target object, ensuring the consistency of the content displayed on the interface between the formed current shadow model and the target object; by obtaining the image frame of the current shadow model, forming the display data of at least one target object based on the image frame, rendering the display data of at least one target object at the interface display position, and realizing the display of the target object on the interface. The interface display method provided by the embodiment of the present invention does not need to instantiate the model every time the interface is displayed, so there is no large-scale memory application and release, and the display interface will not be stuck, thereby improving the user's gaming experience.

[0052] Embodiment 2

[0053] Figure 2 A flowchart diagram of an interface display method provided for the second embodiment of the present invention. Based on the above embodiment, the "calling the initial shadow model of at least one target object corresponding to the interface to be displayed" in the above embodiment can be further refined, and its specific implementation method can refer to the detailed description of this technical solution. Among them, the technical terms that are the same as or corresponding to the above embodiment are not repeated here.

[0054] like Figure 2 As shown, the method of the embodiment of the present invention specifically includes the following steps:

[0055] S210: Receive an interface display instruction, and determine the type of the target object to be displayed according to the display type of the interface to be displayed.

[0056] Among them, the display types of the interface to be displayed include but are not limited to prop display, character display, mount display, and pet display. It is understandable that the interface to be displayed can display multiple target objects at the same time, that is, the interface to be displayed includes at least one display type. When the interface to be displayed includes multiple display types, the types of multiple target objects to be displayed can be determined according to the display types of the multiple interfaces to be displayed at the same time.

[0057] Exemplarily, if the display type of the interface to be displayed is mount display, the type of the target object to be displayed is mount; if the display type of the interface to be displayed includes character display and mount display, the type of the target object to be displayed is character and mount.

[0058] S220: Call a corresponding initial shadow model according to the type of the target object.

[0059] Specifically, in some embodiments, a mapping relationship table can be established between the type of the target object and the initial shadow model, and the corresponding initial shadow model can be found in the preset mapping relationship table through the type of the target object. In other embodiments, the initial shadow model can also be obtained through a pre-trained machine learning model, for example, the type of the target object and the information of the target object are input into the above-mentioned machine learning model to obtain the initial shadow model output by the machine learning model. It can be understood that each type of target object has the same initial shadow model. In an embodiment of the present invention, the corresponding initial shadow model is called by the type of the target object, and there is no need to create a separate shadow model for each target object, thereby reducing memory usage, improving the reuse rate of the model, and saving system resources.

[0060] S230: Configure the initial shadow model based on current attribute information of the at least one target object to form a current shadow model.

[0061] S240: Acquire an image frame of the current shadow model, and form display data of the at least one target object based on the image frame.

[0062] S250: Rendering the display data of the at least one target object at an interface display position.

[0063] The embodiment of the present invention provides an interface display method, which receives an interface display instruction, receives an interface display instruction, determines the type of the target object to be displayed according to the display type of the interface to be displayed; calls the corresponding initial shadow model according to the type of the target object, realizes the matching call of the initial shadow model and the type of the target object, and ensures the consistency of the current shadow model formed and the target object in the interface display content; obtains the image frame of the current shadow model, forms the display data of at least one target object based on the image frame, renders the display data of at least one target object at the interface display position, and realizes the display of the target object in the interface. The interface display method provided by the embodiment of the present invention does not need to instantiate the model every time the interface is displayed, so there is no large-scale memory application and release, and it will not cause the display interface to freeze, thereby improving the user's gaming experience.

[0064] Embodiment 3

[0065] Figure 3 This is a flowchart diagram of an interface display method provided in Embodiment 3 of the present invention. Based on the above embodiments, the "obtaining the image frame of the current shadow model, and forming the display data of the at least one target object based on the image frame" in the above embodiments can be further refined. The specific implementation method can refer to the detailed description of this technical solution. Among them, the technical terms that are the same as or corresponding to the above embodiments are not repeated here. Figure 3 As shown, the method of the embodiment of the present invention specifically includes the following steps:

[0066] S310: Receive an interface display instruction, and call an initial shadow model of at least one target object corresponding to the interface to be displayed.

[0067] S320: Configure the initial shadow model based on current attribute information of the at least one target object to form a current shadow model.

[0068] S330, triggering a motion change of the current shadow model, and collecting image frames of the current shadow model according to a preset time interval.

[0069] Specifically, in some embodiments, the action change of the current shadow model is automatically triggered, that is, when the current shadow model is formed, the action change of the current shadow model is immediately triggered. Image frames of the current shadow model in motion are collected according to preset time intervals to obtain image frames of different actions of the current shadow model. In another embodiment, the action change of the current shadow model can be triggered according to an operation signal, and the operation signal can include but is not limited to signals such as changing equipment, using props, or releasing skills.

[0070] For example, in the equipment mall interface, when you select different equipment to try on, the equipment of the current shadow model can be triggered to change, and a display action can be generated; in the skill learning interface, when you click the skill learning button, the current shadow model can be triggered to perform skill actions; in the backpack interface, when props are used, the action change of the current shadow model is triggered.

[0071] Specifically, the virtual camera shoots the current shadow model according to a preset time interval to obtain an image frame of the current shadow model. It should be noted that the shooting mentioned above is not shooting in the traditional sense, but an extraction of the image frame of the current shadow model, and other contents in the picture are ignored. Exemplarily, the virtual camera starts the shooting function every 0.5 seconds, tracks and shoots the current shadow model, and obtains multiple image frames of the current shadow model. The embodiment of the present invention collects the image frames of the current shadow model in sequence at preset time intervals, so that the positions of the collected image frames of the current shadow model are reasonable, thereby ensuring the final display effect and improving the user experience.

[0072] S340: Combine the image frames based on the acquired timestamps of the image frames to form display data of the at least one target object.

[0073] Specifically, the timestamps of the collected image frames are sorted, and the image frames are combined based on the sorting results to form display data of at least one target object, wherein the display data of the target object can be two-dimensional display data of a certain shooting angle, or can be display data of an all-round three-dimensional image.

[0074] Exemplarily, the virtual camera rotates and shoots the current shadow model at preset time intervals. For example, the shooting angles may be 0 degrees, 30 degrees, 60 degrees, 90 degrees...330 degrees, and 360 degrees, respectively, to obtain multiple image frames with different shooting angles, and each image frame has a different timestamp. By sorting the timestamp size and combining the image frames at each shooting angle according to the timestamp sorting result, a full-scale three-dimensional image of the target object can be obtained.

[0075] S350: Rendering the display data of the at least one target object at an interface display position.

[0076] An embodiment of the present invention provides an interface display method, which triggers the action change of the current shadow model, collects image frames of the current shadow model according to a preset time interval, combines each image frame based on the timestamp of each collected image frame to form display data of the at least one target object, and renders the display data of the at least one target object at an interface display position, thereby realizing the display of the target object on the interface, and collects the image frames of the current shadow model at a preset time interval so that the position of the collected image frames of the current shadow model is reasonable, thereby ensuring the final display effect and improving the user experience.

[0077] Embodiment 4

[0078] Figure 4 A flowchart of an interface display method provided for Embodiment 4 of the present invention. Embodiments of the present invention may be combined with the various optional schemes in one or more of the above embodiments. In the embodiment of the present invention, the interface display method further includes: receiving a display switching instruction, wherein the display switching instruction includes attribute information after switching; updating the current shadow model based on the attribute information after switching, and obtaining an image frame of the updated current shadow model, and forming display data after switching of the at least one target object based on the image frame; and rendering the display data after switching of the at least one target object at the interface display position.

[0079] like Figure 4 As shown, the method of the embodiment of the present invention specifically includes:

[0080] S410: Receive an interface display instruction, and call an initial shadow model of at least one target object corresponding to the interface to be displayed.

[0081] S420: Configure the initial shadow model based on current attribute information of the at least one target object to form a current shadow model.

[0082] S430: Acquire an image frame of the current shadow model, and form display data of the at least one target object based on the image frame.

[0083] S440: Render the display data of the at least one target object at an interface display position.

[0084] S450: Receive a display switching instruction, wherein the display switching instruction includes attribute information after switching.

[0085] Among them, the display switching instructions may include but are not limited to the replacement operation instructions in the game such as changing equipment, changing pets, and changing mounts. For example, the attribute information of any object that can be configured on the target object, the configurable objects include but are not limited to props, equipment, fashion, hair accessories, skin, etc. When the configured object is switched, the attribute information of the target object will change, and a display switching instruction will be generated. It can be understood that the attribute information after switching is the attribute information after the target object switches the configured object. S460. Update the current shadow model based on the attribute information after switching, and obtain the image frame of the updated current shadow model, and form the display data of the at least one target object after switching based on the image frame.

[0086] Specifically, when the target object switches the configuration object, the attribute information of the target object will switch. If the current shadow model is to be synchronized with the display data of the target object, the attribute information after the switch needs to be updated to the current shadow model, and the image frame of the updated current shadow model is obtained, and the display data after the switch of at least one target object is formed based on the image frame. Exemplarily, when the equipment worn by the character in the game changes, the initial shadow model will also change accordingly. For example, if the equipment worn by the character in the game changes from an axe to a bow and arrow, the attribute information of the bow and arrow is replaced with the attribute information of the axe to obtain the updated current shadow model.

[0087] Based on the above embodiment, the method also includes: locally storing the display data of the at least one target object; after receiving the display switching instruction, the method also includes: determining whether the locally stored display data includes the display data corresponding to the switched attribute information in the display switching instruction; if so, calling the display data corresponding to the switched attribute information from the local storage; if not, continuing to execute the steps of the interface display method.

[0088] In an embodiment of the present invention, by locally storing the display data of at least one target object and performing a detection call after receiving a display switching instruction, the steps of collecting image frames of the current shadow model and generating display data based on the image frames of the current shadow model can be reduced, thereby reducing the use of data processing resources required to achieve interface display, so that a smooth interface display effect can be obtained in devices with relatively low hardware performance.

[0089] S470: Render the switched display data of the at least one target object at an interface display position.

[0090] In the embodiment of the present invention, by rendering the switched display data of at least one target object at the interface display position, the display of the transformed target object on the interface is realized. The transformed target object can be one or more, and there is no restriction on this. When there are multiple transformed target objects, multiple transformed target objects can be rendered at the same time and at the same interface display position, which can improve the rendering efficiency and obtain a smoother display effect.

[0091] An embodiment of the present invention provides an interface display method, which receives a display switching instruction, wherein the display switching instruction includes attribute information after switching; based on the attribute information after switching, the current shadow model is updated, and an image frame of the updated current shadow model is obtained, and display data of the at least one target object after switching is formed based on the image frame; the display data of the at least one target object after switching is rendered at an interface display position, thereby realizing detection of the display switching instruction and updating of the current shadow model, ensuring real-time synchronization of display interface content, avoiding the occurrence of inconsistent captured image frames, and thus improving user gaming experience.

[0092] Embodiment 5

[0093] Figure 5 This is a structural diagram of an interface display device provided in Embodiment 5 of the present invention. The interface display device provided in this embodiment can be implemented by software and / or hardware, and can be configured in a terminal and / or a server to implement the interface display method in the embodiment of the present invention. The device can specifically include: a model calling module 510, a model generating module 520, a data forming module 530, and an interface rendering module 540.

[0094] Among them, the model calling module 510 is used to receive the interface display instruction and call the initial shadow model of at least one target object corresponding to the interface to be displayed; the model generating module 520 is used to configure the initial shadow model based on the current attribute information of the at least one target object to form the current shadow model; the data forming module 530 is used to obtain the image frame of the current shadow model and form the display data of the at least one target object based on the image frame; the interface rendering module 540 is used to render the display data of the at least one target object at the interface display position.

[0095] The embodiment of the present invention provides an interface display device, which receives an interface display instruction, calls the initial shadow model of at least one target object corresponding to the interface to be displayed, configures the initial shadow model based on the current attribute information of the at least one target object, forms the current shadow model, and realizes the real-time synchronization of the attribute information of the initial shadow model and the target object, ensuring the consistency of the content displayed on the interface between the formed current shadow model and the target object; by obtaining the image frame of the current shadow model, forming the display data of at least one target object based on the image frame, rendering the display data of at least one target object at the interface display position, and realizing the display of the target object on the interface. The interface display method provided by the embodiment of the present invention does not need to instantiate the model every time the interface is displayed, so there is no large-scale memory application and release, and the display interface will not be stuck, thereby improving the user's gaming experience.

[0096] Based on any optional technical solution in the embodiments of the present invention, optionally, the model calling module 510 can be used to:

[0097] Determine the type of the target object to be displayed according to the display type of the interface to be displayed;

[0098] The corresponding initial shadow model is called according to the type of the target object.

[0099] Based on any optional technical solution in the embodiments of the present invention, optionally, the data forming module 530 may be used to:

[0100] Triggering a motion change of the current shadow model, and collecting image frames of the current shadow model according to a preset time interval;

[0101] The image frames are combined based on the timestamps of the acquired image frames to form display data of the at least one target object.

[0102] On the basis of any optional technical solution in the embodiments of the present invention, optionally, the current shadow model is mounted on a preset empty node, and the current shadow model is configured with a virtual camera for collecting image frames of the current shadow model.

[0103] Based on any optional technical solution in the embodiment of the present invention, optionally, the data forming module 530 may also be used for:

[0104] The virtual camera is controlled to acquire an image frame of the current shadow model based on a preset shooting angle.

[0105] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:

[0106] An instruction switching module, used for receiving a display switching instruction, wherein the display switching instruction includes attribute information after switching;

[0107] A switching data generating module, configured to update the current shadow model based on the switched attribute information, obtain an image frame of the updated current shadow model, and form switched display data of the at least one target object based on the image frame;

[0108] The switching data rendering module is used to render the switched display data of the at least one target object at an interface display position.

[0109] Based on any optional technical solution in the embodiments of the present invention, optionally, the device further includes:

[0110] A data storage module, used for locally storing the display data of the at least one target object;

[0111] After receiving the presentation switching instruction, the apparatus may also be configured to:

[0112] Determining whether the locally stored display data includes display data corresponding to the attribute information after switching in the display switching instruction;

[0113] If so, the display data corresponding to the switched attribute information is called from the local storage.

[0114] The interface display device provided in the embodiment of the present invention can execute the interface display method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0115] Embodiment 6

[0116] Figure 6 This is a structural schematic diagram of an electronic device provided in Embodiment 6 of the present invention. Figure 6 A block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 6 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0117] like Figure 6 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0118] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0119] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0120] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0121] A program / utility 36 having a set (at least one) of program modules 26 may be stored, for example, in system memory 28, such program modules 26 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 26 generally perform the functions and / or methods of the embodiments described herein.

[0122] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and / or any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 20. Figure 6 As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although Figure 6 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0123] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing an interface display method provided in the embodiment of the present invention.

[0124] Embodiment 7

[0125] Embodiment 7 of the present invention further provides a storage medium including computer executable instructions, wherein the computer executable instructions are used to execute an interface display method when executed by a computer processor, the method comprising:

[0126] Receiving an interface display instruction, and calling an initial shadow model of at least one target object corresponding to the interface to be displayed;

[0127] Configuring the initial shadow model based on current attribute information of the at least one target object to form a current shadow model;

[0128] Acquire an image frame of the current shadow model, and form display data of the at least one target object based on the image frame;

[0129] The display data of the at least one target object is rendered at an interface display position.

[0130] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0131] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0132] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0133] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0134] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. An interface display method, It is characterized in that include: Receiving an interface display instruction, and calling an initial shadow model of at least one target object corresponding to the interface to be displayed; Configuring the initial shadow model based on current attribute information of the at least one target object to form a current shadow model; Acquire an image frame of the current shadow model, and form display data of the at least one target object based on the image frame; Rendering the display data of the at least one target object at an interface display position; The acquiring the image frame of the current shadow model and forming the display data of the at least one target object based on the image frame comprises: Triggering a motion change of the current shadow model, and collecting image frames of the current shadow model according to a preset time interval; Sorting the collected image frames according to timestamps, and combining the image frames based on the sorting results of the image frames to form display data of the at least one target object; The current shadow model is mounted on a preset empty node, and the current shadow model is configured with a virtual camera for collecting image frames of the current shadow model.

2. The method according to claim 1, It is characterized in that The calling of the initial shadow model of at least one target object corresponding to the interface to be displayed includes: Determine the type of the target object to be displayed according to the display type of the interface to be displayed; The corresponding initial shadow model is called according to the type of the target object.

3. The method according to claim 1, It is characterized in that The obtaining of the image frame of the current shadow model comprises: The virtual camera is controlled to acquire an image frame of the current shadow model based on a preset shooting angle.

4. The method according to claim 1, It is characterized in that The method further comprises: receiving a display switching instruction, wherein the display switching instruction includes attribute information after switching; updating the current shadow model based on the switched attribute information, acquiring an image frame of the updated current shadow model, and forming switched display data of the at least one target object based on the image frame; The switched display data of the at least one target object is rendered at the interface display position.

5. The method according to claim 4, It is characterized in that The method further comprises: locally storing the display data of the at least one target object; After receiving the display switching instruction, the method further includes: Determining whether the locally stored display data includes display data corresponding to the attribute information after switching in the display switching instruction; If so, the display data corresponding to the switched attribute information is called from the local storage.

6. An interface display device, It is characterized in that include: A model calling module, used to receive an interface display instruction and call an initial shadow model of at least one target object corresponding to the interface to be displayed; A model generation module, configured to configure the initial shadow model based on the current attribute information of the at least one target object to form a current shadow model; A data forming module, configured to obtain an image frame of the current shadow model, and form display data of the at least one target object based on the image frame; An interface rendering module, used for rendering the display data of the at least one target object at an interface display position; The data forming module is used to trigger the action change of the current shadow model and collect image frames of the current shadow model according to a preset time interval; Sorting the collected image frames according to timestamps, and combining the image frames based on the sorting results of the image frames to form display data of the at least one target object; The current shadow model is mounted on a preset empty node, and the current shadow model is configured with a virtual camera for collecting image frames of the current shadow model.

7. An electronic device, It is characterized in that The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the interface display method as described in any one of claims 1-5.

8. A storage medium containing computer executable instructions, It is characterized in that The computer executable instructions are used to execute the interface display method as described in any one of claims 1-5 when executed by a computer processor.

Citation Information

Patent Citations

  • Image rendering method and device, and electronic equipment

    CN111724293A