Game picture rendering method and device, storage medium and computer device
By generating new game screens by matching rendering data from historical data based on user actions in the game, the problem of repeatedly rendering the same screen is solved, and efficient use of resources is achieved.
Patent Information
- Application Number
- CN202211321523.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-26
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-10-26
AI Technical Summary
In games, repeatedly rendering the same scene leads to a waste of resources, and existing technologies have not been able to effectively solve this problem.
By determining the first visual presentation data based on user actions, matching and obtaining the rendering data of the second visual presentation data from historical visual presentation data, new game screens are generated, reducing redundant rendering.
It reduces redundant rendering in the game, improves the effective use of rendering data, and saves resources.
Smart Images

Figure CN115645913B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a game picture rendering method and device, a storage medium and a computer device. BACKGROUND
[0002] With the rapid development of computer technology, computers and the Internet have provided convenience for people's life, work and entertainment. Games enrich people's daily life, and people pay great attention to game experience when playing games. During the game running process, when the game elements in the game picture, such as scenes, virtual characters, etc. change, the game data needs to be re-rendered and a new game picture needs to be generated for display. In general games, the overall players are moving in a limited scene. Therefore, the same picture is often repeatedly rendered in the game. SUMMARY
[0003] The embodiments of the present application provide a game picture rendering method, device, storage medium and computer device, which can reduce the repeated rendering in the game.
[0004] In a first aspect, the embodiments of the present application provide a game picture rendering method, comprising:
[0005] determining first visual presentation data corresponding to a user operation according to the user operation triggered based on a first game picture and the first game picture;
[0006] determining second visual presentation data matching the first visual presentation data from historical visual presentation data, and obtaining rendering data corresponding to the second visual presentation data;
[0007] generating a second game picture according to the first visual presentation data and the rendering data.
[0008] In a second aspect, the embodiments of the present application also provide a game picture rendering device, comprising:
[0009] a determination module configured to determine first visual presentation data corresponding to a user operation according to the user operation triggered based on a first game picture and the first game picture;
[0010] a matching module configured to determine second visual presentation data matching the first visual presentation data from historical visual presentation data, and obtain rendering data corresponding to the second visual presentation data;
[0011] a generation module configured to generate a second game picture according to the first visual presentation data and the rendering data.
[0012] In a third aspect, the embodiments of the present application further provide a computer readable storage medium, having a computer program stored thereon, which, when executed on a computer, causes the computer to perform the game screen rendering method provided by any of the embodiments of the present application.
[0013] In a fourth aspect, the embodiments of the present application further provide a computer device, comprising a processor and a memory, the memory having a computer program, and the processor is configured to execute the game screen rendering method provided by any of the embodiments of the present application by invoking the computer program.
[0014] The technical solution provided by the embodiments of the present application determines the first visual presentation data corresponding to the user operation according to the user operation triggered based on the first game screen and the first game screen, determines the second visual presentation data matched with the first visual presentation data from the historical visual presentation data, acquires the rendering data corresponding to the second visual presentation data, and then generates the second game screen according to the rendering data and the first visual presentation data. Through the solution of the present application, the rendering data that can be used for the visual presentation data to be rendered currently is acquired from the historical rendering data to generate a new game screen, thereby reducing the repeated rendering in the game. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0016] Figure 1 The system schematic diagram of the game screen rendering device provided by the embodiments of the present application.
[0017] Figure 2 The first flowchart of the game screen rendering method provided by the embodiments of the present application.
[0018] Figure 3 The structure schematic diagram of the game screen rendering device provided by the embodiments of the present application.
[0019] Figure 4 The structure schematic diagram of the computer device provided by the embodiments of the present application. DETAILED DESCRIPTION
[0020] With reference to the drawings and the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by a person of ordinary skill in the art without creative effort are within the protection scope of the present application.
[0021] Reference to "an embodiment" herein means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase that the phrase in the specification appear not necessarily refer to the same embodiment, or necessarily refer to a separate or alternative embodiment, that is independent or alternative to other embodiments. A person of ordinary skill in the art explicitly and implicitly understands that the embodiments described herein can be combined with other embodiments.
[0022] The game screen rendering method provided by the embodiments of the present application can be executed by the game screen rendering device provided by the embodiments of the present application, or a computer device integrated with the game screen rendering device. The game screen rendering device can be implemented in hardware or software. The computer device can be a user terminal such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer, a personal digital assistant, etc. The user terminal can also include a client, which can be a game application client, a browser client carrying a game program, an instant messaging client, etc. The computer device can remotely communicate with a server of a game. The server can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligence platforms, etc. When the game screen rendering method is applied to a user terminal, historical visual presentation data and corresponding rendering data can be stored in the user terminal.
[0023] Alternatively, the game screen rendering method can also run on a server. When the game screen rendering method is applied to a server, historical visual presentation data and corresponding rendering data can be stored in a cloud server.
[0024] When the game picture rendering method is run on the server, the user terminal obtains game data by remote communication with the server and displays the game data on the user image interface. For example, the user terminal stores a game application and is used to present a virtual scene in the game picture. The user terminal is used to interact with the user through a graphical user interface, for example, by downloading and installing the game application on the user terminal and running the game application. The user terminal can provide the graphical user interface to the user in various ways, for example, the graphical user interface can be rendered and displayed on the display screen of the user terminal, or the graphical user interface can be presented by holographic projection. For example, the user terminal can include a touch display screen and a processor. The touch display screen is used to present the graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The graphical user interface includes a game picture. The processor is used to run the game, generate the graphical user interface, respond to the operation instructions, and control the display of the graphical user interface on the touch display screen.
[0025] When the game picture rendering method is run on the server, the user terminal obtains game data by remote communication with the server and displays the game data on the user image interface. For example, the user terminal stores a game application and is used to present a virtual scene in the game picture. The user terminal is used to interact with the user through a graphical user interface, for example, by downloading and installing the game application on the user terminal and running the game application. The user terminal can provide the graphical user interface to the user in various ways, for example, the graphical user interface can be rendered and displayed on the display screen of the user terminal, or the graphical user interface can be presented by holographic projection. For example, the user terminal can include a touch display screen and a processor. The touch display screen is used to present the graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The graphical user interface includes a game picture. The processor is used to run the game, generate the graphical user interface, respond to the operation instructions, and control the display of the graphical user interface on the touch display screen.
[0026] Please refer to Figure 1 , Figure 1The system schematic diagram of the game picture rendering device provided by the embodiment of the present application is shown. The system can include at least one terminal 1000, at least one server 2000, at least one database 3000, and a network 4000. The terminal 1000 held by the user can be connected to the server of different games through the network 4000. The terminal 1000 is any device with computing hardware capable of supporting and executing the software product corresponding to the game. In addition, the terminal 1000 has one or more multi-touch screens for sensing and obtaining the input of the user through the touch or sliding operation performed at one or more points of the touch display screen. In addition, when the system includes multiple terminals 1000, multiple servers 2000, and multiple networks 4000, different terminals 1000 can be connected to each other through different networks 4000, through different servers 2000. The network 4000 can be a wireless network or a wired network, such as a wireless network being a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, different terminals 1000 can also use their own Bluetooth network or hotspot network to connect to other terminals or servers, etc. For example, multiple users can be online through different terminals 1000 to support multi-player games by connecting through appropriate networks and synchronizing with each other. In addition, the system can include multiple databases 3000, which are coupled to different servers 2000 and can continuously store information related to the game environment in the database 3000 when different users are online for multi-player games.
[0027] It should be noted that, Figure 1 The system schematic diagram of the game picture rendering system shown is only an example. The game picture rendering system and the scene described in the embodiment of the present application are used to more clearly illustrate the technical solutions of the embodiment of the present application and do not constitute a limitation on the technical solutions provided by the embodiment of the present application. Those skilled in the art can know that, as the game picture rendering system evolves and new business scenarios appear, the technical solutions provided by the embodiment of the present application are also applicable to similar technical problems.
[0028] Please refer to Figure 2 , Figure 2 The first flowchart of the game picture rendering method provided by the embodiment of the present application is shown. The specific flow of the game picture rendering method provided by the embodiment of the present application can be as follows:
[0029] 101, determining the first visual presentation data corresponding to the user operation according to the user operation triggered based on the first game picture and the first game picture.
[0030] In the embodiments of the present application, the game can be any one of action games, role-playing games, strategy games, first-person shooter games, etc. A graphical user interface of the game is displayed on the user terminal, wherein the game includes a virtual scene, a virtual character located in the virtual scene, and game elements such as props and skills used by the virtual character.
[0031] The virtual scene is a virtual environment displayed (or provided) by the game application when running on the terminal. The virtual environment can be a simulated environment of the real world, a semi-simulated and semi-fictional three-dimensional environment, or a purely fictional three-dimensional environment. The virtual environment is used for virtual environment battles between at least two virtual characters, and has virtual resources available for use by the at least two virtual characters in the virtual environment. The virtual scene can display virtual objects such as trees, high-rise buildings, lawns, mountains, islands, rivers, etc. The virtual scene can also include one or more obstacles such as railings, gullies, walls, etc. to limit the movement of virtual characters, for example, to limit the movement of one or more objects to a specific area within the virtual scene.
[0032] One or more virtual characters are displayed in the virtual scene, and the virtual character is a movable object in the virtual environment. The virtual character can be a virtual player character controlled by the user of the user terminal, and other virtual characters in addition to the virtual player character, such as other virtual player characters in the same camp as the virtual player character in the game, or enemy virtual characters in the enemy camp, or NPC (non-player character), or the user's own pet, etc. The virtual player character controlled by the user can interact with other virtual characters.
[0033] In addition, the virtual character can have various skills or abilities used by the game user to achieve the goal. For example, the virtual character has one or more weapons, props, tools, etc. that can be used to eliminate other objects in the game. Such skills or abilities can be activated by the player of the game using one of the plurality of preset touch operations of the touch display screen of the terminal.
[0034] The game user logs in to the game application of the user terminal through an account, and the user terminal renders and generates a graphical user interface on the touch display screen by executing the game application. The game player controls the corresponding virtual character to move in the game scene, fight with other players, and issue game skills by interacting with the graphical user interface, in which case the game screen can change in real time. The user terminal can obtain new game scene data and render and display the corresponding game screen.
[0035] The embodiment of the present application can present corresponding game pictures in response to operation instructions generated by user operations. For example, the user terminal presents a first game picture, receives a user operation triggered by the user based on the first game picture, which can cause the game picture to change. For example, the user operation is an operation of controlling the virtual character of the player to turn around, in response to the user operation, the virtual character of the player turns around in the virtual scene, the orientation of the virtual character of the player changes, and the virtual scene presented on the display screen also changes according to the orientation of the virtual character of the player. For another example, the user operation is to trigger a game skill, and in response to the user operation, the special effect of the game skill needs to be presented in the virtual scene. As can be seen from the above examples, when the user triggers a user operation based on the first game picture, the visual presentation data presented by the graphical user interface in response to the user operation can be determined by detecting the first game picture at the time of the user operation and the user operation. The visual presentation data herein refers to the data of the game picture presented on the graphical user interface after the user operation on the basis of the first game picture, which has not been rendered, for example, it can be a three-dimensional model of the virtual scene, a three-dimensional model of the virtual character or special effect data of the game skill, and the visual presentation data after rendering can obtain a new game picture.
[0036] 102. Determine second visual presentation data matching the first visual presentation data from historical visual presentation data, and obtain rendering data corresponding to the second visual presentation data.
[0037] For the same game, the game provides limited game scenes for the overall player to move in, that is, for the overall player, they are all in the current game scene to perform limited movement operations, and the space range they can move in is similar. Therefore, the same player or different players at different times during the game process can have the same or similar game pictures. If each game picture of each player is rendered by the rendering engine, repetitive rendering will occur, resulting in waste of rendering resources. In order to avoid such repeated rendering and improve the effective use of rendering data, the embodiment of the present application can store the rendering data and the corresponding visual presentation data after the rendering operation is completed.
[0038] As described above, during the game, after detecting the user operation triggered by the player based on the first game picture, the first visual presentation data corresponding to the user operation is determined according to the user operation triggered based on the first game picture and the first game picture. In the related art, when the content of the game picture changes, the rendering engine is started to perform rendering processing to generate a new game picture. In the embodiment of the present application, after the first visual presentation data is determined, the second visual presentation data matched with the first visual presentation data is determined from the historical visual presentation data, and the rendering data corresponding to the second visual presentation data is obtained.
[0039] In the embodiment, the rendering data of the whole player in the game process of the game is stored in advance, and the rendering data is stored in association with the visual presentation data before rendering when stored.
[0040] In an embodiment, the second visual presentation data matched with the first visual presentation data is determined from the historical visual presentation data, and the rendering data corresponding to the second visual presentation data is obtained, including: determining the game elements contained in the first visual presentation data, wherein the types of game elements include virtual scenes, virtual characters in the virtual scenes, and game skills corresponding to the virtual characters; the first visual presentation data is split into a plurality of game element presentation data according to the determined game elements, wherein one game element presentation data corresponds to one game element; for each game element presentation data, the second visual presentation data matched with the game element presentation data is determined from the historical visual presentation data; the rendering data corresponding to the second visual presentation data is obtained.
[0041] In the embodiment, the game elements in the game picture are divided into a plurality of types in advance. For example, the types of game elements include virtual scenes, virtual characters in the virtual scenes, and game skills corresponding to the virtual characters. Among them, the clothes, decorations, and props held by the virtual characters are all classified as part of the virtual characters, that is, when determining the types of game elements, the body, clothes, decorations, and props held by the virtual characters are regarded as a whole. Alternatively, in other optional embodiments, the clothes, decorations, or props held by the virtual characters can also be regarded as a separate type of game element.
[0042] After the first visual presentation data is obtained, the first visual presentation data is split into a plurality of game element presentation data according to the game elements contained in the first visual presentation data. Among them, the whole virtual scene can be regarded as a game element, and each of the plurality of virtual characters in the virtual scene can be regarded as a separate game element.
[0043] After the first visual presentation data is split into multiple game element presentation data, for each game element presentation data, second visual presentation data matching the game element presentation data is determined from the historical visual presentation data, and then corresponding rendering data of the second visual presentation data is obtained according to the mapping relationship between the visual presentation data and the rendering data.
[0044] The historical visual presentation data and the corresponding rendering data can be stored in a rendering database, and the historical visual presentation data and the rendering data are also stored in units of game elements. For example, in the collection stage of the historical rendering data, after rendering of a new game screen is completed in the process of the player's game, for the visual presentation data corresponding to the game screen, the game elements contained therein are determined, and the first visual presentation data is split into multiple game element presentation data according to the determined game elements, and each game element presentation data and the corresponding rendering data are associated and stored in the rendering database. After the collection of the historical rendering data is completed, the rendering database is applied to the rendering scheme of the present application.
[0045] Alternatively, in another embodiment, after the first visual presentation data is obtained, the first visual presentation data is matched with the pre-stored historical visual presentation data one by one to determine the second visual presentation data matching the first visual presentation data. For example, in an embodiment, the first visual presentation data and the historical visual presentation data can be converted into images, and the coincidence degree between the two images is calculated, for example, the coincidence degree between the two images is calculated by using image subtraction. For another example, the feature extraction model is used to calculate the feature vectors corresponding to the two images respectively, and then the similarity between the two feature vectors is calculated as the coincidence degree between the first visual presentation data and the historical visual presentation data. For another example, in another embodiment, the matching can also be performed according to the related presentation parameters in the first visual presentation data and the historical visual presentation data. For a game screen, each element in the game screen is presented in the graphical interface according to the corresponding presentation parameter. The game elements contained in the first visual presentation data are determined first, and then the candidate visual presentation data with the same game elements is determined from all the historical visual presentation data, and then the candidate visual presentation data in which the presentation parameters of each game element are consistent with the presentation parameters of each game element in the first visual presentation data is determined from the candidate visual presentation data as the second visual presentation data. When the difference between two presentation parameters is within a preset error range, it is determined that the two presentation parameters are consistent.
[0046] In an embodiment, for each game element presentation data, the step of determining second visual presentation data matching the game element presentation data from the historical visual presentation data comprises: for each game element presentation data, determining first candidate visual presentation data belonging to the same game element category as the game element presentation data from the historical visual presentation data of the rendering database; obtaining attribute parameters of the game element presentation data, and determining second candidate visual presentation data matching the attribute parameters from the first candidate visual presentation data; calculating the coincidence degree between the second candidate visual presentation data and the game element presentation data; when there is second candidate visual presentation data with a coincidence degree greater than a preset threshold with the game element presentation data, determining the second candidate visual presentation data with the highest coincidence degree as the historical visual presentation data corresponding to the game element presentation data.
[0047] In this embodiment, in order to improve the efficiency of matching game element presentation data, a label is added to the rendering data when it is stored in the rendering database. In this embodiment, there are two levels of labels, the first level label is the category of the game element, and the second level label is the attribute parameter of the game element presentation data. For the first level label, refer to the description of the classification of game elements above, which will not be repeated here. For the second level label, taking a virtual character as an example, the corresponding attribute parameter is a parameter that can represent the image of the virtual character, such as identity attribute, etc. Taking a game skill as an example, the corresponding attribute parameter can be the name of the game skill. After determining the labels at each level, the rendering data is stored in the rendering database according to the labels at each level. Taking a virtual scene as an example, the corresponding attribute parameter can be a geographic identification parameter, such as place name information or region identification, etc.
[0048] For each game element presentation data, first, the first candidate visual presentation data belonging to the same game element category as the game element presentation data is determined from the historical visual presentation data of the rendering database according to the game element category of the game element presentation data, and then the attribute parameter of the game element presentation data is determined, and the second candidate visual presentation data matching the attribute parameter is determined from the first candidate visual presentation data. After the above two screenings, for the obtained second candidate visual presentation data, the coincidence degree between each second candidate visual presentation data and the game element presentation data is calculated, and when there is second candidate visual presentation data with a coincidence degree greater than a preset threshold with the game element presentation data, the second candidate visual presentation data with the highest coincidence degree is determined as the historical visual presentation data corresponding to the game element presentation data. The preset threshold can be set in advance as needed, and the higher the preset threshold, the higher the probability of matching the historical visual presentation data, and the higher the adaptation degree of the matched rendering data to the first visual presentation data. Conversely, the adaptation degree of the matched rendering data to the first visual presentation data will be lower, so the preset threshold can be set to an appropriate value according to the fineness of the picture.
[0049] In an embodiment, the step of calculating the coincidence degree between the second candidate visual presentation data and the game element presentation data includes: when the game element presentation data is a virtual scene, obtaining a first position and a first orientation of a player virtual role; according to the first position, the first orientation, and a second position and a second orientation corresponding to the second candidate visual presentation data, calculating the coincidence degree between the game element presentation data and the second candidate visual presentation data; when the game element presentation data is a virtual role or a game skill, obtaining first morphological information of the virtual role or the game skill; according to the first morphological information and second morphological information corresponding to the second candidate visual presentation data, calculating the coincidence degree between the game element presentation data and the second candidate visual presentation data.
[0050] In this embodiment, for a virtual scene, the first position and the first orientation of the player virtual role in the game element presentation data are obtained, and the second position and the second orientation corresponding to the second candidate visual presentation data are obtained, and the coincidence degree between the game element presentation data and the second candidate visual presentation data is calculated according to the first position, the first orientation, and the second position and the second orientation.
[0051] For example, a first coincidence degree between the first position and the second position is calculated, a second coincidence degree between the first orientation and the second orientation is calculated, and a coincidence degree between the game element presentation data and the historical visual presentation data is determined according to the first coincidence degree and the second coincidence degree. For example, a difference value between the first orientation and the second orientation is calculated, a ratio between the difference value and the second orientation or the first orientation is calculated, and an absolute value of a difference between the ratio and 1 is taken as the coincidence degree between the first orientation and the second orientation. The orientation can be represented by an angle, and the position can be represented by coordinates of the virtual character in the virtual scene.
[0052] For the case where the game element presentation data is a virtual character or a game skill, after the above two screenings, for the obtained second candidate visual presentation data, if the second candidate visual presentation data is a virtual character or a game skill, it has a consistent shape with the game element presentation data, but may exhibit different forms. For example, the game element presentation data and the second candidate visual presentation data are both the same virtual character, but they exhibit different postures, so different rendering data needs to be used for rendering. In this case, the coincidence degree between the game element presentation data and the second candidate visual presentation data can be calculated according to the first form information of the virtual character or the game skill and the second form information corresponding to the second candidate visual presentation data.
[0053] Alternatively, in another embodiment, the game element presentation data and the second candidate visual presentation data can also be converted into image data of the same size, and the similarity between the two image data is calculated as the coincidence degree between the game element presentation data and the second candidate visual presentation data.
[0054] 103. generating a second game picture according to the first visual presentation data and the rendering data.
[0055] After obtaining the rendering data, the first visual presentation data is rendered according to the rendering data, and a new second game picture is generated. For example, after the rendering data corresponding to each game element presentation data is merged to obtain the rendering data corresponding to the complete first visual presentation data, the first visual presentation data is processed according to the merged rendering data to generate a second game picture.
[0056] In some embodiments, after generating the second game picture according to the first visual presentation data and the rendering data, the method further includes: playing multiple frames of the second game picture on the user graphical interface of the user terminal at a preset frame rate.
[0057] In some cases, the player needs to present multiple frames of game pictures after triggering the user operation and responding to the user operation, that is, the first visual presentation data has multiple frames of second game pictures corresponding to each first visual presentation data. Moreover, the multiple first visual presentation data are arranged in a display order. For this case, the second game picture corresponding to each visual presentation data can be obtained in the manner of the above-mentioned embodiments, so as to obtain multiple frames of second game pictures arranged in a certain order, and the multiple frames of second game pictures are played on the user graphical interface of the user terminal according to a preset frame rate. The preset frame rate can be a parameter set by the user through the game client, or a default parameter.
[0058] In some embodiments, after calculating the coincidence degree between the second candidate visual presentation data and the game element presentation data, the method further comprises: when there is no second visual presentation data matching the game element presentation data in the historical visual presentation data, performing rendering processing on the game element presentation data to obtain rendering data corresponding to the game element presentation data.
[0059] It can be understood that in actual application, there can be a case that there is no second visual presentation data matching the game element presentation data in the rendering database, such as that the collection time of the historical rendering data is short, or the game players are few, and not enough historical rendering data is collected. In this case, the rendering engine can be started to perform rendering processing on the game element presentation data to obtain the rendering data corresponding to the game element presentation data.
[0060] In some embodiments, when there is no second visual presentation data matching the game element presentation data in the historical visual presentation data, the method further comprises: performing rendering processing on the game element presentation data to obtain rendering data corresponding to the game element presentation data, and then associating the rendering data with the game element presentation data, and storing the associated rendering data and the game element presentation data in the rendering database. In this way, the rendering database can be continuously supplemented, so that the stored historical rendering data is more abundant, thereby improving the probability of matching the historical rendering data in subsequent games, and further reducing the repeated rendering of the same or similar pictures.
[0061] In the implementation, the application is not limited by the execution order of the various steps, and some steps can be performed in other orders or simultaneously without conflict.
[0062] According to the game picture rendering method provided in the embodiments of the present application, the first visual presentation data corresponding to the user operation triggered based on the first game picture is determined according to the user operation and the first game picture, the second visual presentation data matching the first visual presentation data is determined from the historical visual presentation data, the rendering data corresponding to the second visual presentation data is obtained, and then the second game picture is generated according to the rendering data and the first visual presentation data. Through the scheme of the present application, the rendering data of the visual presentation data to be currently rendered is obtained from the historical rendering data to generate a new game picture, thereby reducing the repeated rendering in the game.
[0063] In an embodiment, a game picture rendering device is also provided. Please refer to Figure 3 , Figure 3 A structural schematic diagram of the game picture rendering device 300 provided in the embodiments of the present application is shown. The game picture rendering device 300 is applied to a computer device, and the game picture rendering device 300 comprises:
[0064] A determining module 301, configured to determine first visual presentation data corresponding to a user operation according to the user operation triggered based on a first game picture and the first game picture;
[0065] A matching module 302, configured to determine second visual presentation data matching the first visual presentation data from historical visual presentation data, and obtain rendering data corresponding to the second visual presentation data;
[0066] A generating module 303, configured to generate a second game picture according to the first visual presentation data and the rendering data.
[0067] In some embodiments, the matching module 302 is further configured to determine a game element contained in the first visual presentation data, wherein the types of the game element include a virtual scene, a virtual character located in the virtual scene, and a game skill corresponding to the virtual character.
[0068] The first visual presentation data is split into a plurality of game element presentation data according to the determined game element, wherein one game element presentation data corresponds to one game element.
[0069] For each game element presentation data, second visual presentation data matching the game element presentation data is determined from the historical visual presentation data.
[0070] The rendering data corresponding to the second visual presentation data is obtained.
[0071] In some embodiments, the matching module 302 is further configured to: for each of the game element presentation data, determine first candidate visual presentation data belonging to the same game element category as the game element presentation data from the historical visual presentation data of the rendering database;
[0072] obtain attribute parameters of the game element presentation data, and determine second candidate visual presentation data matching the attribute parameters from the first candidate visual presentation data;
[0073] calculate the coincidence degree between the second candidate visual presentation data and the game element presentation data;
[0074] when there is second candidate visual presentation data with a coincidence degree greater than a preset threshold with the game element presentation data, determine the second candidate visual presentation data with the highest coincidence degree as the historical visual presentation data corresponding to the game element presentation data.
[0075] In some embodiments, the matching module 302 is further configured to: when the game element presentation data is a virtual scene, obtain a first position and a first orientation of a player virtual role;
[0076] calculate the coincidence degree between the game element presentation data and the second candidate visual presentation data according to the first position, the first orientation, and a second position and a second orientation corresponding to the second candidate visual presentation data;
[0077] when the game element presentation data is a virtual role or a game skill, obtain first morphological information of the virtual role or the game skill;
[0078] calculate the coincidence degree between the game element presentation data and the second candidate visual presentation data according to the first morphological information and second morphological information corresponding to the second candidate visual presentation data.
[0079] In some embodiments, the generating module 303 is further configured to: when there is no second visual presentation data matching the game element presentation data in the historical visual presentation data, perform rendering processing on the game element presentation data to obtain rendering data corresponding to the game element presentation data.
[0080] In some embodiments, the game picture rendering device 300 further comprises:
[0081] a storage module configured to associate the rendering data with the game element presentation data, and store the associated rendering data and the game element presentation data to the rendering database.
[0082] In some embodiments, the generating module 303 is further configured to: combine the rendering data corresponding to each of the game element presentation data, and generate a second game picture according to the combined rendering data and the first visual presentation data.
[0083] In some embodiments, the first visual presentation data is multiple, and each of the first visual presentation data corresponds to a frame of the second game picture; the game picture rendering apparatus 300 further includes:
[0084] a display module configured to play the multiple frames of the second game picture on a user graphical interface of the user terminal according to a preset frame rate.
[0085] It should be noted that the game picture rendering apparatus provided by the embodiments of the present application and the game picture rendering method in the above embodiments belong to the same concept, and any method provided in the game picture rendering method embodiments can be realized by the game picture rendering apparatus, and the specific implementation process is described in detail in the game picture rendering method embodiments, which will not be described here.
[0086] As can be seen from the above, the game picture rendering apparatus provided by the embodiments of the present application determines the first visual presentation data corresponding to the user operation based on the user operation triggered by the first game picture and the first game picture, determines the second visual presentation data matching the first visual presentation data from the historical visual presentation data, obtains the rendering data corresponding to the second visual presentation data, and then generates the second game picture according to the rendering data and the first visual presentation data. Through the scheme of the present application, the rendering data of the visual presentation data that can be used for the current to-be-rendered visual presentation data is obtained from the historical rendering data to generate a new game picture, thereby reducing the repeated rendering in the game.
[0087] The embodiments of the present application also provide a computer device, which can be a terminal, such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), etc. As shown in Figure 4 Figure 4 a structural schematic diagram of the computer device provided by the embodiments of the present application. The computer device 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art can understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and can include more or fewer components than the figure, or combine certain components, or different component arrangements.
[0088] The processor 401 is the control center of the computer device 400, connects various parts of the computer device 400 through various interfaces and lines, executes various functions and processes data of the computer device 400 by running or loading software programs and / or modules stored in the memory 402 and calling data stored in the memory 402, and thus monitors the computer device 400 as a whole.
[0089] In the embodiments of the present application, the processor 401 in the computer device 400 loads the instructions corresponding to the processes of one or more than one application into the memory 402, and runs the application stored in the memory 402 by the processor 401, so as to realize various functions according to the following steps:
[0090] determine first visual presentation data corresponding to the user operation according to the user operation triggered based on the first game picture and the first game picture;
[0091] determine second visual presentation data matching the first visual presentation data from historical visual presentation data, and obtain rendering data corresponding to the second visual presentation data;
[0092] generate a second game picture according to the first visual presentation data and the rendering data.
[0093] The specific implementation of each operation can refer to the foregoing embodiments, which will not be described here.
[0094] Optionally, as shown in FIG. 4, Figure 4 The computer device 400 further includes a touch display screen 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406 and a power supply 407. The processor 401 is electrically connected with the touch display screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406 and the power supply 407 respectively. Those skilled in the art can understand that the computer device structure shown in FIG. 4 does not constitute a limitation on the computer device, and can include more or fewer components than those shown, or combine certain components, or different component arrangements. Figure 4 The computer device structure shown in FIG. 4 does not constitute a limitation on the computer device, and can include more or fewer components than those shown, or combine certain components, or different component arrangements.
[0095] The touch display screen 403 can be used to display a graphical user interface and receive operation instructions generated by user acting on the graphical user interface. The touch display screen 403 can include a display panel and a touch panel. The display panel can be used to display information input by the user or provided to the user and various graphical user interfaces of the computer device, which can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED) or the like. The touch panel can be used to collect touch operations (such as operations of the user using a finger, a stylus or any suitable object or accessory on or near the touch panel) of the user thereon or therearound, and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel can include two parts of a touch detection device and a touch controller. The touch detection device detects the touch position of the user and detects signals generated by the touch operation, and transmits the signals to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into touch coordinates, and then sends it to the processor 401, and can also receive commands from the processor 401 and execute them. The touch panel can cover the display panel, and when the touch panel detects a touch operation thereon or therearound, it transmits to the processor 401 to determine the type of the touch event, and then the processor 401 provides corresponding visual output on the display panel according to the type of the touch event. In the embodiments of the present application, the touch panel and the display panel can be integrated into the touch display screen 403 to realize the input and output functions. However, in some embodiments, the touch panel and the display panel can realize the input and output functions as two independent components. That is, the touch display screen 403 can also realize the input function as part of the input unit 406.
[0096] The radio frequency circuit 404 can be used to transceive radio frequency signals to establish wireless communication with network devices or other computer devices, and transceive signals between network devices or other computer devices.
[0097] The audio circuit 405 can be used to provide an audio interface between the user and the computer device through the speaker and the microphone. The audio circuit 405 can convert the received audio data into an electrical signal and transmit it to the speaker, which converts it into a sound signal output. On the other hand, the microphone collects sound signals and converts them into electrical signals, which are received by the audio circuit 405 and converted into audio data. After the audio data is output by the processor 401 and processed, it is transmitted to another computer device through the radio frequency circuit 404, or the audio data is output to the memory 402 for further processing. The audio circuit 405 can also include an earphone jack to provide communication between an external earphone and the computer device.
[0098] The input unit 406 can be configured to receive inputted digital, character information or user feature information (e.g. fingerprint, iris, face information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0099] The power supply 407 is configured to supply power to various components of the computer device 400. Optionally, the power supply 407 can be logically connected to the processor 401 through a power management system, so as to realize functions such as management of charging, discharging and power consumption management through the power management system. The power supply 407 can also include one or more direct current or alternating current power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, etc.
[0100] Although Figure 4 The computer device 400 can also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc. which are not shown in the embodiments and will not be described herein.
[0101] In the above embodiments, the description of each embodiment focuses on different aspects, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0102] As can be seen from the above, the computer device provided in the embodiments determines the first visual presentation data corresponding to the user operation according to the user operation triggered based on the first game picture and the first game picture, determines the second visual presentation data matching the first visual presentation data from the historical visual presentation data, acquires the rendering data corresponding to the second visual presentation data, and then generates the second game picture according to the rendering data and the first visual presentation data. Through the scheme of the present application, the rendering data that can be used for the visual presentation data to be currently rendered is acquired from the historical rendering data to generate a new game picture, thereby reducing the case of repeated rendering in the game.
[0103] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by related hardware controlled by the instructions, which can be stored in a computer readable storage medium and loaded and executed by a processor.
[0104] To this end, the embodiments of the present application provide a computer readable storage medium, which stores a plurality of computer programs. The computer programs can be loaded by a processor to execute the steps in any of the rendering methods of the game picture provided by the embodiments of the present application. For example, the computer programs can execute the following steps:
[0105] According to the user operation triggered based on the first game picture and the first game picture, first visual presentation data corresponding to the user operation is determined;
[0106] Second visual presentation data matching the first visual presentation data is determined from historical visual presentation data, and rendering data corresponding to the second visual presentation data is obtained;
[0107] According to the first visual presentation data and the rendering data, a second game picture is generated.
[0108] The specific implementation of each operation can refer to the foregoing embodiments, and will not be described here.
[0109] The storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. Due to the computer program stored in the storage medium, the steps of any game picture rendering method provided by the embodiments of the present application can be executed, and thus the beneficial effects of any game picture rendering method provided by the embodiments of the present application can be achieved. Details are described in the foregoing embodiments, and will not be described here.
[0110] The game picture rendering method, device, medium, and computer device provided by the embodiments of the present application are described in detail above, and the principle and implementation manner of the present application are described by applying specific examples. The foregoing example is only used to help understand the method and core idea of the present application. Meanwhile, for those skilled in the art, the specific implementation manner and application range can be changed according to the idea of the present application. In summary, the content of the specification should not be understood as a limitation of the present application.
Claims
1. A method of rendering a game screen, characterized by, The method comprises: determining first visual presentation data corresponding to a user operation according to the user operation triggered based on a first game screen and the first game screen; determining a game element contained in the first visual presentation data, wherein the game element includes a virtual scene, a virtual character located in the virtual scene, and a game skill corresponding to the virtual character; splitting the first visual presentation data into a plurality of game element presentation data according to the determined game element, wherein one game element presentation data corresponds to one game element; for each game element presentation data, determining first candidate visual presentation data belonging to the same game element category as the game element presentation data from historical visual presentation data of a rendering database; obtaining attribute parameters of the game element presentation data, and determining second candidate visual presentation data matching the attribute parameters from the first candidate visual presentation data; calculating a coincidence degree between the second candidate visual presentation data and the game element presentation data; when there is second candidate visual presentation data with a coincidence degree greater than a preset threshold with the game element presentation data, determining the second candidate visual presentation data with the highest coincidence degree as historical visual presentation data corresponding to the game element presentation data to obtain second visual presentation data; obtaining rendering data corresponding to the second visual presentation data; generating a second game screen according to the first visual presentation data and the rendering data; wherein the calculation of the coincidence degree between the second candidate visual presentation data and the game element presentation data comprises: when the game element presentation data is a virtual scene, obtaining a first position and a first orientation of a virtual character of a player; calculating the coincidence degree between the game element presentation data and the second candidate visual presentation data according to the first position, the first orientation, and a second position and a second orientation corresponding to the second candidate visual presentation data; when the game element presentation data is a virtual character or a game skill, obtaining first morphological information of the virtual character or the game skill; calculating the coincidence degree between the game element presentation data and the second candidate visual presentation data according to the first morphological information and second morphological information corresponding to the second candidate visual presentation data.
2. The method of claim 1, wherein the game screen is rendered in a 3D mode. After the calculation of the coincidence degree between the second candidate visual presentation data and the game element presentation data, the method further comprises: when there is no second visual presentation data matching the game element presentation data in the historical visual presentation data, performing rendering processing on the game element presentation data to obtain rendering data corresponding to the game element presentation data.
3. The method of claim 2, wherein the game screen is rendered in a 3D mode. After the rendering processing of the game element presentation data to obtain the rendering data corresponding to the game element presentation data, the method further comprises: The rendering data is associated with the game element presentation data, and the associated rendering data and the game element presentation data are stored in the rendering database.
4. The method of claim 2, wherein the game screen is rendered in a 3D mode. The second game picture is generated according to the first visual presentation data and the rendering data. The rendering data corresponding to each game element presentation data is merged, and the second game picture is generated according to the merged rendering data and the first visual presentation data.
5. The method of rendering a game screen according to any one of claims 1 to 4, wherein, The first visual presentation data has multiple, and each first visual presentation data corresponds to a frame of second game picture. After the second game picture is generated according to the first visual presentation data and the rendering data, the method further comprises: Multiple frames of the second game picture are played on the user graphical interface of the user terminal at a preset frame rate.
6. A game screen rendering apparatus, characterized by comprising: Comprise: The determination module is used for determining the first visual presentation data corresponding to the user operation according to the user operation triggered based on the first game picture and the first game picture; The matching module is used for: Determining the game elements contained in the first visual presentation data, wherein the types of the game elements include a virtual scene, a virtual character located in the virtual scene, and a game skill corresponding to the virtual character; The first visual presentation data is split into multiple game element presentation data according to the determined game elements, wherein one game element presentation data corresponds to one game element; For each game element presentation data, the first candidate visual presentation data belonging to the same game element category as the game element presentation data is determined from the historical visual presentation data of the rendering database; The attribute parameters of the game element presentation data are obtained, and the second candidate visual presentation data matching the attribute parameters is determined from the first candidate visual presentation data; The coincidence degree between the second candidate visual presentation data and the game element presentation data is calculated; When there is second candidate visual presentation data with a coincidence degree greater than a preset threshold with the game element presentation data, the second candidate visual presentation data with the highest coincidence degree is determined as the historical visual presentation data corresponding to the game element presentation data, and the second visual presentation data is obtained; The rendering data corresponding to the second visual presentation data is obtained; The generation module is used for generating a second game picture according to the first visual presentation data and the rendering data; The matching module is further used for: When the game element presentation data is a virtual scene, the first position and the first orientation of the player's virtual character are obtained; The coincidence degree between the game element presentation data and the second candidate visual presentation data is calculated according to the first position, the first orientation, and the second position and the second orientation corresponding to the second candidate visual presentation data; When the game element presentation data is a virtual character or a game skill, the first morphological information of the virtual character or the game skill is obtained; The coincidence degree between the game element presentation data and the second candidate visual presentation data is calculated according to the first morphological information and the second morphological information corresponding to the second candidate visual presentation data.
7. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is run on a computer, the computer is caused to perform the game screen rendering method according to any one of claims 1 to 5.
8. A computer device comprising a processor and a memory, the memory storing a computer program, characterized in that, The processor, by invoking the computer program, is configured to perform the game screen rendering method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Cloud game picture rendering method and device
CN114377394A
Game data rendering method and device and rendering data display method and device
CN114602172A