Game control method, device and equipment and computer readable storage medium

By receiving reference images and displaying transmission controls in MMO or open world games, the second virtual object is directly transmitted to the reference position, which solves the difficulty of players in finding a location for taking photos in the virtual environment, and improves the game experience and interactivity.

CN120227641APending Publication Date: 2025-07-01TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311867765.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

In MMO or open world games, players need to spend a lot of time exploring in a virtual environment to find a specific location where the photo records are taken, resulting in a reduced gaming experience.

Method used

By receiving the reference image, displaying the transfer control, and when it triggers the operation, the second virtual object is transferred to the reference position, simplifying the process of positioning in the virtual environment.

Benefits of technology

Save time for virtual objects to find reference positions in virtual scenes, improving the interactiveness and gaming experience of the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120227641A_ABST
    Figure CN120227641A_ABST
Patent Text Reader

Abstract

The invention discloses a game control method, device and equipment and a computer readable storage medium, and belongs to the technical field of computers. The method comprises the following steps: receiving a reference image sent by a first terminal, wherein the first terminal is a terminal for controlling a first virtual object; in response to the information that the reference image contains the virtual environment, displaying a transmission control in a first game interface, the first game interface being an interface of a game in which a currently controlled second virtual object participates; in response to a trigger operation of the transmission control, the second virtual object is transmitted to a reference position in the virtual environment, and the reference position comprises the position of the first virtual object in the virtual environment or the position of a reference image shot in the virtual environment. According to the method, the second virtual object is directly transmitted to the reference position through triggering of the transmission control, so that the time of searching the reference position in the virtual scene by the second virtual object can be saved, and the interactivity and the game experience of a game are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular, to a method, device, equipment and computer-readable storage medium for game control. Background Art

[0002] With the continuous development of computer technology, the number of players of MMO (Massively Multiplayer Online Role-Playing Game) and open-world games is increasing. For MMO or open-world games, the display effect of the virtual environment is exquisite and the scope is large, and players can control virtual objects to freely explore the virtual environment.

[0003] During the process of virtual objects exploring the virtual environment, many players will record the virtual environment. For example, they control virtual objects to take pictures of the virtual environment. If other players also want to go to the same location to take pictures and record the virtual environment, they need to control virtual objects to spend a lot of time exploring in the virtual environment to find the photo-taking location. Summary of the Invention

[0004] The embodiments of the present application provide a method, device, equipment and computer-readable storage medium for game control. The technical solutions are as follows:

[0005] On the one hand, the embodiments of the present application provide a method for game control. The method includes: receiving a reference image sent by a first terminal, where the first terminal is a terminal that controls a first virtual object; in response to the reference image containing information about the virtual environment, displaying a teleportation control in a first game interface, where the first game interface is an interface of a game participated by a second virtual object currently controlled, and the second virtual object has an associated relationship with the first virtual object; in response to a trigger operation on the teleportation control, teleporting the second virtual object to a reference position in the virtual environment, where the reference position includes the position of the first virtual object in the virtual environment or the position in the virtual environment where the reference image is taken.

[0006] On the other hand, an embodiment of the present application provides a game control device, which includes: a receiving module, configured to receive a reference image sent by a first terminal, where the first terminal is a terminal that controls a first virtual object; a display module, configured to, in response to the reference image including information about a virtual environment, display a teleportation control in a first game interface, where the first game interface is an interface of a game participated by a second virtual object currently controlled, and the second virtual object has an association relationship with the first virtual object; a teleportation module, configured to, in response to a trigger operation on the teleportation control, teleport the second virtual object to a reference position in the virtual environment, where the reference position includes the position of the first virtual object in the virtual environment or the position where the reference image is captured in the virtual environment.

[0007] In a possible implementation manner, the display module is further configured to, in response to receiving the reference image, display a prompt message in the first game interface, where the prompt message is used to prompt that the reference image is received, and the content of the prompt message includes at least one of the identity identifier corresponding to the first virtual object or the information of the reference image.

[0008] In a possible implementation manner, the display module is further configured to, in response to a trigger operation on the teleportation control, display a second game interface, where the second game interface includes the second virtual object and a teleportation portal, the teleportation portal is located around the second virtual object, and the teleportation portal is used to teleport the second virtual object to the reference position; the display module is further configured to display a third game interface, where the third game interface includes the reference position.

[0009] In a possible implementation manner, the teleportation module is further configured to determine basic information of the virtual environment based on a spatial coordinate system of the virtual environment, where the basic information includes at least one of marker distribution, shape distribution, or color distribution; obtain feature information of the reference image, where the feature information includes at least one of marker features, shape features, or color features; determine a target area based on the feature information of the reference image and the basic information corresponding to the virtual environment; and determine the reference position based on the spatial coordinate system and the target area.

[0010] In a possible implementation manner, the basic information includes the marker distribution, and the feature information of the reference image includes the marker features. The teleportation module is configured to determine a target marker area of the marker in the virtual environment based on the marker features and the marker distribution, where the target marker area is the position area of the marker in the virtual environment; and in the target marker area, determine the target area based on the feature information of the reference image and the basic information corresponding to the virtual environment.

[0011] In a possible implementation, the transmission module is configured to obtain the type of the marker, perform a first screening on the marker distribution based on the type of the marker to obtain an initial marker area, where the initial marker area is the distribution area corresponding to the type of the marker; determine the relevant environmental features of the marker, and perform a second screening on the initial marker area based on the relevant environmental features to obtain the target marker area.

[0012] In a possible implementation, the transmission module is configured to determine a plurality of reference planes based on the spatial coordinate system, map the basic information of the virtual environment on the reference planes to obtain the distribution information of the virtual environment on the reference planes; match the distribution information of the virtual environment on the reference planes with the feature information corresponding to the reference image, and determine the target area within the reference planes based on the matching result.

[0013] In a possible implementation, the feature information includes the color feature, the distribution information includes the color distribution, and the transmission module is configured to perform noise reduction processing on the reference image based on the color feature to obtain the standard pixel information included in the reference image, where the standard pixel information includes the standard pixel value and the number of standard pixel values; process the color distribution of the reference plane to obtain the standard pixel value distribution of the reference plane; based on the standard pixel information and the standard pixel value distribution, perform a first matching between the reference image and the reference plane, and determine an initial reference area in the reference plane based on the result of the first matching, where the initial reference area is the same as the standard pixel value and the number of standard pixel values included in the reference image; based on the color distribution and the color feature, perform a second matching between the initial reference area and the reference image, and determine the target area in the initial reference area based on the result of the second matching.

[0014] In a possible implementation, the transmission module is configured to perform grid division on the initial reference area and the reference image based on the grid division parameters to obtain grid cells; determine the first pixel value corresponding to the grid cells of the initial reference area based on the color distribution, and determine the second pixel value corresponding to the grid cells of the reference image based on the color feature; in response to the number of grid cells where the first pixel value of the initial reference area is the same as the second pixel value of the reference image being greater than or equal to a first threshold, determine the initial reference area as the target area.

[0015] In a possible implementation, the reference image and the reference plane include virtual elements, the feature information includes shape features, the distribution information includes shape distribution, and the transmission module is configured to determine a first contour of the virtual element based on the shape features of the reference image, and determine a second contour of the virtual element based on the distribution information of the virtual environment in the reference plane; in response to the coincidence rate of the first contour and the second contour being greater than or equal to a second threshold, determine the area of the second contour in the reference plane as the target area.

[0016] In a possible implementation, the transmission module is configured to determine an adjustment angle of the spatial coordinate system based on the position of the target area in the spatial coordinate system; adjust the spatial coordinate system based on the adjustment angle to obtain a reference coordinate system, and the reference plane where the target area is located is parallel or coincident with the plane formed by a first reference direction and a second reference direction in the reference coordinate system; determine the coordinates of the target area in the first reference direction and the second reference direction of the reference coordinate system, and determine the coordinates of the reference position in the first direction and the second direction of the spatial coordinate system based on the adjustment angle, the coordinates in the first reference direction and the second reference direction, where the first direction is obtained from the first reference direction based on the adjustment angle, and the second direction is obtained from the second reference direction based on the adjustment angle.

[0017] In a possible implementation, the reference image and the reference plane include virtual elements, and the transmission module is further configured to determine a reference virtual element in the virtual elements of the reference image, and obtain a first ratio of the reference virtual element to the reference image; determine a second ratio of the reference virtual element to the target area in the target area; in response to the first ratio and the second ratio being different, move the reference plane where the target area is located along a third reference direction of the reference coordinate system until the first ratio and the second ratio are the same; obtain the moving distance of the reference plane where the target area is located along the third reference direction of the reference coordinate system, and determine the coordinates of the reference position in the third direction of the spatial coordinate system based on the moving distance, the adjustment angle, and the position of the reference virtual element in the spatial coordinate system, where the third direction is perpendicular to the plane formed by the first direction and the second direction, and the third direction is obtained from the third reference direction based on the adjustment angle.

[0018] In a possible implementation, the transmission module is further configured to determine a target point in the target area; determine a first vector of the target point and a second vector of the reference position based on the spatial coordinate system; and determine the orientation angle of the reference position using the first vector and the second vector.

[0019] In a possible implementation, the transmission module is further configured to, in response to detecting that the reference image contains initial position information, determine the reference position based on the initial position information, where the initial position information is used to represent the position of the first virtual object in the virtual environment or the position where the reference image is captured in the virtual environment.

[0020] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory. At least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to enable the computer device to implement the method for game control described in any one of the above.

[0021] On the other hand, a computer-readable storage medium is also provided. At least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to enable a computer to implement the method for game control described in any one of the above.

[0022] On the other hand, a computer program or a computer program product is also provided. At least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor to enable a computer to implement any one of the above methods for game control.

[0023] The technical solution provided by the embodiment of the present application at least brings the following beneficial effects:

[0024] When the reference image contains information about the virtual environment, the technical solution provided by the embodiment of the present application can directly transmit the second virtual object to the reference position by triggering the transmission control, which can save the time for the second virtual object to find the reference position in the virtual scene and improve the interactivity and game experience of the game. Description of the Drawings

[0025] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0026] Figure 1 It is a schematic diagram of the implementation environment of a method for game control provided by an embodiment of the present application;

[0027] Figure 2 It is a flowchart of a method for game control provided by an embodiment of the present application;

[0028] Figure 3It is a schematic diagram of an interface for displaying a reference image provided by an embodiment of the present application;

[0029] Figure 4 It is a schematic diagram of an interface for sharing a reference image provided by an embodiment of the present application;

[0030] Figure 5 It is a schematic diagram of an interface for detecting a reference image provided by an embodiment of the present application;

[0031] Figure 6 It is a flowchart of a method for determining a reference position provided by an embodiment of the present application;

[0032] Figure 7 It is a flowchart of a method for matching the color feature of a reference image with the color distribution of a reference plane provided by an embodiment of the present application;

[0033] Figure 8 It is another flowchart of a method for determining a reference position provided by an embodiment of the present application;

[0034] Figure 9 It is another flowchart of a method for determining a reference position provided by an embodiment of the present application;

[0035] Figure 10 It is a schematic diagram of an interface for displaying a transfer control provided by an embodiment of the present application;

[0036] Figure 11 It is a schematic diagram of a third game interface provided by an embodiment of the present application;

[0037] Figure 12 It is a schematic diagram of the structure of a device for game control provided by an embodiment of the present application;

[0038] Figure 13 It is a schematic diagram of the structure of a terminal device provided by an embodiment of the present application;

[0039] Figure 14 It is a schematic diagram of the structure of a server provided by an embodiment of the present application. Detailed implementation manners

[0040] To make the objectives, technical solutions and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.

[0041] It should be noted that the terms "first", "second", etc. in this application are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0042] Before introducing the technical solutions of the present application, the abbreviations and key terms related to the embodiments of the present application are defined first.

[0043] Virtual environment: refers to the environment provided (or displayed) when an application runs on a terminal device. This virtual environment is an environment created for virtual objects to move in. The virtual environment can be a two-dimensional virtual environment, a 2.5D virtual environment, or a three-dimensional virtual environment, etc. The virtual environment can be a simulation environment of the real world, a semi-simulation environment of the real world, or a purely fictional environment. Exemplarily, the virtual environment involved in the embodiments of the present application is a three-dimensional virtual environment.

[0044] Virtual object: refers to an object that can move in a virtual environment. This movable object can be a virtual character, a virtual animal, an anime character, etc. The player can control the virtual object by means of peripheral components or by clicking on the touch display screen. Each virtual object has its own shape and volume in the virtual environment and occupies a part of the space in the virtual environment. Exemplarily, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional solid model created based on animation skeleton technology.

[0045] Third-person perspective: refers to the position of the virtual camera in the game at a certain distance behind the virtual object controlled by the player, from which all elements within a certain environment around the virtual object controlled by the player can be seen in the virtual environment.

[0046] First-person perspective: The game is played from the subjective perspective of the player.

[0047] Computer Vision Technology (CV) Computer vision is a science that studies how to enable machines to "see". More specifically, it refers to machine vision that uses cameras and computers to replace human eyes for object recognition, measurement, etc., and further performs graphic processing to make the computer-processed images more suitable for human eye observation or transmission to instrument detection. As a scientific discipline, computer vision researches related theories and technologies, and attempts to build artificial intelligence systems that can obtain information from images or multi-dimensional data. The large model technology has brought important changes to the development of computer vision technology. Pre-trained models in the field of vision such as swin-transformer (Rotary Context Network), ViT (Vision Transformer), V-MOE (VisionMoE), MAE (masked autoencoders), etc. can be quickly and widely applied to downstream specific tasks after fine-tuning. Computer vision technology usually includes image processing, image recognition, image semantic understanding, image retrieval, OCR (Optical Character Recognition), video processing, video semantic understanding, video content / behavior recognition, 3D object reconstruction, 3D (Three Dimensions) technology, virtual reality, augmented reality, simultaneous localization and mapping, etc. technologies, and also includes common biometric recognition technologies such as face recognition and fingerprint recognition.

[0048] Figure 1 It is a schematic diagram of the implementation environment of a game control method provided by an embodiment of the present application, as Figure 1 shown. The implementation environment includes: a terminal device 101 and a server 102.

[0049] Among them, a client capable of providing a virtual environment is installed and run in the terminal device 101. The terminal device 101 is used to execute the game control method provided by an embodiment of the present application. The terminal device 101 displays a virtual object and a virtual environment containing the virtual object.

[0050] Exemplarily, the client can be a game client. The game client that provides a virtual environment in the terminal device 101 can be an open-world game, a third-person shooting (TPS) game, a first-person shooting (FPS) game, a multiplayer online battle arena (MOBA) game, a multiplayer shooting survival game, an MMO, an action role-playing game (ARPG), a virtual reality (VR) client, an augmented reality (AR) client, a three-dimensional map program, a map simulation program, a social client, an interactive entertainment client, etc.

[0051] The server 102 is used to provide background services for the game client installed in the terminal device 101 that can provide a virtual environment. In a possible implementation, the server 102 undertakes the main computing work, and the terminal device 101 undertakes the secondary computing work. Or, the server 102 undertakes the secondary computing work, and the terminal device 101 undertakes the main computing work. Or, a distributed computing architecture is adopted between the terminal device 101 and the server 102 for collaborative computing.

[0052] Optionally, the terminal device 101 can be any electronic device product that can perform human-computer interaction with the user through one or more methods such as a keyboard, a touchpad, a remote control, voice interaction, or a handwriting device. For example, the terminal device 101 can be a smartphone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a PC (Personal Computer), a mobile phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a smart in-vehicle unit, a smart TV, etc.

[0053] The terminal device 101 can generally refer to one of multiple terminal devices. This embodiment only uses the terminal device 101 as an example for illustration. Those skilled in the art can know that the number of the above terminal devices 101 can be more or less. For example, the above terminal device 101 can be only one, or the above terminal device 101 can be dozens or hundreds, or a larger number. The embodiments of the present application do not limit the number and device type of the terminal device 101.

[0054] The server 102 is a single server, or a server cluster composed of multiple servers, or any one of a cloud computing platform and a virtualization center. The embodiments of the present application do not limit this. The server 102 is directly or indirectly communicatively connected to the terminal device 101 through a wired or wireless communication method. The server 102 has a data receiving function, a data processing function, and a data sending function. Of course, the server 102 may also have other functions, and the embodiments of the present application do not limit this.

[0055] Those skilled in the art should understand that the above terminal device 101 and server 102 are only for illustrative purposes. Other existing or future terminal devices or servers that are applicable to the present application should also be included within the protection scope of the present application and are hereby incorporated herein by reference.

[0056] The embodiments of the present application provide a game control method, which can be applied to the above Figure 1 shown implementation environment. Taking the flowchart of a game control method provided by the embodiments of the present application shown in Figure 2 as an example, this method can be executed by the terminal device 101 in Figure 1 or can be executed by the interaction between the terminal device 101 and the server 102. Taking the terminal device 101 executing this method as an example, as Figure 2 shown, this method includes the following steps 100 to step 300.

[0057] In step 100, a reference image sent by a first terminal is received, and the first terminal is a terminal that controls a first virtual object.

[0058] In an exemplary embodiment of the present application, the terminal device executing this method may be a second terminal, and the terminal interacting with it is a first terminal. The first terminal is a terminal that controls a first virtual object, and the second terminal controls a second virtual object. The first virtual object and the second virtual object may have other association relationships. Exemplarily, the second virtual object has an association relationship with the first virtual object, so that the first virtual object and the second virtual object can interact during the game process. For example, the second virtual object and the first virtual object may be friends. Another example is that the second virtual object and the first virtual object may not be friends, but the second virtual object and the first virtual object may be in the same camp relationship, or the second virtual object and the first virtual object may be in different camp relationships. It should be noted that the association relationship between the second virtual object and the first virtual object in the present application is for illustrative purposes, and the present application does not limit this.

[0059] Whether it is the first terminal or the second terminal, a game client capable of providing a virtual environment can be installed and run in the terminal device. The game client can be the client of any game, and the embodiments of the present application do not limit this. Exemplarily, the client in the embodiments of the present application is a game application. In response to the application receiving a start instruction, the terminal device displays a game preloading interface of the application. Among them, the game preloading interface can include a virtual object selection interface, a player teaming interface, a map selection interface, and a loading interface for this game, etc.

[0060] Exemplarily, the virtual environment is an environment provided by the application of the terminal device. In the virtual environment, multiple virtual objects can be displayed. Among them, different virtual objects can be controlled by different players. In addition to displaying virtual objects, virtual elements can also be displayed in the virtual environment. Among them, the virtual elements can include mountains, plains, rivers, lakes, seas, deserts, swamps, quicksand, sky, plants, buildings, etc. The virtual environment in the present application is for illustrative purposes, and the present application does not limit this.

[0061] In an exemplary embodiment of the present application, during the process of a player controlling a virtual object to explore in the virtual environment, the virtual environment can be photographed and recorded. Taking the first player controlling the first virtual object to explore the virtual environment as an example for illustration. Figure 3 It is a schematic diagram of an interface for displaying a reference image provided by an embodiment of the present application. As Figure 3 shown, the first player can control the first virtual object 110 to move in the virtual environment through the virtual joystick 130. When the first player wants to record the picture of the virtual environment, the virtual environment can be photographed and recorded through the image generation control 120 to obtain a reference image. Among them, the shooting operation can be completed based on the virtual camera in the application, and the relative position of the virtual camera and the first virtual object 110 remains unchanged.

[0062] Exemplarily, the first terminal is the terminal of the first player, and the first player can control the first virtual object through the first terminal. For example, the first player controls the first virtual object to obtain a reference image using the virtual camera. The virtual camera can be a virtual camera with a first-person perspective of the first virtual object. Taking a picture of the virtual environment from the first-person perspective of the first virtual object to obtain a reference image. In this case, the reference image obtained does not include the first virtual object. Optionally, the virtual camera can also be a virtual camera with a third-person perspective of the first virtual object. Taking a picture of the virtual environment from the third-person perspective of the first virtual object to obtain a reference image. In this case, the reference image obtained includes the first virtual object.

[0063] In the method provided by the embodiments of the present application, during the process of the first terminal obtaining a reference image, in response to receiving a generation operation of an initial image, the initial position information of the initial image is obtained. The initial position information includes the position where the initial image is obtained in the virtual environment. The initial position information is associated with the initial image to obtain a reference image.

[0064] In an exemplary embodiment of the present application, when the application program of the first terminal receives a trigger operation of an image generation control, that is, a generation operation of an initial image, the initial position information corresponding to the initial image can be obtained. Among them, the generation operation of the initial image may include an image capture operation. When the first player controls the first virtual object to perform image capture using a first-person perspective camera, the initial position information may include the position information of the first virtual object in the virtual environment and may also include the orientation information of the first virtual object in the virtual environment. When the first player controls the first virtual object to perform image capture using a third-person perspective camera, the initial position information may include the position information of the first virtual object in the virtual environment. After obtaining the initial position information, the initial position information is associated with the initial image. For example, a hidden watermark is formed in the initial image based on the initial position information to obtain a reference image.

[0065] By associating the initial information with the initial image, the initial position information included in the reference image can be quickly determined in the subsequent process. Using the initial position information to determine the reference position for teleportation can, to a certain extent, improve the efficiency of teleportation of virtual objects during the game process and reduce the amount of data processing.

[0066] After obtaining the reference image, the first player can share the reference image with other players in the game. Figure 4 It is a schematic diagram of an interface for sharing a reference image provided by an embodiment of the present application. As Figure 4 shown, the first player can send the reference image to other players through the sharing control in the game sharing interface. For example, when the first player sends the reference image to the second player, the second terminal of the second player can receive the reference image sent by the first terminal of the first player.

[0067] In step 200, in response to the reference image containing information about the virtual environment, a teleportation control is displayed in the first game interface. The first game interface is the interface of the game participated by the second virtual object currently controlled, and the second virtual object has an association relationship with the first virtual object.

[0068] In an exemplary embodiment of the present application, after receiving a reference image, the reference image is detected. In response to detecting that the reference image does not include information about the virtual environment, that is, the reference image is an image unrelated to the virtual environment, the sent reference image is displayed. Optionally, in response to detecting that the reference image contains information about the virtual environment, a teleport control is displayed in the first game interface, where the first game interface is the game interface in which a second virtual object participates, and the second virtual object may be a virtual object controlled by a second player based on a second terminal.

[0069] Figure 5 It is a schematic diagram of an interface for detecting a reference image provided by an embodiment of the present application. As Figure 5 shown, after receiving the reference image sent by the first player A, the reference image is recognized, and "Image Recognizing" is displayed below the reference image. Among them, the virtual object controlled by the first player A is the first virtual object.

[0070] It should be noted that the first player A can send multiple reference images at the same time. The reference image can be an image containing information about the virtual environment, or the reference image can also be an image not containing information about the virtual environment. The process of the first player A sending the reference image in the present application is an exemplary illustration, and the present application does not limit the method and quantity of the first player A sending the virtual image. Only one reference image is taken as an example for illustration, and other reference images will not be elaborated.

[0071] In addition, the embodiment of the present application does not limit the method for identifying whether the reference image contains information about the virtual environment, and it can be implemented based on any image recognition method. No matter which image recognition method is adopted, after recognizing that the reference image contains information about the virtual environment, a teleport control can be displayed in the first game interface, and the first game interface is the interface of the game in which the currently controlled second virtual object participates. Among them, the teleport control is used to trigger teleporting the second virtual object into the virtual environment included in the reference image. The embodiment of the present application does not limit the display method of the teleport control, and the teleport control can be displayed at any position in the first game interface so that the player can trigger the teleport operation.

[0072] In an exemplary embodiment of the present application, the method further includes: in response to receiving the reference image, a prompt message is displayed in the first game interface, and the prompt message is used to prompt that the reference image is received, and the content of the prompt message includes at least one of the identity identifier corresponding to the first virtual object or the information of the reference image.

[0073] Exemplarily, during the game process of the second player, the second terminal can display a first game interface, and the first game interface can be the current game interface. When receiving the reference image sent by the first terminal, a prompt message can be displayed on the first game interface to remind the player that the reference image has been received. Among them, the prompt message can be displayed in the form of a pop-up window, and the prompt message includes the identity identifier corresponding to the first virtual object and the information of the reference image. For example, the prompt message can be that the first player A has sent a reference picture. It should be noted that the display method and content of the prompt message in this application are for exemplary illustration, and this application is not limited thereto.

[0074] In step 300, in response to the trigger operation of the teleportation control, the second virtual object is teleported to a reference position in the virtual environment, and the reference position includes the position of the first virtual object in the virtual environment or the position where the reference image is taken in the virtual environment.

[0075] In an embodiment of the present application, before teleporting the second virtual object to the reference position in the virtual environment in response to the trigger operation of the teleportation control, a process of determining the reference position may also be included. The process of determining the reference position may include but is not limited to the following two methods.

[0076] Method 1: Detect the reference image. In response to detecting that the reference image contains initial position information, determine the reference position based on the initial position information, where the initial position information is used to represent the position of the first virtual object in the virtual environment or the position where the reference image is taken in the virtual environment. Exemplarily, the manifestation form of the initial position information may be a hidden watermark in the reference image. When it is detected that the reference image contains a hidden watermark, obtain the initial position information in the hidden watermark and determine the reference position based on the initial position information.

[0077] In another embodiment of the present application, in response to detecting that the reference image does not contain initial position information, determine the reference position based on the reference image and the virtual environment. For example, refer to Method 2 below.

[0078] Method 2, taking the flowchart of a method for determining a reference image provided in an embodiment of the present application as shown in Figure 6 as an example, the process of determining the reference position may include steps 210 to 240.

[0079] In step 210, determine the basic information of the virtual environment based on the spatial coordinate system of the virtual environment, where the basic information includes at least one of marker distribution, shape distribution, or color distribution.

[0080] In an exemplary embodiment of the present application, a spatial coordinate system is established based on a virtual environment. The spatial coordinate system may include a first direction, a second direction, and a third direction that are perpendicular to each other. The basic information of the virtual environment in the spatial coordinate system is obtained, where the basic information may include at least one of the marker distribution, shape distribution, or color distribution in the virtual environment.

[0081] Exemplarily, during the process of constructing the spatial coordinate system, markers in the virtual environment can be marked. Combining Figure 3 , the markers in the virtual environment may include gazebos, the sun, mountains, trees, etc. The markers in the virtual environment are identified through a deep learning model to obtain the labels of the markers. During the process of establishing the spatial coordinate system in the virtual environment, the distribution of the markers can be obtained based on the labels of the markers. Taking the marker as a gazebo as an example, the gazebo label in the virtual environment can be retrieved, and the distribution of the gazebo can be determined based on the position of the gazebo label in the spatial coordinate system.

[0082] Exemplarily, taking the first direction, the second direction, and the third direction in the spatial coordinate system corresponding to the X-axis, Z-axis, and Y-axis respectively as an example. Based on the spatial coordinate system, the marker distribution, the shape distribution, and the color distribution of the virtual elements in the virtual environment are obtained.

[0083] In step 220, the feature information of the reference image is obtained, and the feature information includes at least one of marker features, shape features, or color features.

[0084] Exemplarily, a deep learning model is used to obtain the feature information of the reference image, where the feature information includes at least one of marker features, shape features, or color features.

[0085] After obtaining the feature information of the reference image, if the basic information includes the marker distribution and the feature information of the reference image contains marker features, the process of determining the target area based on the feature information of the reference image and the basic information corresponding to the virtual environment may include: determining the target marker area of the marker in the virtual environment based on the marker features and the marker distribution, where the target marker area is the position area of the marker in the virtual environment; in the target marker area, determining the target area based on the feature information of the reference image and the basic information corresponding to the virtual environment.

[0086] Exemplarily, the feature information of the reference image can be detected to determine whether the feature information of the reference image contains marker features. If the feature information contains marker features, the reference image contains markers; if the feature information does not contain marker features, the reference image does not contain markers.

[0087] In response to detecting that the feature information contains marker features, i.e., the reference image contains markers, determine the target marker region of the markers in the virtual environment based on the marker features and marker distribution. The target marker region is the position region of the markers in the virtual environment.

[0088] In an exemplary embodiment of the present application, the process of determining the target marker region of the markers in the virtual environment based on the marker features and marker distribution may include: obtaining the type of the markers, performing a first screening on the marker distribution based on the type of the markers to obtain an initial marker region, where the initial marker region is the distribution region corresponding to the type of the markers; determining the relevant environmental features of the markers, and performing a second screening on the initial marker region based on the relevant environmental features to obtain the target marker region.

[0089] Exemplarily, determine the type of the markers through a deep learning model. Among them, the type of the markers may be the label of the markers. For example, the label of the markers is a gazebo. Perform a first screening on the virtual environment based on the distribution of the gazebo to obtain an initial marker region, where the initial marker region is the region where the gazebo is distributed in the virtual environment. Then, the relevant environmental features of the markers can be further obtained. Figure 3 Combined with the fact that the gazebo is located at the foot of the mountain and there are trees around it, perform a second screening on the region where the gazebo is distributed using the relevant environmental features to obtain the target marker region that conforms to the relevant environmental features of the markers.

[0090] After determining the target marker region, within the target marker region, further determine the target region based on the feature information of the reference image and the corresponding basic information of the virtual environment.

[0091] In step 230, determine the target region based on the feature information of the reference image and the corresponding basic information of the virtual environment.

[0092] In an exemplary embodiment of the present application, in response to the reference image containing markers, in the target marker region, match the reference image with the target marker region of the virtual environment, and use the matching result to determine the target region; in response to the reference image not containing markers, match the reference image with the virtual environment, and use the matching result to determine the target region. It should be noted that the process of matching the reference image with the virtual environment in the target marker region or directly matching the reference image with the virtual environment is similar. In the present application, the example of matching the reference image with the virtual environment is used for illustration.

[0093] In an exemplary embodiment of the present application, the process of determining a target area based on the feature information of a reference image and the basic information corresponding to a virtual environment may include: determining a plurality of reference planes based on a spatial coordinate system, mapping the basic information of the virtual environment onto the reference planes to obtain the distribution information of the virtual environment on the reference planes; and matching the distribution information of the virtual environment on the reference planes with the feature information corresponding to the reference image, and determining the target area within the reference planes based on the matching result.

[0094] Exemplarily, taking the first direction of the spatial coordinate system as the central axis, reference planes are set at certain angular intervals. Similarly, taking the second direction and the third direction of the spatial coordinate system as the central axes, the remaining reference planes are set at certain angular intervals.

[0095] In an exemplary embodiment of the present application, after determining the plurality of reference planes, the shape distribution and color distribution in the basic information of the virtual environment are mapped onto the reference planes to obtain the distribution information of the virtual environment on the reference planes. That is to say, the distribution information of the virtual environment on the reference planes may include shape distribution information and color distribution information.

[0096] In an exemplary embodiment of the present application, the shape features and color features of the reference image are respectively matched with the shape distribution information and color distribution information of the reference plane to obtain the matching results of the color features and the color distribution, and the target area is determined within the reference plane by using the matching results.

[0097] Figure 7 FIG. is a flowchart of a method for matching the color features of a reference image with the color distribution of a reference plane provided by an embodiment of the present application. As Figure 7 shown, the matching of the color features of the reference image with the color distribution of the reference plane may include steps 231 to 234.

[0098] In step 231, based on the color features, noise reduction processing is performed on the reference image to obtain the standard pixel information included in the reference image. The standard pixel information includes the standard pixel value and the number of standard pixel values.

[0099] Exemplarily, the reference image is composed of multiple pixel points. The color features of the reference image may include the color values of each pixel point. Among them, the color value of each pixel point may include R (red), G (green), and B (blue) values. The reference image is denoised using the color values of each pixel point. Among them, the denoising process may include dilation and erosion processing of the reference image to remove the noise points in the reference image. Then, the color values of the pixel points in the reference image after dilation and erosion processing are converted into standard pixel information. The standard pixel information may include standard pixel values. The standard pixel values may correspond to the color value range of RGB. Based on the color value range of RGB, the color value corresponding to the pixel point can be converted into a standard pixel value. Then, the reference image is divided based on the standard pixel value to obtain the number of standard pixel values included in the reference image. For example, different color values corresponding to dark green, light green, grass green, etc. are all converted into the standard pixel value corresponding to green to obtain the green color block in the reference image. Similarly, color blocks of other colors included in the reference image can be obtained, and further, the number of color blocks included in the reference image, that is, the number of standard pixel values, can be obtained. It should be noted that the standard pixel value and the color value range of RGB corresponding to the standard pixel value can be set based on the actual situation, and the present application does not limit this.

[0100] In step 232, the color distribution of the reference plane is processed to obtain the standard pixel value distribution of the reference plane.

[0101] Exemplarily, the color distribution of the reference plane may include the color values corresponding to the pixel points. Based on the color distribution of the reference plane, the reference plane is denoised to obtain the standard pixel value distribution of the reference plane. It should be noted that the process of denoising the reference plane is similar to that of denoising the reference image, and will not be elaborated here too much.

[0102] By performing dilation and erosion processing on the reference image and the reference plane, the interference information in the reference image and the reference plane can be reduced, which is beneficial to converting the color values of the pixel points in the reference image and the reference plane into standard pixel information; converting the color values of the pixel points in the reference image into standard pixel values and obtaining the number of standard pixel values in the reference image can reduce the amount of data processing in the process of matching the color features of the reference image with the color distribution of the reference plane and improve the matching efficiency.

[0103] In step 233, based on the standard pixel information and the standard pixel value distribution, the reference image and the reference plane are subjected to a first match, and an initial reference area is determined in the reference plane based on the result of the first match. The initial reference area is the same as the standard pixel values and the number of standard pixel values included in the reference image.

[0104] Exemplarily, the reference plane is the projection plane of the virtual environment. Therefore, the size of the reference plane is much larger than the size of the reference image. A matching unit area and a matching interval are set within the reference plane. Among them, the size of the matching unit area is the same as the size of the reference image. The matching unit area is moved within the reference plane in a certain order based on the matching interval. During the movement, a first matching is performed between the standard pixel values and the number of standard pixel values included in the matching unit area and the standard pixel values and the number of standard pixel values included in the reference image. If the standard pixel values and the number of standard pixel values included in the matching unit area are the same as those in the reference image, the matching unit area is used as part of the initial reference area until the matching of the entire reference plane is completed to obtain the initial reference area.

[0105] In step 234, based on the color distribution and color features, a second matching is performed between the initial reference area and the reference image, and a target area is determined within the initial reference area based on the result of the second matching.

[0106] Exemplarily, after obtaining the initial reference area, a second matching can also be performed based on the color distribution of the initial reference area and the color features of the reference image to obtain the target area. Among them, the process of performing a second matching based on the color distribution of the initial reference area and the color features of the reference image to obtain the target area may include: dividing the initial reference area and the reference image into grid cells based on the grid division parameters; determining the first pixel value corresponding to the grid cell of the initial reference area based on the color distribution, and determining the second pixel value corresponding to the grid cell of the reference image based on the color features; in response to the number of grid cells where the first pixel value of the initial reference area is the same as the second pixel value of the reference image being greater than or equal to the first threshold, determining the initial reference area as the target area.

[0107] In an exemplary embodiment of the present application, the grid division parameter may be the size of the grid. The initial reference area and the reference image are divided based on the grid division parameter to obtain the grid cells of the initial reference area and the grid cells of the reference image. Among them, the size of the grid can be set according to the actual situation. For example, the grid cell can be a single pixel, or the grid cell can include multiple pixels.

[0108] After obtaining the grid cells corresponding to the initial reference region and the reference image, the first pixel value corresponding to the grid cell of the initial reference region and the second pixel value corresponding to the grid cell of the reference image can also be determined. For example, when a grid cell contains a single pixel point, the first pixel value corresponding to the grid cell of the target region can be determined by the color distribution of the initial reference region, and the second pixel value corresponding to the grid cell of the reference image can be determined by the image features of the reference image; when a grid cell contains multiple pixel points, the pixel value of each pixel point in the grid cell of the target region can be determined by the color distribution of the initial reference region, and then the average value of the pixel values is used as the first pixel value of the grid cell of the target region. Similarly, the second pixel value of the grid cell of the reference image is obtained.

[0109] Exemplarily, the first pixel value and the second pixel value of the grid cells corresponding to the initial reference region and the reference image are compared. In response to the number of grid cells where the first pixel value is the same as the second pixel value being greater than or equal to the first threshold, the initial reference region is determined as the target region. The first threshold can be set based on the actual situation. For example, the first threshold can be set to 90% of the total number of grid cells of the reference image.

[0110] In an exemplary embodiment of the present application, the reference image and the reference plane include virtual elements. When the feature information includes shape features and the distribution information includes shape distribution, the process of matching the distribution information of the virtual environment in the reference plane with the feature information of the reference image and determining the target reference region in the reference plane based on the matching result may include: determining the first contour of the virtual element based on the shape features of the reference image, and determining the second contour of the virtual element based on the distribution information of the virtual environment in the reference plane; in response to the coincidence rate of the first contour and the second contour being greater than or equal to the second threshold, the region of the second contour in the reference plane is determined as the target region.

[0111] Exemplarily, the reference image contains virtual elements. Combining Figure 3 , the virtual elements can be gazebos, suns, mountains, and trees. The contour of the virtual element can be obtained using a contour detection algorithm or a contour detection function. Taking the virtual element as a mountain as an example, the first contour of the mountain in the reference image is obtained based on the feature information of the reference image, the second contour of the mountain in the reference plane is obtained based on the distribution information of the reference plane, and then the first contour and the second contour are compared segment by segment. If the coincidence rate of the first contour and the second contour is greater than or equal to the second threshold, the region where the mountain is located and the region around the mountain are determined as the target region.

[0112] Exemplarily, during the process of contour comparison, the overall shape of the contour can be compared first to determine the initial reference area where the overall shapes of the virtual elements are similar. In the initial reference area, the detailed contour features in the virtual elements can be compared by using the detailed features in the contours of the virtual elements, such as the sharpness of the contour, the degree of curvature of the contour, etc., to obtain the area where the detailed contour features of the first contour and the second contour of the virtual elements match. Then, the coincidence rate of the first contour and the second contour is calculated within the area where the detailed features match, and the target area is determined by using the coincidence rate of the first contour and the second contour.

[0113] In step 240, the reference position is determined based on the spatial coordinate system and the target area.

[0114] In an exemplary embodiment of the present application, after determining the target area, the reference position can also be determined by using the spatial coordinate system and the target area. Figure 8 is a flowchart of a method for determining a reference position provided by an embodiment of the present application. As Figure 8 shown, the process of determining the reference position may include steps 241 to 243.

[0115] In step 241, the adjustment angle of the spatial coordinate system is determined based on the position of the target area in the spatial coordinate system.

[0116] Exemplarily, continuing with the spatial coordinate system composed of mutually perpendicular X-axis, Y-axis, and Z-axis, and determining the position of the target area in the spatial coordinate system, if the target area is parallel or coincident with the plane formed by any two coordinate axes, the adjustment angle is 0°; if the target area is not parallel to the plane formed by any two coordinate axes, the adjustment angle of the spatial coordinate system can be determined by using the included angle between the plane formed by the coordinate axes and the plane where the target area is located.

[0117] In step 242, the spatial coordinate system is adjusted based on the adjustment angle to obtain a reference coordinate system, and the reference plane where the target area is located is parallel or coincident with the plane formed by the first reference direction and the second reference direction in the reference coordinate system.

[0118] Exemplarily, after determining the adjustment angle, the spatial coordinate system can be rotated based on the adjustment angle, and the rotated coordinate system can be the reference coordinate system. Among them, in the reference coordinate system, the reference plane where the target area is located is parallel or coincident with the plane formed by the first reference direction and the second reference direction, where the first reference direction and the second reference direction are perpendicular to each other. In the present application, taking the first reference direction and the second reference direction as the X'-axis and the Z'-axis as an example, the reference plane where the target area is located is parallel or coincident with the plane formed by the X'-axis and the Z'-axis.

[0119] In step 243, determine the coordinates of the target area in the first reference direction and the second reference direction of the reference coordinate system. Based on the adjustment angle, and the coordinates in the first reference direction and the second reference direction, determine the coordinates of the reference position in the first direction and the second direction of the spatial coordinate system. The first direction is obtained from the first reference direction based on the adjustment angle, and the second direction is obtained from the second reference direction based on the adjustment angle.

[0120] Exemplarily, taking the target area as a rectangle, after determining the target area, it is possible to determine the coordinates of the vertices and the center point of the target area on the X' axis and the Z' axis in the reference coordinate system, and then use the adjustment angle to convert the coordinates of the vertices and the center point of the target area on the X' axis and the Z' axis into the coordinates on the X axis and the Z axis in the spatial coordinate system, that is, the coordinates of the reference position of the second virtual object on the X axis and the Z axis in the spatial coordinate system.

[0121] In an exemplary embodiment of the present application, if the reference image includes a first virtual object, based on the relative position of the first virtual object in the reference image, determine the position where the second virtual object needs to be transmitted to the target area, and determine the coordinates of the X axis and the Z axis of this position.

[0122] In an exemplary embodiment of the present application, if the reference image does not include a first virtual object, the second virtual object needs to be transmitted to the position where the first virtual object acquires the reference image, and the position where the first virtual object acquires the reference image can be the coordinates of the X axis and the Z axis corresponding to the center point of the target area.

[0123] In an exemplary embodiment of the present application, after determining the coordinates of the reference position in the first direction and the second direction of the spatial coordinate system, it is also possible to use the reference image and the virtual elements in the target area to determine the coordinates of the reference position in the third direction of the spatial coordinate system. The third direction is perpendicular to the plane formed by the first direction and the second direction, and the third direction is obtained from the third reference direction based on the adjustment angle. Figure 9 It is a flowchart of another method for determining the reference position provided by the embodiment of the present application. As Figure 9 shown, the process of determining the reference position may further include steps 244 to 247.

[0124] In step 244, determine the reference virtual element in the reference image, and obtain the first ratio of the reference virtual element to the reference image.

[0125] Exemplarily, the reference image may include multiple virtual elements. A reference virtual element is determined among the multiple virtual elements. The reference virtual element may be one or multiple. For example, the reference virtual element is determined according to the volume and contour of the virtual element. Optionally, a virtual element with a moderate volume and a relatively regular shape is selected as the reference virtual element among the virtual elements. Among them, a virtual element with a moderate volume and a relatively regular shape is conducive to calculating the first ratio between the reference virtual element and the reference image.

[0126] After determining the reference virtual element, the first ratio between the reference virtual element and the reference image can be obtained. Exemplarily, the area of the reference virtual element and the area of the reference image are determined, and the first ratio between the reference virtual element and the reference image is calculated using the area of the reference virtual element and the area of the reference image. In this application, an example where the reference virtual element is one is taken. For example, the reference virtual element is a large mountain. The area of the large mountain is determined in the reference image. Among them, the area of the large mountain can be calculated based on the contour of the large mountain in the reference image. For example, the reference image is divided into area units arranged in an array, the number of area units occupied by the contour of the large mountain is determined, and further the first ratio of the contour of the large mountain in the entire reference image is confirmed. It should be noted that the calculation of the first ratio between the reference virtual element and the reference image in this application is an exemplary illustration, and there may be other calculation methods. This application does not limit this.

[0127] In step 245, the second ratio between the reference virtual element and the target area is determined in the target area.

[0128] Exemplarily, after determining the first ratio, the second ratio of the same reference virtual object in the target area can be determined. For example, in the target area, the ratio of the area of the same reference virtual element to the area of the target area is determined to obtain the second ratio between the reference virtual element and the target area. It should be noted that the process of calculating the second ratio is similar to that of the first ratio, and will not be elaborated here too much.

[0129] In step 246, in response to the first ratio and the second ratio being different, the reference plane where the target area is located is moved along the third reference direction of the reference coordinate system until the first ratio and the second ratio are the same.

[0130] Exemplarily, in response to the first ratio of the reference virtual element in the reference image being different from the second ratio of the target area, the reference plane where the target area is located is moved along the third reference direction, that is, the direction of the Y' axis, until the first ratio and the second ratio are the same. For example, the reference virtual element is a large mountain. The proportion of the large mountain in the reference image is 40%. When the coordinates of the large mountain and the target area on the Y' axis are the same, the proportion of the large mountain in the target area is 0%. As the reference plane where the target area is located moves along the Y' axis, the proportion of the large mountain in the target area increases until the proportion of the large mountain in the target area is 40%.

[0131] In step 247, obtain the moving distance of the reference plane where the target area is located along the third reference direction of the reference coordinate system, and determine the coordinate of the reference position in the third direction of the spatial coordinate system based on the moving distance, the adjustment angle, and the position of the reference virtual element in the spatial coordinate system. The third direction is perpendicular to the plane formed by the first direction and the second direction, and the third direction is obtained from the third reference direction based on the adjustment angle.

[0132] Exemplarily, obtain the moving distance of the reference plane where the target area is located along the third reference direction of the reference coordinate system, and convert the moving distance into the moving distance in the spatial coordinate system based on the moving distance and the adjustment angle. The contour of the reference virtual element in the spatial coordinate system can be used to determine the coordinate of the Y-axis of the reference virtual element in the spatial coordinate system, and the Y-axis coordinate of the reference position is determined based on the moving distance of the reference plane where the target area is located in the spatial coordinate system. Wherein, the Y-axis is the third direction of the spatial coordinate system, and the third direction is perpendicular to the plane formed by the first direction and the second direction.

[0133] In an exemplary embodiment of the present application, after obtaining the coordinates of the reference position, the orientation angle can also be determined using the coordinates of the target area and the reference position. Exemplarily, the process of determining the reference position based on the spatial coordinate system and the target area may further include: determining a target point within the target area; determining a first vector of the target point and a second vector of the reference position based on the spatial coordinate system; and determining the orientation angle of the reference position using the first vector and the second vector. The orientation angle includes, but is not limited to, the orientation angle of the reference position of the first virtual object in the virtual environment or the orientation angle of taking a reference image in the virtual environment.

[0134] Exemplarily, the target point may be the center point of the target area, and the coordinates of the center point of the target area are determined using the coordinates of the target area in the spatial coordinate system. After determining the coordinates of the center point and the coordinates of the reference position, the first vector corresponding to the center point and the second vector of the reference position can also be determined, and then the dot product calculation is performed on the first vector and the second vector to determine the orientation angle of the reference position. Wherein, when the first virtual object is in the reference image, the orientation angle is the orientation angle of the virtual camera taking the reference image; when the first virtual object is not in the reference image, the orientation angle is the orientation angle of the first virtual object, that is, the orientation angle to be transmitted by the second virtual object.

[0135] In an exemplary embodiment of the present application, Figure 10 is a schematic diagram of an interface for displaying a transfer control. As Figure 10As shown, after identifying the reference image sent by the first player A and obtaining that the reference image contains information about the virtual environment, a teleport control of "Teleport to this location" is displayed around the reference image, where this location is the reference location.

[0136] Exemplarily, after the second terminal of the second player B receives the reference image sent by the first terminal of the first player A and displays the teleport control, when the second player B clicks the teleport control, in response to receiving the trigger operation of the teleport control, the second terminal can generate a teleport gate in the corresponding game interface, and use the teleport gate to teleport the virtual object to the reference location.

[0137] Exemplarily, the process of the game interface displayed by the second terminal that teleports the second virtual object to the reference location in the virtual environment in response to the trigger operation of the teleport control may include: in response to the trigger operation of the teleport control, display a second game interface, the second game interface includes the second virtual object and a teleport gate, the teleport gate is located around the second virtual object, and the teleport gate is used to teleport the second virtual object to the reference location. After teleporting the second virtual object to the reference location, the method further includes: display a third game interface, the third game interface includes the reference location.

[0138] Figure 11 It is a schematic diagram of a third game interface provided by an embodiment of the present application. As Figure 11 shown, after the second player B clicks the teleport control, a teleport gate 140 is generated around the second virtual object B controlled by the second player B, and the second virtual object B is teleported to the reference location by using the teleport gate 140. Among them, the virtual environment displayed in the third game interface is the same as the virtual environment displayed in the reference image.

[0139] Since games such as MMO and open world games usually have good environmental display effects, many players will take pictures of the beautiful scenery in the game for recording, or invite friends to take pictures here together. However, many times players see a photo without a specific location and cannot know its specific location in the game. It is very difficult to go to that location to browse. If a friend is currently at the corresponding location, they can be teleported to that location through a team invitation, but if the friend is no longer at that location, the player cannot go there.

[0140] The method provided by the embodiment of the present application can quickly identify the reference image based on image recognition technology after receiving the reference image. For the situation where the reference image contains information about the virtual environment, by displaying the teleport control and directly teleporting the second virtual object to the reference location after the teleport control is triggered, it can save the time for the second virtual object to find the reference location in the virtual scene, and improve the interactivity and game experience of the game.

[0141] In addition, after quickly determining the reference position, the virtual object is quickly teleported to the specified position through the teleportation gate. For example, by calibrating the corresponding positions of the reference picture and the landscape elements in the game, the shooting coordinate points are calculated, and a quick teleportation method is provided to allow the player to quickly reach the shooting position corresponding to the target location, thereby further improving the animation effect during the game and enriching the gaming experience.

[0142] This application also provides a game control device. Figure 12 It is a schematic structural diagram of a game control device provided by an embodiment of this application, as Figure 12 shown. The device includes:

[0143] A receiving module 410, configured to receive a reference image sent by a first terminal, where the first terminal is a terminal that controls a first virtual object;

[0144] A display module 420, configured to, in response to the reference image including information about the virtual environment, display a teleportation control in a first game interface, where the first game interface is an interface of a game participated by a second virtual object currently being controlled, and the second virtual object has an association relationship with the first virtual object;

[0145] A teleportation module 430, configured to, in response to a trigger operation on the teleportation control, teleport the second virtual object to a reference position in the virtual environment, where the reference position includes the position of the first virtual object in the virtual environment or the position where the reference image is captured in the virtual environment.

[0146] In a possible implementation manner, the display module 420 is further configured to, in response to receiving the reference image, display a prompt message in the first game interface, where the prompt message is used to prompt that the reference image has been received, and the content of the prompt message includes at least one of the identity identifier corresponding to the first virtual object or the information of the reference image.

[0147] In a possible implementation manner, the display module 420 is further configured to, in response to a trigger operation on the teleportation control, display a second game interface, where the second game interface includes the second virtual object and a teleportation gate, the teleportation gate is located around the second virtual object, and the teleportation gate is used to teleport the second virtual object to the reference position; the display module 420 is further configured to display a third game interface, where the third game interface includes the reference position.

[0148] In a possible implementation, the transmission module 430 is further configured to determine the basic information of the virtual environment based on the spatial coordinate system of the virtual environment, where the basic information includes at least one of marker distribution, shape distribution, or color distribution; obtain the feature information of the reference image, where the feature information includes at least one of marker feature, shape feature, or color feature; determine the target area based on the feature information of the reference image and the basic information corresponding to the virtual environment; and determine the reference position based on the spatial coordinate system and the target area.

[0149] In a possible implementation, the basic information includes marker distribution, and the feature information of the reference image includes marker features. The transmission module 430 is configured to determine the target marker area of the marker in the virtual environment based on the marker features and the marker distribution, where the target marker area is the position area of the marker in the virtual environment; and determine the target area in the target marker area based on the feature information of the reference image and the basic information corresponding to the virtual environment.

[0150] In a possible implementation, the transmission module 430 is configured to obtain the type of the marker, perform a first screening on the marker distribution based on the type of the marker to obtain the initial marker area, where the initial marker area is the distribution area corresponding to the type of the marker; determine the relevant environmental features of the marker, and perform a second screening on the initial marker area based on the relevant environmental features to obtain the target marker area.

[0151] In a possible implementation, the transmission module 430 is configured to determine a plurality of reference planes based on the spatial coordinate system, map the basic information of the virtual environment onto the reference planes to obtain the distribution information of the virtual environment on the reference planes; match the distribution information of the virtual environment on the reference planes with the feature information corresponding to the reference image, and determine the target area within the reference planes based on the matching result.

[0152] In a possible implementation, the feature information includes color features, and the distribution information includes color distribution. The transmission module 430 is configured to perform noise reduction processing on the reference image based on the color features to obtain the standard pixel information included in the reference image, where the standard pixel information includes standard pixel values and the number of standard pixel values; process the color distribution of the reference plane to obtain the standard pixel value distribution of the reference plane; perform a first match between the reference image and the reference plane based on the standard pixel information and the standard pixel value distribution, and determine the initial reference area in the reference plane based on the result of the first match, where the initial reference area is the same as the standard pixel values and the number of standard pixel values included in the reference image; perform a second match between the initial reference area and the reference image based on the color distribution and the color features, and determine the target area in the initial reference area based on the result of the second match.

[0153] In a possible implementation, the transmission module 430 is configured to partition the initial reference region and the reference image into grid cells based on grid partitioning parameters; determine a first pixel value corresponding to the grid cell of the initial reference region based on the color distribution, and determine a second pixel value corresponding to the grid cell of the reference image based on the color feature; and in response to the number of grid cells where the first pixel value of the initial reference region is the same as the second pixel value of the reference image being greater than or equal to a first threshold, determine the initial reference region as the target region.

[0154] In a possible implementation, the reference image and the reference plane include virtual elements, the feature information includes shape features, the distribution information includes shape distribution, and the transmission module 430 is configured to determine a first contour of the virtual element based on the shape feature of the reference image, and determine a second contour of the virtual element based on the distribution information of the virtual environment on the reference plane; and in response to the coincidence rate of the first contour and the second contour being greater than or equal to a second threshold, determine the region of the second contour within the reference plane as the target region.

[0155] In a possible implementation, the transmission module 430 is configured to determine an adjustment angle of the spatial coordinate system based on the position of the target region in the spatial coordinate system; adjust the spatial coordinate system based on the adjustment angle to obtain a reference coordinate system, where the reference plane where the target region is located is parallel or coincident with the plane formed by a first reference direction and a second reference direction in the reference coordinate system; determine the coordinates of the target region in the first reference direction and the second reference direction of the reference coordinate system, and determine the coordinates of the reference position in the first direction and the second direction of the spatial coordinate system based on the adjustment angle, the coordinates in the first reference direction, and the coordinates in the second reference direction, where the first direction is obtained from the first reference direction based on the adjustment angle, and the second direction is obtained from the second reference direction based on the adjustment angle.

[0156] In a possible implementation, the reference image and the reference plane include virtual elements, and the transmission module 430 is further configured to determine a reference virtual element among the virtual elements of the reference image, and obtain a first ratio of the reference virtual element to the reference image; determine a second ratio of the reference virtual element to the target region in the target region; and in response to the first ratio and the second ratio being different, move the reference plane where the target region is located along a third reference direction of the reference coordinate system until the first ratio and the second ratio are the same; obtain the moving distance of the reference plane where the target region is located along the third reference direction of the reference coordinate system, and determine the coordinates of the reference position in the third direction of the spatial coordinate system based on the moving distance, the adjustment angle, and the position of the reference virtual element in the spatial coordinate system, where the third direction is perpendicular to the plane formed by the first direction and the second direction, and the third direction is obtained from the third reference direction based on the adjustment angle.

[0157] In a possible implementation, the transmission module 430 is further configured to determine a target point within a target area; determine a first vector of the target point and a second vector of a reference position based on a spatial coordinate system; and determine an orientation angle of the reference position by using the first vector and the second vector.

[0158] In a possible implementation, the transmission module 430 is further configured to, in response to detecting that a reference image includes initial position information, determine a reference position based on the initial position information, where the initial position information is used to characterize the position of a first virtual object in a virtual environment or the position where the reference image is captured in the virtual environment.

[0159] The device provided in the embodiments of the present application, after receiving a reference image, for the case where the reference image includes information of a virtual environment, by displaying a transmission control and directly transmitting a second virtual object to the reference position after the transmission control is triggered, can save the time for the second virtual object to find the reference position in the virtual scene, and improve the interactivity and gaming experience of the game.

[0160] It should be understood that when implementing its functions, the above-provided device is only illustrated by dividing it into the above function modules. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the device provided in the above embodiments and the method embodiments belong to the same concept, and the specific implementation process can be seen in the method embodiments, which will not be elaborated here.

[0161] Figure 13 The block diagram of a terminal device 1100 provided in an exemplary embodiment of the present application is shown. The terminal device 1100 can be any electronic device product that can perform human-computer interaction with a user in one or more ways such as a keyboard, a touchpad, a remote control, voice interaction, or a handwriting device. For example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car machine, a smart TV, a smart speaker, a smart watch, etc.

[0162] Generally, the terminal device 1100 includes a processor 1101 and a memory 1102.

[0163] The processor 1101 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. The processor 1101 may be implemented in at least one of the following hardware forms: DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1101 may further include an AI (Artificial Intelligence) processor, which is used to process computational operations related to machine learning.

[0164] The memory 1102 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 1102 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1102 is used to store at least one instruction, and the at least one instruction is to be executed by the processor 1101 to implement the game control method provided in the method embodiments of this application.

[0165] In some embodiments, the terminal device 1100 may further optionally include: a peripheral device interface 1103 and at least one peripheral device. The processor 1101, the memory 1102, and the peripheral device interface 1103 may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1103 through a bus, signal lines, or a circuit board. Specifically, the peripheral devices include at least one of the following: a radio frequency circuit 1104, a display screen 1105, a camera module 1106, an audio circuit 1107, and a power supply 1108.

[0166] The peripheral device interface 1103 can be used to connect at least one I / O (Input / Output) related peripheral device to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, the memory 1102, and the peripheral device interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102, and the peripheral device interface 1103 can be implemented on a separate chip or circuit board, and this embodiment does not limit this.

[0167] The radio frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1104 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1104 converts an electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and so on. The radio frequency circuit 1104 can communicate with other terminal devices through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, generations of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1104 can also include a circuit related to NFC (Near Field Communication), and this application does not limit this.

[0168] The display screen 1105 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 also has the ability to collect touch signals on or above the surface of the display screen 1105. The touch signals can be input to the processor 1101 as control signals for processing. At this time, the display screen 1105 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1105, which is disposed on the front panel of the terminal device 1100; in other embodiments, there may be at least two display screens 1105, which are respectively disposed on different surfaces of the terminal device 1100 or are in a folded design; in other embodiments, the display screen 1105 may be a flexible display screen, which is disposed on a curved surface or a folding surface of the terminal device 1100. Even further, the display screen 1105 can also be set to an irregular non-rectangular shape, that is, an irregular-shaped screen. The display screen 1105 can be prepared using materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0169] The camera module 1106 is used to capture images or videos. Optionally, the camera module 1106 includes a front camera and a rear camera. Generally, the front camera is disposed on the front panel of the terminal device 1100, and the rear camera is disposed on the back of the terminal device 1100. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to implement the function of background blurring by fusing the main camera and the depth-of-field camera, panoramic shooting by fusing the main camera and the wide-angle camera, and VR (Virtual Reality) shooting function or other fused shooting functions. In some embodiments, the camera module 1106 may further include a flash. The flash can be a single-color-temperature flash or a two-color-temperature flash. A two-color-temperature flash refers to a combination of a warm-light flash and a cold-light flash, which can be used for light compensation under different color temperatures.

[0170] The audio circuit 1107 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for input to the processor 1101 for processing, or input to the radio frequency circuit 1104 to implement voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal device 1100. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1101 or the radio frequency circuit 1104 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for uses such as ranging. In some embodiments, the audio circuit 1107 may further include a headphone jack.

[0171] The power supply 1108 is used to supply power to each component in the terminal device 1100. The power supply 1108 may be alternating current, direct current, a primary battery or a rechargeable battery. When the power supply 1108 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0172] In some embodiments, the terminal device 1100 further includes one or more sensors 1110. The one or more sensors 1110 include but are not limited to: an acceleration sensor 1111, a gyroscope sensor 1112, a pressure sensor 1113, an optical sensor 1114, and a proximity sensor 1115.

[0173] The acceleration sensor 1111 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established with the terminal device 1100. For example, the acceleration sensor 1111 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 1101 can control the display screen 1105 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 can also be used for game or user motion data collection.

[0174] The gyroscope sensor 1112 can detect the body direction and rotation angle of the terminal device 1100. The gyroscope sensor 1112 can cooperate with the acceleration sensor 1111 to collect the 3D actions of the user on the terminal device 1100. According to the data collected by the gyroscope sensor 1112, the processor 1101 can implement the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0175] The pressure sensor 1113 can be disposed on the side frame of the terminal device 1100 and / or the lower layer of the display screen 1105. When the pressure sensor 1113 is disposed on the side frame of the terminal device 1100, it can detect the holding signal of the user on the terminal device 1100, and the processor 1101 performs left and right hand recognition or quick operation according to the holding signal collected by the pressure sensor 1113. When the pressure sensor 1113 is disposed on the lower layer of the display screen 1105, the processor 1101 controls the operable controls on the UI interface according to the pressure operation of the user on the display screen 1105. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0176] The optical sensor 1114 is used to collect the ambient light intensity. In one embodiment, the processor 1101 can control the display brightness of the display screen 1105 according to the ambient light intensity collected by the optical sensor 1114. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the display screen 1105 is decreased. In another embodiment, the processor 1101 can also dynamically adjust the shooting parameters of the camera assembly 1106 according to the ambient light intensity collected by the optical sensor 1114.

[0177] The proximity sensor 1115, also known as a distance sensor, is usually disposed on the front panel of the terminal device 1100. The proximity sensor 1115 is used to collect the distance between the user and the front of the terminal device 1100. In one embodiment, when the proximity sensor 1115 detects that the distance between the user and the front of the terminal device 1100 is gradually decreasing, the processor 1101 controls the display screen 1105 to switch from the lit screen state to the off-screen state; when the proximity sensor 1115 detects that the distance between the user and the front of the terminal device 1100 is gradually increasing, the processor 1101 controls the display screen 1105 to switch from the off-screen state to the lit screen state.

[0178] Those skilled in the art can understand that Figure 13 the structure shown in does not limit the terminal device 1100, and may include more or fewer components than shown in the figure, or combine some components, or adopt different component arrangements.

[0179] Figure 14It is a schematic structural diagram of the server provided by the embodiment of the present application. The server 1200 may vary greatly due to different configurations or performances, and may include one or more processors 1201 and one or more memories 1202. Among them, at least one program code is stored in the one or more memories 1202, and the at least one program code is loaded and executed by the one or more processors 1201 to implement the game control methods provided by the above various method embodiments. Of course, the server 1200 may also have components such as wired or wireless network interfaces, keyboards, and input / output interfaces for input / output. The server 1200 may also include other components for implementing device functions, which will not be elaborated here.

[0180] In an exemplary embodiment, a computer-readable storage medium is also provided. At least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to enable a computer to implement any of the above game control methods.

[0181] Optionally, the above computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0182] In an exemplary embodiment, a computer program or a computer program product is also provided. At least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor to enable a computer to implement any of the above game control methods.

[0183] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals involved in the present application are all authorized by users or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions. For example, the reference images, reference positions, etc. involved in the present application are obtained under full authorization.

[0184] It should be understood that "a plurality of" mentioned in this article means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0185] The foregoing are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application shall be included within the protection scope of the present application.

Claims

1. A method for game control, characterized in that, The method includes: Receiving a reference image sent by a first terminal, where the first terminal is a terminal that controls a first virtual object; In response to the reference image containing information about a virtual environment, displaying a teleportation control in a first game interface, where the first game interface is an interface of a game participated by a second virtual object currently controlled, and the second virtual object has an associated relationship with the first virtual object; In response to a trigger operation on the teleportation control, teleporting the second virtual object to a reference position in the virtual environment, where the reference position includes the position of the first virtual object in the virtual environment or the position where the reference image is captured in the virtual environment.

2. The method according to claim 1, characterized in that, After receiving the reference image sent by the first terminal, it further includes: In response to receiving the reference image, displaying a prompt message in the first game interface, where the prompt message is used to prompt the reception of the reference image, and the content of the prompt message includes at least one of the identity identifier corresponding to the first virtual object or the information of the reference image.

3. The method according to claim 1, characterized in that, Before teleporting the second virtual object to the reference position in the virtual environment in response to the trigger operation on the teleportation control, it further includes: In response to the trigger operation on the teleportation control, displaying a second game interface, where the second game interface includes the second virtual object and a portal, and the portal is located around the second virtual object and is used to teleport the second virtual object to the reference position; The method further includes: displaying a third game interface, where the third game interface includes the reference position.

4. The method according to any one of claims 1-3, characterized in that, Before teleporting the second virtual object to the reference position in the virtual environment in response to the trigger operation on the teleportation control, it further includes: Determining basic information of the virtual environment based on a spatial coordinate system of the virtual environment, where the basic information includes at least one of marker distribution, shape distribution, or color distribution; Obtaining feature information of the reference image, where the feature information includes at least one of marker features, shape features, or color features; Determining a target area based on the feature information of the reference image and the basic information corresponding to the virtual environment; Determining the reference position based on the spatial coordinate system and the target area.

5. The method according to claim 4, wherein The basic information includes the marker distribution, and the feature information of the reference image includes the marker features. Determining the target area based on the feature information of the reference image and the basic information corresponding to the virtual environment includes: Determining a target marker area of the marker in the virtual environment based on the marker features and the marker distribution, where the target marker area is the position area of the marker in the virtual environment; In the target marker area, determining the target area based on the feature information of the reference image and the basic information corresponding to the virtual environment.

6. The method according to claim 5, characterized in that, Determining the target marker area of the marker in the virtual environment based on the marker features and the marker distribution includes: Obtain the type of the marker, perform a first screening on the marker distribution based on the type of the marker to obtain an initial marker region, where the initial marker region is the distribution region corresponding to the type of the marker; Determine the relevant environmental characteristics of the marker, and perform a second screening on the initial marker region based on the relevant environmental characteristics to obtain the target marker region.

7. The method according to claim 4, characterized in that The determining the target region based on the feature information of the reference image and the basic information corresponding to the virtual environment includes: Determine a plurality of reference planes based on the spatial coordinate system, map the basic information of the virtual environment onto the reference planes to obtain the distribution information of the virtual environment on the reference planes; Match the distribution information of the virtual environment on the reference planes with the feature information corresponding to the reference image, and determine the target region within the reference planes based on the matching result.

8. The method according to claim 7, wherein The feature information includes the color feature, the distribution information includes the color distribution, and the matching the distribution information of the virtual environment on the reference planes with the feature information corresponding to the reference image and determining the target region within the reference planes based on the matching result includes: Based on the color feature, perform noise reduction processing on the reference image to obtain the standard pixel information included in the reference image, where the standard pixel information includes the standard pixel value and the quantity of the standard pixel value; Process the color distribution of the reference plane to obtain the standard pixel value distribution of the reference plane; Based on the standard pixel information and the standard pixel value distribution, perform a first match between the reference image and the reference plane, and determine an initial reference region in the reference plane based on the result of the first match, where the initial reference region is the same as the standard pixel value and the quantity of the standard pixel value included in the reference image; Based on the color distribution and the color feature, perform a second match between the initial reference region and the reference image, and determine the target region within the initial reference region based on the result of the second match.

9. The method according to claim 8, wherein The performing a second match between the initial reference region and the reference image based on the color distribution and the color feature and determining the target region within the initial reference region based on the result of the second match includes: Perform grid division on the initial reference region and the reference image based on the grid division parameters to obtain grid cells; Determine the first pixel value corresponding to the grid cell of the initial reference region based on the color distribution, and determine the second pixel value corresponding to the grid cell of the reference image based on the color feature; In response to the quantity of the grid cells where the first pixel value of the initial reference region is the same as the second pixel value of the reference image being greater than or equal to the first threshold, determine the initial reference region as the target region.

10. The method according to claim 7, characterized in that, The reference image and the reference plane include virtual elements, the feature information includes shape features, the distribution information includes shape distribution, and matching the distribution information of the virtual environment in the reference plane with the corresponding feature information of the reference image, and determining the target area in the reference plane based on the matching result includes: Determining a first contour of the virtual element based on the shape features of the reference image, and determining a second contour of the virtual element based on the distribution information of the virtual environment in the reference plane; In response to the coincidence rate of the first contour and the second contour being greater than or equal to a second threshold, determining the area of the second contour in the reference plane as the target area.

11. The method according to claim 4, characterized in that The determining the reference position based on the spatial coordinate system and the target area includes: Determining an adjustment angle of the spatial coordinate system based on the position of the target area in the spatial coordinate system; Adjusting the spatial coordinate system based on the adjustment angle to obtain a reference coordinate system, and the reference plane where the target area is located is parallel or coincident with the plane formed by a first reference direction and a second reference direction in the reference coordinate system; Determining the coordinates of the target area in the first reference direction and the second reference direction of the reference coordinate system, and determining the coordinates of the reference position in the first direction and the second direction of the spatial coordinate system based on the adjustment angle, the coordinates in the first reference direction and the second reference direction, where the first direction is obtained from the first reference direction based on the adjustment angle, and the second direction is obtained from the second reference direction based on the adjustment angle.

12. The method according to claim 11, wherein The reference image and the reference plane include virtual elements, and the determining the reference position based on the spatial coordinate system and the target area further includes: Determining a reference virtual element in the virtual element of the reference image, and obtaining a first ratio of the reference virtual element to the reference image; Determining a second ratio of the reference virtual element to the target area in the target area; In response to the first ratio and the second ratio being different, moving the reference plane where the target area is located along a third reference direction of the reference coordinate system until the first ratio and the second ratio are the same; Obtaining the moving distance of the reference plane where the target area is located along the third reference direction of the reference coordinate system, and determining the coordinates of the reference position in the third direction of the spatial coordinate system based on the moving distance, the adjustment angle, and the position of the reference virtual element in the spatial coordinate system, where the third direction is perpendicular to the plane formed by the first direction and the second direction, and the third direction is obtained from the third reference direction based on the adjustment angle.

13. The method according to claim 12, wherein The determining the reference position based on the spatial coordinate system and the target area further includes: Determining a target point within the target area; Determining a first vector of the target point and a second vector of the reference position based on the spatial coordinate system; Using the first vector and the second vector to determine the orientation angle of the reference position.

14. The method according to any one of claims 1 to 3, characterized in that, After receiving the reference image sent by the first terminal, it further includes: In response to detecting that the reference image contains initial position information, determining the reference position based on the initial position information, where the initial position information is used to represent the position of the first virtual object in the virtual environment or the position where the reference image is captured in the virtual environment.

15. A game control device, characterized in that, The device includes: A receiving module, configured to receive a reference image sent by a first terminal, where the first terminal is a terminal that controls a first virtual object; A display module, configured to, in response to the reference image containing information about the virtual environment, display a teleportation control in a first game interface, where the first game interface is an interface of a game participated by a second virtual object currently controlled, and the second virtual object has an associated relationship with the first virtual object; A teleportation module, configured to, in response to a trigger operation on the teleportation control, teleport the second virtual object to a reference position in the virtual environment, where the reference position includes the position of the first virtual object in the virtual environment or the position where the reference image is captured in the virtual environment.

16. A computer device, characterized in that, The computer device includes a processor and a memory, and at least one program code is stored in the memory and is loaded and executed by the processor to enable the computer device to implement the game control method according to any one of claims 1 to 14.

17. A computer-readable storage medium, characterized in that, At least one program code is stored in the computer-readable storage medium and is loaded and executed by a processor to enable a computer to implement the game control method according to any one of claims 1 to 14.

18. A computer program product, characterized in that, At least one computer instruction is stored in the computer program product and is loaded and executed by a processor to enable a computer to implement the game control method according to any one of claims 1 to 14.