Game data processing method and device, medium and product
By configuring the data of interactive objects and three-dimensional objects in an offline environment, and using preset camera angles to control the camera lens, the problems of consumption risk and effect stability when running puzzle games are solved, achieving a more stable and immersive gaming experience.
Patent Information
- Application Number
- CN202410781046.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-17
AI Technical Summary
Puzzle-solving games have a high risk of consumption during operation, and the stability of the effect presentation is difficult to guarantee, resulting in poor visual effects.
Pre-configure the data of interactive objects and 3D objects in the offline environment, use the preset camera angle to control the camera lens adjustment, achieve a seamless transition from 2D pictures to 3D objects, and reduce the need for dynamic generation at runtime.
It reduces the performance overhead when the game is running, improves the stability of the effect of converting two-dimensional images into three-dimensional objects, and provides a more coherent and engaging gaming experience.
Smart Images

Figure CN118649418A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, medium and product for processing game data. Background Art
[0002] Puzzle games are games that involve solving puzzles, riddles, logic problems or conundrums as the main gameplay element. These games require players to use cognitive skills such as logical thinking, spatial reasoning, pattern recognition, memory and creativity to solve various obstacles and puzzles set in the game in order to advance in the game.
[0003] In the process of running puzzle games in related technologies, a dynamic generation method is generally used to dynamically and real-time generate objects displayed by 2D interactive objects in a 3D scene (a model Mesh will be generated during operation), so as to use visual dislocation or spatial relationship from two dimensions to three dimensions to achieve the visual effect of transforming a 2D image into a 3D model. For example, a 2D image can be placed in a game scene so that the 2D image and the 3D scene form a visual matching relationship, and the 2D image is transformed into a 3D model according to the visual matching relationship, achieving a "vision becomes reality" game effect, giving players a wonderful game experience.
[0004] However, the inventors have at least discovered that: in the technical solutions of the related technologies, since it is necessary to dynamically and real-time generate the objects displayed as 2D interactive objects in the 3D scene during the running of the puzzle game, the consumption risk during the running of the puzzle game is relatively high; the stability of the effect presentation of the puzzle game is difficult to be effectively guaranteed. Summary of the invention
[0005] One purpose of the present application is to provide a method, device, medium and product for processing game data, at least to solve the technical problems in the related art that the consumption risk of puzzle games is relatively high when running and the stability of the effect presentation is difficult to be effectively guaranteed.
[0006] To achieve the above objectives, some embodiments of the present application provide the following aspects:
[0007] In the first aspect, some embodiments of the present application also provide a method for processing game data, the method comprising: controlling the player's camera lens to adjust to a preset camera perspective to present a game interface including an interactive object; wherein the interactive object carries a puzzle for the player to solve; when the puzzle is solved successfully, controlling the interactive object to be transformed into a three-dimensional object; the three-dimensional object is used to form a target game interface together with game materials around the three-dimensional object; the preset camera perspective, data representing the interactive object, and data representing the three-dimensional object are all configured in an offline environment.
[0008] In a second aspect, some embodiments of the present application further provide an electronic device, comprising: one or more processors; and a memory storing computer program instructions, wherein the computer program instructions, when executed, cause the processor to perform the steps of the method described above.
[0009] In a third aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method as described above.
[0010] In a fourth aspect, some embodiments of the present application further provide a computer program product, comprising a computer program / instruction, which implements the steps of the method described above when executed by a processor.
[0011] Optionally, the interactive object is specifically a two-dimensional interactive object.
[0012] Optionally, when the puzzle is solved successfully, controlling the interactive object to be transformed into a three-dimensional object includes: when the puzzle is solved successfully, controlling the interactive object together with a target picture displayed by the interactive object to melt, presenting a three-dimensional object corresponding to the object in the target picture.
[0013] Optionally, the configuration method of the preset camera angle, the data representing the interactive object, and the data representing the three-dimensional object includes: determining the position and direction of the camera lens according to the game scene; obtaining the preset camera angle according to the position and direction of the camera lens; and determining the data representing the interactive object and the data representing the three-dimensional object according to the preset camera angle. In this way, a configuration method for the preset camera angle, the data representing the interactive object, and the data representing the three-dimensional object is provided. Through this configuration method, it is possible to ensure a seamless visual connection when converting from an object in a target image to a three-dimensional object to a large extent, thereby facilitating providing a coherent and engaging gaming experience for players.
[0014] Optionally, the data representing the interactive object and the data representing the three-dimensional object according to the preset camera angle of view include: rendering based on the preset camera angle of view, determining the game interface according to the preset camera angle of view and the game interface, configuring the position and direction of the interactive object; determining the position and direction of the three-dimensional object according to the position and direction of the interactive object. In the embodiment of the present application, full use is made of the feature that the interactive objects are predictable offline in the puzzle gameplay and game design. In the offline stage, the objects in the target image of the interactive object and the three-dimensional objects are visually matched and bound in advance, and the objects in the target image of the interactive object are baked offline. In this way, in the offline stage, the final matching effect can be edited and previewed in the development environment, ensuring that the effect of converting the objects in the two-dimensional image into the three-dimensional object is stable and controllable, and the implementation method is more intuitive and simple.
[0015] Optionally, when the puzzle is solved successfully, controlling the interactive object and the target image displayed by the interactive object to melt, and presenting a three-dimensional object corresponding to the object in the target image includes: determining the melting start point of the interactive object; and dispersing the melt to the surroundings according to the melting start point and a preset speed, so as to control the interactive object and the target image displayed by the interactive object to melt, and naturally transition to present a three-dimensional object corresponding to the object in the target image. In this way, the transition display effect of the object in the target image in the player's vision to the three-dimensional object is achieved, which can further improve the player's gaming experience and enhance the visual experience.
[0016] Optionally, the determination of the melting start point of the interactive object includes: determining the element associated with the interactive object; determining the melting start point of the interactive object and the melting start point of the element; and dissolving and diffusing to the surroundings according to the melting start point and the preset speed to control the melting of the interactive object together with the target image displayed by the interactive object, and naturally transitioning to present a three-dimensional object corresponding to the object in the target image, specifically: dissolving and diffusing to the surroundings according to the melting start point of the interactive object and the melting start point of the element and the preset speed to control the melting of the interactive object together with the target image displayed by the interactive object and the element, and naturally transitioning to present a three-dimensional object corresponding to the object in the target image. In this way, the problem that the interactive object and the elements associated with the interactive object are cluttered in the player's vision due to the inconsistency of the melting start point and the preset melting speed during the melting process can be solved, which is conducive to further improving the player's gaming experience.
[0017] Optionally, the dissolving and diffusion to the surroundings according to the melting starting point and the preset speed to control the melting of the interactive object together with the target image displayed by the interactive object, and naturally transitioning to present a three-dimensional object corresponding to the object in the target image includes: dissolving and diffusion to the surroundings according to the melting starting point, the preset speed and the preset pattern to control the melting of the interactive object together with the target image displayed by the interactive object, and naturally transitioning to present a three-dimensional object corresponding to the object in the target image. By combining the preset pattern, dissolving and diffusion to the surroundings according to the melting starting point and the preset speed to control the melting of the interactive object together with the target image displayed by the interactive object, and naturally transitioning to present a three-dimensional object corresponding to the object in the target image, the beauty of the game screen can be further enhanced, bringing better visual effects and gaming experience to players.
[0018] Optionally, the dissolving and diffusion to the surroundings according to the melting starting point and the preset speed to control the melting of the interactive object together with the target picture displayed by the interactive object, and naturally transition to present a three-dimensional object corresponding to the object in the target picture includes: constructing a target coordinate space with the camera lens as a reference system; dissolving and diffusion to the surroundings according to the target coordinate space, the melting starting point and the preset speed to control the melting of the interactive object together with the target picture displayed by the interactive object, and naturally transition to present a three-dimensional object corresponding to the object in the target picture. In this way, since the interactive object and the elements associated with the interactive object are transformed into the same target coordinate space, the melting can also be perfectly connected with each other.
[0019] Compared with the related art, the solution provided in the embodiment of the present application cleverly combines offline pre-production and runtime, and visually matches and logically binds the objects in the target picture displayed by the interactive object and the three-dimensional objects in the offline development environment. Then, during the game operation, the player's camera lens is controlled to adjust to the preset camera perspective to present the game interface including the interactive object, thereby providing the player with an immersive puzzle-solving experience; wherein the interactive object carries puzzles for the player to solve. When the puzzle is solved successfully, the interactive object is controlled to be transformed into a three-dimensional object; the three-dimensional object is used to form a target game interface together with the game materials around the three-dimensional object; wherein, since the preset camera perspective, the data representing the interactive object and the data representing the three-dimensional object are all configured in an offline environment, they are all reusable decryption gameplay workflows, and it is not necessary to generate the model Mesh online and in real time during the game to obtain the three-dimensional object as required by the solution of the related technology. Therefore, there is no potential additional performance overhead at runtime, which can reduce the risk of large consumption during the game runtime; since the target image and the three-dimensional object displayed on the interactive object are pre-designed in an offline environment, their display effect is controllable and predictable. Therefore, through the solution provided by this application, the stability of the effect of converting the object in the two-dimensional image to the three-dimensional object during the game operation can also be effectively improved. In summary, the solution provided by the embodiment of this application can make the implementation method of the gameplay logic of "visual realization" simpler, controllable and stable. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0021] Figure 1 This is an exemplary flow chart of a method for processing game data according to some embodiments of the present application;
[0022] Figure 2 and Figure 3 An exemplary schematic diagram based on interactive objects and preset camera perspectives in a method for processing game data provided according to some embodiments of the present application;
[0023] Figure 4 and Figure 5 This is an exemplary schematic diagram of a virtual character completing a puzzle-solving operation in a method for processing game data provided according to some embodiments of the present application;
[0024] Figures 6 to 8In a method for processing game data provided according to some embodiments of the present application, the interactive object and a target image displayed by the interactive object are controlled to begin to melt, and an exemplary schematic diagram of a three-dimensional object corresponding to the object in the target image is presented;
[0025] Fig. 9 An exemplary flow chart of a method for configuring the preset camera perspective, the data representing the interactive object, and the data representing the three-dimensional object in a method for processing game data provided according to some embodiments of the present application;
[0026] Fig.10 This is an exemplary flow chart of sub-steps of step S102 in a method for processing game data provided according to some embodiments of the present application;
[0027] Fig.11 This is a schematic diagram of an exemplary structure of an electronic device provided according to some embodiments of the present application. Specific embodiments
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] The following terms are used in this article.
[0030] Camera: The concept of a camera in a game is used to render and draw images from the player's perspective. There are two types of cameras: perspective camera and orthographic camera. Images from a certain perspective in the game scene can be drawn on the screen or saved to a local image file.
[0031] Interactive objects: Two-dimensional images or objects that are visible and interactive to players in the decryption gameplay. In this application, it refers to gameplay elements that are visually consistent with objects in a fixed perspective and a three-dimensional scene. The interactive objects and the three-dimensional objects in this application are visually matched, and the three-dimensional objects are entities that the interactive objects in the game need to dynamically generate.
[0032] Runtime: The stage when the game program is running, which is the game running process that players can eventually see.
[0033] Offline environment: Before runtime, the environment that only the game developer can see is in the stage of making and editing in the game editor.
[0034] Offline baking: Graphics rendering concept, refers to writing the camera image or other visual data in the scene into a two-dimensional map in advance in an offline environment, that is, storing runtime data in image format for runtime reading.
[0035] Level Editor: A game production editing tool developed specifically for game developers. Developers can preview and edit game scenes in advance, and pre-produce some data and assets required for game runtime in the scenes.
[0036] Workflow: The production process of the solution is divided into different stages. Different people or different tools may be responsible for the production of a certain stage. The overall connection forms an assembly line to finally produce the expected results.
[0037] Shader: A program used to calculate rendering effects. It runs on the graphics processor and is responsible for the lighting calculation and visual effect generation of the game screen.
[0038] First embodiment
[0039] The first embodiment of the present application relates to a method for processing game data. Figure 1 As shown, the method may include the following steps:
[0040] Step S101, controlling the player's camera lens to adjust to a preset camera angle to present a game interface including an interactive object; wherein the interactive object carries a puzzle for the player to solve;
[0041] Step S102, when the puzzle is solved successfully, controlling the interactive object to transform into a three-dimensional object; the three-dimensional object is used to form a target game interface together with the game materials around the three-dimensional object;
[0042] It should be noted that the preset camera viewing angle, the data representing the interactive object, and the data representing the three-dimensional object are all configured in an offline environment.
[0043] The following is a detailed description of each of the above steps.
[0044] With respect to step S101, specifically, in some examples, when the puzzle-solving mechanism is triggered, the player's camera lens can be controlled to adjust to a preset camera angle to present a game interface including interactive objects. Specifically, when the virtual character controlled by the player reaches an area corresponding to the puzzle gameplay in the game, or when the virtual character reaches an area corresponding to the puzzle gameplay in the game and the task performed by the virtual character meets certain conditions, the puzzle-solving mechanism can be triggered. The interactive object can be a two-dimensional interactive object or a three-dimensional interactive object, which is not specifically limited in the embodiments of the present application.
[0045] When the puzzle-solving mechanism is triggered, it means entering the puzzle-solving gameplay process, at which point the puzzle-solving gameplay interface is displayed. Specifically, the player's camera lens is automatically controlled to adjust to a preset camera angle to present the game interface including the interactive object. The interactive object carries a puzzle for the player to solve. Figure 2 and Figure 3 As shown, Figure 2 The blue rectangle in the figure is a two-dimensional interactive object. When the virtual character reaches the area corresponding to the puzzle gameplay in the game, the camera lens of the player is controlled to move from Figure 2 The status shown is adjusted to Figure 3 The preset camera perspective shown is used to present the game interface including the two-dimensional interactive objects.
[0046] Exemplarily, the interactive object may be, but is not limited to, a button, an icon, an item, a puzzle element, etc., which is not specifically limited in the present embodiment. The interactive object may display the puzzle through a puzzle panel, so that the player can control the virtual character to solve the puzzle based on the puzzle panel.
[0047] Among them, the puzzle is an interactive element in the game design, which is carefully constructed by the game planner. The puzzle is used to instruct the player to solve the problem represented by the puzzle through specific gameplay and interaction; the problem represented by the puzzle usually involves logical thinking, strategic planning or skill application. When the player successfully meets the requirements of the puzzle and the puzzle-solving operation is successful, the game will give the player feedback. The feedback given to the player may include unlocking new areas, obtaining rewards or advancing the storyline, etc. In this way, not only can the fun and challenge of the game be increased, but also the positive feedback after achieving the goal enhances the player's sense of participation and achievement. For example, the puzzle panel can be but is not limited to: a graphic matching panel, a sliding puzzle panel, a password code panel, a logic puzzle panel, etc., and the player can manipulate the virtual character to perform puzzle-solving operations such as dragging fragments, and the embodiment of the present application does not specifically limit this.
[0048] For step S102, specifically, in some examples, see Figure 4 and Figure 5 As shown, when the virtual character controlled by the player completes the puzzle-solving operation and the puzzle-solving operation is successful, the puzzle-solving condition is met, the puzzle-solving success performance process is triggered, and the interactive object is controlled to transform into a three-dimensional object. The three-dimensional object is used to form a target game interface together with the game materials around the three-dimensional object. The target game interface is a new, interoperable target game interface formed by the three-dimensional object and the game materials around the three-dimensional object.
[0049] The preset camera angle, the data representing the interactive object, and the data representing the three-dimensional object are all configured in an offline environment. Therefore, during the game running stage, the above data can be directly obtained. It is not necessary to generate the corresponding three-dimensional object in real time according to the object represented by the target image during the game running process.
[0050] It is not difficult to find that compared with the related art, the solution provided in the embodiment of the present application cleverly combines offline pre-production and runtime, and visually matches and logically binds the objects in the target picture displayed by the interactive object and the three-dimensional objects in the offline development environment. Then, during the game operation, the player's camera lens is controlled to adjust to the preset camera perspective to present the game interface including the interactive object, thereby providing the player with an immersive puzzle-solving experience; wherein the interactive object carries puzzles for the player to solve. When the puzzle is solved successfully, the interactive object is controlled to be transformed into a three-dimensional object; the three-dimensional object is used to form a target game interface together with the game materials around the three-dimensional object; wherein, since the preset camera perspective, the data representing the interactive object and the data representing the three-dimensional object are all configured in an offline environment, they are all reusable decryption gameplay workflows, and it is not necessary to generate the model Mesh online and in real time during the game to obtain the three-dimensional object as required by the solution of the related technology. Therefore, there is no potential additional performance overhead at runtime, which can reduce the risk of large consumption during the game runtime; since the target image and the three-dimensional object displayed on the interactive object are pre-designed in an offline environment, their display effect is controllable and predictable. Therefore, through the solution provided by this application, the stability of the effect of converting the object in the two-dimensional image to the three-dimensional object during the game operation can also be effectively improved. In summary, the solution provided by the embodiment of this application can make the implementation method of the gameplay logic of "visual realization" simpler, controllable and stable.
[0051] Second embodiment
[0052] The second embodiment of the present application relates to a method for processing game data. The second embodiment is an improvement on the first embodiment, and the specific improvement is: in the second embodiment of the present application, a specific implementation method of controlling the interactive object to transform into a three-dimensional object is provided when the puzzle is successfully solved.
[0053] Specifically, in the embodiment of the present application, when the puzzle is solved successfully, the interactive object is controlled to be transformed into a three-dimensional object. Specifically, when the puzzle is solved successfully, the interactive object is controlled to melt together with the target picture displayed by the interactive object, and a three-dimensional object corresponding to the object in the target picture is presented.
[0054] Optionally, in some embodiments, the interactive object is specifically a two-dimensional interactive object.
[0055] For example, Figures 6 to 8 As shown, the interactive object and the target image displayed by the interactive object begin to melt and eventually completely disappear from the player's field of vision. At the same time, a three-dimensional object corresponding to the object in the target image is presented. This means that the effect presented to the player is that the object in the target image becomes a three-dimensional object, achieving a "visual reality" game effect.
[0056] It should be noted that the three-dimensional object and the object in the target image correspond to each other, and the only difference between the two is that one is a three-dimensional form and the other is a two-dimensional form. The three-dimensional object and the object in the target image can be, but are not limited to: a mechanism, a map, a treasure chest, a lightning, etc. Game developers can flexibly design according to actual needs, and the application embodiment does not make specific limitations on this.
[0057] It is not difficult to find that in the embodiment of the present application, when the puzzle is solved successfully, the interactive object is controlled to melt together with the target picture displayed by the interactive object, and a three-dimensional object corresponding to the object in the target picture is presented, which provides a specific implementation method of controlling the interactive object to be transformed into a three-dimensional object when the puzzle is solved successfully. In this way, the game effect of "vision becomes reality" can be achieved.
[0058] Third embodiment
[0059] The third embodiment of the present application relates to a method for processing game data. The third embodiment is an improvement on the first embodiment, and the specific improvement is that: in the second embodiment of the present application, the configuration method of the preset camera angle, the data representing the interactive object, and the data representing the three-dimensional object may include the following steps: Fig. 9 As shown:
[0060] Step S201, determining the position and direction of the camera lens according to the game scene;
[0061] Step S202, obtaining the preset camera viewing angle according to the position and direction of the camera lens;
[0062] Step S203: determining data representing the interactive object and data representing the three-dimensional object according to the preset camera viewing angle.
[0063] Specifically, in some examples, game developers can conduct a comprehensive assessment by examining the game scene and combining clues that are conducive to promoting the main line of the game process, select a suitable target camera position in the level editor, and set up the camera lens at the target camera position, and confirm whether the picture taken by the camera lens meets the expectations of the game by fine-tuning the camera lens. In this way, the position and direction of the camera lens corresponding to the picture taken by the camera lens when it meets the expectations of the game can be used as the position and direction of the camera lens in the embodiment of the present application, thereby obtaining the preset camera angle of view.
[0064] Optionally, in some embodiments, the determining of the data representing the interactive object and the data representing the three-dimensional object according to the preset camera angle, that is, step S203, may further include the following steps:
[0065] Step S2031, rendering is performed based on the preset camera angle to determine the game interface;
[0066] Step S2032, configuring the position and direction of the interactive object according to the preset camera angle and the game interface;
[0067] Step S2032: Determine the position and direction of the three-dimensional object according to the position and direction of the interactive object.
[0068] Specifically, in some examples, the scene screen of the current game is rendered based on the preset camera angle, and the rendered screen can be saved locally in the format of a two-dimensional image according to a preset path using relevant tools; the rendered screen is the game interface. In this way, it can be understood that during the game running stage, the game interface seen by the player is a two-dimensional image prepared in the offline stage.
[0069] Specifically, in some examples, the game developer can accurately place and configure the position and direction of the interactive object according to the current game interface corresponding to the preset camera angle. Correspondingly, the puzzle panel carried by the interactive object should also be accurately aligned with the screen corresponding to the preset camera angle. In this way, it is possible to prevent mistakes. Exemplarily, after determining the position and direction of the interactive object, the determined position and direction of the interactive object can be saved locally.
[0070] Specifically, in some examples, the position of the three-dimensional object can be set at a position slightly behind the target picture displayed by the interactive object, and the direction of the three-dimensional object is consistent with the direction of the target picture of the interactive object, so that the three-dimensional object and the target picture are completely overlapped and aligned. It can be understood that this is equivalent to placing a two-dimensional target picture in front of the three-dimensional object. In this way, the player first sees the two-dimensional target picture, and cannot see the three-dimensional object that has been set up in advance in the offline environment. When the puzzle is solved successfully, the interactive object and the target picture displayed by the interactive object are melted, and the three-dimensional object placed after the target picture will appear naturally.
[0071] It should be noted that in the embodiments of the present application, full use is made of the fact that the interactive objects in the puzzle gameplay are predictable offline in the game design. In the offline stage, the objects in the target image of the interactive objects and the three-dimensional objects are visually matched and bound in advance, and the objects in the target image of the interactive objects are baked offline. In this way, in the offline stage, the final matching effect can be edited and previewed in the development environment, ensuring that the effect of converting the objects in the two-dimensional image into the three-dimensional objects is stable and controllable, and the implementation method is also more intuitive and simple.
[0072] It should be noted that in an offline environment, after the game developer configures the preset camera perspective, the data representing the interactive object, and the data representing the three-dimensional object, the subsequent game mechanism can be further developed based on these data in the level editor. For example, gameplay flow, puzzle gameplay corresponding to different themes, and so on. For example, assuming that the puzzle panel is a number of fragments of the treasure chest, the puzzle gameplay can be: guiding the player to piece together the several fragments into the treasure chest. It can be understood that in an embodiment of the present application, after the player pieces together the several fragments into the treasure chest, the treasure chest displayed by the interactive object is the target picture.
[0073] It should be noted that the third embodiment of the present application may also be an improvement based on the second embodiment.
[0074] It is not difficult to find that in the embodiment of the present application, a configuration method for the preset camera angle, the data representing the interactive object, and the data representing the three-dimensional object is provided. Through this configuration method, it is possible to ensure a seamless visual connection when converting from the object in the target image to the three-dimensional object to a large extent, thereby facilitating providing a coherent and fascinating gaming experience for the player.
[0075] Fourth embodiment
[0076] The fourth embodiment of the present application relates to a method for processing game data. The fourth embodiment is an improvement on the second embodiment, and the specific improvement is: in the fourth embodiment of the present application, when the puzzle is solved successfully, the interactive object is controlled to melt together with the target picture displayed by the interactive object, and a three-dimensional object corresponding to the object in the target picture is presented, that is, step S102 can further include the following steps, such as Fig.10 As shown:
[0077] Step S1021, determining the melting start point of the interactive object;
[0078] Step S1022, ablation and diffusion to the surroundings according to the melting starting point and the preset speed, so as to control the melting of the interactive object together with the target image displayed by the interactive object, and naturally transition to present a three-dimensional object corresponding to the object in the target image.
[0079] Specifically, in some examples, the center point of the object in the target image displayed by the interactive object can be used as the melting starting point of the interactive object. For example, assuming that the object is a treasure box, the center point of the treasure box is used as the melting starting point.
[0080] Specifically, in some examples, the game developer can flexibly set the preset speed in advance according to the specific game scene. In this way, when the puzzle is solved successfully, such as when the puzzle based on the treasure box is complete, the center point of the treasure box is used as the melting starting point, and the melting spreads to the surrounding according to the preset speed, so that the interactive object and the target picture displayed by the interactive object melt, and naturally transition to present a three-dimensional object corresponding to the object in the target picture.
[0081] It should be noted that the fourth embodiment of the present application may also be an improvement based on the first embodiment and / or the third embodiment.
[0082] It is not difficult to find that in the embodiment of the present application, by determining the melting starting point of the interactive object, and then dissolving and diffusing to the surroundings according to the melting starting point and the preset speed, the interactive object is controlled to melt together with the target picture displayed by the interactive object, and naturally transitions to present a three-dimensional object corresponding to the object in the target picture, thereby achieving the transition display effect of the object in the target picture in the player's vision to a three-dimensional object, which can further improve the player's gaming experience and enhance the visual experience.
[0083] Fifth embodiment
[0084] The fifth embodiment of the present application relates to a method for processing game data. The fifth embodiment is an improvement on the fourth embodiment, and the specific improvement is that the fifth embodiment of the present application provides a specific implementation method for determining the melting starting point of the interactive object, that is, step S1021 can further include the following steps:
[0085] Step S10211, determining an element associated with the interactive object;
[0086] Step S10212, determining the melting start point of the interactive object and the melting start point of the element;
[0087] Correspondingly, the step S1022 is specifically as follows: according to the melting starting point of the interactive object and the melting starting point of the element and the preset speed, the interactive object is diffused to the surroundings to control the melting of the interactive object together with the target image displayed by the interactive object and the element, and a natural transition is performed to present a three-dimensional object corresponding to the object in the target image.
[0088] Specifically, in some examples, the elements associated with the interactive object may be, but are not limited to, character models, animal models, and decorations (such as flowers, clouds, tree trunks, etc.). Game developers may flexibly set the elements as needed. The number and types of elements associated with the interactive object may be multiple.
[0089] In some application examples, the interactive object may be held up by a preset character model, which is the element associated with the interactive object.
[0090] Exemplarily, when the interactive object has an element associated with it, when melting begins, the melting starting point of the interactive object and the melting starting point of the element are used respectively. In this way, it is convenient to control the interactive object and the element to diffuse in all directions at the same preset speed, so that the interactive object, the target image displayed by the interactive object and the element melt, and naturally transition to present a three-dimensional object corresponding to the object in the target image.
[0091] Exemplarily, the center point of the element can be used as the melting starting point.
[0092] For example, assuming that the character model holds the interactive object, and the object in the target image displayed by the interactive object is a treasure box. When the melting begins, the melting start point of the treasure box and the melting start point of the character model are respectively melted and diffused to the surroundings at the same preset speed. The interactive object, the treasure box and the character model are melted together, and a natural transition is made to present a three-dimensional object corresponding to the treasure box.
[0093] Optionally, in some embodiments, the ablation is diffused to the surroundings according to the melting starting point and the preset speed to control the melting of the interactive object together with the target picture displayed by the interactive object, and naturally transition to present a three-dimensional object corresponding to the object in the target picture, that is, step S1022 may also include the following steps:
[0094] Step S10221, constructing a target coordinate space using the camera lens as a reference system;
[0095] Step S10222, ablating and diffusing in all directions according to the target coordinate space, the melting starting point and the preset speed, so as to control the melting of the interactive object together with the target image displayed by the interactive object, and naturally transition to present a three-dimensional object corresponding to the object in the target image.
[0096] Specifically, in some examples, the game program can use the camera lens as a reference system to construct the target coordinate space in the Shader program. Then, based on the target coordinate space and the melting starting point, the melting diffuses to the surrounding areas at a preset speed. In an embodiment of the present application, the interactive object and the elements associated with the interactive object can be unified into the target coordinate space. In this way, since the interactive object and the elements associated with the interactive object are transformed into the same target coordinate space, the melting process can be perfectly connected with each other. Among them, the specific implementation method of unifying the target coordinate space can adopt relevant technologies, which will not be repeated here to avoid redundancy.
[0097] It should be noted that the fifth embodiment of the present application may also be an improvement based on any one or more embodiments from the first embodiment to the third embodiment.
[0098] In the embodiment of the present application, by determining the elements associated with the interactive object, and determining the melting start point of the interactive object and the melting start point of the element, and then dissolving and diffusing to the surroundings according to the melting start point of the interactive object and the melting start point of the element and the preset speed, the interactive object, together with the target image displayed by the interactive object and the element, is controlled to melt, and naturally transition to present a three-dimensional object corresponding to the object in the target image. In this way, the situation that the interactive object and the elements associated with the interactive object are cluttered in the player's vision due to the inconsistency of the melting start point and the preset melting speed during the melting process can be solved, which is conducive to further improving the player's gaming experience.
[0099] Sixth embodiment
[0100] The sixth embodiment of the present application relates to a method for processing game data. The sixth embodiment is an improvement on the fourth embodiment, and the specific improvement is: the sixth embodiment of the present application provides a specific implementation method of controlling the melting of the interactive object together with the target picture displayed by the interactive object, and naturally transitioning to present a three-dimensional object corresponding to the object in the target picture.
[0101] Specifically, in the embodiment of the present application, the ablation is diffused to the surroundings according to the melting starting point and the preset speed to control the melting of the interactive object together with the target picture displayed by the interactive object, and naturally transitions to present a three-dimensional object corresponding to the object in the target picture. Specifically, the ablation is diffused to the surroundings according to the melting starting point, the preset speed and the preset pattern to control the melting of the interactive object together with the target picture displayed by the interactive object, and naturally transitions to present a three-dimensional object corresponding to the object in the target picture.
[0102] Exemplarily, the preset pattern may be any shape, such as an S-shape, a square shape, etc., which is not specifically limited in the present embodiment of the application.
[0103] When the interactive object has an element associated with it, the interactive object and the element can diffuse in all directions at the same preset speed and preset pattern according to their respective melting starting points, so as to control the melting of the interactive object together with the target image displayed by the interactive object, and naturally transition to present a three-dimensional object corresponding to the object in the target image.
[0104] It should be noted that the sixth embodiment of the present application may also be an improvement based on any one or more of the first to third embodiments and the fifth embodiment.
[0105] It is not difficult to find that in the embodiment of the present application, by combining the preset pattern, the melting starts at the melting point and the preset speed and diffuses to the surrounding areas to control the melting of the interactive object together with the target image displayed by the interactive object, and naturally transition to present a three-dimensional object corresponding to the object in the target image, which can further enhance the beauty of the game screen and bring better visual effects and gaming experience to the players.
[0106] The step division of the above methods is only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0107] Seventh embodiment
[0108] Some embodiments of the present application also provide an electronic device. The electronic device may be a digital computer in various forms, such as a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, etc. The electronic device may also be a mobile device in various forms, such as a personal digital processing, a cellular phone, a smart phone, a wearable device, and other similar computing devices.
[0109] The electronic device includes: one or more processors; and a memory storing computer program instructions, wherein when the computer program instructions are executed, the processor executes the steps of the method provided in any one or more of the above embodiments. Fig.11 An exemplary structural diagram of the electronic device is disclosed. Fig.11 As shown, the electronic device includes: one or more processors 1101, memory 1102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Among them, the components shown in this article, their connections and relationships, and their functions are only used as examples, and are not intended to limit the implementation of the present application described and / or required herein.
[0110] The electronic device may further include: an input device 1103 and an output device 1104. The processor 1101, the memory 1102, the input device 1103 and the output device 1104 may be connected via a bus or other means. Fig.11 The example of connecting through bus is taken in the following.
[0111] The input device 1103 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a track ball, a joystick and other input devices. The output device 1104 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.
[0112] To provide interaction with a user, the electronic device may be a computer. The computer has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0113] In the embodiments of the present application, a computer program / instruction is stored on a computer-readable medium, and when the computer program / instruction is executed by a processor, the steps of the method provided by any one or more of the above embodiments are implemented. The computer-readable medium may be included in the electronic device described in the above embodiments; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions.
[0114] The memory 1102 can be used as a non-transient computer-readable storage medium, which can be used to store non-transient software programs, non-transient computer executable programs and modules. The processor 1101 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1102, so as to implement the program instructions / modules corresponding to the method provided by any one or more embodiments in the embodiments of the present application.
[0115] The memory 1102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1102 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1102 may optionally include a memory remotely arranged relative to the processor 1101, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0116] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may 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 of computer-readable storage media may include, but are not limited to: 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 the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.
[0117] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0118] Computer program code for performing the operations of the present application 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" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the 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., using an Internet service provider to connect via the Internet).
[0119] In the above-described embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. For example, it can be implemented by using an application specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device. In certain embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented by hardware, for example, as a circuit that cooperates with a processor to perform each step or function.
[0120] The computer program product provided in the embodiment of the present application includes one or more computer programs / instructions, and when the computer program / instructions are executed by the processor, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive so lid state di sk (SSD)), etc.
[0121] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0122] The scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes that fall within the meaning and scope of the equivalent elements of the claims are included in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim may also be implemented by one unit or device through software or hardware. The words "first", "second", etc. are only used to distinguish the description, and do not indicate any particular order, nor can they be understood as indicating or implying relative importance.
[0123] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily mention changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims, and the above embodiments should be regarded as exemplary and non-restrictive.
Claims
1. A method for processing game data, characterized in that: The method comprises: Controlling the player's camera lens to adjust to a preset camera angle to present a game interface including interactive objects; wherein the interactive objects carry puzzles for the player to solve; When the puzzle is solved successfully, the interactive object is controlled to transform into a three-dimensional object; the three-dimensional object is used to form a target game interface together with the game materials around the three-dimensional object; The preset camera perspective, the data representing the interactive object, and the data representing the three-dimensional object are all configured in an offline environment.
2. The method according to claim 1, characterized in that The interactive object is specifically a two-dimensional interactive object.
3. The method according to claim 1, characterized in that When the puzzle is solved successfully, controlling the interactive object to transform into a three-dimensional object comprises: When the puzzle is solved successfully, the interactive object is controlled to melt together with the target picture displayed by the interactive object, and a three-dimensional object corresponding to the object in the target picture is presented.
4. The method according to claim 1, characterized in that: The configuration method of the preset camera viewing angle, the data representing the interactive object, and the data representing the three-dimensional object includes: According to the game scene, determine the position and direction of the camera lens; Obtaining the preset camera viewing angle according to the position and direction of the camera lens; According to the preset camera viewing angle, data representing the interactive object and data representing the three-dimensional object are determined.
5. The method according to claim 4, characterized in that The determining, according to the preset camera angle of view, data representing the interactive object and data representing the three-dimensional object comprises: Rendering is performed based on the preset camera angle to determine the game interface According to the preset camera angle of view and the game interface, configure the position and direction of the interactive object; The position and direction of the three-dimensional object are determined according to the position and direction of the interactive object.
6. The method according to claim 3, characterized in that When the puzzle is solved successfully, controlling the interactive object and the target picture displayed by the interactive object to melt, and presenting a three-dimensional object corresponding to the object in the target picture includes: determining a melting start point of the interactor; The melting is diffused to the surroundings according to the melting starting point and the preset speed, so as to control the melting of the interactive object together with the target picture displayed by the interactive object, and naturally transition to present a three-dimensional object corresponding to the object in the target picture.
7. The method according to claim 6, characterized in that Determining the melting start point of the interactor comprises: determining an element associated with the interactive object; Determining a melting start point of the interactor and a melting start point of the element; The ablation and diffusion to the surroundings according to the melting starting point and the preset speed is used to control the melting of the interactive object together with the target picture displayed by the interactive object, and naturally transitions to present a three-dimensional object corresponding to the object in the target picture. Specifically, the ablation and diffusion to the surroundings according to the melting starting point of the interactive object and the melting starting point of the element and the preset speed is used to control the melting of the interactive object together with the target picture displayed by the interactive object and the element, and naturally transitions to present a three-dimensional object corresponding to the object in the target picture.
8. The method according to claim 6 or 7, characterized in that: The ablation diffusion to the surroundings according to the melting starting point and the preset speed to control the melting of the interactive object together with the target picture displayed by the interactive object, and naturally transition to present a three-dimensional object corresponding to the object in the target picture includes: The melting is diffused to the surroundings according to the melting starting point, the preset speed and the preset pattern to control the melting of the interactive object together with the target picture displayed by the interactive object, and naturally transition to present a three-dimensional object corresponding to the object in the target picture.
9. The method according to claim 6 or 7, characterized in that: The ablation diffusion to the surroundings according to the melting starting point and the preset speed to control the melting of the interactive object together with the target picture displayed by the interactive object, and naturally transition to present a three-dimensional object corresponding to the object in the target picture includes: Using the camera lens as a reference system, constructing a target coordinate space; According to the target coordinate space, the melting starting point and the preset speed, the melting is diffused to the surroundings to control the melting of the interactive object together with the target image displayed by the interactive object, and a natural transition is made to present a three-dimensional object corresponding to the object in the target image.
10. An electronic device, characterized in that: The electronic device comprises: one or more processors; and A memory storing computer program instructions, which, when executed, cause the processor to perform the steps of the method as claimed in any one of claims 1 to 9.
11. A computer readable medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
12. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
