Interactive observation method, device, equipment and medium based on virtual scene
By introducing cutout objects and perspective adjustment functions into the virtual scene, the problem of a single observation method in the existing technology is solved, multi-angle and multi-distance observation of the virtual scene is realized, and the efficiency and experience of interactive applications are improved.
Patent Information
- Application Number
- CN202311135567.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-24
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-06-24
AI Technical Summary
In existing interactive applications based on virtual scenes, the player's observation method in the virtual environment is relatively single, mainly limited to switching between the first-person perspective and the third-person perspective, and the perspective adjustment is limited, which cannot effectively improve the observation efficiency.
By introducing cutout objects in the virtual scene and allowing players to change the observation angle and distance through perspective adjustment operations, the diversity of observation angles is increased, and an interactive observation method and device based on the virtual scene is provided, using the acquisition module and display module and receiving module to realize multi-angle and multi-distance observation of virtual scenes.
It improves the interactive diversity and observation efficiency of virtual scenes, enables players to make more flexible and rich perspective adjustments in the virtual environment, and enhances the exploration experience of virtual scenes.
Smart Images

Figure CN117085322B
Abstract
Description
[0001] This application is a divisional application of the Chinese application with application number 202110702790.8, application date June 24, 2021, and invention name “Interactive observation method, device, equipment and medium based on virtual scene”. Technical Field
[0002] The embodiments of the present application relate to the field of virtual environments, and in particular to a method, device, equipment and medium for interactive observation based on a virtual scene. Background Art
[0003] Virtual scene-based applications are usually programs that run based on a virtual environment after the virtual environment is built through a three-dimensional model. When the application is running, players can interact with the virtual environment by controlling the movement of virtual objects in the virtual environment.
[0004] In the related art, when a player controls a virtual object in a virtual environment, he or she can do so by touching a display screen or by inputting a control signal through an external input device, and the virtual object moves in the virtual environment according to the player's control.
[0005] However, during the interactive observation process achieved through the above method, the virtual object is usually observed by switching between the first-person perspective or the third-person perspective, and the perspective direction during the observation process follows the line of sight of the virtual object. The observation result reflects the result from the perspective of the virtual object, and the observation method is relatively simple. Summary of the invention
[0006] The embodiment of the present application provides a virtual scene-based interactive observation method, device, equipment and medium, which can improve the efficiency of observing the virtual environment. The technical solution is as follows:
[0007] On the one hand, a virtual scene-based interactive observation method is provided, the method comprising:
[0008] Acquiring a first scene image in response to a virtual scene display operation, wherein the first scene image includes a first object;
[0009] Displaying a virtual environment picture, wherein the virtual environment picture includes a virtual scene observed at a first observation angle and a cutout object, wherein the cutout object includes the first object obtained by cutting out the first scene image;
[0010] Receive viewing angle adjustment operation;
[0011] Based on the viewing angle adjustment operation, the first viewing angle for observing the virtual scene and the cutout object is adjusted to a second viewing angle, wherein the first viewing angle and the second viewing angle are angles for observing the virtual scene from different viewing positions or different viewing distances.
[0012] On the other hand, there is provided an interactive observation device based on a virtual scene, the device comprising:
[0013] An acquisition module, configured to acquire a first scene image in response to a virtual scene display operation, wherein the first scene image includes a first object;
[0014] A display module, configured to display a virtual environment screen, wherein the virtual environment screen includes a virtual scene observed at a first observation angle and a cutout object, wherein the cutout object includes the first object obtained by cutout of the first scene image;
[0015] A receiving module, used for receiving a viewing angle adjustment operation;
[0016] The display module is also used to adjust the first observation angle for observing the virtual scene and the cutout object to a second observation angle based on the viewing angle adjustment operation, wherein the first observation angle and the second observation angle are angles for observing the virtual scene from different observation positions or different observation distances.
[0017] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement an interactive observation method based on a virtual scene as described in any of the above-mentioned embodiments of the present application.
[0018] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement an interactive observation method based on a virtual scene as described in any of the above-mentioned embodiments of the present application.
[0019] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes any of the interactive observation methods based on virtual scenes described in the above embodiments.
[0020] The beneficial effects brought by the technical solution provided in the embodiments of the present application include at least:
[0021] First, the cutout object corresponding to the player is used for combined display in the virtual scene. When the cutout object is displayed in the virtual scene, the viewing angle of observing the virtual scene is adjusted through the viewing angle adjustment operation. The viewing angle adjustment operation can be adjusted on the observation position and the observation distance. While improving the interactive diversity of the virtual scene through the cutout object, the angle adjustment method for observing the virtual scene is increased, thereby improving the observation efficiency of the virtual scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 is a schematic diagram of a cutout object generation process provided by an exemplary embodiment of the present application;
[0024] Figure 2 is a structural block diagram of an electronic device provided by an exemplary embodiment of the present application;
[0025] Figure 3 It is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
[0026] Figure 4 It is a schematic diagram of an interface of an interactive observation method based on a virtual scene provided by an exemplary embodiment of the present application;
[0027] Figure 5 is based on Figure 4 A schematic diagram of a viewing angle adjustment method provided by the illustrated embodiment;
[0028] Figure 6 It is an overall schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
[0029] Figure 7 It is an overall schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
[0030] Figure 8 is a flow chart of an interactive observation method based on a virtual scene provided by another exemplary embodiment of the present application;
[0031] Fig. 9 is based on Figure 8 A schematic diagram of a process of changing the observation angle provided by the illustrated embodiment;
[0032] Fig.10 is a flow chart of an interactive observation method based on a virtual scene provided by another exemplary embodiment of the present application;
[0033] Fig.11 is based on Fig.10 The illustrated embodiment provides a schematic diagram of direction adjustment;
[0034] Fig.12 is an overall flow chart of an interactive observation method provided by an exemplary embodiment of the present application;
[0035] Fig.13 is a structural block diagram of an interactive observation device based on a virtual scene provided by an exemplary embodiment of the present application;
[0036] Fig.14 is a structural block diagram of an interactive observation device based on a virtual scene provided by another exemplary embodiment of the present application;
[0037] Fig.15 It is a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0038] 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.
[0039] First, the nouns involved in the embodiments of the present application are briefly introduced:
[0040] Virtual environment: is a virtual environment displayed (or provided) when an application is running on a terminal. The virtual environment can be a simulation of the real world, a semi-simulation and semi-fictitious environment, or a purely fictitious environment. 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, and this application does not limit this. The following embodiments are illustrated by taking the virtual environment as a three-dimensional virtual environment. In the embodiments of this application, the virtual environment is also called a virtual scene.
[0041] Cutout object: refers to a designated object obtained by cutting out a scene image after the scene image is acquired by a real-view camera. Schematically, in the embodiment of the present application, a cutout object is obtained by cutting out a portrait from a scene image. For schematic illustration, please refer to Figure 1 , which shows a schematic diagram of a cutout object generation process provided by an exemplary embodiment of the present application, such as Figure 1As shown, the scene is captured by the real-scene camera 100 to obtain a scene image 110, wherein the image capture range of the real-scene camera 100 includes a person 120, so that the scene image 110 includes a corresponding object 121, and the object 121 is cut out from the scene image 110 to obtain a cutout object 122.
[0042] In the embodiment of the present application, by displaying a virtual scene and a cutout object in the virtual scene in a virtual environment screen, an experience of the player interacting in the virtual scene is created.
[0043] The terminal in the present application can be a desktop computer, a laptop computer, a mobile phone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, etc. The terminal has installed and runs an application that supports a virtual environment, such as an application that supports a three-dimensional virtual environment. The application can be any one of a virtual reality application, a three-dimensional map program, a third-person shooter game (Third-Person Shooting game, FPS), a first-person shooter game (First-Person Shooting game, FPS), and a multiplayer online tactical competitive game (Multiplayer Online Battle Arena Games, MOBA). Optionally, the application can be a stand-alone application, such as a stand-alone three-dimensional game program, or a network-connected application.
[0044] Figure 2 The electronic device 200 includes an operating system 220 and an application 222 .
[0045] The operating system 220 is the underlying software that provides application programs 222 with secure access to the computer's hardware.
[0046] The application 222 is an application that supports a virtual environment. Optionally, the application 222 is an application that supports a three-dimensional virtual environment. The application 222 may be any one of a virtual reality application, a three-dimensional map program, a TPS game, an FPS game, a MOBA game, and a multiplayer gunfight survival game. The application 222 may be a stand-alone application, such as a stand-alone three-dimensional game program, or a network-connected application.
[0047] Figure 3 The computer system 300 includes a first device 320 , a server 340 , and a second device 360 .
[0048] The first device 320 has an application that supports a virtual environment installed and running. The application can be any one of a virtual reality application, a three-dimensional map program, a TPS game, an FPS game, a MOBA game, and a multiplayer shootout survival game. The first device 320 is a device used by a first user, and the first user uses the first device 320 to control the activity of a first cutout object in a virtual environment, wherein the first device 320 is configured with a first camera, and after the first camera captures and cuts out images of the first user or other users within the image acquisition range, the first cutout object is displayed in the virtual environment.
[0049] The first device 320 is connected to the server 340 via a wireless network or a wired network.
[0050] The server 340 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. The server 340 is used to provide background services for applications that support a three-dimensional virtual environment. Optionally, the server 340 undertakes the main computing work, and the first device 320 and the second device 360 undertake the secondary computing work; or, the server 340 undertakes the secondary computing work, and the first device 320 and the second device 360 undertake the main computing work; or, the server 340, the first device 320, and the second device 360 adopt a distributed computing architecture to perform collaborative computing.
[0051] The second device 360 has an application that supports the virtual environment installed and running. The application can be any one of a virtual reality application, a three-dimensional map program, an FPS game, a MOBA game, and a multiplayer shootout survival game. The second device 360 is a device used by a second user, and the second user uses the second device 360 to control the activity of a second cutout object in the virtual environment, wherein the second device 360 is configured with a second camera, and after the second camera captures and cuts out the image of the second user or other users within the image acquisition range, the second cutout object is displayed in the virtual environment.
[0052] Optionally, the first cutout object and the second cutout object are in the same virtual environment. Optionally, the first cutout object and the second cutout object may belong to the same team, the same organization, have a friend relationship, or have temporary communication permissions. Optionally, the first cutout object and the second cutout object may also belong to different teams, different organizations, or two hostile groups.
[0053] Optionally, the applications installed on the first device 320 and the second device 360 are the same, or the applications installed on the two devices are the same type of applications on different control system platforms. The first device 320 may refer to one of a plurality of devices, and the second device 360 may refer to one of a plurality of devices. This embodiment is only illustrated by the first device 320 and the second device 360. The device types of the first device 320 and the second device 360 are the same or different, and the device types include at least one of a game console, a desktop computer, a smart phone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, and a laptop computer. The following embodiments are illustrated by the device being a desktop computer.
[0054] Those skilled in the art will appreciate that the number of the above devices may be more or less. For example, the above device may be only one, or the above devices may be dozens or hundreds, or more. The embodiment of the present application does not limit the number and type of devices.
[0055] It is worth noting that the above-mentioned server 340 can be implemented as a physical server or as a cloud server in the cloud, wherein cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network in a wide area network or a local area network to realize the calculation, storage, processing, and sharing of data. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model application, which can form a resource pool, which is used on demand and is flexible and convenient. Cloud computing technology will become an important support. The background services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites, and more portal websites. With the high development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the background system for logical processing. Data of different levels will be processed separately, and all kinds of industry data require strong system backing support, which can only be achieved through cloud computing.
[0056] In some embodiments, the method provided in the embodiments of the present application can be applied to a cloud gaming scenario, so that the calculation of data logic during the game is completed through the cloud server, while the terminal is responsible for the display of the game interface.
[0057] In some embodiments, the server 340 can also be implemented as a node in a blockchain system. Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the blockchain underlying platform, platform product service layer, and application service layer.
[0058] The application scenarios of the embodiments of the present application include at least one of the following scenarios:
[0059] The first one is applied in the game scenario, in which the game can be implemented as a cloud game, that is, the cloud server completes the computing logic during the game, and the terminal is used to complete the display logic during the game.
[0060] In an illustrative manner, the game can be implemented as at least one of a dance game, a shooting game, and a puzzle game. Player A collects a scene image through a first terminal equipped with a first camera, and cuts out a cutout object a corresponding to player A from the scene image; player B collects a scene image through a second terminal equipped with a second camera, and cuts out a cutout object b corresponding to player B from the scene image. Cutout object a and cutout object b and a pre-set virtual scene are displayed in the terminal interface, thereby enabling players A and B to interact in the virtual scene and participate in the game.
[0061] The second type is applied to live broadcast scenarios, in which the live broadcast application includes anchors and audiences, where the anchor refers to the user who creates the live broadcast room, and the audience refers to the user who watches the live broadcast room. In the live broadcast room, the audience can interact with each other in a virtual scene, or the anchor can interact with the audience in a virtual scene.
[0062] Schematically, anchor 1 creates a virtual scene interactive activity in the live broadcast room and invites the audience to participate. Audience 2 is invited to participate in the virtual scene interactive activity with anchor 1. Anchor 1 collects scene images through a first terminal equipped with a first camera, and cuts out the scene images to obtain a cutout object m corresponding to anchor 1; audience 2 collects scene images through a second terminal equipped with a second camera, and cuts out the scene images to obtain a cutout object n corresponding to audience 2. Cutout objects m and n and pre-set virtual scenes are displayed in the terminal interface, so that anchor 1 and audience 2 can interact in the virtual scene. Among them, other audiences except audience 2 can watch the interactive process between anchor 1 and audience 2 in the virtual scene.
[0063] Combined with the above-mentioned noun introduction and implementation environment description, the interactive observation method based on the virtual scene provided in the embodiment of the present application is described. Please refer to Figure 4 , which shows a flowchart of an interactive observation method based on a virtual scene provided by an exemplary embodiment of the present application, and takes the method applied to a first terminal equipped with a camera as an example for explanation, such as Figure 4 As shown, the method includes:
[0064] Step 401: In response to a virtual scene display operation, a first scene image is captured through a camera.
[0065] In some embodiments, the virtual scene display operation refers to an operation in which a user instructs to open a virtual scene.
[0066] Illustratively, for different application scenarios, the implementation of the virtual scene display operation includes at least one of the following methods:
[0067] First, for cloud gaming application scenarios, users trigger the game start operation as a virtual scene display operation, that is, according to the game start operation, the cloud gaming game is started and the game interface is entered. Among them, users can team up with friends to enter the cloud gaming game, or invite friends to team up after entering the cloud gaming game.
[0068] Second, for live broadcast application scenarios, the anchor account triggers the interactive space opening operation as a virtual scene display operation, that is, a virtual scene for the anchor account to interact with the audience account is opened according to the interactive space opening operation.
[0069] The first scene image includes a first object located within the shooting range of the camera of the first terminal. That is, the first scene image refers to an image captured by the camera configured by the first terminal, wherein the first terminal continuously captures the first scene image in the form of a video stream, and during the capture of the first scene image, the first object is within the shooting range of the camera and is displayed in the first scene image.
[0070] In some embodiments, when the terminal receives a virtual scene display operation, the camera is turned on and the first scene image is captured through the camera.
[0071] After the first scene image is captured, it is also necessary to perform a cutout process on the first scene image, and the first object is obtained by cutting out the first scene image. The process of cutting out the first scene image can be completed by the terminal or by the server. When the process of cutting out the first scene image is completed by the terminal, the first scene image is directly cut out after the camera captures the first scene image, thereby saving the amount of data interaction between the terminal and the server; when the process of cutting out the first scene image is completed by the server, the first scene image is sent to the server after the camera captures the first scene image, and the server cuts out the first scene image to obtain the first object.
[0072] In some embodiments, the camera configured by the first terminal is a 2D camera, that is, used to capture a planar image. Alternatively, the camera configured by the first terminal is a 3D camera, that is, used to capture depth of field information during the image capture process.
[0073] When the camera configured on the first terminal is a 2D camera, the data interaction between the terminal and the server is based on a planar image, thereby reducing the amount of data interaction; when the camera configured on the first terminal is a 3D camera, the terminal can construct a 3D model corresponding to the player based on the collected depth of field information, thereby improving the authenticity of the cutout object displayed in the virtual scene.
[0074] Step 402 , displaying a virtual environment screen, wherein the virtual environment screen includes a virtual scene and a cutout object observed from a first observation angle.
[0075] The cutout objects include a first object obtained by cutout of a first scene image and a second object obtained by cutout of a second scene image, and the second scene image is an image acquired by a second terminal equipped with a camera.
[0076] The first object and the second object are objects participating in the same virtual game. It is worth noting that in this embodiment, the virtual scene including the first object and the second object is used as an example for explanation. In some optional embodiments, the virtual scene may also include only one object, or include three or more objects, which is not limited in this embodiment.
[0077] Among them, this embodiment is explained by taking the server's cutout of a scene image as an example, the terminal sends a first scene image to the server, and receives screen display data fed back by the server, the screen display data including scene data corresponding to the virtual scene and object data corresponding to the cutout object.
[0078] The scene data of the virtual scene is data corresponding to the virtual scene determined according to a preset virtual scene; or, the scene data is data corresponding to the selection result determined according to the user's selection of the virtual scene, providing a solution for the user to select the virtual scene, increasing the diversity of virtual scene interaction; or, the scene data is data corresponding to the random result determined according to the randomly obtained virtual scene. This embodiment does not limit this.
[0079] The terminal displays the virtual environment screen based on the scene data and object data fed back by the server.
[0080] In some embodiments, the display positions of the first object and the second object in the virtual scene are randomly determined from preset candidate positions, thereby increasing the uncertainty of object display; or, the display positions of the first object and the second object in the virtual scene are indicated to the terminal by the server according to preset display rules. Schematically, the object data includes the object display position, and the virtual scene is displayed based on the scene data, and the cutout object is displayed at the object display position in the virtual scene.
[0081] The current virtual environment picture is a picture obtained by observing the virtual scene from a first observation angle, wherein the first observation angle refers to the observation angle of the camera model observing the virtual scene.
[0082] Optionally, each player corresponds to a camera model for observing the virtual scene in the virtual scene; or, each player corresponds to n camera models for observing the virtual scene in the virtual scene for switching; or, players who meet the observation switching conditions correspond to n camera models for observing the virtual scene in the virtual scene for switching, and players who do not meet the observation switching conditions correspond to one camera model for observing the virtual scene in the virtual environment, and n is an integer greater than 1.
[0083] In some embodiments, alignment is required before displaying the virtual environment screen, so as to distinguish the object from the image background and improve the accuracy of the object's cutout. Optionally, a calibration screen is displayed, and the calibration screen includes a first scene image, and the first scene image includes an indicator box and an indicator line. Among them, the indicator box is used to indicate the selection of the first object, and the indicator line is located at a specified position of the first scene image and divides the first scene image into a first area and a second area. By collecting a stage image of the first object moving from the first position to the second position, the background part of the first scene image is indicated. Among them, the first position is the position where the indicator box is located in the first area, and the second position is the position where the indicator box is located in the second area. That is, the control indicator box is moved from the first area of the first scene image to the second area of the first scene image, so that when the indicator box is displayed in the first area, the content displayed in the second area is the complete background image, and when the indicator box is displayed in the second area, the content displayed in the first area is the complete background image. The two parts of the complete background image are combined to obtain the complete background image except the first object in the first scene image. When the first object in the first scene image is subsequently cut out, the cutout process can be implemented according to the identified background image, thereby improving the accuracy of the cutout result.
[0084] In some embodiments, in response to the completion of the registration process of the first object and the second object, the virtual environment screen is displayed, and the server performs a cutout processing on the first object in the first scene image according to the first background area after the first object is registered. Similarly, the server performs a cutout processing on the second object in the second scene image according to the second background area after the second object is registered, thereby displaying the first object and the second object in the virtual scene.
[0085] Step 403: receiving a viewing angle adjustment operation.
[0086] In some embodiments, in response to the player meeting the observation switching condition, a perspective adjustment operation triggered by the player is received. The perspective adjustment operation is implemented in at least one of the following ways:
[0087] First, a typing operation is received through an external input device, such as a keyboard, a mouse, etc., and the typing operation corresponding to the viewing angle adjustment function is determined as a viewing angle adjustment operation.
[0088] The viewing angle adjustment operation can be accurately and quickly performed through an external input device, thereby improving the accuracy of the viewing angle adjustment operation.
[0089] Second, an angle adjustment control is displayed on the virtual environment screen, and the viewing angle adjustment operation is an operation received on the angle adjustment control.
[0090] The angle adjustment control can accurately and quickly implement the viewing angle adjustment operation, thereby improving the accuracy of the viewing angle adjustment operation.
[0091] Third, the viewing angle is controlled through voice input, and the voice input operation is received as a viewing angle adjustment operation.
[0092] Since the virtual environment involved in the embodiments of the present application needs to be displayed in conjunction with the player, that is, the player's actions are recorded during the game, there is a situation where it is inconvenient to operate external input devices or smart devices. The perspective is controlled through voice input, and the player does not need to perform additional operations on the external input device or smart device, thereby improving the efficiency of perspective control.
[0093] Fourth, the virtual environment screen displays an angle adjustment control. When the player strikes a corresponding pose in the real scene, and the server cuts out the image and displays it in the virtual environment screen, the player's action causes the cutout object to contact the angle adjustment control, and the contact operation between the cutout object and the angle adjustment control is regarded as the corresponding angle adjustment operation. For an illustration, please refer to Figure 5 After the player strikes a pose in the displayed scene, the server cuts out the scene image to obtain a cutout object 510 corresponding to the player. When the cutout object 510 is mapped to the virtual environment screen 500, the foot 511 of the cutout object overlaps with the angle adjustment control 520 in the virtual environment screen 500, which serves as a contact operation with the angle adjustment control 520, thereby determining the angle adjustment operation.
[0094] Since the virtual environment involved in the embodiments of the present application needs to be displayed in conjunction with the player, that is, the player's actions are recorded during the game, and the angle adjustment is achieved by the player performing actions and contacting the angle adjustment controls, the diversity of the interaction between the player and the virtual scene is increased, and the interactive ability of the virtual scene is enhanced.
[0095] It is worth noting that the above-mentioned implementation method of the viewing angle adjustment operation is only an illustrative example and is not limited to this in the embodiments of the present application.
[0096] Step 404: Based on the viewing angle adjustment operation, the first viewing angle for observing the virtual scene and the cutout object is adjusted to a second viewing angle.
[0097] Optionally, the first observation angle and the second observation angle are angles for observing the virtual scene from different observation positions or different observation distances.
[0098] The adjustment method of the observation angle corresponds to the viewing angle adjustment operation; or, the adjustment method of the observation angle is pre-set.
[0099] Schematically, when the adjustment method of the observation angle corresponds to the viewing angle adjustment operation, such as: a left adjustment control and a right adjustment control are displayed in the virtual environment screen, when the angle adjustment control for the left adjustment control is received, the first observation angle is adjusted to the left to obtain a second observation angle.
[0100] When the viewing angle adjustment method is preset, for example, a viewing angle adjustment control is displayed in the virtual environment screen, when an angle adjustment operation for the viewing angle adjustment control is received, the viewing angle is adjusted in a preset direction to obtain a second viewing angle.
[0101] Among them, the adjustment from the first observation angle to the second observation angle includes a rotation adjustment in the horizontal direction of the virtual scene; or a distance adjustment in the observation direction; or an arbitrary adjustment in the spherical direction, which is not limited in the embodiments of the present application.
[0102] Indicatively, Figure 6 , which shows a schematic diagram of an observation angle adjustment method provided by an exemplary embodiment of the present application. The camera model 601 observes the virtual scene in the direction toward the center of the sphere on the spherical observation model 600. When rotating along the observation track 610, the adjustment from the first observation angle to the second observation angle is a rotation adjustment in the horizontal direction of the virtual scene; when the camera model 601 changes the distance on the line connecting the center of the sphere, it is a distance adjustment in the observation direction; when the camera model 601 rotates arbitrarily on the spherical surface, it is an arbitrary adjustment in the spherical direction.
[0103] Among them, the horizontal rotation adjustment observation in the virtual scene is realized as a surround observation of the virtual scene in the horizontal direction, that is, a complete observation of the virtual scene from 360 degrees in the horizontal direction, thereby displaying various details in the virtual scene and improving the observation efficiency.
[0104] The distance adjustment in the observation direction of the virtual scene is realized by adjusting the distance between the observation point and the cutout object when observing the virtual scene. When observing the cutout object at a closer distance, more observation details can be obtained, resulting in a close-up observation effect; and when observing the cutout object at a farther distance, more comprehensive information on the combination of the cutout object and the virtual scene can be obtained, resulting in a long-range observation effect.
[0105] Any direction adjustment in the virtual scene is to adjust the all-round observation angle when observing the virtual scene, and display the combination of the cutout object and the virtual scene from different angles, which increases the diversity of observation methods.
[0106] To summarize, the interactive observation method based on the virtual scene provided in the embodiment of the present application first uses the cutout object corresponding to the player for combined display with the virtual scene, and when the cutout object is displayed in the virtual scene, the observation perspective of the virtual scene is adjusted through the perspective adjustment operation, thereby increasing the interactive diversity of the virtual scene through the cutout object, and increasing the angle adjustment method for observing the virtual scene, thereby improving the observation efficiency of the virtual scene.
[0107] Indicative, Figure 7 is an overall schematic diagram of an implementation environment provided by an exemplary embodiment of the present application, such as Figure 7 As shown, player A operates smart device 710 to participate in the game, and smart device 710 is equipped with a camera to collect images of player A; player B operates smart device 720 to participate in the game, and smart device 720 is equipped with a camera to collect images of player B. Server 740 receives the collected scene images sent by smart devices 710 and 720, cuts out the scene images, obtains the corresponding cutout objects for players A and B, and feeds back the virtual scene and the cutout objects to viewing terminal 750 for display, wherein smart devices 710 and 720 also belong to viewing terminals.
[0108] In some embodiments, since the cutout object is implemented as a two-dimensional image, during the viewing angle adjustment process, it is also necessary to control the cutout object to display the complete image content by controlling the display direction of the cutout object. Figure 8 is a flowchart of an interactive observation method based on a virtual scene provided by another exemplary embodiment of the present application, and is described by taking the method applied to a first terminal equipped with a camera as an example. Figure 8 As shown, the method includes:
[0109] Step 801: In response to a virtual scene display operation, a first scene image is captured through a camera.
[0110] In some embodiments, the virtual scene display operation refers to an operation in which a user instructs to open a virtual scene.
[0111] The first scene image includes a first object located within the shooting range of the camera of the first terminal. That is, the first scene image refers to an image captured by the camera configured by the first terminal.
[0112] In some embodiments, when the terminal receives a virtual scene display operation, the camera is turned on and the first scene image is captured through the camera.
[0113] Step 802 , displaying a virtual environment screen, wherein the virtual environment screen includes a virtual scene and a cutout object observed from a first observation angle.
[0114] The cutout objects include a first object obtained by cutout of a first scene image and a second object obtained by cutout of a second scene image, and the second scene image is an image acquired by a second terminal equipped with a camera.
[0115] The current virtual environment picture is a picture obtained by observing the virtual scene from a first observation angle, wherein the first observation angle refers to the observation angle of the camera model observing the virtual scene.
[0116] Step 803: receiving a viewing angle adjustment operation.
[0117] In some embodiments, in response to the player meeting the observation switching conditions, a perspective adjustment operation triggered by the player is received.
[0118] Step 804: Based on the viewing angle adjustment operation, the first viewing angle for observing the virtual scene is adjusted to a second viewing angle.
[0119] In some embodiments, the terminal corresponds to a camera model in the virtual scene, and the camera model is used to adjust the viewing angle. Based on the viewing angle adjustment operation, the camera model is adjusted from a first viewing position to a second viewing position, wherein the first viewing position is used to observe the virtual scene at a first viewing angle, and the second viewing position is used to observe the virtual scene at a second viewing angle. In some embodiments, the first viewing position and the second viewing position are two viewing positions on the same sphere, the first viewing angle is an angle observed from the first viewing position to the center of the sphere, and the second viewing angle is an angle observed from the second viewing position to the center of the sphere.
[0120] In some embodiments, the angle difference (or distance difference) between the first observation angle and the second observation angle is pre-set; or, the angle difference (or distance difference) between the first observation angle and the second observation angle is determined according to the viewing angle adjustment operation, so that the player can select the required observation angle with a stable change relationship, thereby improving the observation accuracy; or, the second observation angle is obtained by randomly adjusting a certain angle difference (or distance difference) on the basis of the first observation angle, so that the player can randomly determine an observation angle to observe the virtual scene, thereby improving the fun of observing the virtual scene. The embodiment of the present application does not limit the change relationship between the first observation angle and the second observation angle.
[0121] That is, each player corresponds to a camera model in the virtual scene, and the virtual environment image is captured through the camera model. Therefore, when adjusting the viewing angle, it is only necessary to rotate the viewing position of the camera model to adjust the viewing angle.
[0122] In other embodiments, a camera model corresponds to the virtual scene, wherein a first observation angle corresponds to the first camera model, and a second observation angle corresponds to the second camera model. Based on a viewing angle adjustment operation, the observation of the virtual scene is switched from the first camera model to the second camera model.
[0123] That is, each player corresponds to at least two camera models in the virtual scene; or, the current player corresponds to at least two camera models in the virtual scene, so when adjusting the viewing angle, it is only necessary to switch between different camera models to adjust the viewing angle.
[0124] Among them, when the observation angle is adjusted by switching between at least two camera models, the observation angle can be adjusted by directly switching between multiple set camera models. There is no need to calculate the rotation and movement angles of the camera model, which reduces the calculation amount of the server.
[0125] When a single camera model is rotated and moved to adjust the viewing angle, the rotation angle of the camera model can be accurately controlled, thereby improving the accuracy of viewing angle switching.
[0126] Step 805: Keep the position of the cutout object in the virtual scene unchanged, and display the cutout object in a direction facing the second observation angle.
[0127] Since the scene image is realized as a two-dimensional image, the cutout object obtained by cutting out the scene image is also realized as a two-dimensional image. If the display direction of the cutout object remains unchanged, it is easy to cause the cutout object to be displayed as a "paper man" or an incomplete portrait when observing the virtual scene from other perspectives. Therefore, in the embodiment of the present application, the cutout object is always kept facing the direction of the observation perspective.
[0128] In some embodiments, when observing the virtual scene through the camera model, the position of the cutout object in the virtual scene is kept unchanged, and the cutout object is controlled to be displayed facing the camera model corresponding to the second observation perspective.
[0129] For illustration, please refer to Fig. 9 , which shows a schematic diagram of the observation angle change process provided by an exemplary embodiment of the present application, such as Fig. 9As shown, the virtual environment screen 910 is a screen obtained by observing the virtual scene at a first observation angle through a camera model, and the virtual environment screen 910 includes a cutout object 901 and a cutout object 902, and the cutout object 901 and the cutout object 902 are displayed in a direction facing the first observation angle; when a perspective adjustment operation is received, a virtual environment screen 920 is displayed by observing the virtual scene at a second observation angle through a camera model, wherein the virtual environment screen 920 includes a cutout object 901 and a cutout object 902, and the cutout object 901 and the cutout object 902 are displayed in a direction facing the second observation angle.
[0130] That is, no matter the virtual scene is observed from the first observation angle or the second observation angle, the cutout object remains completely displayed in the direction facing the observation angle. In some embodiments, after the observation angle is determined, an image of the virtual scene is acquired from the observation angle, and the image of the cutout object attached to the virtual scene is used as a picture of the cutout object in the virtual scene.
[0131] To summarize, the interactive observation method based on the virtual scene provided in the embodiment of the present application first uses the cutout object corresponding to the player for combined display with the virtual scene, and when the cutout object is displayed in the virtual scene, the observation perspective of the virtual scene is adjusted through the perspective adjustment operation, thereby increasing the interactive diversity of the virtual scene through the cutout object, and increasing the angle adjustment method for observing the virtual scene, thereby improving the observation efficiency of the virtual scene.
[0132] The method provided in this embodiment keeps the display position of the cutout object unchanged and adjusts the display direction of the cutout object accordingly while switching the viewing angle to observe the virtual scene, thereby ensuring that the cutout object is displayed facing the observation angle, avoiding the problem of distorted observation of the cutout object due to the cutout object being implemented as a two-dimensional image.
[0133] In some embodiments, the viewing angle adjustment operation includes at least two of direction adjustment and distance adjustment. Fig.10 is a flowchart of an interactive observation method based on a virtual scene provided by another exemplary embodiment of the present application, and is described by taking the method applied to a first terminal equipped with a camera as an example. Fig.10 As shown, the method includes:
[0134] Step 1001: In response to a virtual scene display operation, a first scene image is captured through a camera.
[0135] In some embodiments, the virtual scene display operation refers to an operation in which a user instructs to open a virtual scene.
[0136] The first scene image includes a first object located within the shooting range of the camera of the first terminal. That is, the first scene image refers to an image captured by the camera configured by the first terminal.
[0137] In some embodiments, when the terminal receives a virtual scene display operation, the camera is turned on and the first scene image is captured through the camera.
[0138] Step 1002 , displaying a virtual environment screen, wherein the virtual environment screen includes a virtual scene and a cutout object observed from a first observation angle.
[0139] The cutout objects include a first object obtained by cutout of a first scene image and a second object obtained by cutout of a second scene image, and the second scene image is an image acquired by a second terminal equipped with a camera.
[0140] The current virtual environment picture is a picture obtained by observing the virtual scene from a first observation angle, wherein the first observation angle refers to the observation angle of the camera model observing the virtual scene.
[0141] Step 1003: receiving a viewing angle adjustment operation.
[0142] Optionally, an angle adjustment control is displayed on the virtual environment screen, and the viewing angle adjustment operation is an operation received on the angle adjustment control.
[0143] Taking into account that the player's image will be captured and displayed in the virtual scene, in the embodiment of the present application, the perspective adjustment operation triggered by the contact between the cutout object and the angle adjustment control on the virtual environment screen is used as an example to illustrate.
[0144] In some embodiments, the angle adjustment control includes a direction adjustment area; when the observation direction needs to be adjusted, the direction adjustment operation on the direction adjustment area is received. Schematically, the direction adjustment area includes a left adjustment control, a right adjustment control, an upward adjustment control, and a downward adjustment control; schematically, taking the left adjustment control as an example, when a trigger operation on the left adjustment control is received, the observation position corresponding to the first observation angle is rotated to the left by a preset angle or a random angle, that is, on the observation sphere, the observation position corresponding to the first observation angle is rotated to the left by a certain angle to a new observation position; or, the camera model used to observe the virtual scene is switched from the camera model at the first observation position corresponding to the first observation angle to the camera model at the second observation position after being rotated to the left by a certain angle.
[0145] In some embodiments, the angle adjustment control includes a distance adjustment area. When the observation distance needs to be adjusted, a distance adjustment operation is received on the distance adjustment area, so that the distance of observing the virtual scene is adjusted based on the distance adjustment operation, wherein the distance adjustment operation is used to adjust the position of the observation point in the observation direction. Optionally, the distance adjustment area can adjust the observation distance within a preset distance range, that is, the distance adjustment area has an upper limit and a lower limit of the observation distance for adjustment, so as to avoid excessive adjustment of the observation distance, resulting in distortion of the cutout object due to the two-dimensional image when the observation distance is close.
[0146] Optionally, the upper and lower limits of the observation distance refer to the upper and lower limits of the distance between the observation position and the observation center. That is, when the distance between the observation position and the observation center reaches the minimum distance (the lower limit of the observation distance), the observation position can no longer be adjusted to a position close to the observation center; when the distance between the observation position and the observation center reaches the maximum distance (the upper limit of the observation distance), the observation position can no longer be adjusted to a position away from the observation center. By setting the upper and lower limits of the observation distance, the expression of details when observing virtual scenes and cutout objects is limited to avoid a large amount of computation consumed by detail rendering when the observation distance is too close, and to avoid the inability to clearly reflect the interface content and low observation efficiency when the observation distance is too far.
[0147] Step 1004, determining the adjustment method corresponding to the viewing angle adjustment operation on the angle adjustment control.
[0148] In some embodiments, it is determined whether the viewing angle adjustment operation is an operation on the direction adjustment area or an operation on the distance adjustment area. When the viewing angle adjustment operation is an operation on the direction adjustment area, the angle of observation of the virtual scene is rotated; when the viewing angle adjustment operation is an operation on the distance adjustment area, the angle of observation of the virtual scene is zoomed in or out, that is, when the angle of observation of the virtual scene is zoomed in, the virtual scene and the objects in the virtual scene are magnified and displayed, and when the angle of observation of the virtual scene is zoomed out, the virtual scene and the objects in the virtual scene are reduced and displayed.
[0149] For illustration, please refer to Fig.11 , an angle adjustment control 1110 is displayed on the virtual environment screen 1100, wherein the angle adjustment control 1110 includes a direction adjustment area 1111 and a distance adjustment area 1112. When a direction adjustment operation is received on the direction adjustment area 1111, the angle of observing the virtual scene is adjusted by rotating the camera model; when a distance adjustment operation is received on the distance adjustment area 1112, the angle of observing the virtual scene is adjusted by zooming in or out of the camera model.
[0150] In some embodiments, there is a linkage relationship between the display of the direction adjustment area 1111 and the distance adjustment area 1112. Illustratively, after receiving a direction adjustment operation on the direction adjustment area 1111, the observation direction is adjusted according to the direction adjustment operation and the distance adjustment area 1112 is displayed in linkage, so that the observation distance is adjusted by receiving the distance adjustment operation on the distance adjustment area 1112. Alternatively, after receiving a distance adjustment operation on the distance adjustment area 1112 to adjust the observation distance, the direction adjustment area 1111 is displayed in linkage, and after receiving the direction adjustment operation on the direction adjustment area 1111, the observation direction is adjusted according to the direction adjustment operation.
[0151] Alternatively, adjustment options may also be displayed on the angle adjustment control 1110, including a direction option and a distance option. When a selection operation for the direction option is received, the direction adjustment area 1111 is displayed, and the user may return to displaying the adjustment options through a confirmation control; when a selection operation for the distance option is received, the distance adjustment area 1112 is displayed, and the user may return to displaying the adjustment options through a confirmation control.
[0152] In some embodiments, the viewing angle adjustment operation includes both the operation in the direction adjustment area and the operation in the distance adjustment area. Then the adjustment method includes both the adjustment in direction and distance, and corresponding adjustments need to be made in both the observation direction and the observation distance.
[0153] Step 1005: Adjust the first observation angle for observing the virtual scene to a second observation angle in an adjustment manner.
[0154] When the adjustment method includes adjustment in the viewing direction, the camera model is rotated or switched to adjust the viewing direction; that is, the viewing position of a single camera model in the virtual scene is rotated or multiple camera models are switched to achieve the adjustment of the viewing direction. For example, when adjusting the viewing direction to the right, the camera model is rotated to the right around the viewing center, or the first camera model is switched to the second camera model on the right for viewing.
[0155] When the adjustment method includes adjustment of the observation distance, the position of the camera model is transformed in the observation direction to achieve the adjustment of the observation distance; that is, in the observation direction of the camera model, the camera model is adjusted toward the observation center, or the camera model is adjusted away from the observation center, thereby achieving the adjustment of the observation distance.
[0156] When the adjustment method includes adjustment in both the observation direction and the observation distance, the observation position of the camera model in the observation direction is adjusted while rotating or switching the camera model.
[0157] To summarize, the interactive observation method based on the virtual scene provided in the embodiment of the present application first uses the cutout object corresponding to the player for combined display with the virtual scene, and when the cutout object is displayed in the virtual scene, the observation perspective of the virtual scene is adjusted through the perspective adjustment operation, thereby increasing the interactive diversity of the virtual scene through the cutout object, and increasing the angle adjustment method for observing the virtual scene, thereby improving the observation efficiency of the virtual scene.
[0158] The method provided in this embodiment, when adjusting the observation angle, includes adjustment in the observation direction and adjustment in the observation distance, thereby improving the diversity of observation methods for observing the virtual scene.
[0159] Illustratively, the virtual scene-based interactive method provided in the embodiment of the present application is applied to cloud gaming as an example. Fig.12 is an overall flow chart of an interactive observation method provided by an exemplary embodiment of the present application, such as Fig.12 As shown, the process includes:
[0160] Step 1201, the cloud server starts the cloud game.
[0161] Cloud games are run in cloud servers so that players can access the cloud servers for cloud games.
[0162] Step 1202, the player logs into the lobby.
[0163] In some embodiments, multiple players log into the cloud game lobby using an account system.
[0164] Step 1203, the player joins the room through the lobby.
[0165] A cloud game room includes at least one player. In an embodiment of the present application, a cloud game room includes at least two players, and at least two players can interact with each other.
[0166] Step 1204, the cloud server initializes the player data.
[0167] The cloud server first initializes the game account data corresponding to the player.
[0168] Step 1205, the cloud server creates a personal rendering camera.
[0169] The cloud server creates a virtual camera unique to each player in the game scene, binds it to each player one by one, and uses it to capture game images from a specified angle and transmit it back to the specified player.
[0170] Step 1206: The cloud server creates a personal audio group.
[0171] Among them, the personal audio group refers to the audio group corresponding to the player, which is used to deliver independent audio content to the player. Schematically, when player A and player B are in the same virtual scene, player A selects audio a as the background audio, and player B selects audio b as the background audio, then the data of audio a is transmitted to player A, and the data of audio b is transmitted to player B for independent playback.
[0172] Step 1207, the player establishes a connection with the cloud server and exchanges codec information.
[0173] Among them, encoding and decoding are the corresponding processes of video processing. The cloud server encodes the game process video and sends it to the terminal. The terminal decodes the encoded video to obtain the decoded video stream for playback. The terminal obtains the video stream through the camera, encodes the video stream collected by the camera, and sends it to the cloud server for decoding and subsequent processing such as clipping.
[0174] Step 1208, the cloud server sends the camera rendered video stream and the encoded video stream to the player.
[0175] Among them, the cloud server renders the player's video content, including obtaining cutout objects, virtual scene data, display position data, etc., renders the video stream according to the calculated display data, and encodes the video stream and sends it to the terminal. Since the computing power of the cloud server is far superior to that of the terminal, the terminal only needs to receive the encoded video stream for decoding and playing the video, which can display the game process of the cloud game without calculating or processing the game data, reducing the data processing amount on the terminal side and improving the operating efficiency and speed of the cloud game.
[0176] Step 1209, the player performs data stream simulation input.
[0177] In some embodiments, the player first receives some test data for simulated input. When the test data is input successfully, it is determined that the player's control operation on the cloud game is successful, and then the player can further control the camera or other controls.
[0178] Step 1210, the cloud server controls the player's camera / operation.
[0179] That is, the cloud server obtains the viewing angle control operation performed by the player, and adjusts the position of the camera model according to the viewing angle control operation, thereby adjusting the viewing angle.
[0180] Fig.13 is a structural block diagram of an interactive observation device based on a virtual scene provided by an exemplary embodiment of the present application, such as Fig.13 As shown, the device is applied to a first terminal equipped with a camera, and the device includes:
[0181] A collection module 1310, configured to collect a first scene image through the camera in response to a virtual scene display operation, wherein the first scene image includes a first object located within a shooting range of the camera of the first terminal;
[0182] The display module 1320 is used to display a virtual environment screen, wherein the virtual environment screen includes a virtual scene observed at a first observation angle and a cutout object, wherein the cutout object includes the first object obtained by cutting out the first scene image and the second object obtained by cutting out the second scene image, wherein the second scene image is an image acquired by a second terminal equipped with a camera;
[0183] A receiving module 1330 is used to receive a viewing angle adjustment operation;
[0184] The display module 1320 is further configured to adjust the first observation angle for observing the virtual scene and the cutout object to a second observation angle based on the viewing angle adjustment operation.
[0185] In an optional embodiment, the display module 1320 is also used to adjust the first observation angle of the virtual scene to a second observation angle based on the viewing angle adjustment operation; keep the position of the cutout object in the virtual scene unchanged, and display the cutout object facing the direction of the second observation angle.
[0186] In an optional embodiment, the terminal corresponds to a camera model in the virtual scene, and the camera model is used to adjust the viewing angle;
[0187] like Fig.14 As shown, the device further includes:
[0188] The adjustment module 1340 is used to adjust the camera model from a first observation position to a second observation position based on the viewing angle adjustment operation, wherein the first observation position is used to observe the virtual scene at a first observation angle, and the second observation position is used to observe the virtual scene at a second observation angle.
[0189] In an optional embodiment, the virtual scene corresponds to a camera model, wherein the first observation angle corresponds to a first camera model, and the second observation angle corresponds to a second camera model;
[0190] The device further comprises:
[0191] The adjustment module 1340 is configured to switch, based on the viewing angle adjustment operation, from observing the virtual scene through the first camera model to observing the virtual scene through the second camera model.
[0192] In an optional embodiment, the virtual scene is provided with a camera model correspondingly;
[0193] The display module 1320 is further used to keep the position of the cutout object in the virtual scene unchanged; and control the cutout object to be displayed facing the camera model corresponding to the second observation angle.
[0194] In an optional embodiment, an angle adjustment control is displayed on the virtual environment screen, and the viewing angle adjustment operation is an operation received on the angle adjustment control;
[0195] The device also includes:
[0196] A determination module, used to determine an adjustment mode corresponding to the viewing angle adjustment operation on the angle adjustment control;
[0197] The display module 1320 is further configured to adjust the first observation angle for observing the virtual scene to the second observation angle in the adjustment manner.
[0198] In an optional embodiment, the angle adjustment control includes a direction adjustment area;
[0199] The receiving module 1330 is further configured to receive a direction adjustment operation on the direction adjustment area;
[0200] The display module 1320 is further configured to adjust the first observation angle for observing the virtual scene to the second observation angle based on the adjustment direction corresponding to the direction adjustment operation.
[0201] In an optional embodiment, the angle adjustment control includes a distance adjustment area;
[0202] The receiving module 1330 is further used to receive a distance adjustment operation on the distance adjustment area, where the distance adjustment operation is used to adjust the position of the observation point in the observation direction;
[0203] The device further comprises:
[0204] The adjustment module 1340 is used to adjust the observation distance for observing the virtual scene based on the distance adjustment operation.
[0205] To sum up, the interactive observation device based on the virtual scene provided in the embodiment of the present application first uses the cutout object corresponding to the player for combined display with the virtual scene, and when the cutout object is displayed in the virtual scene, the observation perspective of the virtual scene is adjusted through the perspective adjustment operation, thereby increasing the interactive diversity of the virtual scene through the cutout object, and increasing the angle adjustment method for observing the virtual scene, thereby improving the observation efficiency of the virtual scene.
[0206] It should be noted that the interactive observation device based on a virtual scene provided in the above embodiment 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 can be divided into different functional modules to complete all or part of the functions described above. In addition, the interactive observation device based on a virtual scene provided in the above embodiment and the interactive observation method embodiment based on a virtual scene belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0207] Fig.15 The structure block diagram of a terminal 1500 provided by an exemplary embodiment of the present application is shown. The terminal 1500 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, a laptop computer or a desktop computer. The terminal 1500 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0208] Typically, the terminal 1500 includes a processor 1501 and a memory 1502 .
[0209] The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1501 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, the processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0210] The memory 1502 may include one or more computer-readable storage media, which may be non-transitory. The memory 1502 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 1502 is used to store at least one instruction, which is used to be executed by the processor 1501 to implement the interactive observation method based on the virtual scene provided in the method embodiment of the present application.
[0211] In some embodiments, the terminal 1500 may also optionally include: a peripheral device interface 1503 and at least one peripheral device. The processor 1501, the memory 1502 and the peripheral device interface 1503 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1503 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1504, a display screen 1505, a camera assembly 1506, an audio circuit 1507, a positioning assembly 1508 and a power supply 1509.
[0212] The peripheral device interface 1503 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, the memory 1502, and the peripheral device interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502, and the peripheral device interface 1503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0213] The radio frequency circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1504 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1504 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1504 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1504 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0214] The display screen 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1505 is a touch display screen, the display screen 1505 also has the ability to collect touch signals on the surface or above the surface of the display screen 1505. The touch signal can be input to the processor 1501 as a control signal for processing. At this time, the display screen 1505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1505 can be one, and the front panel of the terminal 1500 is set; in other embodiments, the display screen 1505 can be at least two, which are respectively set on different surfaces of the terminal 1500 or are folded; in some other embodiments, the display screen 1505 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 1500. Even, the display screen 1505 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1505 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0215] The camera assembly 1506 is used to capture images or videos. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1506 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0216] The audio circuit 1507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1501 for processing, or input them into the radio frequency circuit 1504 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1500. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1501 or the radio frequency circuit 1504 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1507 may also include a headphone jack.
[0217] The positioning component 1508 is used to locate the current geographical location of the terminal 1500 to implement navigation or LBS (Location Based Service).
[0218] The power supply 1509 is used to power various components in the terminal 1500. The power supply 1509 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1509 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0219] In some embodiments, the terminal 1500 further includes one or more sensors 1510 , including but not limited to: an acceleration sensor 1511 , a gyroscope sensor 1512 , a pressure sensor 1513 , a fingerprint sensor 1514 , an optical sensor 1515 , and a proximity sensor 1516 .
[0220] The acceleration sensor 1511 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1500. For example, the acceleration sensor 1511 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1501 can control the touch display screen 1505 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1511. The acceleration sensor 1511 can also be used for collecting game or user motion data.
[0221] The gyro sensor 1512 can detect the body direction and rotation angle of the terminal 1500, and the gyro sensor 1512 can cooperate with the acceleration sensor 1511 to collect the user's 3D actions on the terminal 1500. The processor 1501 can implement the following functions based on the data collected by the gyro sensor 1512: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0222] The pressure sensor 1513 can be set on the side frame of the terminal 1500 and / or the lower layer of the touch display screen 1505. When the pressure sensor 1513 is set on the side frame of the terminal 1500, it can detect the user's holding signal of the terminal 1500, and the processor 1501 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1513. When the pressure sensor 1513 is set on the lower layer of the touch display screen 1505, the processor 1501 controls the operability controls on the UI interface according to the user's pressure operation on the touch display screen 1505. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0223] The fingerprint sensor 1514 is used to collect the user's fingerprint, and the processor 1501 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1514, or the fingerprint sensor 1514 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1501 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1514 can be set on the front, back, or side of the terminal 1500. When a physical button or a manufacturer logo is set on the terminal 1500, the fingerprint sensor 1514 can be integrated with the physical button or the manufacturer logo.
[0224] The optical sensor 1515 is used to collect the ambient light intensity. In one embodiment, the processor 1501 can control the display brightness of the touch display screen 1505 according to the ambient light intensity collected by the optical sensor 1515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1505 is reduced. In another embodiment, the processor 1501 can also dynamically adjust the shooting parameters of the camera assembly 1506 according to the ambient light intensity collected by the optical sensor 1515.
[0225] The proximity sensor 1516, also called a distance sensor, is usually arranged on the front panel of the terminal 1500. The proximity sensor 1516 is used to collect the distance between the user and the front of the terminal 1500. In one embodiment, when the proximity sensor 1516 detects that the distance between the user and the front of the terminal 1500 is gradually decreasing, the processor 1501 controls the touch display screen 1505 to switch from the screen-on state to the screen-off state; when the proximity sensor 1516 detects that the distance between the user and the front of the terminal 1500 is gradually increasing, the processor 1501 controls the touch display screen 1505 to switch from the screen-off state to the screen-on state.
[0226] Those skilled in the art will understand that Fig.15 The structure shown in the figure does not constitute a limitation on the terminal 1500, and the terminal 1500 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0227] Optionally, the computer readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid state drive (SSD), or an optical disk. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0228] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0229] 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.
Claims
1. An interactive observation method based on a virtual scene, characterized in that: The method comprises: Acquiring a first scene image in response to a virtual scene display operation, wherein the first scene image includes a first object; Displaying a calibration screen, wherein the calibration screen includes the first scene image, the first scene image includes an indication frame and an indication line, the indication frame is used to indicate the first object, and the indication line is located at a specified position of the first scene image and divides the first scene image into a first area and a second area; By collecting stage images of the first object moving from a first position to a second position, indicating the background part of the first scene image, wherein the first position is the position of the indication frame located in the first area, and the second position is the position of the indication frame located in the second area, when the indication frame is displayed in the first area, the content displayed in the second area is a complete background image, and when the indication frame is displayed in the second area, the content displayed in the first area is a complete background image, and the two parts of the complete background image are combined to obtain a complete background image of the first scene image except for the first object; Displaying a virtual environment screen, wherein the virtual environment screen includes a virtual scene observed at a first observation angle and a cutout object, wherein the cutout object includes the first object obtained by cutting out the first scene image according to the identified background image; Receive viewing angle adjustment operation; Based on the viewing angle adjustment operation, the first viewing angle for observing the virtual scene and the cutout object is adjusted to a second viewing angle, wherein the first viewing angle and the second viewing angle are angles for observing the virtual scene from different viewing positions or different viewing distances.
2. The method according to claim 1, characterized in that The adjusting the first observation angle for observing the virtual scene and the cutout object to a second observation angle based on the viewing angle adjustment operation includes: Based on the viewing angle adjustment operation, adjusting the first viewing angle of the virtual scene to a second viewing angle; The position of the cutout object in the virtual scene is kept unchanged, and the cutout object is displayed in a direction facing the second observation angle.
3. The method according to claim 2, characterized in that The virtual scene corresponds to a camera model, and the camera model is used to adjust the viewing angle of the virtual scene; The adjusting the first observation angle of observing the virtual scene to a second observation angle based on the viewing angle adjustment operation includes: Based on the viewing angle adjustment operation, the camera model is adjusted from a first observation position to a second observation position, wherein the first observation position is used to observe the virtual scene at a first observation angle, and the second observation position is used to observe the virtual scene at a second observation angle.
4. The method according to claim 2, characterized in that: The virtual scene corresponds to a camera model, wherein the first observation angle corresponds to a first camera model, and the second observation angle corresponds to a second camera model; The adjusting the first observation angle of observing the virtual scene to a second observation angle based on the viewing angle adjustment operation includes: Based on the viewing angle adjustment operation, the virtual scene is observed by switching from the first camera model to the second camera model.
5. The method according to claim 2, characterized in that: The virtual scene corresponds to a camera model; The step of maintaining the position of the cutout object in the virtual scene unchanged and displaying the cutout object in a direction facing the second observation angle comprises: Keeping the position of the cutout object in the virtual scene unchanged; The cutout object is controlled to be displayed facing the camera model corresponding to the second viewing angle.
6. The method according to any one of claims 1 to 5, characterized in that: The method is applied to a first terminal equipped with a camera; The acquiring of a first scene image in response to a virtual scene display operation comprises: In response to the virtual scene display operation, the first scene image is captured by the camera, and the first scene image is an image captured within the shooting range of the camera.
7. The method according to any one of claims 1 to 5, characterized in that: An angle adjustment control is displayed on the virtual environment screen, and the viewing angle adjustment operation is an operation received on the angle adjustment control; The adjusting the first observation angle for observing the virtual scene and the cutout object to a second observation angle based on the viewing angle adjustment operation includes: Determine an adjustment mode corresponding to the viewing angle adjustment operation on the angle adjustment control; The first observation angle for observing the virtual scene is adjusted to the second observation angle in the adjustment manner.
8. The method according to claim 7, characterized in that The angle adjustment control includes a direction adjustment area; The receiving viewing angle adjustment operation includes: receiving a direction adjustment operation on the direction adjustment area; The adjusting the first observation angle for observing the virtual scene to the second observation angle in the adjustment manner includes: Based on the adjustment direction corresponding to the direction adjustment operation, the first observation angle for observing the virtual scene is adjusted to the second observation angle.
9. The method according to claim 7, characterized in that: The angle adjustment control includes a distance adjustment area; The method further comprises: receiving a distance adjustment operation on the distance adjustment area, wherein the distance adjustment operation is used to adjust a position of an observation point in an observation direction; The observation distance for observing the virtual scene is adjusted based on the distance adjustment operation.
10. The method according to any one of claims 1 to 5, characterized in that: The display of the virtual environment screen includes: Sending the first scene image to a server; Receiving screen display data fed back by the server, wherein the screen display data includes scene data corresponding to the virtual scene and object data corresponding to the cutout object; The virtual environment screen is displayed based on the scene data and the object data.
11. The method according to any one of claims 1 to 5, characterized in that: The cutout object also includes a second object, where the second object is an object obtained by cutout of a second scene image, wherein the second scene image is an image acquired by a second terminal.
12. The method according to claim 11, characterized in that After displaying the virtual environment screen, the method further includes: In response to the first object and the second object meeting the interaction requirement in the virtual scene, an interactive animation is displayed through the virtual environment screen.
13. An interactive observation device based on a virtual scene, characterized in that: The device comprises: An acquisition module, configured to acquire a first scene image in response to a virtual scene display operation, wherein the first scene image includes a first object; a module for displaying a calibration screen, wherein the calibration screen includes the first scene image, the first scene image includes an indication frame and an indication line, the indication frame is used to indicate the first object, and the indication line is located at a specified position of the first scene image and divides the first scene image into a first area and a second area; A module for indicating the background part of the first scene image by acquiring a stage image of the first object moving from a first position to a second position, wherein the first position is a position of the indication frame located in the first area, and the second position is a position of the indication frame located in the second area, when the indication frame is displayed in the first area, the content displayed in the second area is a complete background image, and when the indication frame is displayed in the second area, the content displayed in the first area is a complete background image, and the two parts of the complete background image are combined to obtain a complete background image of the first scene image except for the first object; A display module, configured to display a virtual environment screen, wherein the virtual environment screen includes a virtual scene observed at a first observation angle and a cutout object, wherein the cutout object includes the first object obtained by cutting out the first scene image according to the identified background image; A receiving module, used for receiving a viewing angle adjustment operation; The display module is also used to adjust the first observation angle for observing the virtual scene and the cutout object to a second observation angle based on the viewing angle adjustment operation, wherein the first observation angle and the second observation angle are angles for observing the virtual scene from different observation positions or different observation distances.
14. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the interactive observation method based on a virtual scene as described in any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the interactive observation method based on the virtual scene as described in any one of claims 1 to 12.
