Virtual item placement method and device, equipment and storage medium

Through perspective switching and response operations, the accurate placement of virtual props in the three-dimensional virtual environment is achieved, which solves the problem of single and inaccurate placement of virtual props in the existing technology and improves the flexibility and efficiency of virtual prop placement.

CN118615700APending Publication Date: 2024-09-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310246057.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the existing technology, the placement method of virtual props in the three-dimensional virtual environment is single and lacks flexibility and accuracy. It is especially difficult to place accurately in complex terrain, which affects the game experience.

Method used

By switching the viewing angle from the first perspective to the second perspective, the screen of the three-dimensional virtual environment from the second perspective is displayed, and the placement operation of the virtual props is responded to in the screen to achieve accurate placement of the virtual props.

Benefits of technology

It enriches the placement methods of virtual props, improves the accuracy and real-time performance of placement, and makes the placement of virtual props more flexible and efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118615700A
    Figure CN118615700A
Patent Text Reader

Abstract

The invention discloses a virtual item placement method and device, equipment and a storage medium, and relates to the technical field of computers and the Internet. The method comprises the following steps: displaying a first environment picture obtained by observing a three-dimensional virtual environment from a first visual angle; under the condition of switching to the placement state of the virtual prop, displaying a second environment picture obtained by observing the three-dimensional virtual environment from a second visual angle, the second visual angle being different from the first visual angle; and in response to a placement operation of the virtual item, placing the virtual item in the three-dimensional virtual environment displayed by the second environment picture. According to the method and the device, the placement modes of the virtual props are enriched, and the real-time performance and the accuracy of position placement of the virtual props 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 and Internet technology, and in particular to a method, device, equipment and storage medium for placing virtual props. Background Art

[0002] Generally speaking, users can control virtual objects to place virtual props in the virtual environment.

[0003] In related technologies, a two-dimensional plane map corresponding to a virtual environment (a picture obtained by parallel projection of the virtual environment) is called a mini-map. Users can place virtual props at a target location by clicking on the target location in the mini-map.

[0004] In the above-mentioned related technologies, the placement method of virtual props is relatively simple. Summary of the invention

[0005] The embodiment of the present application provides a method, device, equipment and storage medium for placing virtual props. The technical solution is as follows:

[0006] According to one aspect of an embodiment of the present application, a method for placing a virtual prop is provided, the method comprising:

[0007] Displaying a first environment picture obtained by observing the three-dimensional virtual environment from a first perspective;

[0008] When the virtual prop is switched to a placement state, a second environment picture obtained by observing the three-dimensional virtual environment from a second perspective is displayed, where the second perspective is different from the first perspective;

[0009] In response to the placement operation of the virtual prop, the virtual prop is placed in the three-dimensional virtual environment displayed on the second environment screen.

[0010] According to one aspect of an embodiment of the present application, a device for placing a virtual prop is provided, the device comprising:

[0011] A picture display module, used for displaying a first environment picture obtained by observing the three-dimensional virtual environment from a first perspective;

[0012] The picture display module is further used to display a second environment picture obtained by observing the three-dimensional virtual environment from a second perspective when switching to the placement state of the virtual prop, and the second perspective is different from the first perspective;

[0013] The prop placement module is used to place the virtual prop in the three-dimensional virtual environment displayed in the second environment screen in response to the placement operation of the virtual prop.

[0014] According to one aspect of an embodiment of the present application, a terminal device is provided, the terminal device comprising a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the above method.

[0015] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above method.

[0016] According to one aspect of an embodiment of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a terminal device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the terminal device executes the above method.

[0017] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0018] When the virtual prop is switched to the placement state, the first perspective is switched to the second perspective, and a second environment screen in which the second perspective observes the three-dimensional virtual environment is displayed. At this time, in response to the placement operation of the virtual prop, the virtual prop is placed in the three-dimensional virtual environment displayed in the second environment screen. Therefore, the technical solution provided by the present application enriches the placement method of the virtual prop.

[0019] In addition, since the virtual props are placed in the three-dimensional virtual environment in response to the placement operation of the virtual props directly in the second environment screen, the placement of the virtual props is more accurate. Therefore, the technical solution provided by the present application also improves the accuracy and real-time performance of the virtual props placement. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;

[0021] Figure 2 is a schematic diagram of a method for placing virtual props provided by an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of a method for placing virtual props provided by another embodiment of the present application;

[0023] Figure 4 is a flow chart of a method for placing virtual props provided by an embodiment of the present application;

[0024] Figure 5 is a flow chart of a method for placing virtual props provided by another embodiment of the present application;

[0025] Figure 6 is a flow chart of a method for placing virtual props provided by another embodiment of the present application;

[0026] Figure 7 is a schematic diagram of placing virtual props provided by an embodiment of the present application;

[0027] Figure 8 is a flow chart of a method for placing virtual props provided by another embodiment of the present application;

[0028] Fig. 9 is a schematic diagram of a setting position provided by an embodiment of the present application;

[0029] Fig.10 It is a two-dimensional plane schematic diagram of the placement position of a virtual prop provided by an embodiment of the present application;

[0030] Fig.11 is a block diagram of a method for placing virtual props provided by an embodiment of the present application;

[0031] Fig.12 is a block diagram of a virtual prop placement device provided by an embodiment of the present application;

[0032] Fig.13 is a block diagram of a virtual prop placement device provided by another embodiment of the present application;

[0033] Fig.14 This is a block diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0035] Before introducing the technical solution of the present application, some terms involved in the present application are explained. The following related explanations can be combined arbitrarily with the technical solution of the embodiment of the present application as optional solutions, and they all belong to the protection scope of the embodiment of the present application. The embodiment of the present application includes at least part of the following contents.

[0036] Virtual environment: is a virtual environment displayed (or provided) when an application is running on a terminal device. The virtual environment can be a simulation of the real world, a semi-simulated and semi-fictional three-dimensional world, or a purely fictional three-dimensional world. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment. Optionally, the virtual environment is also used for a virtual environment battle between at least two virtual objects, and there are virtual resources in the virtual environment that can be used by at least two virtual objects. Optionally, the virtual environment includes symmetrical lower left and upper right corner areas, and virtual objects belonging to two hostile camps occupy one of the areas respectively, and the victory goal is to destroy the target building / stronghold / base / crystal deep in the opponent's area.

[0037] Virtual object: refers to movable objects and inactive objects in a virtual environment. The movable object may be at least one of a virtual person, a virtual animal, and an animated character. The inactive object may be at least one of a virtual building, a virtual plant, and a virtual terrain. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual object may be a three-dimensional virtual model, each virtual object having its own shape and volume in the three-dimensional virtual environment, and occupying a portion of the space in the three-dimensional virtual environment. The activities of the virtual object include, but are not limited to: adjusting body posture, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, and throwing. Optionally, the virtual object is a three-dimensional character built based on three-dimensional human skeleton technology, and the virtual object realizes different external images by wearing different skins. In some implementations, the virtual object may also be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in the embodiments of the present application. Exemplarily, according to different ways of controlling the virtual object, the virtual object may be divided into a user-controlled virtual object and a server-controlled virtual object, wherein the user-controlled virtual object is an object that is movable in the virtual environment and is controlled by the client. The server-controlled virtual object is a virtual object controlled by an automatic control algorithm or an artificial intelligence program on a client or server. The server-controlled virtual object includes movable objects and inactive objects in a virtual environment. Exemplarily, the inactive object can respond to or affect the activity of the movable object, for example, the movable object can destroy the inactive object, or, when the movable object enters the inactive object, the movable object enters a stealth state. Exemplarily, the virtual object in the present application is a virtual object controlled by a client.

[0038] User Interface (UI) controls: Any visual controls or elements that can be seen on the user interface of an application, such as pictures, input boxes, text boxes, buttons, labels and other controls. Some of these UI controls respond to user operations. For example, the entry controls on the entry interface related to the first battle mode can control the user account to enter the game match in the first battle mode. For another example, the viewing control can control the display information of the highlight moments historically achieved by the user account in the first battle mode. The UI controls involved in the embodiments of the present application include, but are not limited to: entry controls and viewing controls.

[0039] Please refer to Figure 1 , which shows a schematic diagram of a solution implementation environment provided by an embodiment of the present application. The solution implementation environment can realize a control system for a virtual object. The solution implementation environment may include: a terminal device 10 and a server 20.

[0040] The terminal device 10 may be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia player, a wearable device, a PC (Personal Computer), a vehicle-mounted terminal, etc. A client of a target application (such as a game application) may be installed in the terminal device 10. Optionally, the target application may be an application that needs to be downloaded and installed, or may be a click-to-use application, which is not limited in the embodiments of the present application.

[0041] In the embodiment of the present application, the target application can be any one of a simulation program, a battle royale shooting game, a virtual reality (VR) application, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooter game (FPS), a multiplayer gunfight survival game, a third-person shooter game (TPS), a multiplayer online tactical competition (MOBA) game, a strategy game (SLG), a social application, and an interactive entertainment application. In the present embodiment, the target application is a third-person shooter game. In addition, for different applications, the battle modes provided by them will be different, and the game forms under different battle modes will also be different, which can be designed according to actual needs, and the embodiment of the present application does not limit this. Optionally, a client of the above-mentioned application is running in the terminal device 10.

[0042] Among them, the above-mentioned virtual environment is the scene displayed (or provided) when the client of the target application (such as a game application) runs on the terminal device. The virtual environment refers to the scene created for virtual objects to carry out activities (such as game competitions), such as virtual houses, virtual islands, virtual maps, etc. The virtual environment can be a simulation environment of the real world, a semi-simulated and semi-fictitious environment, or a purely fictitious environment. The virtual environment can be a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment, which is not limited in the embodiments of the present application.

[0043] The above virtual objects refer to virtual characters, virtual vehicles, virtual items, etc. controlled by the user account in the target application, and this application does not limit this. Taking the target application as a third-person shooter game application as an example, the virtual object refers to the game character controlled by the user account in the game application.

[0044] The server 20 is used to provide background services for the client of the target application installed and running in the terminal device 10. For example, the server 20 can be the background server of the above-mentioned game application. The server 20 can be a single server, or a server cluster composed of multiple servers, or a cloud computing service center. Optionally, the server 20 provides background services for the target applications in multiple terminal devices 10 at the same time.

[0045] In some embodiments, the terminal device 10 includes a first terminal device (not shown in the figure) and a second terminal device (not shown in the figure), wherein a first client of a target application is installed on the first terminal device, a second client of a target application is installed on the second terminal device, a first user account of a first user controls a first virtual object (or referred to as a master virtual object) in the first client of the target application, and a second user account of a second user controls a second virtual object in the second client of the target application. Optionally, the first virtual object and the second virtual object are in the same virtual environment. Optionally, the first virtual object and the second virtual object may belong to the same camp, the same team, the same organization, have a friend relationship or have a temporary communication permission, in which case the second virtual object may also be referred to as a friendly virtual object. Optionally, the first virtual object and the second virtual object may belong to different camps, different teams, different organizations or have a hostile relationship, in which case the second virtual object may also be referred to as an enemy virtual object. Optionally, the clients installed on the first terminal device and the second terminal device are the same, or the clients installed on the two terminals are the same type of clients on different operating system platforms (Android or IOS). The first terminal device may generally refer to one of a plurality of terminal devices, and the second terminal device may generally refer to another one of the plurality of terminal devices. This embodiment only takes the first terminal device and the second terminal device as examples.

[0046] The terminal device 10 and the server 20 can communicate with each other through the network.

[0047] Please refer to Figure 2 , which shows a schematic diagram of a method for placing virtual props provided by an embodiment of the present application.

[0048] like Figure 2 As shown in sub-figure a of , it shows a schematic diagram of perspective switching in the method of placing virtual props. Figure 2 As shown in sub-figure b of , it shows a block diagram of the method for placing virtual props. Optionally, in a normal game match, the camera shoots the three-dimensional virtual environment from a first perspective to obtain a first environment screen. The terminal device displays the first environment screen, and can control the master virtual object in response to the control operation of the master virtual object on the first environment screen. Without entering the placement state of the virtual props or exiting the placement state of the virtual props, the camera at the first position shoots the three-dimensional virtual environment from a first perspective and the first environment screen is displayed by the terminal device. At this time, the terminal device can display the corresponding screen in response to other user operations.

[0049] Of course, when entering the placement state of the virtual props, the position of the camera is changed from the first position to the second position, and the three-dimensional virtual environment is photographed from the second perspective to obtain the second environment picture. Alternatively, multiple cameras are set in advance in the three-dimensional virtual environment, including a camera of the first perspective located at the first position and a camera of the second perspective located at the second position. At this time, the terminal device places the virtual props in the three-dimensional virtual environment displayed by the second environment picture in response to the placement operation of the virtual props. Therefore, the placement of the props and the three-dimensional virtual environment are closely combined, and the placement position of the virtual props is directly displayed. The position where the virtual props are placed at the placement position is also the position where the virtual props are placed, which reflects "what you see is what you get". The player sees which position in the display screen and performs a placement operation on that position, and then the virtual props can be placed at that position.

[0050] like Figure 3 , which shows a schematic diagram of a method for placing virtual props provided by another embodiment of the present application. Figure 3 Sub-figures a and b of FIG. 1 are schematic diagrams showing a method for placing virtual props provided in the related art. Figure 3 Sub-figure c of FIG. 1 is a schematic diagram of a method for placing virtual props in the present application. Figure 3 As shown in sub-picture a of , it belongs to the sliding screen aiming type. The user needs to slide the screen with his finger, adjust the direction of the crosshair to aim at the position of the object, and then click the interactive button to place the object in the scene. This interactive method can only meet the basic needs of players to place objects in the field of view. When players need to place multiple objects quickly, they need to repeatedly aim and click the setting button, which is a cumbersome operation. Figure 3 As shown in sub-picture b of , in the two-dimensional plane placement type, players can directly use their fingers to select locations on the 2D map projected by the scene, and then place them uniformly using the placement button. This type of interaction allows players to place multiple objects in batches relatively quickly, but it is not possible to accurately place objects in complex terrain with more than two layers of terrain. In addition, opening the two-dimensional plane map will also block the player's current field of view, affecting the gaming experience. Figure 3 As shown in sub-figure c, by adjusting the viewing angle height of the camera, the current scene can be overviewed in a relatively suitable position. When an object needs to be placed, it is only necessary to click the corresponding position on the screen to complete the setting. If multiple objects are set, multiple clicks are required, making the act of setting the target object become what you see is what you get, which reduces the operating threshold for players.

[0051] Please refer to Figure 4 , which shows a flowchart of a method for placing virtual props provided by an embodiment of the present application. The execution subject of each step of the method may be Figure 1The terminal device 10 in the implementation environment of the scheme shown, for example, the execution subject of each step can be the client of the target application. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as the "client". The method can include at least one of the following steps (310-330):

[0052] Step 310: display a first environment picture obtained by observing the three-dimensional virtual environment from a first perspective.

[0053] Three-dimensional virtual environment: a three-dimensional virtual environment displayed (or provided) when the above-mentioned target application is running on a terminal device. The virtual environment can be a simulation of the real world, a semi-simulated and semi-fictitious three-dimensional world, or a purely fictitious three-dimensional world. This application does not limit the types of objects included in the specific three-dimensional virtual environment. Optionally, at least one three-dimensional virtual environment is provided for the above-mentioned target application. Optionally, the above-mentioned master virtual object (a virtual object controlled by the first user account on the first client) and the second virtual object (a virtual object controlled by the second user account on the second client) are active in the three-dimensional virtual environment. Optionally, the master virtual object and the second virtual object need to complete the target task. Optionally, the first user account can control the master virtual object to place virtual props.

[0054] First perspective: a perspective related to the perspective of the master virtual object in a three-dimensional virtual environment. In some embodiments, the first perspective is the perspective of the master virtual object (first-person perspective). Optionally, a first virtual camera (i.e., the camera in the above embodiment) is set at the head of the master virtual object, and the head of the master virtual object is considered to be the position of the first virtual camera, and the head direction of the master virtual object is the direction of the first virtual camera, so the perspective of the first virtual camera is considered to be the first perspective. In some embodiments, the first perspective is considered to be the third-person perspective of the master virtual object. Optionally, a first virtual camera is set at a position other than the head of the master virtual object, and the first virtual camera can shoot the head of the master virtual object, and the head direction of the master virtual object is the direction of the first virtual camera, and the perspective of the first virtual camera is considered to be the first perspective. Optionally, the first perspective is a perspective that changes according to the position of the master virtual object. Optionally, the direction of the first perspective does not change with the change of the direction of the master virtual object, but the position of the first virtual camera corresponding to the first perspective always changes according to the position of the master virtual object. Optionally, the master virtual object is always displayed in the first perspective. In other embodiments, the first perspective is a perspective that is independent of the perspective of the master virtual object in the three-dimensional virtual environment. Optionally, the first perspective is the perspective of a first virtual camera at a specific position and orientation set by the target application, and the position and orientation of the first virtual camera never change, that is, the first perspective never changes.

[0055] In some embodiments, when the first perspective is a perspective related to the perspective of the master virtual object in the three-dimensional virtual environment, the first perspective is rotated in response to the user's first perspective rotation operation. Optionally, the first perspective rotation operation is an operation for rotating the first perspective. Optionally, the operation type of the first perspective rotation operation includes but is not limited to click, slide, drag and other operations. The specific operation type is not limited in this application. In some embodiments, the picture obtained by observing the three-dimensional virtual environment from the first perspective is used as the first environment picture. Optionally, the first perspective is the perspective of the first virtual camera, and the picture taken by the first virtual camera is used as the first environment picture. Optionally, when the first perspective changes, the picture obtained by observing the three-dimensional virtual environment picture through the first perspective will also change.

[0056] In some embodiments, the first environment screen is a real-time screen shot for the three-dimensional virtual environment. Optionally, since the virtual object controlled by the user account is active in the three-dimensional virtual environment, the three-dimensional virtual environment will include virtual objects and traces of the virtual objects' activities. In this case, the first environment screen is a screen presenting the real-time three-dimensional virtual environment state.

[0057] Step 320, when switching to the placement state of the virtual prop, displaying a second environment picture obtained by observing the three-dimensional virtual environment from a second perspective, where the second perspective is different from the first perspective.

[0058] Virtual props: are considered to be props provided to virtual objects. Optionally, virtual props include attack virtual props, protection virtual props, auxiliary virtual props, and the like. Specifically, the virtual props are auxiliary virtual props as an example for explanation. Auxiliary virtual props can assist virtual objects in carrying out related activities, such as completing specific tasks. Optionally, auxiliary virtual props are trap props, such as animal traps, mines, pits, mounds, etc. The main control virtual props can deploy auxiliary virtual props in a three-dimensional virtual environment to help attack enemy virtual objects or artificial intelligence virtual objects. Optionally, the enemy virtual object is an object in a different camp or team from the main control virtual object. Optionally, the artificial intelligence virtual object is a virtual object that is not controlled by a user account but is controlled by a terminal device or server according to a specific operating logic.

[0059] Placement state: a state in which a virtual item can be placed. This application does not limit how to enter the placement state. Optionally, the placement state is entered when a specific condition is met. In some embodiments, the specific condition includes receiving an operation to enter the placement state, and then switching to the placement state in response to the operation to enter the placement state. Optionally, the operation to enter the placement state is an operation for a UI control to enter the placement state of a virtual item. Of course, the operation to enter the placement state can also be an operation for a virtual item. For example, when a virtual item is double-clicked, it is switched to the placement state of the virtual item. Optionally, the operation type of entering the placement state operation includes but is not limited to operations such as clicking, sliding, and dragging, and this application does not limit the specific operation type. In other embodiments, the specific condition includes that the master virtual object is in a specific state, and then the master virtual object enters the placement state when it is in a specific state. Optionally, the specific state includes that the attribute value of the master virtual object meets the condition, such as the health value of the master virtual object is lower than the health threshold, the attack value is lower than the attack value threshold, the defense value is lower than the defense value threshold, the master virtual object is in a crawling state, a stealth state, and the like. When it is detected that the master virtual object is in a specific state, it switches to the placement state of the virtual props.

[0060] Second perspective: a perspective different from the first perspective. Optionally, the second perspective is the perspective of the second virtual camera in the three-dimensional virtual environment. Optionally, the second virtual camera and the first virtual camera are different cameras, and the second perspective is determined according to the position and orientation of the second virtual camera. In some embodiments, the second perspective is determined according to the first perspective. Optionally, the range of the three-dimensional virtual environment seen by the second perspective includes the range of the three-dimensional virtual environment that can be seen by the first perspective. In other embodiments, the second perspective is not determined according to the first perspective, that is, the setting of the second perspective is independent of the first perspective, but only different from the first perspective. Optionally, the position and orientation of the second virtual camera corresponding to the second perspective are automatically set by the target application and will not change. Optionally, the second virtual camera and the first virtual camera are the same camera, but the two have different orientations, so the second perspective is different from the first perspective. In some embodiments, in response to the user's second perspective rotation operation, the second perspective is rotated. Optionally, the second perspective rotation operation is an operation for rotating the second perspective. Optionally, the operation type of the second perspective rotation operation includes but is not limited to click, slide, drag and other operations, and the specific operation type is not limited in this application. In some embodiments, the picture obtained by observing the three-dimensional virtual environment from the second perspective is used as the second environment picture. Optionally, the second viewing angle is the viewing angle of the second virtual camera, and the picture taken by the second virtual camera is used as the second environment picture. Optionally, when the second viewing angle changes, the picture obtained by observing the three-dimensional virtual environment picture through the second viewing angle will also change.

[0061] In some embodiments, the second environment screen is a real-time screen shot for the three-dimensional virtual environment. Optionally, since the virtual object controlled by the user account is active in the three-dimensional virtual environment, the three-dimensional virtual environment will include virtual objects and traces of the virtual objects' activities. In this case, the second environment screen is a screen presenting the real-time three-dimensional virtual environment state.

[0062] In other embodiments, the second environment screen is a non-real-time screen shot for the three-dimensional virtual environment. Optionally, changes in the three-dimensional virtual environment caused by the activities of virtual objects controlled by the user account in the three-dimensional virtual environment are not considered. Instead, only the original environment of the three-dimensional virtual environment is shot. That is, even if other virtual props, virtual props, activity traces, etc. appear in the three-dimensional virtual environment, the screen observed by the second perspective of the three-dimensional virtual environment is the screen observed by the second perspective of the three-dimensional virtual environment when the original virtual objects do not exist. At this time, the original state of the three-dimensional virtual environment is presented in the second environment screen, and no other interference factors will appear to affect the subsequent placement of virtual props.

[0063] Unlike the related art, the second environment screen is a screen obtained by observing the three-dimensional virtual environment using the second perspective. Specifically, since observing the three-dimensional virtual environment using the second perspective is a method of simulating the shooting of a camera, the perspective projection method is used to project the three-dimensional virtual environment onto a two-dimensional plane. Therefore, the projection effect is closer to the human eye imaging in the real world. The farther the object is from the camera, the smaller it will be rendered. In the related art, the orthogonal projection method is used. At this time, all objects in the scene are projected onto a two-dimensional plane through parallel light. And in the orthogonal projection, no matter how far the object is from the eye, it is the same size as the original object. Even for a three-dimensional virtual environment, a two-dimensional plane map is obtained. At this time, it can be considered that the space is compressed and the space in the vertical direction is eliminated. Virtual props are placed on the obtained two-dimensional plane map. However, this is more suitable for two-dimensional games and is not friendly to three-dimensional games. Assuming that the three-dimensional virtual environment includes a virtual building, the virtual building has two floors. At this time, if you want to place virtual props on the second floor, since you can only place virtual props for the two-dimensional plane map, you cannot reflect the concept of space, so the position of the placed virtual props is not accurate.

[0064] In some embodiments, in response to the screen adjustment operation, the screen ratio of the first environment screen in the total display screen corresponding to the first environment screen and the second environment screen is adjusted; or, in response to the screen adjustment operation, the screen ratio of the second environment screen in the total display screen corresponding to the first environment screen and the second environment screen is adjusted. The screen adjustment operation is used to adjust the operation of the first environment screen and the second environment screen ratio. Optionally, the operation type of the screen adjustment operation includes but is not limited to click, slide, drag and other operations, and the specific operation type is not limited in this application. Optionally, the first environment screen and the second environment screen both occupy part of the display area of ​​the terminal device. Through the screen adjustment operation, the display area size of the first environment screen and the second environment screen can be changed. In other embodiments, the first environment screen is displayed at the bottom layer, and the second environment screen is displayed at the upper layer of the bottom layer, but the operation cannot be performed on the first environment screen, but only on the second environment screen. Optionally, the first environment screen is a screen obtained by observing the real-time three-dimensional virtual environment using the first perspective, and the second environment screen is a screen obtained by observing the non-real-time (original) three-dimensional virtual environment using the second perspective. Optionally, the virtual object controlled by the user account is not displayed on the second environment screen. Since there are no virtual objects controlled by the user account on the second environment screen, and it is only used to place virtual props, there is no interference from other factors when placing virtual props. Therefore, by displaying the first environment screen and the second environment screen on the same screen, you can view the real-time game environment while placing virtual props to avoid being attacked by enemy virtual objects.

[0065] Step 330 : In response to the placement operation of the virtual prop, the virtual prop is placed in the three-dimensional virtual environment displayed on the second environment screen.

[0066] Placement operation: an operation used to place a virtual prop. Optionally, the operation types of the placement operation include but are not limited to click, slide, drag and other operations. This application does not limit the specific operation type.

[0067] In some embodiments, the placement operation is directed to a first placement target position. Optionally, the first placement target position in the second environment screen is switched to a second placement target position in the three-dimensional virtual environment. Since the second environment screen is a screen shot by a second virtual camera, the second environment screen is considered to be in a camera coordinate system. Optionally, the first placement target position in the camera coordinate system is switched to a second placement target position in a world coordinate system corresponding to the three-dimensional virtual environment. Optionally, a virtual prop is placed at the second placement target position.

[0068] The technical solution provided by the embodiment of the present application switches from the first perspective to the second perspective when switching to the virtual prop placement state, and displays a second environment screen in which the second perspective observes the three-dimensional virtual environment. At this time, in response to the virtual prop placement operation, the virtual prop is placed in the three-dimensional virtual environment displayed by the second environment screen. Therefore, the technical solution provided by the present application enriches the placement methods of virtual props.

[0069] In addition, since the virtual props are placed in the three-dimensional virtual environment in response to the placement operation of the virtual props directly in the second environment screen, the placement of the virtual props is more accurate. Therefore, the technical solution provided by the present application also improves the accuracy and real-time performance of the virtual props placement.

[0070] Please refer to Figure 5 , which shows a flowchart of a method for placing virtual props provided by another embodiment of the present application. The execution subject of each step of the method may be Figure 1 The terminal device 10 in the implementation environment of the scheme shown, for example, the execution subject of each step can be the client of the target application. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as the "client". The method can include at least one of the following steps (310-330):

[0071] Step 310: display a first environment picture obtained by observing the three-dimensional virtual environment from a first perspective.

[0072] Step 311, when switching to the placement state of the virtual prop, adjusting the position and orientation of the first perspective in the three-dimensional virtual environment to obtain a second perspective.

[0073] In some embodiments, the first perspective corresponds to the perspective of the first virtual camera. Optionally, the coordinate position of the first virtual camera in the three-dimensional virtual environment is (x1, y1, z1), where x1, y1, and z1 are real numbers. Optionally, the orientation of the first perspective is a first direction. The first direction here can be considered to be the direction from point A to point B, or a direction parallel to the direction from point A to point B in the three-dimensional virtual environment. For example, point A is the position of the first virtual camera, and point B is the focus position of the first virtual camera.

[0074] In some embodiments, the second perspective corresponds to the perspective of the second virtual camera. Optionally, the coordinate position of the second virtual camera in the three-dimensional virtual environment is (x2, y2, z2), where x2, y2, z2 are real numbers. Optionally, the direction of the second perspective is the second direction.

[0075] In some embodiments, the position of the first perspective is adjusted. Optionally, the value of at least one dimension of x1, y1, and z1 is adjusted. Optionally, the position is adjusted in the vertical direction, for example, the height value d3 is added on the basis of z1, and d3 is a real number. Optionally, the position of the adjusted first perspective is (x1, y1, z1+d3). Optionally, the position is adjusted in other directions. Optionally, the length value d1 is added on the basis of x1, and d1 is a real number, then the position of the adjusted first perspective is (x1+d1, y1, z1). Optionally, the width value d2 is added on the basis of y1, and d2 is a real number, then the position of the adjusted first perspective is (x1, y1+d2, z1). Optionally, it can be adjusted in three directions at the same time, and the position of the adjusted first perspective (x1+d1, y1+d2, z1+d3) is used as the position of the second perspective. Optionally, the values ​​of two of the directions are adjusted. Optionally, the specific values ​​of the length value, width value and height value are not limited in this application. For example, the length value, width value and height value are set in advance.

[0076] In some embodiments, in response to the first viewing angle adjustment operation, the position of the first viewing angle is adjusted. Optionally, the first viewing angle adjustment operation is an operation for adjusting the position of the first viewing angle. Optionally, the operation type of the first viewing angle adjustment operation includes but is not limited to click, slide, drag and other operations. The specific operation type is not limited in this application. Optionally, in response to the first viewing angle adjustment operation, the first viewing angle is switched to the second viewing angle.

[0077] In some embodiments, the position of the second perspective is updated in response to a second perspective adjustment operation. Optionally, the second perspective adjustment operation is an operation for adjusting the position of the second perspective. Optionally, the operation type of the second perspective adjustment operation includes but is not limited to operations such as clicking, sliding, and dragging. The specific operation type is not limited in this application. Optionally, the position of the second perspective is updated in response to the second perspective adjustment operation. Optionally, when the position of the second perspective is (x1+d1, y1+d2, z1+d3), the position of the second perspective can continue to be updated in response to the second perspective adjustment operation. Optionally, the second perspective operation can realize any update of the second perspective.

[0078] In some embodiments, the orientation of the first viewing angle is adjusted. Optionally, the orientation of the second viewing angle is a second direction. The second direction here can be considered to be the direction from point A to point C, or a direction parallel to the direction from point A to point C in a three-dimensional virtual environment. Optionally, point B and point C are different positions. Therefore, the first direction and the second direction are different. For example, point A is the position of the second virtual camera, and point C is the focus position of the second virtual camera.

[0079] In some embodiments, in response to the third perspective adjustment operation, the orientation of the first perspective is adjusted. Optionally, the third perspective adjustment operation is an operation for adjusting the orientation of the first perspective. Optionally, the operation type of the third perspective adjustment operation includes but is not limited to click, slide, drag and other operations. The specific operation type is not limited in this application. Optionally, in response to the third perspective adjustment operation, the orientation of the first perspective is switched to the orientation of the second perspective. Optionally, the third perspective adjustment operation can update the focus position of the first virtual camera from point B to point C of the second virtual camera.

[0080] In some embodiments, only the position of the first viewing angle is adjusted, or only the orientation of the first viewing angle is adjusted, or both the position and orientation of the first viewing angle are adjusted to obtain the second viewing angle. This application does not limit this.

[0081] In some embodiments, at least one of steps 310 - 1 to 310 - 4 (not shown in the figure) is included before step 311 .

[0082] Step 310 - 1 : In response to an operation on a switching control, confirming switching to a placement state of a virtual item.

[0083] In some embodiments, the switching control is a UI control, and this application does not limit the specific location of the switching control.

[0084] Step 310 - 2 , in response to the position of the master virtual object in the three-dimensional virtual environment being in the prop placement area, confirming to switch to the virtual prop placement state.

[0085] The prop placement area is an area set in a three-dimensional virtual environment, and when the master virtual object is in the area, it switches to the placement state of the virtual prop. In some embodiments, a prop placement area is set in a three-dimensional virtual environment, and when the master virtual object enters the area, it automatically switches to the prop placement state, and the virtual prop can be placed. In other embodiments, the virtual prop is a prop in a three-dimensional virtual environment. For example, when attacking an artificial intelligence virtual object, a virtual prop is randomly dropped. And the area within the threshold range of the virtual prop is set as the prop placement area, and when the master virtual object enters the prop placement area, the virtual prop can be obtained, and it can also be switched to the placement state of the virtual prop.

[0086] Step 310 - 3 , in response to entering the prop placement period, confirming switching to the virtual prop placement state.

[0087] In some embodiments, the prop placement period is a period that can be used to place props. Optionally, the prop placement period is a specific period in the game. For example, the 10th minute to the 11th minute of the start is the prop placement period, which automatically switches to the placement state to place virtual props. Optionally, the prop placement period is a non-specific period in the game, but a random period triggered according to specific conditions. For example, within a specific time period after defeating a specific artificial intelligence virtual object, it automatically switches to the virtual prop placement state. Optionally, after defeating the boss, virtual props can be placed within 1 minute.

[0088] Step 310 - 4 , in response to the event triggering the placement of the virtual prop being achieved, confirming the switching to the placement state of the virtual prop.

[0089] In some embodiments, the event that triggers the placement of virtual props includes but is not limited to the master virtual object meeting a specific state. For example, when the master virtual object is in a state where the health is below a threshold, the event that triggers the placement of virtual props is achieved, and then the switch to the placement state of the virtual props is confirmed.

[0090] In some embodiments, the second perspective is obtained by increasing the height of the position of the first perspective in the three-dimensional virtual environment and adjusting the direction of the first perspective to a direction of looking down at the three-dimensional virtual environment from above.

[0091] Optionally, the height value of the position of the increased first perspective in the three-dimensional virtual environment is d3, which can be referred to the above embodiment and will not be repeated here. Similarly, referring to the above embodiment, since the first perspective can be considered as the perspective of the first virtual camera, and the visual effect of the human eye simulated by the first virtual camera, the direction of the first virtual camera is generally toward the front of the master virtual object. However, when the height of the position of the first perspective in the three-dimensional virtual environment is increased, if the direction is not changed, the second perspective is also toward the front, and it can be considered that the second virtual camera is shooting the scenery in the air at this time. In order to better reflect the three-dimensional virtual environment, the direction of the first perspective after the height is increased is adaptively adjusted to overlook the three-dimensional virtual environment from obliquely above, so as to observe the three-dimensional virtual environment from a higher level. Therefore, the height of the position of the first perspective in the three-dimensional virtual environment is increased, and the direction of the first perspective is adjusted to overlook the three-dimensional virtual environment from obliquely above, thereby obtaining the second perspective.

[0092] In some embodiments, the first perspective is a first-person perspective or a third-person perspective of the main virtual object, and the second perspective is a perspective of looking down at the three-dimensional virtual environment from an oblique top.

[0093] According to the above embodiment, when the first perspective is the first-person perspective of the master virtual object, it is considered that a first virtual camera is set on the head of the master virtual object, and the first virtual camera simulates the human eye to obtain the first perspective. When the first perspective is the third-person perspective of the master virtual object, it is considered that the first virtual camera is set diagonally above the head of the master virtual object, and the first virtual camera is a perspective of looking down on the master virtual object from diagonally above. Optionally, the head of the master virtual object is in the first perspective. Optionally, the second perspective is a perspective of looking down on the three-dimensional virtual environment that is different from the first perspective.

[0094] Step 321 , displaying a second environment picture obtained by observing the three-dimensional virtual environment from a second perspective, where the second perspective is different from the first perspective.

[0095] In some embodiments, step 321 also includes step 321 - 1 (not shown in the figure).

[0096] Step 321 - 1 : Displaying a placeable area for virtual props in the second environment screen. The placeable area is an area in the three-dimensional virtual environment where virtual props are allowed to be placed.

[0097] The placeable area is an area in the 3D virtual environment where virtual props can be placed. Since there are some areas in the 3D virtual environment where virtual props cannot be placed, such as in the air. Therefore, a placeable area is set in the 3D virtual environment, and virtual props can only be placed in the placeable area. Optionally, when placing a virtual prop outside the placeable area, the virtual prop cannot be placed. Optionally, Figure 3As shown in sub-figure c, the highlighted area 300 in the figure is a placeable area in the three-dimensional virtual environment.

[0098] In some embodiments, step 321 also includes step 321 - 2 (not shown in the figure) after step 321 .

[0099] Step 321 - 2 , in response to the adjustment operation on the second viewing angle, displaying an adjusted second environment picture obtained by observing the three-dimensional virtual environment from the adjusted second viewing angle.

[0100] Optionally, the adjustment operation is similar to the viewing angle adjustment operation in the above-mentioned embodiment. Optionally, the adjustment operation is an operation for adjusting at least one of the position, orientation, and field of view of the second viewing angle. Optionally, the operation type of the adjustment operation includes but is not limited to operations such as clicking, sliding, and dragging. The specific operation type is not limited in this application. Optionally, when the adjustment operation adjusts the position of the second viewing angle, it can be considered to change the position of the second virtual camera in the three-dimensional virtual environment. When the adjustment operation adjusts the orientation of the second viewing angle, it can be considered to rotate the shooting position of the second virtual camera. When the adjustment operation adjusts the field of view of the second viewing angle, it can be considered to adjust the shooting width of the second virtual camera and change the area range of the captured three-dimensional virtual environment.

[0101] Step 330 : In response to the placement operation of the virtual prop, the virtual prop is placed in the three-dimensional virtual environment displayed on the second environment screen.

[0102] In some embodiments, step 330 also includes step 330-1 (not shown in the figure) after step 330.

[0103] Step 330-1, after switching to the placement state of the virtual prop, in response to an operation on a cancel control, exit the placement state of the virtual prop, and redisplay the first environment picture obtained by observing the three-dimensional virtual environment from the first perspective.

[0104] In some embodiments, the cancel control is a UI control, and the application does not limit the specific placement of the cancel control. Optionally, the operation on the cancel control is an operation for exiting the placement state of the virtual prop, and the operation type includes but is not limited to click, slide, drag and other operations, and the application does not limit the specific operation type.

[0105] In some embodiments, no matter how the second perspective is adjusted, the first perspective before entering the virtual prop placement state is not changed. In other embodiments, when the second perspective is adjusted, the first perspective is adaptively changed. Optionally, when the orientation of the second perspective is adjusted, if the virtual prop placement state is exited, the orientation of the first virtual object is adaptively changed so that the sight focus of the second perspective and the first perspective is the same position.

[0106] The technical solution provided by the embodiment of the present application corresponds to two different perspectives in the virtual prop placement state and the non-virtual prop placement state, and it can be considered that the range of the three-dimensional virtual environment that can be observed from the second perspective is larger than the range of the three-dimensional virtual environment that can be observed from the first perspective when switching to the virtual prop placement state. Therefore, by raising the perspective, a larger area is provided to the user account for placing virtual props, making it easier for the position of the placed virtual props to meet the user's expectations, reducing the movement of the position of the placed virtual props, and shortening the time required for placing virtual props, thereby further improving the efficiency of placing virtual props.

[0107] Furthermore, due to the difference between the first perspective and the second perspective, the flexibility of virtual prop placement is improved, enriching the human-computer interaction mode. In addition, for how to enter the virtual prop placement state, multiple ways are provided to meet different setting requirements, and dynamic switching to the virtual prop placement state is also achieved, which increases the frequency of human-computer interaction.

[0108] Please refer to Figure 6 , which shows a flowchart of a method for placing virtual props provided by another embodiment of the present application. The execution subject of each step of the method may be Figure 1 The terminal device 10 in the implementation environment of the scheme shown, for example, the execution subject of each step can be the client of the target application. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as the "client". The method can include at least one of the following steps (310-341):

[0109] Step 310: display a first environment picture obtained by observing the three-dimensional virtual environment from a first perspective.

[0110] Step 320, when switching to the placement state of the virtual prop, displaying a second environment picture obtained by observing the three-dimensional virtual environment from a second perspective, where the second perspective is different from the first perspective.

[0111] Step 340 : In response to a selection operation on a first position in the three-dimensional virtual environment, display a virtual prop in a pre-placed state at the first position.

[0112] The first position can be considered as the position pointed to by the selection operation. In some embodiments, the selection operation is an operation for selecting a position to place a virtual prop. Optionally, the operation type of the selection operation includes but is not limited to operations such as clicking, sliding, and dragging. The application does not limit the specific operation type.

[0113] Optionally, after switching to the placement state of the virtual prop, first select the first virtual prop (a type of virtual prop), then perform a selection operation on the first position in the three-dimensional virtual environment, and then display the first virtual prop in the pre-placed state at the first position. Optionally, after switching to the placement state of the virtual prop, first perform a selection operation on the first position in the three-dimensional virtual environment, then select the second virtual prop (a type of virtual prop), and then display the second virtual prop in the pre-placed state at the first position. Optionally, after switching to the placement state of the virtual prop, the virtual prop in the backpack at the starting position of the selection operation and the ending position is the first position, then display the virtual prop in the pre-placed state at the first position.

[0114] Optionally, the virtual prop in the pre-placed state means that the virtual prop is not fixedly placed at the position and can be changed.

[0115] Alternatively, if Figure 7 As shown in sub-figure a of FIG. 4 , in the placeable area 400 , in response to the selection operation of the first position 410 , a virtual prop in a pre-placed state is displayed at the first position 410 .

[0116] In some embodiments, step 340 also includes at least one of steps 340 - 1 to 340 - 3 (not shown in the figure).

[0117] Step 340 - 1 : In response to a movement operation on a virtual prop in a pre-placed state at a first position, the virtual prop in the pre-placed state is moved from the first position to a second position in the three-dimensional virtual environment.

[0118] In some embodiments, the moving operation is an operation for moving a virtual item. Optionally, the operation type of the moving operation includes but is not limited to click, slide, drag and other operations. The specific operation type is not limited in this application. Optionally, the starting position of the moving operation is the first position, and the ending position is the second position. Optionally, as Figure 7 As shown in sub-figure b of , the starting position of the moving operation is the first position 410, and the ending position is the second position 420, and the virtual prop in the pre-placed state is moved from the first position 410 to the second position 420 in the three-dimensional virtual environment. At this time, the moving operation may be a dragging operation.

[0119] In other embodiments, when there is a placeable area in the three-dimensional virtual environment, if the end position of the moving operation is not in the placeable area, the second position is based on the edge position of the placeable area. That is, no matter whether the end position of the moving operation is in the placeable area or outside the placeable area, the second position is always in the placeable area.

[0120] Step 340 - 2 : in response to the cancel operation on the virtual prop in the pre-placed state at the first position, cancel the display of the virtual prop in the pre-placed state at the first position.

[0121] In some embodiments, the undo operation is used to undo the operation of placing a virtual prop. Optionally, the operation type of the undo operation includes but is not limited to click, slide, drag and other operations. The specific operation type is not limited in this application. Optionally, the operation on the undo control is considered to be the undo operation. Optionally, the undo control is a UI control. Figure 7 As shown in sub-figure a of , after the selection operation for the first position is performed, an undo control 430 appears, which is used to undo the virtual prop at the first position. Optionally, when the virtual prop in the pre-placed state and the virtual prop in the placed state are in the selected state, an undo control 430 appears, which is used to undo the display of the virtual prop.

[0122] Step 340 - 3 , in response to a selection operation on a third position in the three-dimensional virtual environment, display another virtual prop in a pre-placed state at the third position.

[0123] Alternatively, if Figure 7 As shown in sub-figure c of , the third position is 460 , and in response to a selection operation on the third position 460 in the three-dimensional virtual environment, another virtual prop in a pre-placed state is displayed at the third position 460 .

[0124] Step 341: In response to an operation on a placement control, a virtual prop in a pre-placed state is placed at a corresponding position.

[0125] Optionally, at least one virtual prop in a pre-placed state is placed at a corresponding position. Or, each virtual prop in a pre-placed state is placed at a corresponding position.

[0126] Optionally, the placement control is a UI control. Optionally, the operation on the placement control is an operation for placing a virtual prop. Optionally, Figure 7 As shown in sub-figure b of , when the moving operation moves the virtual prop from the first position 410 to the second virtual position 420, the placement control 450 is clicked to place the virtual prop in the pre-placed state at the second position at the corresponding position.

[0127] In some embodiments, in response to a switch button (switch control) in a conventional user interface, the placement state is entered. In the placement state, the relative position and height of the second perspective are fixed (only the z-axis height of the perspective is increased without changing the x and y axes), but the perspective can be rotated freely. In response to a selection operation at any position in the placeable area, the corresponding object can be placed. Optionally, after the selection operation is completed, the object phantom appears at the corresponding position within the range, and an undo button (undo control) appears at the same time, and the player can undo the operation that has been performed. In addition, if the player needs to adjust the position of the pre-placed object, just press and hold to select the placed phantom and drag the position. At this time, the dragging operation is regarded as changing the position of the object, rather than adjusting the player's perspective. (Cancel means exiting the placement state). Click the placement button to place the corresponding object. Optionally, when objects need to be placed in batches, the player can repeatedly click on the placeable position in the scene to place the object. After the phantom of the first object has been placed, in response to the selection operation at other positions in the placeable area, a new object phantom can be placed again.

[0128] The technical solution provided by the embodiment of the present application allows users to choose the placement of virtual props by themselves, and can flexibly change the placement of virtual props and flexibly cancel the placement of virtual props, which reflects the flexibility of virtual prop placement. In addition, one-click placement can be achieved through the placement operation, without the need to place each virtual prop once, thereby improving the efficiency of virtual prop placement.

[0129] Please refer to Figure 8 , which shows a flowchart of a method for placing virtual props provided by another embodiment of the present application. The execution subject of each step of the method may be Figure 1 The terminal device 10 in the implementation environment of the scheme shown, for example, the execution subject of each step can be the client of the target application. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as the "client". The method can include at least one of the following steps (310-351):

[0130] Step 310: display a first environment picture obtained by observing the three-dimensional virtual environment from a first perspective.

[0131] Step 320, when switching to the placement state of the virtual prop, displaying a second environment picture obtained by observing the three-dimensional virtual environment from a second perspective, where the second perspective is different from the first perspective.

[0132] Step 350: After switching to the placement state of the virtual prop, display the virtual prop in the pre-placed state at at least one set position in the three-dimensional virtual environment.

[0133] In some embodiments, the set position is a pre-set position for placing a virtual prop. Optionally, N positions are preset in the three-dimensional virtual environment, where virtual props can be placed. Optionally, according to the M set positions existing in the second perspective, the virtual props in the pre-placed state are displayed in the M set positions. N is a positive integer, and M is a positive integer greater than N.

[0134] In other embodiments, the N preset positions are divided into different levels. Optionally, n1 of the N preset positions are optimal positions, that is, the best effect can be achieved by placing virtual props in these n1 positions. Optionally, n2 of the N preset positions are suboptimal positions, and so on, the N preset positions are divided. Optionally, the N preset positions correspond to P levels. The preset position with a lower level value has the best effect, and the preset position with a higher level value has a worse effect. n1 and n2 are positive integers less than N, and P is a positive integer.

[0135] In some embodiments, the level of at least one set position of a virtual prop in a pre-placed state displayed in a three-dimensional virtual environment is determined according to real-time state data. Optionally, the real-time state data includes state data corresponding to the master virtual object, state data of the enemy virtual object, state data of the artificial intelligence virtual object, and environmental data of the master virtual object. Optionally, according to the state data corresponding to the master virtual object, the state data of the enemy virtual object, the state data of the artificial intelligence virtual object, and the environmental data of the master virtual object, it can be inferred that the current master virtual object is in a relative disadvantage, then the level of at least one set position of the virtual prop in a pre-placed state displayed in the three-dimensional virtual environment is lower, and the effect of the corresponding preset position is better, and optionally, the level value is a first value. Optionally, according to the state data corresponding to the master virtual object, the state data of the enemy virtual object, the state data of the artificial intelligence virtual object, and the environmental data of the master virtual object, it can be inferred that the current master virtual object is in a relative advantage, then the level of at least one set position of the virtual prop in a pre-placed state displayed in the three-dimensional virtual environment is higher, and the effect of the corresponding preset position is worse, and optionally, the level value is a second value, and the first value is less than the second value. Optionally, the status data includes health value, ammunition value, kill information, etc. The environmental data includes coordinate position, whether the environment is harsh, etc. For example, according to the difference between the total kill information of the camp where the main virtual object is located and the total kill information of the enemy virtual object, it is determined whether the main virtual object is at an advantage or disadvantage. If the total kill information of the camp where the main virtual object is located is greater than the total kill information of the enemy virtual object, it is considered that the main virtual object is at an advantage. If the total kill information of the camp where the main virtual object is located is not greater than the total kill information of the enemy virtual object, it is considered that the main virtual object is at a disadvantage. Therefore, the technical solution provided in the embodiment of the present application can balance the user's game experience and increase the fun of the game through virtual props.

[0136] In other embodiments, when there is no preset position, the preset position is determined according to the position of the master virtual object. Optionally, the viewing center position of the master virtual object (which can also be understood as the screen center position) is determined as the preset position.

[0137] Alternatively, if Fig. 9 As shown, a preset point is displayed in the placement area 900. Optionally, a virtual prop in a pre-placed state is displayed at at least one set position (preset point) in the three-dimensional virtual environment.

[0138] In some embodiments, step 350 may be followed by at least one of steps 350 - 1 to 350 - 3 (not shown in the figure).

[0139] Step 350 - 1 , in response to a movement operation of a virtual prop in a pre-placed state at a first set position, the virtual prop in the pre-placed state is moved from the first set position to a first target position in the three-dimensional virtual environment.

[0140] The first target position is considered to be the end position or the pointed position of the moving operation. Here, reference is made to the above embodiment and no further description is given.

[0141] Step 350 - 2 : in response to a cancel operation on the virtual item in the pre-placed state at the first set position, cancel the display of the virtual item in the pre-placed state at the first set position.

[0142] Reference is made here to the above-mentioned embodiments, which will not be described in detail.

[0143] Step 350 - 3 , in response to a selection operation on a second target position in the three-dimensional virtual environment, adding a virtual prop in a pre-placed state at the second target position.

[0144] Reference is made here to the above-mentioned embodiments, which will not be described in detail.

[0145] Step 351: In response to an operation on a placement control, a virtual prop in a pre-placed state is placed at a corresponding position.

[0146] Reference is made here to the above-mentioned embodiments, which will not be described in detail.

[0147] Alternatively, if Fig.10 As shown, a two-dimensional plane schematic diagram of a three-dimensional virtual environment 1000. Optionally, when placing a virtual prop, it is necessary to switch from the camera coordinate system to the world coordinate system in the three-dimensional virtual environment to place the virtual prop.

[0148] The technical solution provided by the embodiment of the present application reduces the placement steps of the user when placing the virtual props by setting a preset position and displaying the virtual props in the pre-placed state at the preset position, that is, reduces the processing overhead of the device. Similarly, since the placement operation is simplified, the placement efficiency is also improved.

[0149] Please refer to Fig.11 , which shows a block diagram of a method for placing virtual props provided by an embodiment of the present application. The method may include at least one of the following steps (S1 to S9):

[0150] Step S1, first determine whether the player meets the prerequisites for placement, such as whether it is in an available time, whether the number of placements is met, whether the character's own status is limited, etc. When all the prerequisites are met, go to step S3; if not, go to step S2.

[0151] Step S2: The placement operation cannot be started and the operation ends.

[0152] Step S3, click the switch button to enter the placement state, at this time the camera angle is raised, and the placement range area appears in the scene, limiting the player's movement and height adjustment. The player can only slide the screen to adjust the angle of view. Click the screen to enter step S4.

[0153] Step S4, determine whether the player's click position is within the placement range. If the click position is within the range, proceed to step S6; if the click position is not within the range, proceed to step S5.

[0154] Step S5, there is no change in the click. If the player wants to click again at this time, go to step S9; otherwise the operation ends.

[0155] Step S6, determine whether the player clicks on a blank area of ​​the scene. If it is a blank area (any position in the placement area), a virtual shadow of the object will appear at the corresponding position, and enter step S7; if the player clicks on the virtual shadow of the object, enter step S8.

[0156] Step S7, determine whether the player needs to adjust the position, if so, press and hold the object phantom and go to step S8, if not, go to step S9.

[0157] Step S8, press and drag the corresponding object phantom, and then determine the player's dragging position. If the player drags outside the range, the object is in the dragging direction and is located on the boundary of the range. When the player drags to the appropriate position and lets go, the object phantom stops moving and enters step S9.

[0158] Step S9, if the player needs to place other objects, click the screen again and go to step S4; otherwise, directly click the placement button to complete the placement.

[0159] In the related technologies, the operation cost is high for players and has certain limitations. Players either spend more operation time to achieve placement or sacrifice real-time perception of the surrounding environment during the operation. For most players, directly looking at the two-dimensional map requires a certain conversion cost. The technical solution provided by the embodiment of the present application combines placement feedback and placement operation, solves the problems of complex operation steps and lack of combat perception during the operation, enables players to place objects in three-dimensional scenes faster, reduces the difficulty of operation, and improves the fluency of the game.

[0160] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0161] Please refer to Fig.12, which shows a block diagram of a virtual prop placement device provided by an embodiment of the present application. The device has the function of implementing the above method example, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the terminal device introduced above, or it can be set in the terminal device. Fig.12 As shown, the device 1200 may include: a picture display module 1210 and a prop placement module 1220 .

[0162] The image display module 1210 is used to display a first environment image obtained by observing the three-dimensional virtual environment from a first perspective.

[0163] The picture display module 1210 is further used to display a second environment picture obtained by observing the three-dimensional virtual environment from a second perspective when switching to the placement state of the virtual prop, and the second perspective is different from the first perspective.

[0164] The prop placement module 1220 is used to place the virtual prop in the three-dimensional virtual environment displayed in the second environment screen in response to the placement operation of the virtual prop.

[0165] In some embodiments, Fig.12 As shown, the method includes a viewing angle adjustment module 1230 .

[0166] The perspective adjustment module 1230 is used to adjust the position and orientation of the first perspective in the three-dimensional virtual environment to obtain the second perspective when switching to the placement state of the virtual prop.

[0167] In some embodiments, the perspective adjustment module 1230 is further used to increase the height of the first perspective in the three-dimensional virtual environment, and adjust the direction of the first perspective to look down at the three-dimensional virtual environment from an oblique upward direction to obtain the second perspective.

[0168] In some embodiments, the first perspective is a first-person perspective or a third-person perspective of a main virtual object, and the second perspective is a perspective of looking down at the three-dimensional virtual environment from an oblique top.

[0169] In some embodiments, Fig.13 As shown, the prop placement module 1220 includes a prop display unit 1221 and a prop placement unit 1222 .

[0170] The prop display unit 1221 is used to display a virtual prop in a pre-placed state at a first position in response to a selection operation on the first position in the three-dimensional virtual environment.

[0171] The prop placement unit 1222 is used to place the virtual prop in the pre-placed state at a corresponding position in response to an operation on a placement control.

[0172] In some embodiments, Fig.13 As shown, the prop placement module 1220 includes a prop moving unit 1223 .

[0173] The prop moving unit 1223 is used to move the virtual prop in the pre-placed state from the first position to a second position in the three-dimensional virtual environment in response to a moving operation on the virtual prop in the pre-placed state at the first position; or, the prop display unit 1221 is also used to cancel the display of the virtual prop in the pre-placed state at the first position in response to an undo operation on the virtual prop in the pre-placed state at the first position; or, the prop display unit 1221 is also used to display another virtual prop in the pre-placed state at the third position in response to a selection operation on a third position in the three-dimensional virtual environment.

[0174] In some embodiments, the prop display unit 1221 is further configured to display the virtual prop in a pre-placed state at at least one set position in the three-dimensional virtual environment after switching to the placement state of the virtual prop.

[0175] The prop placement unit 1222 is further configured to place the virtual prop in the pre-placed state at a corresponding position in response to an operation on a placement control.

[0176] In some embodiments, the prop moving unit 1223 is further used to move the virtual prop in the pre-placed state from the first set position to a first target position in the three-dimensional virtual environment in response to a moving operation on the virtual prop in the pre-placed state at the first set position.

[0177] Alternatively, the prop display unit 1221 is further used to cancel the display of the virtual prop in the pre-placed state at the first set position in response to an undo operation on the virtual prop in the pre-placed state at the first set position; or, the prop display unit 1221 is further used to add and display the virtual prop in the pre-placed state at the second target position in response to a selection operation on the second target position in the three-dimensional virtual environment.

[0178] In some embodiments, Fig.13 As shown, the device further includes an area display module 1240 .

[0179] The area display module 1240 is used to display the area where the virtual prop can be placed in the second environment screen. The area where the virtual prop can be placed is an area in the three-dimensional virtual environment where the virtual prop can be placed.

[0180] In some embodiments, Fig.13 As shown, the device also includes a state switching module 1250.

[0181] The state switching module 1250 is used to confirm switching to the placement state of the virtual prop in response to an operation on a switching control; or, in response to the position of the master virtual object in the three-dimensional virtual environment being in the prop placement area, confirm switching to the placement state of the virtual prop; or, in response to entering the prop placement period, confirm switching to the placement state of the virtual prop; or, in response to the event that triggers the placement of the virtual prop, confirm switching to the placement state of the virtual prop.

[0182] In some embodiments, the image display module 1210 is further configured to, in response to an adjustment operation on the second viewing angle, display an adjusted second environment image obtained by observing the three-dimensional virtual environment from the adjusted second viewing angle.

[0183] In some embodiments, the screen display module 1210 is also used to, after switching to the placement state of the virtual prop, respond to an operation on a cancel control, exit the placement state of the virtual prop and redisplay the first environment screen obtained by observing the three-dimensional virtual environment from the first perspective.

[0184] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0185] Please refer to Fig.14 , which shows a block diagram of a terminal device 1400 provided in one embodiment of the present application. The terminal device 1400 may be Figure 1 The terminal device 10 in the implementation environment shown is used to implement the method for placing virtual props provided in the above embodiment. Specifically:

[0186] Typically, the terminal device 1400 includes: a processor 1401 and a memory 1402 .

[0187] Processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. Processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1401 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, processor 1401 may also include an AI processor for processing computing operations related to machine learning.

[0188] The memory 1402 may include one or more computer-readable storage media, which may be non-transitory. The memory 1402 may also include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1402 is used to store a computer program, which is configured to be executed by one or more processors to implement the above-mentioned virtual prop placement method.

[0189] In some embodiments, the terminal device 1400 may further optionally include: a peripheral device interface 1403 and at least one peripheral device. The processor 1401, the memory 1402 and the peripheral device interface 1403 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1403 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1404, a display screen 1405, an audio circuit 1407 and a power supply 1408.

[0190] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the terminal device 1400, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0191] In an exemplary embodiment, a computer-readable storage medium is further provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor, the method for placing a virtual prop is implemented.

[0192] Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random Access Memory), SSD (Solid State Drives) or an optical disk, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0193] In an exemplary embodiment, a computer program product is also provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a terminal device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the terminal device executes the above-mentioned method for placing virtual props.

[0194] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

[0195] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

[0196] It should be noted that before collecting relevant data of users and during the process of collecting relevant data of users, this application can display a prompt interface, pop-up window or output voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining relevant data of users after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining relevant data of users are terminated, that is, the relevant data of users are not obtained. In other words, all user data collected by this application are collected with the consent and authorization of the user, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions.

Claims

1. A method for placing virtual props, characterized in that: The method comprises: Displaying a first environment picture obtained by observing the three-dimensional virtual environment from a first perspective; When the virtual prop is switched to a placement state, a second environment picture obtained by observing the three-dimensional virtual environment from a second perspective is displayed, where the second perspective is different from the first perspective; In response to the placement operation of the virtual prop, the virtual prop is placed in the three-dimensional virtual environment displayed on the second environment screen.

2. The method according to claim 1, characterized in that The method further comprises: When the virtual prop is switched to the placement state, the position and orientation of the first perspective in the three-dimensional virtual environment are adjusted to obtain the second perspective.

3. The method according to claim 2, characterized in that The adjusting the position and orientation of the first perspective in the three-dimensional virtual environment to obtain the second perspective includes: The second viewing angle is obtained by increasing the height of the position of the first viewing angle in the three-dimensional virtual environment and adjusting the direction of the first viewing angle to a direction of looking down at the three-dimensional virtual environment from obliquely above.

4. The method according to claim 1, characterized in that: The first perspective is a first-person perspective or a third-person perspective of a main virtual object, and the second perspective is a perspective of looking down at the three-dimensional virtual environment from an oblique top.

5. The method according to claim 1, characterized in that In response to the placing operation of the virtual prop, placing the virtual prop in the three-dimensional virtual environment displayed on the second environment screen includes: In response to a selection operation on a first position in the three-dimensional virtual environment, displaying a virtual prop in a pre-placed state at the first position; In response to an operation on a placement control, the virtual prop in the pre-placement state is placed at a corresponding position.

6. The method according to claim 5, characterized in that After displaying the virtual prop in the pre-placed state at the first position, the method further includes: In response to a movement operation on the pre-placed virtual prop at the first position, moving the pre-placed virtual prop from the first position to a second position in the three-dimensional virtual environment; or, In response to a cancel operation on the virtual item in the pre-placed state at the first position, canceling the display of the virtual item in the pre-placed state at the first position; or, In response to a selection operation on a third position in the three-dimensional virtual environment, another virtual prop in the pre-placed state is displayed at the third position.

7. The method according to claim 1, characterized in that In response to the placing operation of the virtual prop, placing the virtual prop in the three-dimensional virtual environment displayed on the second environment screen includes: After switching to the placement state of the virtual prop, displaying the virtual prop in a pre-placed state at at least one set position of the three-dimensional virtual environment; In response to an operation on a placement control, the virtual prop in the pre-placement state is placed at a corresponding position.

8. The method according to claim 7, characterized in that After displaying the virtual props in a pre-placed state at at least one set position in the three-dimensional virtual environment, the method further includes: In response to a movement operation of the virtual prop in the pre-placed state at a first set position, moving the virtual prop in the pre-placed state from the first set position to a first target position in the three-dimensional virtual environment; or, In response to a cancel operation on the virtual item in the pre-placed state at the first set position, canceling the display of the virtual item in the pre-placed state at the first set position; or, In response to a selection operation on a second target position in the three-dimensional virtual environment, a virtual prop displaying the pre-placed state is added at the second target position.

9. The method according to claim 1, characterized in that: The method further comprises: In the second environment screen, a placeable area for the virtual prop is displayed, and the placeable area is an area in the three-dimensional virtual environment where the virtual prop is allowed to be placed.

10. The method according to claim 1, characterized in that The method further comprises: In response to an operation on a switching control, confirming switching to a placement state of the virtual item; or, In response to the position of the master virtual object in the three-dimensional virtual environment being in the prop placement area, confirming switching to the placement state of the virtual prop; or, In response to entering the prop placement period, confirming switching to the placement state of the virtual prop; or, In response to the event triggering the placement of the virtual props being achieved, confirming the switching to the placement state of the virtual props.

11. The method according to claim 1, characterized in that: After displaying the second environment picture obtained by observing the three-dimensional virtual environment from the second perspective, the method further includes: In response to the adjustment operation on the second viewing angle, an adjusted second environment picture obtained by observing the three-dimensional virtual environment from the adjusted second viewing angle is displayed.

12. The method according to claim 1, characterized in that The method further comprises: After switching to the placement state of the virtual prop, in response to an operation on a cancel control, the placement state of the virtual prop is exited, and a first environment picture obtained by observing the three-dimensional virtual environment from the first perspective is redisplayed.

13. A device for placing virtual props, characterized in that: The device comprises: A picture display module, used for displaying a first environment picture obtained by observing the three-dimensional virtual environment from a first perspective; The picture display module is further used to display a second environment picture obtained by observing the three-dimensional virtual environment from a second perspective when switching to the placement state of the virtual prop, and the second perspective is different from the first perspective; The prop placement module is used to place the virtual prop in the three-dimensional virtual environment displayed in the second environment screen in response to the placement operation of the virtual prop.

14. A terminal device, characterized in that: The terminal device comprises a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the method according to any one of claims 1 to 12.

16. A computer program product, characterized in that The computer program product comprises a computer program, wherein the computer program is stored in a computer-readable storage medium, and a processor reads and executes the computer program from the computer-readable storage medium to implement the method according to any one of claims 1 to 12 above.