CN113786612A - Method, device and system for displaying environmental decorations - Google Patents

Method, device and system for displaying environmental decorations Download PDF

Info

Publication number
CN113786612A
CN113786612A CN202111091068.1A CN202111091068A CN113786612A CN 113786612 A CN113786612 A CN 113786612A CN 202111091068 A CN202111091068 A CN 202111091068A CN 113786612 A CN113786612 A CN 113786612A
Authority
CN
China
Prior art keywords
ornament
robot
environment
edge server
area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111091068.1A
Other languages
Chinese (zh)
Other versions
CN113786612B (en
Inventor
王达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Miha Youliyue Technology Co ltd
Original Assignee
Shanghai Miha Youliyue Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Miha Youliyue Technology Co ltd filed Critical Shanghai Miha Youliyue Technology Co ltd
Priority to CN202111091068.1A priority Critical patent/CN113786612B/en
Publication of CN113786612A publication Critical patent/CN113786612A/en
Application granted granted Critical
Publication of CN113786612B publication Critical patent/CN113786612B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Processing Or Creating Images (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method, a device and a system for displaying environmental decorations, wherein the method is applied to a client and comprises the following steps: sending a robot creation request to an edge server, so that the edge server creates a robot corresponding to a target character used by a player in a target game scene based on the robot creation request; sending the current position information of the target role to an edge server so that the edge server controls the robot to move synchronously, and generating an environment ornament grid model corresponding to a preset scene area when detecting that the intersection exists between the current detection area of the robot and the preset scene area; the method comprises the steps of obtaining an environment ornament grid model in an edge server, and displaying an environment ornament in a preset scene area by loading the environment ornament grid model when the intersection of a current detection area of a target role and the preset scene area is detected, so that the resource overhead of a client side can be reduced, and the situation of blocking is avoided.

Description

Method, device and system for displaying environmental decorations
Technical Field
The embodiment of the invention relates to a computer technology, in particular to a method, a device and a system for displaying environmental decorations.
Background
With the rapid development of computer technology, various games have been developed. In a large game scene, only a partial game scene area can be displayed at a time due to the limited display interface. After the character used by the player enters a large game scene, the player can control the character to move and seek a path. Some environmental decorations such as flowers, plants and trees can be displayed in the moving and path-finding process of the character, so that the richness and the interestingness of the game scene are improved.
Currently, the environmental decorations in the game scene are usually generated in real time in the client based on the character moving process. However, this method consumes a lot of running resources, and a jam occurs during the moving route-finding process, which reduces the game experience.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for displaying an environment ornament, which are used for reducing the resource overhead of a client, avoiding the situation of stagnation in the process of moving and finding a path and improving the game experience.
In a first aspect, an embodiment of the present invention provides a method for displaying an environmental ornament, which is applied to a client, and includes:
loading a target game scene, and sending a robot creation request to an edge server which establishes communication connection with the client, so that the edge server creates a robot corresponding to a target character used by a player in the target game scene based on the robot creation request;
acquiring current position information of the target role, sending the current position information to the edge server, so that the edge server controls the robot to move synchronously based on the current position information, and generating an environment ornament grid model corresponding to a preset scene area when detecting that the intersection exists between the current detection area of the robot and the preset scene area for displaying the environment ornament;
acquiring the environment ornament grid model in the edge server, and when detecting that the intersection exists between the current detection area of the target role and the preset scene area, displaying an environment ornament in the preset scene area by loading the environment ornament grid model;
wherein the current detection area of the robot is larger than the current detection area of the target role.
In a second aspect, an embodiment of the present invention further provides an environment ornament displaying method, applied to an edge server, including:
receiving a robot creation request sent by a client side which establishes communication with the edge server;
based on the robot creating request, creating a robot corresponding to a target character used by a player in a target game scene loaded by the client;
receiving current position information of the target role sent by the client, and controlling the robot to synchronously move based on the current position information;
if the intersection of the current detection area of the robot and a preset scene area for displaying the environmental decorations is detected, generating an environmental decoration grid model corresponding to the preset scene area, so that the client acquires the environmental decoration grid model in the edge server, and when the intersection of the current detection area of the target role and the preset scene area is detected, displaying the environmental decorations in the preset scene area by loading the environmental decoration grid model;
wherein the current detection area of the robot is larger than the current detection area of the target role.
In a third aspect, an embodiment of the present invention further provides a display apparatus for an environmental decoration, which is integrated at a client, and includes:
a robot creation request sending module, configured to load a target game scene, and send a robot creation request to an edge server that establishes a communication connection with the client, so that the edge server creates, based on the robot creation request, a robot corresponding to a target character used by a player in the target game scene;
the current position information sending module is used for acquiring current position information of the target role and sending the current position information to the edge server so as to enable the edge server to control the robot to synchronously move based on the current position information, and when the intersection of a current detection area of the robot and a preset scene area for displaying an environmental ornament is detected, an environmental ornament grid model corresponding to the preset scene area is generated;
an environment ornament display module, configured to obtain the environment ornament grid model in the edge server, and when it is detected that an intersection exists between the current detection area of the target character and the preset scene area, display an environment ornament in the preset scene area by loading the environment ornament grid model; wherein the current detection area of the robot is larger than the current detection area of the target role.
In a fourth aspect, an embodiment of the present invention further provides an environment ornament display apparatus, integrated in an edge server, including:
the robot creation request receiving module is used for receiving a robot creation request sent by a client side which establishes communication with the edge server;
a robot creating module, configured to create a robot corresponding to a target character used by a player in a target game scene loaded by the client based on the robot creating request;
the synchronous moving module is used for receiving the current position information of the target role sent by the client and controlling the robot to synchronously move based on the current position information;
an environment ornament grid model generation module, configured to generate an environment ornament grid model corresponding to a preset scene area if it is detected that a current detection area of the robot intersects with the preset scene area for displaying an environment ornament, so that the client obtains the environment ornament grid model in the edge server, and when it is detected that the current detection area of the target character intersects with the preset scene area, displays an environment ornament in the preset scene area by loading the environment ornament grid model; wherein the current detection area of the robot is larger than the current detection area of the target role.
In a fifth aspect, an embodiment of the present invention further provides a display system for an environmental ornament, where the system includes: a client and an edge server; wherein,
the client is used for realizing the display method of the environment ornament provided by the first aspect of the invention;
the edge server is used for realizing the display method of the environment ornament provided by the second aspect of the invention.
The client in the embodiment of the invention sends the robot creation request to the edge server which establishes communication connection with the client. The edge server creates a robot corresponding to a target character used by the player in the target game scene based on the robot creation request. The client acquires the current position information of the target role and sends the current position information to the edge server. The edge server controls the robot to move synchronously based on the current position information, and detects whether the current detection area of the robot intersects with a preset scene area for displaying the environment ornament or not in real time, wherein the current detection area of the robot is larger than the current detection area of the target role, so that an environment ornament grid model corresponding to the preset scene area can be generated in advance based on the detection result of the robot. The client acquires the environment ornament grid model in the edge server, and loads the environment ornament grid model when detecting that the intersection exists between the current detection area of the target role and the preset scene area, so that the environment ornament can be rapidly displayed in the preset scene area. Through the synchronous movement based on the robot in the edge server, the environment decoration grid model can be generated in real time, the generation in a client is not needed, and the client only needs to be loaded and displayed, so that the resource overhead of the client can be reduced, the situation that the card is not in the process of moving and finding the way is avoided, and the game experience is improved.
Drawings
FIG. 1 is a flowchart illustrating a method for displaying an environmental ornament according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for displaying an environmental ornament according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a display device of an environmental ornament according to a third embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a display device of an environmental ornament according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a display system of an environmental ornament according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a method for displaying an environmental decoration according to an embodiment of the present invention, which is applicable to a situation where an environmental decoration in a game scene is generated and displayed in real time. The method can be executed by a device for displaying the environmental decoration, which can be implemented by software and/or hardware, and is integrated in a client. As shown in fig. 1, the method specifically includes the following steps:
s110, loading a target game scene, and sending a robot creation request to an edge server which establishes communication connection with the client, so that the edge server creates a robot corresponding to a target character used by a player in the target game scene based on the robot creation request.
Wherein, the target game scene may refer to a game scene selected by the current player. Each game may include one game scenario or may include multiple game scenarios. The target game scene in this embodiment may be a large game scene that requires walking and routing, that is, the client may only show a local scene area each time, and change the shown scene area based on the movement of the target character. The edge server may refer to a device that has a physical distance from the client that is less than a preset distance and has a magnitude that at least supports the environment ornament generation operation, so that the edge server may be used to perform the environment ornament mesh model generation operation on the client quickly. The form of the edge server in the present embodiment may be various. For example, a device such as a computer, a mobile phone, smart glasses, or a smart watch, which is located near the client and has a certain computation power, may be used as the edge server. The robot may refer to the same character as a target character used by a player for performing a row movement seek instead of the target character.
Specifically, the edge server may previously establish a communication connection with the client. For example, the edge installation package may be downloaded to a device that may act as an edge server, and the downloaded edge installation package may be installed in the device such that the device acts as an edge server for the client. After the installation is successful, information such as the IP address, the account number, the password and the like of the client can be input on the edge server, so that the communication connection between the client and the edge server is established. When entering a game stage selected by a player, the client can load a target game scene corresponding to the game stage and show an initial scene area in the target game scene, such as a starting position area in the game, so that the player can start playing the game from the starting position area. Wherein the environmental decoration may not be present in the initial scene area or a pre-generated environmental decoration may be presented. The client side can send the robot creating request to the edge server when the target game scene is loaded, so that the edge server can create a robot capable of moving and seeking a path instead of a target role in the target game scene based on the robot creating request.
For example, if there are multiple game scenes and the edge server has stored each game scene, a robot creation request including scene identification information corresponding to the current game scene and initial position information of the target character may be generated when the target game scene is loaded, so that the edge server obtains the target game scene based on the scene identification information and creates a robot at the initial position of the target character to ensure the accuracy of the environment ornament generation.
S120, obtaining current position information of the target role, sending the current position information to the edge server, enabling the edge server to control the robot to move synchronously based on the current position information, and generating an environment ornament grid model corresponding to a preset scene area when detecting that the intersection exists between the current detection area of the robot and the preset scene area for displaying the environment ornament.
The environment ornament can be an object used for decorating the environment in the game scene, so that the vividness and richness of the game scene are improved. For example, environmental ornamentation can include, but is not limited to: at least one of flowers, grass, trees, stones, and buildings. The current detection area of the robot in this embodiment is larger than the current detection area of the target character, so that the robot can detect that the environment ornament needs to be generated in preference to the target character, and thus generation in the client is not required, and a stuck condition is avoided. The current detection area may be any shape, and the specific shape may be set based on the service requirement and the scene. For example, the current detection area of the robot may be: a circular area with the current position of the robot as the center and a first preset length as the radius; the current detection area of the target character may be: and a circular area with the current position of the target character as the center and a second preset length as the radius. Wherein the first preset length is greater than the second preset length. For example, the first predetermined length is 200 unit distances, and the second predetermined length is 100 unit distances. The preset scene area may refer to an area in which the environmental decoration is required to be displayed in a preset target game scene. The target game scene in this embodiment may include one or more preset scene areas.
Specifically, the player can control the movement of the target character in a manner of a joystick or the like, and move and seek a path in a target game scene. The client may obtain the current location information of the target role in the moving process in real time, for example, obtain the current location information of the target role once per second, and send the current location information obtained each time to the edge server. The edge server can quickly receive the current position information and control the robot to move according to the current position information, so that synchronous movement can be realized. For example, the target character moves 1 meter to the left, and the robot also moves 1 meter to the left to ensure that the position information is synchronized. The edge server can detect whether the current detection area of the robot is intersected with any one preset scene area for displaying the environmental ornament or not in real time in the synchronous moving process of the robot, so that the condition that an environmental ornament grid model needs to be generated can be detected in preference to a target role. If it is detected that there is an intersection between a preset scene area and the current detection area of the robot, it indicates that the preset scene area is to be displayed on the display interface, and at this time, an environment ornament grid model corresponding to the preset scene area may be generated, so that a corresponding environment ornament is displayed when the preset scene area is displayed. If it is detected that there is an intersection between a plurality of preset scene areas and the current detection area of the robot, corresponding environment ornament mesh models can be generated one by one for each preset scene area. After the edge server generates the environment ornament grid model corresponding to the preset scene area, the environment ornament grid model can be packaged into a binary file to be actively issued or passively issued to the client. In the embodiment, the environment ornament grid model is generated in real time by utilizing the synchronous movement based on the robot in the edge server, and the generation in the client is not needed, so that the resource expense of the client can be greatly reduced.
S130, obtaining an environment ornament grid model in the edge server, and when the intersection of the current detection area of the target character and the preset scene area is detected, loading the environment ornament grid model to display the environment ornament in the preset scene area.
Specifically, the client may receive the environment ornament grid model actively issued by the edge server, and may also obtain the environment ornament grid model passively issued by the edge server in an interface downloading manner. For example, the edge server actively sends the environment ornament grid model corresponding to the preset scene area to the client, the client stores the received environment ornament grid model corresponding to the preset scene area, and detects whether the intersection exists between the current detection area of the target character and the preset scene area in real time, so as to determine whether to load the pre-stored environment ornament grid model, when the intersection exists, the pre-stored environment ornament grid model can be quickly loaded, and then the environment ornament can be quickly displayed in the preset scene area, the situation that the card is pause in the path finding process is avoided, and the game experience is improved.
Illustratively, S130 may include: and if the intersection of the current detection area of the target role and the preset scene area is detected, downloading the environment ornament grid model in the edge server through a preset downloading interface, loading the downloaded environment ornament grid model, and displaying the environment ornament in the preset scene area.
Specifically, the client may detect in real time whether the current detection area of the target role intersects with the preset scene area, and if so, a download request may be sent to the edge server through the preset download interface, so that the edge server may send the generated environment ornament mesh model corresponding to the preset scene area to the client based on the download request, and the client may obtain the environment ornament mesh model by loading, the environment ornament is displayed in the preset scene area, so that the grid model of the environment ornament can be actively obtained from the edge server when the client end actually needs to display the environment ornament, thereby aiming at the situation that the preset scene area is not required to be displayed because the moving direction of the target role is temporarily changed, unnecessary environment ornament grid models are avoided, storage space of a client is saved, and operation performance is improved.
According to the technical scheme of the embodiment, the client sends the robot creation request to the edge server which establishes communication connection with the client. The edge server creates a robot corresponding to a target character used by the player in the target game scene based on the robot creation request. The client acquires the current position information of the target role and sends the current position information to the edge server. The edge server controls the robot to move synchronously based on the current position information, and detects whether the current detection area of the robot intersects with a preset scene area for displaying the environment ornament or not in real time, wherein the current detection area of the robot is larger than the current detection area of the target role, so that an environment ornament grid model corresponding to the preset scene area can be generated in advance based on the detection result of the robot. The client acquires the environment ornament grid model in the edge server, and loads the environment ornament grid model when detecting that the intersection exists between the current detection area of the target role and the preset scene area, so that the environment ornament can be rapidly displayed in the preset scene area. Through the synchronous movement based on the robot in the edge server, the environment decoration grid model can be generated in real time, the generation in a client is not needed, and the client only needs to be loaded and displayed, so that the resource overhead of the client can be reduced, the situation that the card is not in the process of moving and finding the way is avoided, and the game experience is improved.
Example two
Fig. 2 is a flowchart of a method for displaying an environmental decoration according to a second embodiment of the present invention, which is applicable to a situation where an environmental decoration in a game scene is generated and displayed in real time. The method may be performed by an environment ornament presentation apparatus, which may be implemented by software and/or hardware, integrated with an edge server. As shown in fig. 2, the method specifically includes the following steps:
s210, receiving a robot creation request sent by a client side establishing communication with an edge server.
The edge server may refer to a device that has a physical distance from the client that is less than a preset distance and at least supports the magnitude of the operation calculation force generated by the environmental ornament, so that the edge server may be used to rapidly perform the operation of generating the mesh model of the environmental ornament on the client. The form of the edge server in the present embodiment may be various. For example, a device such as a computer, a mobile phone, smart glasses, or a smart watch, which is located near the client and has a certain computation power, may be used as the edge server. The edge server may correspond to one client or a plurality of clients. For example, if there are a plurality of clients within a preset distance range of the edge server, the environment ornament generation operation of each client may be supported by the edge server. The robot may refer to the same character as a target character used by a player for performing a row movement seek instead of the target character. The manner of generating the robot creation request in this embodiment may refer to the related description of the above embodiments, and is not described herein again.
Specifically, the edge server may previously establish a communication connection with each client located within a preset distance range, so as to generate an operation using an environment ornament that one edge server can support one or more clients. For example, the edge installation package may be downloaded to a device that may act as an edge server, and the downloaded edge installation package may be installed in the device such that the device acts as an edge server for the client. After the successful installation, information such as the IP address, account number, and password of one or more clients can be input on the edge server, so as to establish a communication connection between each client and the edge server. When entering a game stage selected by a player, the client can load a target game scene corresponding to the game stage and show an initial scene area in the target game scene, such as a starting position area in the game, so that the player can start playing the game from the starting position area. The client may send the robot creation request to the edge server through the communication connection when the target game scene is loaded. The edge server in this embodiment may monitor, in real time, a request message sent by the client, so as to receive a robot creation request sent by the client.
S220, based on the robot creation request, a robot corresponding to the target character used by the player is created in the target game scene loaded by the client.
Specifically, the edge server stores each game scene in the client in advance. After receiving the robot creation request, the same pre-stored target game scene may be loaded in the edge server, and a robot that can move to find a path instead of a target character is created in the target game scene.
For example, when there are a plurality of game scenes and each game scene is stored in the edge server, the received robot creation request may be parsed to obtain scene identification information corresponding to the target game scene and initial position information corresponding to the target character used by the player. And obtaining and loading the target game scene based on the pre-stored scene identification information corresponding to each game scene and the scene identification information corresponding to the target game scene. Based on initial position information corresponding to a target character used by a player, in a loaded target game scene, the initial position of the target character is taken as the initial position of the robot, and one robot is created so as to detect whether the environment ornament needs to be generated or not by using the robot.
And S230, receiving the current position information of the target role sent by the client, and controlling the robot to synchronously move based on the current position information.
Specifically, the player can control the movement of the target character in a manner of a joystick or the like, and move and seek a path in a target game scene. The client may obtain the current location information of the target role in real time, for example, obtain the current location information of the target role once per second, and send the current location information obtained in real time to the edge server. The edge server can quickly receive the current position information and control the robot to move according to the current position information, so that synchronous movement can be realized. For example, the target character moves 1 meter to the left, and the robot also moves 1 meter to the left to ensure that the position information is synchronized.
S240, if it is detected that the current detection area of the robot intersects with the preset scene area for displaying the environment ornament, generating an environment ornament grid model corresponding to the preset scene area, so that the client side obtains the environment ornament grid model in the edge server, and when it is detected that the current detection area of the target role intersects with the preset scene area, displaying the environment ornament in the preset scene area by loading the environment ornament grid model.
The current detection area of the robot is larger than that of the target role, so that the robot can detect that the environment ornament needs to be generated in preference to the target role, generation in the client is not needed, and the jamming condition is avoided. The current detection area may be any shape, and the specific shape may be set based on the service requirement and the scene. For example, the current detection area of the robot may be: a circular area with the current position of the robot as the center and a first preset length as the radius; the current detection area of the target character may be: and a circular area with the current position of the target character as the center and a second preset length as the radius. Wherein the first preset length is greater than the second preset length. For example, the first predetermined length is 200 unit distances, and the second predetermined length is 100 unit distances. The preset scene area may refer to an area in which the environmental decoration is required to be displayed in a preset target game scene. The target game scene in this embodiment may include one or more preset scene areas. The corresponding environmental decorations for each preset scene area may be different in order to increase the variety of presentations.
Specifically, the edge server may detect in real time whether the current detection area of the robot intersects with any one of the preset scene areas for displaying the environmental ornament during the synchronous movement of the robot, so that it may be detected that the environmental ornament mesh model needs to be generated in preference to the target character. If it is detected that there is an intersection between a preset scene area and the current detection area of the robot, it indicates that the preset scene area is to be displayed on the display interface, and at this time, an environment ornament grid model corresponding to the preset scene area may be generated, so that a corresponding environment ornament is displayed when the preset scene area is displayed. If it is detected that there is an intersection between a plurality of preset scene areas and the current detection area of the robot, corresponding environment ornament mesh models can be generated one by one for each preset scene area. After the edge server generates the environment ornament grid model corresponding to the preset scene area, the environment ornament grid model can be actively issued or passively issued to the client based on the service requirement and the actual scene. The client can receive the environment ornament grid model actively issued by the edge server, and can also acquire the environment ornament grid model passively issued by the edge server in an interface downloading mode. The embodiment utilizes the synchronous movement based on the robot in the edge server to generate the environment ornament grid model in real time without generating in the client, thereby greatly reducing the resource overhead of the client, avoiding the situation of blocking in the mobile route searching process and improving the game experience.
For example, the "generating an environmental ornament mesh model corresponding to the preset scene area" in S240 may include: determining an environmental ornament to be displayed and an initial grid model corresponding to the environmental ornament based on a pre-stored resource library and a preset scene area; and carrying out random processing on the initial grid model to generate an environment ornament grid model corresponding to the environment ornament.
The resource library may be preset and stores initial mesh models corresponding to various environmental decorations. Specifically, the environmental ornament to be presented that matches the preset scene area may be determined based on the environmental landscape or the like within the preset scene area. For example, if a river is present in a predetermined scene area, trees and stones may be used as environmental ornaments to be displayed. If the preset scene area is a desert area, the buildings of the temple can be used as the environmental decorations to be displayed. The initial grid model corresponding to the environment ornament to be displayed is obtained from the pre-stored resource library, random processing can be carried out on the initial grid model, and the environment ornament grid models corresponding to different environment ornaments are generated randomly, so that the display diversity of the environment ornament is improved.
Illustratively, randomly processing the initial mesh model to generate an environmental ornament mesh model corresponding to the environmental ornament may include: and starting a plurality of threads to run in parallel aiming at each environment ornament to generate an environment ornament grid model corresponding to each environment ornament. For example, the edge server may start a plurality of threads to run in parallel, for example, 30 threads generate a tree grid model, and 30 threads generate a grass grid model, so that the generation efficiency of the environment ornament grid model may be improved, the situation of stutter during the mobile route finding process is further avoided, and the game experience is improved.
According to the technical scheme of the embodiment, the client sends the robot creation request to the edge server which establishes communication connection with the client. The edge server creates a robot corresponding to a target character used by the player in the target game scene based on the robot creation request. The client acquires the current position information of the target role and sends the current position information to the edge server. The edge server controls the robot to move synchronously based on the current position information, and detects whether the current detection area of the robot intersects with a preset scene area for displaying the environment ornament or not in real time, wherein the current detection area of the robot is larger than the current detection area of the target role, so that an environment ornament grid model corresponding to the preset scene area can be generated in advance based on the detection result of the robot. The client acquires the environment ornament grid model in the edge server, and loads the environment ornament grid model when detecting that the intersection exists between the current detection area of the target role and the preset scene area, so that the environment ornament can be rapidly displayed in the preset scene area. Through the synchronous movement based on the robot in the edge server, the environment decoration grid model can be generated in real time, the generation in a client is not needed, and the client only needs to be loaded and displayed, so that the resource overhead of the client can be reduced, the situation that the card is not in the process of moving and finding the way is avoided, and the game experience is improved.
The following is an embodiment of the display apparatus for an environmental ornament according to an embodiment of the present invention, which belongs to the same inventive concept as the display method for an environmental ornament according to the first embodiment, and reference may be made to the first embodiment of the display method for an environmental ornament, details of which are not described in detail in the embodiment of the display apparatus for an environmental ornament.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a device for displaying an environmental ornament according to a third embodiment of the present invention, where the third embodiment is applicable to a situation where an environmental ornament in a game scene is generated and displayed in real time, and the device is integrated in a client, and specifically includes: a robot creation request transmission module 310, a current position information transmission module 320, and an environmental ornament presentation module 330.
The robot creation request sending module 310 is configured to load a target game scene, and send a robot creation request to an edge server that establishes a communication connection with a client, so that the edge server creates a robot corresponding to a target character used by a player in the target game scene based on the robot creation request; a current position information sending module 320, configured to obtain current position information of a target role, and send the current position information to an edge server, so that the edge server controls the robot to move synchronously based on the current position information, and when it is detected that a current detection area of the robot intersects with a preset scene area for displaying an environmental ornament, generates an environmental ornament mesh model corresponding to the preset scene area; an environment ornament displaying module 330, configured to obtain an environment ornament grid model in the edge server, and when it is detected that a current detection area of the target character intersects with a preset scene area, display the environment ornament in the preset scene area by loading the environment ornament grid model; and the current detection area of the robot is larger than that of the target role.
According to the technical scheme of the embodiment, the client sends the robot creation request to the edge server which establishes communication connection with the client. The edge server creates a robot corresponding to a target character used by the player in the target game scene based on the robot creation request. The client acquires the current position information of the target role and sends the current position information to the edge server. The edge server controls the robot to move synchronously based on the current position information, and detects whether the current detection area of the robot intersects with a preset scene area for displaying the environment ornament or not in real time, wherein the current detection area of the robot is larger than the current detection area of the target role, so that an environment ornament grid model corresponding to the preset scene area can be generated in advance based on the detection result of the robot. The client acquires the environment ornament grid model in the edge server, and loads the environment ornament grid model when detecting that the intersection exists between the current detection area of the target role and the preset scene area, so that the environment ornament can be rapidly displayed in the preset scene area. Through the synchronous movement based on the robot in the edge server, the environment decoration grid model can be generated in real time, the generation in a client is not needed, and the client only needs to be loaded and displayed, so that the resource overhead of the client can be reduced, the situation that the card is not in the process of moving and finding the way is avoided, and the game experience is improved.
Optionally, the environmental ornamentation comprises: at least one of flowers, grass, trees, stones, and buildings.
Optionally, the current detection area of the robot is: a circular area with the current position of the robot as the center and a first preset length as the radius; the current detection area of the target role is as follows: a circular area with the current position of the target role as the center and a second preset length as the radius; wherein the first preset length is greater than the second preset length.
Optionally, the environmental ornament display module 330 is specifically configured to:
and if the intersection of the current detection area of the target role and the preset scene area is detected, downloading the environment ornament grid model in the edge server through a preset downloading interface, loading the downloaded environment ornament grid model, and displaying the environment ornament in the preset scene area.
The display device of the environmental ornament provided by the embodiment of the invention can execute the display method of the environmental ornament provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of the display method of the environmental ornament.
It should be noted that, in the embodiment of the display device of the environmental decoration, the units and modules included in the display device are merely divided according to the functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The following is an embodiment of the display apparatus for an environmental ornament according to the embodiment of the present invention, which belongs to the same inventive concept as the display method for an environmental ornament according to the second embodiment, and reference may be made to the second embodiment of the display method for an environmental ornament, details of which are not described in detail in the embodiment of the display apparatus for an environmental ornament.
Example four
Fig. 4 is a schematic structural diagram of a display apparatus for an environmental ornament according to a fourth embodiment of the present invention, where the present embodiment is applicable to a situation where an environmental ornament in a game scene is generated and displayed in real time, the apparatus is integrated in an edge server, and specifically includes: a robot creation request receiving module 410, a robot creation module 420, a synchronized movement module 430, and an environmental ornament mesh model generating module 440.
The robot creation request receiving module 410 is configured to receive a robot creation request sent by a client that establishes communication with an edge server; a robot creation module 420, configured to create a robot corresponding to a target character used by a player in a target game scene loaded by a client based on a robot creation request; the synchronous moving module 430 is configured to receive current position information of the target role sent by the client, and control the robot to perform synchronous movement based on the current position information; an environment ornament grid model generation module 440, configured to generate an environment ornament grid model corresponding to a preset scene area if it is detected that a current detection area of the robot intersects with the preset scene area for displaying an environment ornament, so that the client obtains the environment ornament grid model in the edge server, and when it is detected that the current detection area of the target character intersects with the preset scene area, displays the environment ornament in the preset scene area by loading the environment ornament grid model; and the current detection area of the robot is larger than that of the target role.
According to the technical scheme of the embodiment, the client sends the robot creation request to the edge server which establishes communication connection with the client. The edge server creates a robot corresponding to a target character used by the player in the target game scene based on the robot creation request. The client acquires the current position information of the target role and sends the current position information to the edge server. The edge server controls the robot to move synchronously based on the current position information, and detects whether the current detection area of the robot intersects with a preset scene area for displaying the environment ornament or not in real time, wherein the current detection area of the robot is larger than the current detection area of the target role, so that an environment ornament grid model corresponding to the preset scene area can be generated in advance based on the detection result of the robot. The client acquires the environment ornament grid model in the edge server, and loads the environment ornament grid model when detecting that the intersection exists between the current detection area of the target role and the preset scene area, so that the environment ornament can be rapidly displayed in the preset scene area. Through the synchronous movement based on the robot in the edge server, the environment decoration grid model can be generated in real time, the generation in a client is not needed, and the client only needs to be loaded and displayed, so that the resource overhead of the client can be reduced, the situation that the card is not in the process of moving and finding the way is avoided, and the game experience is improved.
Optionally, the environment ornament mesh model generating module 440 is specifically configured to:
determining an environmental ornament to be displayed and an initial grid model corresponding to the environmental ornament based on a pre-stored resource library and a preset scene area; and carrying out random processing on the initial grid model to generate an environment ornament grid model corresponding to the environment ornament.
Optionally, the environment ornament mesh model generation module 440 is further specifically configured to: and starting a plurality of threads to run in parallel aiming at each environment ornament to generate an environment ornament grid model corresponding to each environment ornament.
The display device of the environmental ornament provided by the embodiment of the invention can execute the display method of the environmental ornament provided by the second embodiment of the invention, and has the corresponding functional modules and beneficial effects of the display method of the environmental ornament.
It should be noted that, in the embodiment of the display device of the environmental decoration, the units and modules included in the display device are merely divided according to the functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a system for displaying an environmental ornament according to a fifth embodiment of the present invention, which is applicable to a situation where an environmental ornament in a game scene is generated and displayed in real time. As shown in fig. 5, the system includes: client 510 and edge server 520.
The client 510 is used to implement the method for displaying an environmental ornament according to the first embodiment; the edge server 520 is used to implement the display method of the environmental decoration as provided in the second embodiment.
In this embodiment, the client 510 and the edge server 520 establish a communication connection in advance, so as to realize information interaction.
In the system for displaying an environmental ornament according to the present embodiment, the client sends a robot creation request to the edge server that establishes a communication connection with the client. The edge server creates a robot corresponding to a target character used by the player in the target game scene based on the robot creation request. The client acquires the current position information of the target role and sends the current position information to the edge server. The edge server controls the robot to move synchronously based on the current position information, and detects whether the current detection area of the robot intersects with a preset scene area for displaying the environment ornament or not in real time, wherein the current detection area of the robot is larger than the current detection area of the target role, so that an environment ornament grid model corresponding to the preset scene area can be generated in advance based on the detection result of the robot. The client acquires the environment ornament grid model in the edge server, and loads the environment ornament grid model when detecting that the intersection exists between the current detection area of the target role and the preset scene area, so that the environment ornament can be rapidly displayed in the preset scene area. Through the synchronous movement based on the robot in the edge server, the environment decoration grid model can be generated in real time, the generation in a client is not needed, and the client only needs to be loaded and displayed, so that the resource overhead of the client can be reduced, the situation that the card is not in the process of moving and finding the way is avoided, and the game experience is improved.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. The method for displaying the environmental decorations is applied to a client and comprises the following steps:
loading a target game scene, and sending a robot creation request to an edge server which establishes communication connection with the client, so that the edge server creates a robot corresponding to a target character used by a player in the target game scene based on the robot creation request;
acquiring current position information of the target role, sending the current position information to the edge server, so that the edge server controls the robot to move synchronously based on the current position information, and generating an environment ornament grid model corresponding to a preset scene area when detecting that the intersection exists between the current detection area of the robot and the preset scene area for displaying the environment ornament;
acquiring the environment ornament grid model in the edge server, and when detecting that the intersection exists between the current detection area of the target role and the preset scene area, displaying an environment ornament in the preset scene area by loading the environment ornament grid model;
wherein the current detection area of the robot is larger than the current detection area of the target role.
2. The method of claim 1, wherein the environmental ornamentation comprises: at least one of flowers, grass, trees, stones, and buildings.
3. The method of claim 1, wherein the current detection area of the robot is: a circular area with the current position of the robot as a center and a first preset length as a radius;
the current detection area of the target role is as follows: a circular area with the current position of the target role as a center and a second preset length as a radius;
wherein the first preset length is greater than the second preset length.
4. The method of claim 1, wherein the obtaining the environmental ornament mesh model in the edge server and exhibiting an environmental ornament within the preset scene area by loading the environmental ornament mesh model upon detecting that the current detection area of the target character intersects the preset scene area comprises:
and if the intersection of the current detection area of the target character and the preset scene area is detected, downloading the environment ornament grid model in the edge server through a preset download interface, loading the downloaded environment ornament grid model, and displaying the environment ornament in the preset scene area.
5. An environment ornament display method, applied to an edge server, includes:
receiving a robot creation request sent by a client side which establishes communication with the edge server;
based on the robot creating request, creating a robot corresponding to a target character used by a player in a target game scene loaded by the client;
receiving current position information of the target role sent by the client, and controlling the robot to synchronously move based on the current position information;
if the intersection of the current detection area of the robot and a preset scene area for displaying the environmental decorations is detected, generating an environmental decoration grid model corresponding to the preset scene area, so that the client acquires the environmental decoration grid model in the edge server, and when the intersection of the current detection area of the target role and the preset scene area is detected, displaying the environmental decorations in the preset scene area by loading the environmental decoration grid model;
wherein the current detection area of the robot is larger than the current detection area of the target role.
6. The method of claim 5, wherein the generating the environment ornament mesh model corresponding to the predetermined scene area comprises:
determining an environmental ornament to be displayed and an initial grid model corresponding to the environmental ornament based on a pre-stored resource library and the preset scene area;
and carrying out random processing on the initial grid model to generate an environment ornament grid model corresponding to the environment ornament.
7. The method of claim 6, wherein said randomly processing said initial mesh model to generate a corresponding environmental ornament mesh model for said environmental ornament comprises:
and starting a plurality of threads to run in parallel aiming at each environment ornament to generate an environment ornament grid model corresponding to each environment ornament.
8. The utility model provides an environment ornament's display device which integrates in the customer end, includes:
a robot creation request sending module, configured to load a target game scene, and send a robot creation request to an edge server that establishes a communication connection with the client, so that the edge server creates, based on the robot creation request, a robot corresponding to a target character used by a player in the target game scene;
the current position information sending module is used for acquiring current position information of the target role and sending the current position information to the edge server so as to enable the edge server to control the robot to synchronously move based on the current position information, and when the intersection of a current detection area of the robot and a preset scene area for displaying an environmental ornament is detected, an environmental ornament grid model corresponding to the preset scene area is generated;
an environment ornament display module, configured to obtain the environment ornament grid model in the edge server, and when it is detected that an intersection exists between the current detection area of the target character and the preset scene area, display an environment ornament in the preset scene area by loading the environment ornament grid model; wherein the current detection area of the robot is larger than the current detection area of the target role.
9. An environmental ornament display device integrated with an edge server, comprising:
the robot creation request receiving module is used for receiving a robot creation request sent by a client side which establishes communication with the edge server;
a robot creating module, configured to create a robot corresponding to a target character used by a player in a target game scene loaded by the client based on the robot creating request;
the synchronous moving module is used for receiving the current position information of the target role sent by the client and controlling the robot to synchronously move based on the current position information;
an environment ornament grid model generation module, configured to generate an environment ornament grid model corresponding to a preset scene area if it is detected that a current detection area of the robot intersects with the preset scene area for displaying an environment ornament, so that the client obtains the environment ornament grid model in the edge server, and when it is detected that the current detection area of the target character intersects with the preset scene area, displays an environment ornament in the preset scene area by loading the environment ornament grid model; wherein the current detection area of the robot is larger than the current detection area of the target role.
10. An environmental ornamentation display system, wherein said system comprises: a client and an edge server; wherein,
the client is used for realizing the display method of the environment ornament according to any one of claims 1-4;
the edge server is used for realizing the display method of the environment ornament according to any one of claims 5-7.
CN202111091068.1A 2021-09-17 2021-09-17 Method, device and system for displaying environment decorations Active CN113786612B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111091068.1A CN113786612B (en) 2021-09-17 2021-09-17 Method, device and system for displaying environment decorations

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111091068.1A CN113786612B (en) 2021-09-17 2021-09-17 Method, device and system for displaying environment decorations

Publications (2)

Publication Number Publication Date
CN113786612A true CN113786612A (en) 2021-12-14
CN113786612B CN113786612B (en) 2023-09-01

Family

ID=79183884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111091068.1A Active CN113786612B (en) 2021-09-17 2021-09-17 Method, device and system for displaying environment decorations

Country Status (1)

Country Link
CN (1) CN113786612B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179587A (en) * 2006-11-28 2008-05-14 腾讯科技(深圳)有限公司 Method and system of using robot in games
US20120238366A1 (en) * 2011-03-15 2012-09-20 Maurice Tedder Robot Game for Multiple Players that is Remotely Controlled over a Network
CN105848742A (en) * 2013-12-26 2016-08-10 微软技术许可有限责任公司 Player avatar movement assistance in virtual environment
CN111249735A (en) * 2020-02-14 2020-06-09 网易(杭州)网络有限公司 Path planning method and device of control object, processor and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179587A (en) * 2006-11-28 2008-05-14 腾讯科技(深圳)有限公司 Method and system of using robot in games
US20120238366A1 (en) * 2011-03-15 2012-09-20 Maurice Tedder Robot Game for Multiple Players that is Remotely Controlled over a Network
CN105848742A (en) * 2013-12-26 2016-08-10 微软技术许可有限责任公司 Player avatar movement assistance in virtual environment
CN111249735A (en) * 2020-02-14 2020-06-09 网易(杭州)网络有限公司 Path planning method and device of control object, processor and electronic device

Also Published As

Publication number Publication date
CN113786612B (en) 2023-09-01

Similar Documents

Publication Publication Date Title
US10885713B2 (en) Method, apparatus, and system for generating an AR application and rendering an AR instance
CN101176079B (en) Method for distributing computing between server and client
CN111659120B (en) Virtual role position synchronization method, device, medium and electronic equipment
CN107890671A (en) Threedimensional model rendering intent, device, computer equipment and the storage medium of WEB terminal
CN108154197B (en) Method and device for realizing image annotation verification in virtual scene
CN105303410B (en) Virtual article sharing method and device
CN103167031A (en) Communication between Web applications
CN105872121A (en) Method for connecting terminal with server, terminal and domain name server
US11721078B2 (en) Information processing system, information processing terminal device, server device, information processing method and program thereof
CN111580883B (en) Application program starting method, device, computer system and medium
CN113786612B (en) Method, device and system for displaying environment decorations
CN112083655B (en) Electronic equipment control method and related equipment
CN113786623A (en) Navigation grid updating method, device and system
CN109011568B (en) Game map distribution method and system
CN113786611B (en) Tree display method, device and system in game scene
JP6285579B2 (en) Long polling processing method and system, and recording medium
CN106790453B (en) A kind of execution method and device of operation requests
CN112347568B (en) Simulation test method, related device, equipment and storage medium
CN111225266B (en) User interface interaction method and system
CN114185773A (en) Program testing method, program testing device, electronic equipment and computer readable storage medium
CN114470746A (en) Server system, data transmission method, device, equipment and storage medium
CN113786613B (en) Shadow map updating method, device and system
CN113778673B (en) Data processing method, storage medium and apparatus
CN117883789B (en) Data acquisition method, apparatus, device, readable storage medium, and program product
CN116797769B (en) Data processing method, device, computer equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant