CN113786612B - Method, device and system for displaying environment decorations - Google Patents

Method, device and system for displaying environment decorations Download PDF

Info

Publication number
CN113786612B
CN113786612B CN202111091068.1A CN202111091068A CN113786612B CN 113786612 B CN113786612 B CN 113786612B CN 202111091068 A CN202111091068 A CN 202111091068A CN 113786612 B CN113786612 B CN 113786612B
Authority
CN
China
Prior art keywords
ornament
robot
environmental
environment
edge server
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.)
Active
Application number
CN202111091068.1A
Other languages
Chinese (zh)
Other versions
CN113786612A (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

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

Abstract

The embodiment of the invention discloses a method, a device and a system for displaying an environmental ornament, wherein the method is applied to a client and comprises the following steps: sending a robot creation request to the edge server, so that the edge server creates a robot corresponding to a target role used by the player in the target game scene based on the robot creation request; transmitting the current position information of the target role to an edge server so that the edge server controls the robot to synchronously move, 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 environmental ornament grid model in an edge server, and when the intersection of the current detection area of the target role and a preset scene area is detected, displaying environmental ornaments in the preset scene area by loading the environmental ornament grid model, so that the resource expenditure of a client can be reduced, and the condition of blocking is avoided.

Description

Method, device and system for displaying environment decorations
Technical Field
The embodiment of the invention relates to computer technology, in particular to a method, a device and a system for displaying environmental ornaments.
Background
With the rapid development of computer technology, a variety of games have been developed. In a large game scene, only a partial game scene area can be revealed at a time due to the limited presentation interface. After the characters used by the player enter the large game scene, the player can control the characters to move and seek paths. Some environmental decorations, such as flowers, plants and trees, can be displayed in the course of character movement and road searching, so that the richness and the interestingness of the game scene are improved.
Currently, environmental decorations in a game scene are typically presented in real-time in a client based on a character movement process. However, this approach consumes significant operating resources and can lead to a stuck condition during the mobile seek, degrading the gaming experience.
Disclosure of Invention
The embodiment of the invention provides a display method, a device and a system for an environmental ornament, which are used for reducing the resource expense of a client, avoiding the condition of blocking in the mobile road searching process 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 role used by a player in the target game scene based on the robot creation request;
Acquiring current position information of the target role, and sending the current position information to the edge server, so that the edge server controls the robot to synchronously move based on the current position information, and when detecting that an intersection exists between a current detection area of the robot and a preset scene area for displaying an environment ornament, generating an environment ornament grid model corresponding to the preset scene area;
acquiring the environmental ornament grid model in the edge server, and displaying environmental ornaments in the preset scene area by loading the environmental ornament grid model when detecting that the intersection exists between the current detection area of the target character and the preset scene area;
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 a method for displaying an environmental ornament, which is applied to an edge server, and includes:
receiving a robot creation request sent by a client establishing communication with the edge server;
creating a robot corresponding to a target role used by a player in a target game scene loaded by the client based on the robot creation request;
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 environment decorations is detected, generating an environment decoration grid model corresponding to the preset scene area, so that the client obtains the environment decoration grid model in the edge server, and displaying environment decorations in the preset scene area by loading the environment decoration grid model when the intersection of the current detection area of the target character and the preset scene area is detected;
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 device for an environmental ornament, integrated in a client, including:
the robot creation request sending module is used for loading a target game scene and sending a robot creation request to an edge server which is in communication connection with the client so that the edge server creates a robot corresponding to a target role used by a player in the target game scene based on the robot creation request;
The current position information sending module is used for obtaining the 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 synchronously move based on the current position information, and generating an environment ornament grid model corresponding to a preset scene area for displaying environment ornaments when detecting that the intersection exists between the current detection area of the robot and the preset scene area;
the environment ornament display module is used for acquiring the environment ornament grid model in the edge server and displaying environment ornaments in the preset scene area by loading the environment ornament grid model when detecting that the intersection exists between the current detection area of the target character and the preset scene area; 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 a display device for an environmental ornament, 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 establishing communication with the edge server;
The robot creation module is used for creating a robot corresponding to a target role used by a player in the target game scene loaded by the client based on the robot creation 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;
the environment ornament grid model generation module is used for generating an environment ornament grid model corresponding to a preset scene area for displaying environment ornaments if the intersection of the current detection area of the robot and the preset scene area for displaying the environment ornaments is detected, so that the client acquires the environment ornament grid model in the edge server, and displays the environment ornaments in the preset scene area by loading the environment ornament grid model when the intersection of the current detection area of the target role and the preset scene area is detected; the current detection area of the robot is larger than the current detection area of the target role.
In a fifth aspect, embodiments of the present invention further provide a display system for an environmental ornament, the system comprising: a client and an edge server; wherein,
The client is used for realizing the display method of the environment decoration provided by the first aspect of the invention;
the edge server is used for realizing the display method of the environmental 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 the target character used by the player in the target game scene based on the robot creation request. And 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 synchronously move based on the current position information and detects whether a current detection area of the robot has an intersection with a preset scene area for displaying the environment decorations in real time, wherein the current detection area of the robot is larger than the current detection area of the target character, so that an environment decoration grid model corresponding to the preset scene area can be generated in advance based on a detection result of the robot. The client acquires an environmental ornament grid model in the edge server, and loads the environmental ornament grid model when detecting that the intersection exists between the current detection area of the target character and the preset scene area, so that the environmental ornament can be rapidly displayed in the preset scene area. Through the synchronous movement based on the robot in the edge server, the environment ornament grid model can be generated in real time, the environment ornament grid model does not need to be generated in the client, and the client only needs to load and display, so that the resource expense of the client can be reduced, the situation of blocking in the moving and seeking process is avoided, and the game experience is improved.
Drawings
FIG. 1 is a flowchart of a method for displaying an environmental ornament according to an embodiment of the present invention;
fig. 2 is a flowchart of 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 for an environmental ornament according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a display device for an environmental ornament according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a display system for an environmental ornament according to a fifth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a method for displaying an environmental ornament according to an embodiment of the present invention, where the embodiment is applicable to a situation of generating and displaying an environmental ornament in a game scene in real time. The method can be performed by a presentation device of the environmental ornament, the device can be implemented by software and/or hardware, and the device 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 role used by a player in the target game scene based on the robot creation request.
The target game scene may refer to a game scene selected by the current player. Each game may include one game scene or may include a plurality of game scenes. The target game scene in this embodiment may refer to a large game scene that needs to walk and seek, that is, the client can only show a local scene area at a time, and change the displayed scene area based on the movement of the target character. The edge server may refer to a device having a physical distance from the client less than a predetermined distance and having at least a magnitude of a force capable of supporting an environmental ornament generation operation, so that the edge server may be utilized to rapidly perform an environmental ornament grid model generation operation for the client. The form of the edge server in this embodiment may be various. For example, a computer, a mobile phone, a smart glasses, a smart watch, or the like, which is located near the client and has a certain computing power, may be used as the edge server. The robot may refer to the same character as the target character used by the 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, an edge installation package may be downloaded into a device that may be 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 a client. After the installation is successful, the 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 the client enters the game level selected by the player, the client can load the target game scene corresponding to the game level and display 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 from the starting position area. Wherein, the environment decoration does not exist in the initial scene area or the environment decoration generated in advance is displayed. The client can send a robot creation request to the edge server when loading the target game scene, so that the edge server can create a robot capable of moving and seeking in place of the target character in the target game scene based on the robot creation request.
For example, if there are multiple game scenes and each game scene is already stored in the edge server, 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 where the target character is located, so as to ensure the accuracy of generating the environmental decoration.
S120, acquiring current position information of a target role, and sending the current position information to an edge server, so that the edge server controls the robot to synchronously move based on the current position information, and when detecting that an intersection exists between a current detection area of the robot and a preset scene area for displaying an environment ornament, generating an environment ornament grid model corresponding to the preset scene area.
The environmental ornament may be an object for decorating the environment in the game scene, so as to improve the liveliness and richness of the game scene. For example, environmental decorations may include, but are not limited to: at least one of flowers, grass, trees, stones, and buildings. The current detection area of the robot in the embodiment is larger than the current detection area of the target role, so that the robot can detect that the environment ornament needs to be generated in preference to the target role, and therefore the environment ornament does not need to be generated in the client, and the jam condition is avoided. The current detection area can be any shape, and the specific shape of the current detection area can be set based on service requirements and scenes. Illustratively, the current detection area of the robot may be: a circular area centered on a current position of the robot and having a first preset length as a radius; the current detection area of the target character may be: and a circular area centered on the current position of the target character and having a radius of a second preset length. Wherein the first preset length is greater than the second preset length. For example, the first preset length is 200 unit distances, and the second preset length is 100 unit distances. The preset scene area may refer to an area in a preset target game scene where environmental decorations need to be displayed. 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 by means of a joystick or the like, and perform movement route searching in the target game scene. The client may acquire current position information of the target character in real time during the moving process, for example, acquire the current position information of the target character once per second, and send the current position information acquired 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 is moved 1 meter to the left and the robot is also moved 1 meter to the left to ensure the synchronization of the position information. The edge server can detect whether the current detection area of the robot has intersection with any preset scene area for displaying the environmental ornament in real time in the synchronous movement process of the robot, so that the environment ornament grid model can be generated in preference to the target role detection. If the intersection of the preset scene area and the current detection area of the robot is detected, the preset scene area is indicated to be displayed on the display interface, and an environment decoration grid model corresponding to the preset scene area can be generated at the moment so as to display corresponding environment decorations when the preset scene area is displayed. If the intersection of a plurality of preset scene areas and the current detection area of the robot is detected, corresponding environment ornament grid models can be generated one by one aiming at each preset scene area. After the edge server generates the environmental ornament grid model corresponding to the preset scene area, the environmental ornament grid model can be packaged into a binary file to be actively issued or passively issued to the client. According to the method, the device and the system, the environment ornament grid model is generated in real time by utilizing synchronous movement of the robots in the edge server, and generation in the client is not needed, so that resource expenditure of the client can be greatly reduced.
S130, acquiring an environmental ornament grid model in the edge server, and displaying environmental ornaments in a preset scene area by loading the environmental ornament grid model when detecting that the intersection exists between the current detection area of the target character and the preset scene area.
Specifically, the client can receive the environmental ornament grid model actively issued by the edge server, and can also obtain the environmental ornament grid model passively issued by the edge server in an interface downloading mode. For example, the edge server actively transmits the environmental ornament grid model corresponding to the preset scene area to the client, the client stores the received environmental 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 prestored environmental ornament grid model, so that when the intersection exists is detected, the prestored environmental ornament grid model can be quickly loaded, further, environmental ornaments can be quickly displayed in the preset scene area, the condition of blocking in the moving and seeking process is avoided, and the game experience is improved.
Illustratively, S130 may include: if the intersection of the current detection area of the target character and the preset scene area is detected, downloading an environment decoration grid model in the edge server through a preset downloading interface, loading the downloaded environment decoration grid model, and displaying environment decorations in the preset scene area.
Specifically, the client can detect whether the current detection area of the target role has an intersection with the preset scene area in real time, if so, a download request can be sent to the edge server through the preset download interface, so that the edge server can send the generated environment decoration grid model corresponding to the preset scene area to the client based on the download request, the client displays the environment decoration in the preset scene area through loading the obtained environment decoration grid model, and therefore the environment decoration grid model can be actively obtained from the edge server when the client actually needs to display the environment decoration, and further, unnecessary environment decoration grid models can be prevented from being obtained according to the situation that the preset scene area is not required to be displayed due to the fact that the moving direction of the target role is temporarily changed, the storage space of the client is saved, and the running 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 the target character used by the player in the target game scene based on the robot creation request. And 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 synchronously move based on the current position information and detects whether a current detection area of the robot has an intersection with a preset scene area for displaying the environment decorations in real time, wherein the current detection area of the robot is larger than the current detection area of the target character, so that an environment decoration grid model corresponding to the preset scene area can be generated in advance based on a detection result of the robot. The client acquires an environmental ornament grid model in the edge server, and loads the environmental ornament grid model when detecting that the intersection exists between the current detection area of the target character and the preset scene area, so that the environmental ornament can be rapidly displayed in the preset scene area. Through the synchronous movement based on the robot in the edge server, the environment ornament grid model can be generated in real time, the environment ornament grid model does not need to be generated in the client, and the client only needs to load and display, so that the resource expense of the client can be reduced, the situation of blocking in the moving and seeking process is avoided, and the game experience is improved.
Example two
Fig. 2 is a flowchart of a method for displaying an environmental ornament according to a second 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 method can be performed by a display device of the environmental ornament, the device can be realized by a software and/or hardware mode, and the device is integrated in an edge server. As shown in fig. 2, the method specifically includes the following steps:
s210, a robot creation request sent by a client establishing communication with the edge server is received.
The edge server may be a device that has a physical distance smaller than a preset distance from the client and at least supports the magnitude of an operation force for generating the environmental ornament, so that the edge server may be used to quickly perform an operation for generating the environmental ornament mesh model for the client. The form of the edge server in this embodiment may be various. For example, a computer, a mobile phone, a smart glasses, a smart watch, or the like, which is located near the client and has a certain computing power, may be used as the edge server. The edge server may correspond to one client or may correspond to a plurality of clients. For example, if there are a plurality of clients within a preset distance range of an edge server, the edge server may be used to support an environmental ornament generation operation of each client. The robot may refer to the same character as the target character used by the player for performing a row movement seek instead of the target character. The generation manner of the robot creation request in this embodiment may be referred to the related description of the above embodiment, and will not be described herein.
Specifically, the edge server may previously establish a communication connection with each client located within a preset distance range, so that the environmental ornament generation operation of one or more clients may be supported using one edge server. For example, an edge installation package may be downloaded into a device that may be 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 a client. After the installation is successful, information such as IP addresses, account numbers, passwords and the like of one or more clients can be input into the edge server, so that communication connection between each client and the edge server is established. When the client enters the game level selected by the player, the client can load the target game scene corresponding to the game level and display 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 from the starting position area. The client may send a robot creation request to the edge server via the communication connection described above when loading the target game scenario. 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, creating a robot corresponding to the target role used by the player in the target game scene loaded by the client based on the robot creation request.
Specifically, the edge server stores in advance each game scene in the client. After receiving the robot creation request, the same pre-stored target game scene can be loaded in the edge server, and a robot capable of moving and seeking in place of the target role can be created in the target game scene.
For example, when a plurality of game scenes exist 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 scene identification information corresponding to each game scene and the scene identification information corresponding to the target game scene which are stored in advance. Based on initial position information corresponding to a target character used by a player, a robot is created in a loaded target game scene with the initial position of the target character as the initial position of the robot so as to detect whether an environmental ornament needs to be generated by the robot.
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 by means of a joystick or the like, and perform movement route searching in the target game scene. The client may acquire the current position information of the target character in real time, for example, acquire the current position information of the target character once per second, and send the current position information acquired 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 is moved 1 meter to the left and the robot is also moved 1 meter to the left to ensure the synchronization of the position information.
S240, if the intersection of the current detection area of the robot and the preset scene area for displaying the environment decoration is detected, generating an environment decoration grid model corresponding to the preset scene area, so that the client obtains the environment decoration grid model in the edge server, and displaying the environment decoration in the preset scene area by loading the environment decoration grid model when the intersection of the current detection area of the target character and the preset scene area is detected.
The current detection area of the robot is larger than the current detection area of the target role, so that the robot can detect that environmental decorations need to be generated in preference to the target role, generation in a client is not needed, and the jam condition is avoided. The current detection area can be any shape, and the specific shape of the current detection area can be set based on service requirements and scenes. Illustratively, the current detection area of the robot may be: a circular area centered on a current position of the robot and having a first preset length as a radius; the current detection area of the target character may be: and a circular area centered on the current position of the target character and having a radius of a second preset length. Wherein the first preset length is greater than the second preset length. For example, the first preset length is 200 unit distances, and the second preset length is 100 unit distances. The preset scene area may refer to an area in a preset target game scene where environmental decorations need to be displayed. The target game scene in this embodiment may include one or more preset scene areas. The environmental decorations corresponding to each preset scene area may be different in order to increase the diversity of the display.
Specifically, the edge server can detect in real time whether the current detection area of the robot has an intersection with any one of the preset scene areas for displaying the environmental ornament in the synchronous movement process of the robot, so that the need of generating the environmental ornament grid model can be detected in preference to the target role. If the intersection of the preset scene area and the current detection area of the robot is detected, the preset scene area is indicated to be displayed on the display interface, and an environment decoration grid model corresponding to the preset scene area can be generated at the moment so as to display corresponding environment decorations when the preset scene area is displayed. If the intersection of a plurality of preset scene areas and the current detection area of the robot is detected, corresponding environment ornament grid models can be generated one by one aiming at each preset scene area. After the edge server generates the environmental ornament grid model corresponding to the preset scene area, the environmental 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 decoration grid model actively issued by the edge server, and can also acquire the environment decoration grid model passively issued by the edge server in an interface downloading mode. According to the method, the device and the system, the environment ornament grid model is generated in real time by utilizing synchronous movement of the robots in the edge server, and generation in the client is not needed, so that resource expenditure of the client can be greatly reduced, the situation of blocking in the moving route searching process is avoided, and game experience is improved.
Illustratively, "generating an environmental ornament mesh model corresponding to the preset scene area" in S240 may include: determining an environment ornament to be displayed and an initial grid model corresponding to the environment 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 environmental ornament grid model corresponding to the environmental ornament.
The resource library can be preset and stores initial grid models corresponding to various environmental decorations. Specifically, the environmental ornament to be displayed that matches the preset scene area may be determined based on the environmental relief or the like within the preset scene area. For example, if a river channel exists in the preset scene area, trees and stones can be used as environmental ornaments to be displayed. If the preset scene area is a desert area, the building of the temple can be used as an environmental ornament to be displayed. The method comprises the steps of obtaining an initial grid model corresponding to the environmental ornament to be displayed from a pre-stored resource library, and carrying out random processing on the initial grid model to randomly generate environmental ornament grid models corresponding to different environmental ornaments so as to improve the diversity of the environmental ornament display.
Illustratively, the random processing is performed on the initial mesh model, and the generating of the environment decoration mesh model corresponding to the environment decoration may include: and starting a plurality of threads to run in parallel for each environmental ornament, and generating an environmental ornament grid model corresponding to each environmental ornament. For example, the edge server can 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 decoration grid model can be improved, the situation of blocking in the mobile road searching 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 the target character used by the player in the target game scene based on the robot creation request. And 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 synchronously move based on the current position information and detects whether a current detection area of the robot has an intersection with a preset scene area for displaying the environment decorations in real time, wherein the current detection area of the robot is larger than the current detection area of the target character, so that an environment decoration grid model corresponding to the preset scene area can be generated in advance based on a detection result of the robot. The client acquires an environmental ornament grid model in the edge server, and loads the environmental ornament grid model when detecting that the intersection exists between the current detection area of the target character and the preset scene area, so that the environmental ornament can be rapidly displayed in the preset scene area. Through the synchronous movement based on the robot in the edge server, the environment ornament grid model can be generated in real time, the environment ornament grid model does not need to be generated in the client, and the client only needs to load and display, so that the resource expense of the client can be reduced, the situation of blocking in the moving and seeking process is avoided, and the game experience is improved.
The following is an embodiment of the device for displaying an environmental ornament according to the embodiment of the present invention, which belongs to the same inventive concept as the method for displaying an environmental ornament according to the first embodiment, and details of the device for displaying an environmental ornament, which are not described in detail in the embodiment of the device for displaying an environmental ornament, may refer to the first embodiment of the method for displaying an environmental ornament.
Example III
Fig. 3 is a schematic structural diagram of a display device for an environmental ornament according to a third embodiment of the present invention, where the embodiment is applicable to a situation of generating and displaying an environmental ornament in a game scene in real time, and the device is integrated in a client, and specifically includes: a robot creation request transmitting module 310, a current location information transmitting module 320, and an environmental ornament presentation module 330.
The robot creation request sending module 310 is configured to load a target game scenario, and send a robot creation request to an edge server that establishes communication connection with a client, so that the edge server creates a robot corresponding to a target role used by a player in the target game scenario based on the robot creation request; the current position information sending module 320 is configured to obtain current position information of the target character, send 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 generate an environmental ornament grid model corresponding to a preset scene area when detecting that an intersection exists between a current detection area of the robot and the preset scene area for displaying the environmental ornament; the environmental ornament display module 330 is configured to obtain an environmental ornament mesh model in the edge server, and display an environmental ornament in a preset scene area by loading the environmental ornament mesh model when detecting that the intersection exists between the current detection area of the target character and the preset scene area; wherein the current detection area of the robot is larger than the current detection area of the target character.
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 the target character used by the player in the target game scene based on the robot creation request. And 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 synchronously move based on the current position information and detects whether a current detection area of the robot has an intersection with a preset scene area for displaying the environment decorations in real time, wherein the current detection area of the robot is larger than the current detection area of the target character, so that an environment decoration grid model corresponding to the preset scene area can be generated in advance based on a detection result of the robot. The client acquires an environmental ornament grid model in the edge server, and loads the environmental ornament grid model when detecting that the intersection exists between the current detection area of the target character and the preset scene area, so that the environmental ornament can be rapidly displayed in the preset scene area. Through the synchronous movement based on the robot in the edge server, the environment ornament grid model can be generated in real time, the environment ornament grid model does not need to be generated in the client, and the client only needs to load and display, so that the resource expense of the client can be reduced, the situation of blocking in the moving and seeking process is avoided, and the game experience is improved.
Optionally, the environmental ornament includes: at least one of flowers, grass, trees, stones, and buildings.
Optionally, the current detection area of the robot is: a circular area centered on a current position of the robot and having a first preset length as a radius; the current detection area of the target character is: a circular area centered on the current position of the target character and having a radius of a second preset length; wherein the first preset length is greater than the second preset length.
Optionally, the environmental ornament display module 330 is specifically configured to:
if the intersection of the current detection area of the target character and the preset scene area is detected, downloading an environment decoration grid model in the edge server through a preset downloading interface, loading the downloaded environment decoration grid model, and displaying environment decorations in the preset scene area.
The display device for the environmental ornament provided by the embodiment of the invention can execute the display method for the environmental ornament provided by the embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the display method for the environmental ornament.
It should be noted that, in the embodiment of the display device for environmental ornaments, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
The following is an embodiment of the device for displaying an environmental ornament provided by the embodiment of the present invention, which belongs to the same inventive concept as the method for displaying an environmental ornament of the second embodiment, and details of the device for displaying an environmental ornament, which are not described in detail in the embodiment of the device for displaying an environmental ornament, may refer to the second embodiment of the method for displaying an environmental ornament.
Example IV
Fig. 4 is a schematic structural diagram of a display device for an environmental ornament according to a fourth embodiment of the present invention, where the embodiment is applicable to a situation of generating and displaying an environmental ornament in a game scene in real time, and the device is integrated in an edge server, and specifically includes: a robot creation request receiving module 410, a robot creation module 420, a synchronous 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 the player in the target game scene loaded by the client based on the robot creation request; the synchronous moving module 430 is configured to receive current position information of the target character sent by the client, and control the robot to perform synchronous movement based on the current position information; the environmental ornament mesh model generating module 440 is configured to generate an environmental ornament mesh model corresponding to a preset scene area if it is detected that an intersection exists between a current detection area of the robot and the preset scene area for displaying the environmental ornament, so that the client obtains the environmental ornament mesh model in the edge server, and displays the environmental ornament in the preset scene area by loading the environmental ornament mesh model when it is detected that the intersection exists between the current detection area of the target character and the preset scene area; wherein the current detection area of the robot is larger than the current detection area of the target character.
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 the target character used by the player in the target game scene based on the robot creation request. And 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 synchronously move based on the current position information and detects whether a current detection area of the robot has an intersection with a preset scene area for displaying the environment decorations in real time, wherein the current detection area of the robot is larger than the current detection area of the target character, so that an environment decoration grid model corresponding to the preset scene area can be generated in advance based on a detection result of the robot. The client acquires an environmental ornament grid model in the edge server, and loads the environmental ornament grid model when detecting that the intersection exists between the current detection area of the target character and the preset scene area, so that the environmental ornament can be rapidly displayed in the preset scene area. Through the synchronous movement based on the robot in the edge server, the environment ornament grid model can be generated in real time, the environment ornament grid model does not need to be generated in the client, and the client only needs to load and display, so that the resource expense of the client can be reduced, the situation of blocking in the moving and seeking process is avoided, and the game experience is improved.
Optionally, the environmental ornament mesh model generating module 440 is specifically configured to:
determining an environment ornament to be displayed and an initial grid model corresponding to the environment 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 environmental ornament grid model corresponding to the environmental ornament.
Optionally, the environmental ornament mesh model generating module 440 is further specifically configured to: and starting a plurality of threads to run in parallel for each environmental ornament, and generating an environmental ornament grid model corresponding to each environmental ornament.
The display device for the environmental ornament provided by the embodiment of the invention can execute the display method for the environmental ornament provided by the second embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the display method for the environmental ornament.
It should be noted that, in the embodiment of the display device for environmental ornaments, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Example five
Fig. 5 is a schematic structural diagram of a display system for an environmental ornament according to a fifth 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. As shown in fig. 5, the system includes: a client 510 and an edge server 520.
The client 510 is configured to implement the method for displaying the environmental ornament according to the first embodiment; the edge server 520 is used to implement the method for displaying the environmental ornament 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 implement information interaction.
In the display system of the environmental ornament in this embodiment, the client transmits a robot creation request to the edge server that establishes a communication connection with the client. The edge server creates a robot corresponding to the target character used by the player in the target game scene based on the robot creation request. And 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 synchronously move based on the current position information and detects whether a current detection area of the robot has an intersection with a preset scene area for displaying the environment decorations in real time, wherein the current detection area of the robot is larger than the current detection area of the target character, so that an environment decoration grid model corresponding to the preset scene area can be generated in advance based on a detection result of the robot. The client acquires an environmental ornament grid model in the edge server, and loads the environmental ornament grid model when detecting that the intersection exists between the current detection area of the target character and the preset scene area, so that the environmental ornament can be rapidly displayed in the preset scene area. Through the synchronous movement based on the robot in the edge server, the environment ornament grid model can be generated in real time, the environment ornament grid model does not need to be generated in the client, and the client only needs to load and display, so that the resource expense of the client can be reduced, the situation of blocking in the moving and seeking process is avoided, and the game experience is improved.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. 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, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. The display method of the environment decoration is characterized by being applied to a client and comprising the following steps of:
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 role used by a player in the target game scene based on the robot creation request;
acquiring current position information of the target role, and sending the current position information to the edge server, so that the edge server controls the robot to synchronously move based on the current position information, and when detecting that an intersection exists between a current detection area of the robot and a preset scene area for displaying an environment ornament, generating an environment ornament grid model corresponding to the preset scene area;
Acquiring the environmental ornament grid model in the edge server, and displaying environmental ornaments in the preset scene area by loading the environmental ornament grid model when detecting that the intersection exists between the current detection area of the target character and the preset scene area;
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 ornament 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 centered on a current position of the robot and having a first preset length as a radius;
the current detection area of the target character is: a circular area centered on the current position of the target character and having a radius of a second preset length;
wherein the first preset length is greater than the second preset length.
4. The method according to claim 1, wherein the acquiring the environmental ornament mesh model in the edge server, and upon detecting that the intersection exists between the current detection area of the target character and the preset scene area, displaying the environmental ornament in the preset scene area by loading the environmental ornament mesh model, includes:
If the intersection of the current detection area of the target character and the preset scene area is detected, downloading an environment decoration grid model in the edge server through a preset downloading interface, loading the downloaded environment decoration grid model, and displaying environment decorations in the preset scene area.
5. The display method of the environment decoration is characterized by being applied to an edge server and comprising the following steps of:
receiving a robot creation request sent by a client establishing communication with the edge server;
creating a robot corresponding to a target role used by a player in a target game scene loaded by the client based on the robot creation request;
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 environment decorations is detected, generating an environment decoration grid model corresponding to the preset scene area, so that the client obtains the environment decoration grid model in the edge server, and displaying environment decorations in the preset scene area by loading the environment decoration grid model when the intersection of the current detection area of the target character and the preset scene area is detected;
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 generating the environmental ornament mesh model corresponding to the preset scene area comprises:
determining an environment ornament to be displayed and an initial grid model corresponding to the environment 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 environmental ornament grid model corresponding to the environmental ornament.
7. The method of claim 6, wherein the randomly processing the initial mesh model to generate an environmental ornament mesh model corresponding to the environmental ornament comprises:
and starting a plurality of threads to run in parallel for each environmental ornament, and generating an environmental ornament grid model corresponding to each environmental ornament.
8. A display device for environmental ornaments, integrated in a client, comprising:
the robot creation request sending module is used for loading a target game scene and sending a robot creation request to an edge server which is in communication connection with the client so that the edge server creates a robot corresponding to a target role used by a player in the target game scene based on the robot creation request;
The current position information sending module is used for obtaining the 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 synchronously move based on the current position information, and generating an environment ornament grid model corresponding to a preset scene area for displaying environment ornaments when detecting that the intersection exists between the current detection area of the robot and the preset scene area;
the environment ornament display module is used for acquiring the environment ornament grid model in the edge server and displaying environment ornaments in the preset scene area by loading the environment ornament grid model when detecting that the intersection exists between the current detection area of the target character and the preset scene area; the current detection area of the robot is larger than the current detection area of the target role.
9. An environmental ornament display device, characterized in that it is integrated in an edge server, comprising:
the robot creation request receiving module is used for receiving a robot creation request sent by a client side establishing communication with the edge server;
The robot creation module is used for creating a robot corresponding to a target role used by a player in the target game scene loaded by the client based on the robot creation 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;
the environment ornament grid model generation module is used for generating an environment ornament grid model corresponding to a preset scene area for displaying environment ornaments if the intersection of the current detection area of the robot and the preset scene area for displaying the environment ornaments is detected, so that the client acquires the environment ornament grid model in the edge server, and displays the environment ornaments in the preset scene area by loading the environment ornament grid model when the intersection of the current detection area of the target role and the preset scene area is detected; the current detection area of the robot is larger than the current detection area of the target role.
10. A display system for an environmental ornament, the system comprising: a client and an edge server; wherein,
The client is used for realizing the display method of the environment decoration according to any one of claims 1-4;
the edge server is used for realizing the display method of the environment decoration 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 CN113786612A (en) 2021-12-14
CN113786612B true 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 (3)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120238366A1 (en) * 2011-03-15 2012-09-20 Maurice Tedder Robot Game for Multiple Players that is Remotely Controlled over a Network

Patent Citations (3)

* 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
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
CN113786612A (en) 2021-12-14

Similar Documents

Publication Publication Date Title
CN107835148B (en) Game role control method, device and system and game client
US20220355204A1 (en) Game data processing method and apparatus, computer, and readable storage medium
US8425327B2 (en) Method for providing location information of game character by operating with messenger server and system thereof
US9426212B2 (en) Sharing an application configuration among social networks
US8271884B1 (en) Graphical animation advertising and informational content service for handheld devices (GADS)
KR20150093887A (en) A push system for mobile game promotion and the method of push service
CN101604358A (en) A kind of resource updates methods, devices and systems
CN105872121A (en) Method for connecting terminal with server, terminal and domain name server
CN113786612B (en) Method, device and system for displaying environment decorations
CN112295234B (en) Method and device for obtaining game props
CN113786623A (en) Navigation grid updating method, device and system
CN113786611B (en) Tree display method, device and system in game scene
CN109271158B (en) Method and system for realizing synchronous cloud variable based on graphical programming platform
JP6285579B2 (en) Long polling processing method and system, and recording medium
KR101827324B1 (en) Method for using a plurality of device to provide online game
CN113786613B (en) Shadow map updating method, device and system
KR100382314B1 (en) An information service system and a service method using a cyber character on the network
CN111467808B (en) Game entity updating method and device
CN114733209A (en) City pool upgrading method, device, equipment and storage medium in game scene
CN113786622B (en) Role movement control method, device and system
CN113778673B (en) Data processing method, storage medium and apparatus
US20240019531A1 (en) Wayfinding and location-based information delivery using bluetooth beacons
CN113457141A (en) Resource processing method and device, storage medium and electronic equipment
CN113926200A (en) Task completion method and related device
WO2024005894A1 (en) User-specific graphical user interface based on a graphical user interface template

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