Virtual scene data processing method and device, electronic equipment, computer readable storage medium and computer program product

By displaying a viewfinder interface in a virtual scene and generating 3D images in response to user actions, the problem of insufficient all-round observation and interactivity in existing technologies is solved, realizing all-round snapshot capture of virtual scenes and enhancing interactivity.

CN121879633APending Publication Date: 2026-04-17TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2024-10-16
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing technologies can only capture two-dimensional static images from the current perspective, and cannot provide the ability to observe virtual scenes from all angles and multiple perspectives. Interactivity is limited, users cannot subjectively select virtual objects, and the user experience is poor.

Method used

A data processing method for virtual scenes is provided, which generates a 3D image of a specific area in the virtual scene by displaying a viewfinder interface and responding to user operations. It supports switching between 3D and 2D shooting modes, allows users to adjust the viewfinder interface through voice, motion sensing, or touch operations, and hides or retains graphic elements in the virtual scene.

Benefits of technology

It enables comprehensive and multi-view snapshot capture of virtual scenes, enhancing user interactivity and immersion, and meeting users' needs for realism and interactivity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121879633A_ABST
    Figure CN121879633A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device for a virtual scene, electronic equipment, a computer readable storage medium and a computer program product. The method comprises the steps of displaying a virtual scene; in response to a view-finding interface triggering operation for the virtual scene, displaying a view-finding interface, the view-finding interface including a to-be-shot target area in the virtual scene; and displaying a three-dimensional image including the target area in response to a shooting trigger operation for the view finding interface. According to the method and the device, the omnibearing and multi-view snapshot of the specific area in the virtual scene can be generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to data processing technology, and more particularly to a data processing method, apparatus, electronic device, computer-readable storage medium, and computer program product for a virtual scene. Background Technology

[0002] With the development of technology and the popularization of the internet, images of virtual scenes have been widely used in various fields such as games, film and television production, and art design. However, when shooting virtual scenes, users have increasingly higher demands for realism and interactivity. Current technologies can only obtain two-dimensional static images of virtual scenes through two-dimensional shooting modes. These two-dimensional static images cannot capture all the information of a three-dimensional scene, do not support omnidirectional observation of the three-dimensional scene, and therefore cannot meet users' needs for realism and interactivity. Summary of the Invention

[0003] This application provides a data processing method, apparatus, electronic device, computer-readable storage medium, and computer program product for virtual scenes, which can generate full-range and multi-view snapshots of specific areas in a virtual scene.

[0004] The technical solution of this application embodiment is implemented as follows:

[0005] This application provides a data processing method for a virtual scene, the method comprising:

[0006] Display virtual scenes;

[0007] In response to a viewfinder trigger operation for the virtual scene, a viewfinder is displayed, wherein the viewfinder includes the target area to be photographed in the virtual scene;

[0008] In response to a shooting trigger operation on the viewfinder, a three-dimensional image including the target area is displayed.

[0009] This application provides a data processing device for a virtual scene, the device comprising:

[0010] The scene display module is used to display virtual scenes;

[0011] The interface display module is used to display the framing interface in response to a framing interface trigger operation for the virtual scene, wherein the framing interface includes the target area in the virtual scene.

[0012] An image display module is used to display a three-dimensional image including the target area in response to a shooting trigger operation on the viewfinder.

[0013] This application provides an electronic device, the electronic device comprising:

[0014] Memory is used to store executable instructions or computer programs.

[0015] The processor, when executing computer-executable instructions or computer programs stored in the memory, implements the data processing method for the virtual scene provided in the embodiments of this application.

[0016] This application provides a computer-readable storage medium storing a computer program or computer-executable instructions, which, when executed by a processor, implements the data processing method for a virtual scene provided in this application.

[0017] This application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, they implement the data processing method for a virtual scene provided in this application.

[0018] The embodiments of this application have the following beneficial effects:

[0019] In response to a trigger operation in the viewfinder of a virtual scene, the viewfinder of the virtual scene is displayed. Before taking a picture, the viewfinder visually displays the content of the virtual scene within the target area (such as information about virtual objects and other graphic elements) to facilitate adjustment of the target area. Taking a picture of the viewfinder yields a 3D image including the target area. Compared to related technologies that can only capture 2D images from the current perspective, the 3D image provides the user with a comprehensive and multi-view snapshot of the target area, making it easy to view detailed information of the target area in the virtual scene. Attached Figure Description

[0020] Figure 1 This is a schematic diagram of the architecture of the virtual scene data processing system 100 provided in the embodiments of this application;

[0021] Figure 2 This is a schematic diagram of the structure of the terminal 400 provided in the embodiments of this application;

[0022] Figure 3A This is a first flowchart illustrating the data processing method for a virtual scene provided in an embodiment of this application;

[0023] Figure 3B This is a schematic diagram of the second process of the data processing method for virtual scenes provided in the embodiments of this application;

[0024] Figure 3C This is a schematic diagram of the third process of the data processing method for a virtual scene provided in the embodiments of this application;

[0025] Figure 3D This is a schematic diagram of the fourth process of the data processing method for a virtual scene provided in the embodiments of this application;

[0026] Figure 4A This is a first schematic diagram of the virtual scene provided in the embodiments of this application;

[0027] Figure 4B This is a second schematic diagram of the virtual scene provided in the embodiments of this application;

[0028] Figure 4C This is a third schematic diagram of the virtual scene provided in the embodiments of this application;

[0029] Figure 4D This is a fourth schematic diagram of the virtual scene provided in the embodiments of this application;

[0030] Figure 5 This is the fifth schematic diagram of the virtual scene provided in the embodiments of this application;

[0031] Figure 6A This is the sixth schematic diagram of the virtual scene provided in the embodiments of this application;

[0032] Figure 6B This is the seventh schematic diagram of the virtual scene provided in the embodiments of this application;

[0033] Figure 6C This is the eighth schematic diagram of the virtual scene provided in the embodiments of this application;

[0034] Figure 6D This is the ninth schematic diagram of the virtual scene provided in the embodiments of this application;

[0035] Figure 6E This is the tenth schematic diagram of the virtual scene provided in the embodiments of this application;

[0036] Figure 7A This is the eleventh schematic diagram of the virtual scene provided in the embodiments of this application;

[0037] Figure 7B This is the twelfth schematic diagram of the virtual scene provided in the embodiments of this application;

[0038] Figure 7C This is the thirteenth schematic diagram of the virtual scene provided in the embodiments of this application;

[0039] Figure 8 This is a schematic diagram of the fifth process of the data processing method for a virtual scene provided in the embodiments of this application;

[0040] Figure 9 This is a schematic diagram of the shooting range provided in the embodiments of this application.

[0041] It should be noted that the terms "first" and "second" mentioned above are only used to distinguish between different options and do not represent the degree of superiority or inferiority of the options or their priority in the implementation process. Detailed Implementation

[0042] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0043] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0044] In the following description, the terms "first / second / third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0045] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0046] Unless otherwise specified, "at least one" as used below refers to one or more cases, and "multiple" can refer to two or more cases.

[0047] Unless otherwise defined, all technical and scientific terms used in the embodiments of this application have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the embodiments of this application is for descriptive purposes only and is not intended to limit the scope of this application.

[0048] In the implementation of this application, the collection and processing of relevant data should strictly comply with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.

[0049] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.

[0050] 1) Responding to: used to indicate the conditions or states on which the operation is performed. When the conditions or states on which the operation is performed are met, one or more operations may be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.

[0051] 2) Human-Computer Interaction Interface: An interface used to provide human-computer interaction functions. Examples include graphical user interfaces (GUIs), augmented reality (AR) interfaces, virtual reality (VR) interfaces, voice user interfaces (VUIs), interactive projection interfaces (using projection technology to display information on a flat surface), eye-tracking interfaces (interfaces controlled by detecting the user's gaze), holographic interfaces (three-dimensional holograms formed by projecting images using holographic projection technology, allowing viewing of stereoscopic images without special glasses), multimodal interfaces (interfaces combining multiple interaction methods, such as tactile, visual, and auditory interaction), and brain-machine interfaces (BMIs).

[0052] 3) Virtual Scene: This is the scene displayed (or provided) by the application when it runs on the terminal device. This scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. Users can control virtual objects to move within this virtual scene. For example, in a game scene, the virtual scene could be the setting of a game match.

[0053] 4) Virtual Objects: Images of various people and objects that interact within a virtual scene, or movable objects within the virtual scene. These movable objects can be virtual characters, virtual animals, virtual buildings, etc. A virtual scene can include multiple virtual objects, each with its own shape and volume, occupying a portion of the space within the virtual scene. For example, in a game scene, a virtual object can be a player character (PC) controlled by the user, or a non-player character (NPC) automatically generated by the game system.

[0054] The first virtual object: a virtual object that acts as a sharer of the 3D image during the interaction of multiple virtual objects.

[0055] Second virtual object: A virtual object that acts as the receiver of a 3D image during the interaction of multiple virtual objects.

[0056] 5) Target area: This is the area within the maximum visible range of the virtual camera in the virtual scene. The size of the target area depends on parameters such as the virtual camera's camera angle, focal length, and maximum shooting distance. For example, the target area can include virtual objects, buildings, or scenery that the user is interested in.

[0057] 6) Cropping area: Within the visible range of the virtual camera, the area located between the near cropping plane and the far cropping plane. The near cropping plane is the plane in the target area whose distance from the virtual camera is at a first distance threshold, and the far cropping plane is the plane in the target area whose distance from the virtual camera is at a second distance threshold. For example, the first distance threshold is 10 meters and the second distance threshold is 80 meters.

[0058] 7) Display Completeness: The proportion of a virtual object displayed in the clipping area to its total size displayed in the virtual scene. For example, it could be the ratio of the virtual object's volume / area displayed in the clipping area to its full volume / total area in the virtual scene.

[0059] The existing technology can only obtain two-dimensional still images of virtual scenes through two-dimensional shooting mode and share these images with others. However, this technology has the following technical problems:

[0060] 1. In shooting mode, only two-dimensional static images can be captured from the current perspective, and the ability to observe virtual scenes from all angles and multiple perspectives cannot be provided;

[0061] 2. Limited interactivity: On the one hand, players cannot control their characters' movements in the virtual scene of two-dimensional static images, making it difficult to bring a strong immersive experience; on the other hand, the program sharing mechanism usually only shares two-dimensional static images with other players, without providing further interactive space, and only staying at the level of visual appreciation.

[0062] 3. During filming, users cannot make subjective selections of virtual objects in the virtual scene, resulting in a poor user experience.

[0063] Based on the above analysis, the applicant found that the data processing methods of virtual scenes in related technologies cannot capture all the information of three-dimensional scenes, do not support all-round observation of three-dimensional scenes, and cannot meet people's needs for realism and interactivity.

[0064] To address the aforementioned problems, embodiments of this application provide a data processing method, apparatus, electronic device, computer-readable storage medium, and computer program product for virtual scenes, capable of generating comprehensive and multi-view snapshots of specific areas within a virtual scene. The following describes exemplary applications of the electronic device provided in this application. This electronic device can be implemented as various types of terminals such as laptops, tablets, desktop computers, set-top boxes, smartphones, smart speakers, smartwatches, smart TVs, and in-vehicle terminals, or it can be implemented as a server. Exemplary applications of the electronic device when implemented as a terminal will be described below.

[0065] See Figure 1 , Figure 1 This is a schematic diagram of the architecture of the virtual scene data processing system 100 provided in the embodiments of this application. In order to support a data processing application for a virtual scene, the terminal 400 (terminal 400-1 and terminal 400-2 are shown as examples) connects to the server 200 through the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.

[0066] Terminal 400 is used to display a virtual scene on the human-computer interaction interface 411-1 of terminal 400-1. When a viewfinder trigger operation is received for the virtual scene, the viewfinder is displayed, wherein the viewfinder includes the target area to be photographed in the virtual scene; when a shooting trigger operation is received for the viewfinder, a three-dimensional image including the target area is displayed.

[0067] Taking a game scene as an example, terminal 400 displays a virtual scene on the human-computer interaction interface 411-1 of terminal 400-1 controlled by the first player character. When it receives a viewfinder trigger operation from the first player character regarding the virtual scene, it displays the viewfinder, which includes the target area to be photographed in the virtual scene. When it receives a shooting trigger operation from the first player character regarding the viewfinder, it displays a 3D image including the target area. In response to the first player character's sharing operation for the 3D image, it shares the 3D image with terminal 400-2 controlled by the second player character, for displaying the 3D image in the virtual scene of the human-computer interaction interface 411-2 of terminal 400-2. It can also allow the second player character controlling terminal 400-2 to interact with the first player character in the 3D scene corresponding to the 3D image.

[0068] See Figure 2 , Figure 2 This is a schematic diagram of the structure of the terminal 400 provided in the embodiment of this application. Figure 2The terminal 400 shown includes at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components in the terminal 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to implement communication between these components. In addition to a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 2 The general labeled all buses as Bus System 440.

[0069] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.

[0070] User interface 430 includes one or more output devices 431 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. User interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.

[0071] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices physically located away from the processor 410.

[0072] The memory 450 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 450 described in this application embodiment is intended to include any suitable type of memory.

[0073] In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.

[0074] Operating system 451 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks;

[0075] The network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc.

[0076] Presentation module 453 is configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 (e.g., a display screen, a speaker, etc.) associated with user interface 430;

[0077] The input processing module 454 is used to detect and translate one or more user inputs or interactions from one or more input devices 432.

[0078] In some embodiments, the apparatus provided in this application can be implemented in software. Figure 2 A data processing device 455 for a virtual scene stored in memory 450 is shown. This device can be software in the form of programs and plugins, and includes the following software modules: a scene display module 4551, an interface display module 4552, and an image display module. These modules are logically connected and can therefore be arbitrarily combined or further separated according to their implemented functions. The functions of each module will be described below.

[0079] In some embodiments, the terminal or server can implement the data processing method for the virtual scene provided in this application by running various computer-executable instructions or computer programs. For example, computer-executable instructions can be microprogram-level commands, machine instructions, or software instructions. Computer programs can be native programs or software modules in an operating system; they can be native applications (APPs), i.e., programs that need to be installed in the operating system to run, such as game APPs; or they can be applets that can be embedded in any APP, i.e., programs that only need to be downloaded to a browser environment to run. In summary, the aforementioned computer-executable instructions can be any form of instruction, and the aforementioned computer programs can be any form of application, module, or plugin.

[0080] The data processing method for virtual scenes provided in this application will be described in conjunction with exemplary applications and implementations of the terminals provided in the embodiments of this application.

[0081] See Figure 3A , Figure 3A This is a schematic diagram of the first process of the data processing method for a virtual scene provided in this application embodiment. Taking the terminal as the execution subject as an example, it will be combined with... Figure 3A The steps shown are explained.

[0082] In step 101, a virtual scene is displayed.

[0083] In some embodiments, a virtual scene can be displayed in the human-computer interaction interface of the terminal. The virtual scene includes multiple virtual objects, which can be virtual characters, virtual animals, virtual buildings, etc. A virtual scene may include multiple virtual objects, each with its own shape and volume, occupying a portion of the space within the virtual scene. For example, in a game scene, virtual objects can be player characters controlled by the user, or non-player characters automatically generated by the game system, or they can be buildings, plants, or virtual props, etc.

[0084] In step 102, in response to a viewfinder trigger operation for the virtual scene, a viewfinder is displayed, wherein the viewfinder includes the target area to be photographed in the virtual scene.

[0085] Here, the target area to be photographed is at least a portion of the virtual scene, serving as the shooting preview area.

[0086] In some embodiments, step 102 above can be implemented by performing the following process: in response to receiving voice information for framing a virtual scene, displaying a framing interface.

[0087] Here, the user's voice commands can be received via a microphone or other audio input device; then, the received voice commands are processed by speech recognition, converting the received voice signal into text information, or directly recognizing the user's intention, such as recognizing which part of the virtual scene the user wants to view, from which angle, etc.; finally, the viewfinder interface is triggered to be displayed based on the parsed viewfinder command.

[0088] In other embodiments, step 102 above can be implemented by performing the following process: in response to receiving haptic information for framing a virtual scene, displaying a framing interface.

[0089] Here, the system can first receive the user's movements on the corresponding device by having the user wear a motion-sensing device (such as smart glasses, motion-sensing gloves, VR headsets, motion sensors, etc.) or by having the user use a device with built-in motion-sensing functionality (such as smartphones, tablets); secondly, it can capture the user's body movement and posture information through sensors such as accelerometers, gyroscopes, and cameras on the device; then, it can transmit the collected motion-sensing data to the terminal device (such as smartphones, computers, game consoles, etc.) via Bluetooth, Wi-Fi, USB, or other wireless or wired communication methods; finally, it can receive and parse the motion-sensing data using software or applications on the terminal device, including recognizing specific gestures, postures, or movement trajectories, and identifying the user's intentions.

[0090] As an example, in response to the user's upward wave, the view of the current virtual scene is zoomed in; in response to the user's downward wave, the view of the current virtual scene is zoomed out; in response to the user's leftward wave, the view of the current virtual scene is rotated clockwise; and in response to the user's rightward wave, the view of the current virtual scene is rotated counterclockwise.

[0091] In other embodiments, step 102 above can be implemented by performing the following process: displaying a viewfinder interface in response to a trigger operation for a shooting entrance in a virtual scene.

[0092] As an example, see Figure 4A and Figure 4B , Figure 4A This is a first schematic diagram of the virtual scene provided in the embodiments of this application. Figure 4B This is a second schematic diagram of the virtual scene provided in the embodiments of this application. For example... Figure 4A As shown, Figure 4A The diagram shows a first virtual object 401, a shooting entry point 402, a direction control 403, and a skill control 404. In response to a trigger operation on the shooting entry point 402, shooting mode is entered, and the following is displayed: Figure 4B The viewfinder interface shown.

[0093] This application provides various triggering methods for viewfinder interface operations, such as displaying the viewfinder interface based on received voice information, haptic information, or triggering operations targeting the shooting entrance. These multiple triggering methods offer more interactive options, allowing users to choose the most comfortable and convenient operation method according to their preferences and the situation. For example, voice and haptic control can provide a more user-friendly experience for people with disabilities or mobility impairments. Different triggering methods simplify the interaction process between the user and the device, making operation more intuitive and simple. For example, voice commands allow users to operate without touching the device, while haptic control allows users to trigger the viewfinder interface through natural movements. Different triggering methods can be adjusted according to different usage scenarios. For example, voice control may be preferred in noisy environments, while touch operation may be used in quiet environments. The combination of multiple triggering methods can support broader technological inclusivity, enabling users with different skill levels and abilities to use the product. Different triggering methods can be optimized according to users' personal habits and workflows, thereby improving operational efficiency. For example, for users accustomed to using voice, voice triggering can save a significant amount of time. In conclusion, providing multiple viewfinder trigger operation methods can comprehensively improve the user experience, promote technological innovation, and expand the product's influence.

[0094] In some embodiments, when performing the "display viewfinder" step 102 above, graphic elements unrelated to shooting in the virtual scene are hidden, wherein the graphic elements include at least one of the following: operation controls, taskbar controls, and message bars.

[0095] Here, the method for hiding graphic elements in the virtual scene that are unrelated to shooting can be any of the following: Method 1: Automatically hide graphic elements in the virtual scene that are unrelated to shooting when the viewfinder is displayed; Method 2: Hide all graphic elements in the virtual scene that are unrelated to shooting in response to the triggering operation of a unified hiding control; Method 3: Classify graphic elements in the virtual scene that are unrelated to shooting, provide a category hiding control for each type of graphic element, and hide the corresponding graphic element in response to the triggering operation of the category hiding control.

[0096] As an example of method one above, see [link to example]. Figure 4A and 4B In response to a trigger operation on the shooting entry 402, the system enters shooting mode and displays the following: Figure 4B When the viewfinder is shown, Figure 4A The operation controls, namely the direction control 403 and the skill control 404, are in Figure 4B The viewfinder view is automatically hidden and not displayed.

[0097] As an example of method two above, see Figure 4C , Figure 4C This is a third schematic diagram of the virtual scene provided in the embodiments of this application. For example... Figure 4C As shown, Figure 4C The diagram above shows a first virtual object 501, a shooting entry point 502, a directional control 503, a skill control 504, a taskbar control 511, a message bar 512, and a hidden control 513. The directional control 503 and the skill control 504 are operation controls. In response to a selection operation on the hidden control 513 and a trigger operation on the shooting entry point 502, the shooting mode is entered, and the following is displayed: Figure 4C The viewfinder interface is shown in the image below. Figure 4C The image below is hidden. Figure 4C The taskbar control 511, message bar 512, direction control 503, and skill control 504 are shown in the image above.

[0098] As an example of method three above, see Figure 4D , Figure 4D This is the fourth schematic diagram of the virtual scene provided in the embodiments of this application. For example... Figure 4D As shown, Figure 4D The diagram above shows a first virtual object 501, a shooting entrance 502, a directional control 503, a skill control 504, a taskbar control 511, a message bar 512, and a category hiding component 514. The directional control 503 and skill control 504 are operation controls. The category hiding component 514 includes hidden operation controls, hidden taskbar controls, and a hidden message bar. In response to a selection operation on the hidden taskbar control and hidden message bar in the category hiding component 514, and in response to a trigger operation on the shooting entrance 502, shooting mode is entered, displaying as shown below. Figure 4D The viewfinder interface is shown in the image below. Figure 4D The image below is hidden. Figure 4C The taskbar control 511 and message bar 512 are shown in the image above.

[0099] In some embodiments, when performing the "display viewfinder" step 102 above, all graphic elements in the virtual scene can also be retained. For example, in the example above, in response to a trigger operation on the shooting entrance, the shooting mode is entered, and the displayed viewfinder will simultaneously display operation controls, taskbar controls, and message bar.

[0100] In the present application embodiments, when displaying the viewfinder interface, graphic elements unrelated to shooting in the virtual scene can be hidden in different ways, or all graphic elements in the virtual scene can be retained, so that the viewfinder interface can be displayed differently according to different user needs. It can flexibly hide or display graphic elements in the viewfinder interface to adapt to different shooting and display needs.

[0101] In some embodiments, the viewfinder is in 3D shooting mode by default. When the viewfinder is in 3D shooting mode, the following processing can be performed: in response to the switching operation of the shooting mode control, the 3D shooting mode is switched to 2D shooting mode, wherein the 2D shooting mode is used to capture a 2D image including the target area.

[0102] As an example, see further. Figure 4B , Figure 4B A shooting mode control 405 is shown, wherein the shooting mode control 405 supports switching between two-dimensional shooting mode and three-dimensional shooting mode. The image captured by the two-dimensional shooting mode is a two-dimensional still image, and the image captured by the three-dimensional shooting mode is a three-dimensional image. When the default is three-dimensional shooting mode, in response to the trigger operation of the two-dimensional shooting mode in the shooting mode control 405, the three-dimensional shooting mode can be switched to the two-dimensional switching mode.

[0103] Here, when the viewfinder is in 3D shooting mode, it can also be switched to 2D shooting mode via voice control. For example, the user's voice command can be received through a microphone or other audio input device; then, the received voice command is recognized and converted into text information for switching modes, thus switching the 3D shooting mode to 2D shooting mode.

[0104] This application supports switching between two-dimensional shooting mode and three-dimensional shooting mode. The two-dimensional shooting mode is suitable for simple planar shooting, while the three-dimensional shooting mode is suitable for scenes that require depth information and stereoscopic effects, which enhances the adaptability of the device and allows users to select the appropriate shooting mode according to their needs, such as performing planar two-dimensional shooting or stereoscopic three-dimensional shooting with depth information, thus meeting different shooting needs.

[0105] In some embodiments, the viewfinder includes a viewfinder frame and a focus frame. The viewfinder frame includes a target area in a virtual scene, and the focus frame is used to characterize the focus area when taking a picture in the target area.

[0106] As an example, see further. Figure 4B ,exist Figure 4B The viewfinder interface displays a viewfinder frame 407 and a focus frame 408. The viewfinder frame 407 includes the target area in the virtual scene, and the focus frame 408 is used to represent the focus area when shooting in the target area.

[0107] In some embodiments, after displaying the viewfinder, at least one of the following processes may be performed: in response to a rotation operation in the viewfinder along a first direction, rotating the view of the virtual camera in the viewfinder along the first direction; in response to a translation operation in the viewfinder along a second direction, moving the target area of ​​the virtual camera in the viewfinder along the second direction; in response to a focus adjustment operation in the viewfinder, adjusting the shooting focus of the virtual camera; in response to an adjustment operation of the focus adjustment control in the viewfinder, adjusting the shooting focus of the virtual camera.

[0108] Here, the rotation operation along the first direction in the viewfinder can be performed in any direction, and the rotation operation can be performed by dragging with a single finger. For example, it can be a 10-degree clockwise rotation, that is, rotating the current virtual camera's viewpoint 10 degrees clockwise; or it can be a 20-degree counterclockwise rotation, that is, rotating the current virtual camera's viewpoint 20 degrees counterclockwise.

[0109] The panning operation in the viewfinder along the second direction can be a panning operation in any direction, and the panning operation can be performed by a two-finger swipe. For example, it could be a response to a two-finger swipe to the left in the viewfinder, panning the target area of ​​the current virtual camera to the left.

[0110] The focus adjustment in the viewfinder can be achieved by expanding the virtual camera's focal length with a gesture, or by pinching the camera's focal length to decrease it. Alternatively, it can be adjusted by sliding the slider on the focus adjustment control within the viewfinder.

[0111] As an example, see further. Figure 4B , Figure 4B A focus adjustment control 409 is shown. In response to an upward sliding operation of the slider of the focus adjustment control 409, the shooting focus of the virtual camera can be increased, and in response to a downward sliding operation of the slider of the focus adjustment control 409, the shooting focus of the virtual camera can be decreased.

[0112] In some embodiments, the virtual camera can also be controlled in response to settings operations in the adjustment menu of the viewfinder interface.

[0113] As an example, see Figure 5 , Figure 5 This is the fifth schematic diagram of the virtual scene provided in the embodiments of this application. For example... Figure 5 As shown, you can set the field of view, rotation of the camera, whether to hide the player, face painting, facial expressions, and body movements.

[0114] This application's embodiments support adjusting the virtual camera's viewpoint, shooting area, and focal length before shooting through various adjustment operations. This allows users to directly control the virtual camera's viewpoint, target area, and focal length through intuitive operations, enhancing the user's interactivity with the virtual scene. Rotation and panning operations allow users to easily observe the virtual scene from different angles and positions, obtaining a more flexible perspective. A focal length adjustment scheme is provided, allowing users to adjust the depth of field and field of view as needed to achieve the best shooting results. In summary, this function of controlling the virtual camera in response to operations within the viewfinder provides users with a powerful interactive tool, enhancing the user experience.

[0115] In step 103, in response to a shooting trigger operation on the viewfinder, a three-dimensional image including the target area is displayed.

[0116] In some embodiments, in response to a shooting trigger operation on the viewfinder, a target area is captured, and a three-dimensional image including the target area is displayed.

[0117] In some embodiments, step 103 can be implemented as follows: when the target area includes multiple virtual objects, in response to a shooting trigger operation on the viewfinder, a cropped area in the target area is captured by a virtual camera, and the captured 3D image is displayed; wherein, the cropped area is the area in the target area whose distance from the virtual camera is between a first distance threshold (forming a first cropping plane) and a second distance threshold (forming a second cropping plane), the first distance threshold being less than the second distance threshold, and the second distance threshold being less than the maximum shooting distance of the virtual camera. For example, the maximum shooting distance of the virtual camera is 100 meters, the first distance threshold is 10 meters, and the second distance threshold is 80 meters.

[0118] As an example, see Figure 9 , Figure 9 This is a schematic diagram of the shooting range provided in an embodiment of this application. For example... Figure 9 As shown, the maximum shooting distance, near clipping plane, and far clipping plane of the virtual camera 901 are illustrated, wherein the area between the near clipping plane and the far clipping plane is the clipping region 902.

[0119] In some embodiments, the above-mentioned "taking pictures of the cropped area in the target area by means of a virtual camera" can be achieved by performing the following process: taking pictures of all virtual objects displayed in the cropped area by means of a virtual camera, or taking pictures of virtual objects in the cropped area whose display completeness is greater than a completeness threshold, wherein the display completeness is the ratio of the part of the virtual object displayed in the cropped area to the part displayed in the virtual scene.

[0120] As an example, see further. Figure 9Within the cropping area 902, virtual objects 903, 904, and 905 are shown. Virtual object 903 is not within the field of view of the virtual camera 901 and therefore cannot be photographed; virtual object 904 is designated as the target virtual object because its volume exceeds half its own volume within the field of view of the virtual camera 901; and virtual object 905 is not photographed because its volume does not exceed half its own volume within the field of view of the virtual camera 901.

[0121] This application embodiment determines the clipping region within the target area based on the maximum shooting distance of the virtual camera, the near clipping plane, and the far clipping plane. Virtual objects outside the maximum visible range can be clipped, reducing rendering computation and thus improving rendering performance and reducing latency. Based on the display completeness of virtual objects within the clipping region, the target virtual object to be photographed is determined. Virtual objects within the clipping region can be prioritized according to their display completeness, resulting in a smoother and more realistic rendering effect. Simultaneously, it saves computing resources, storage space, and power consumption, improving the overall resource utilization of the device.

[0122] In some embodiments, the target area is captured by a virtual camera; see also Figure 3B , Figure 3B This is a schematic diagram of the second process of the data processing method for a virtual scene provided in the embodiments of this application. Figure 3A Step 103 can be achieved through Figure 3B Steps 1031 to 1033 are implemented, and will be explained in detail below.

[0123] In step 1031, multiple virtual objects that are located at a distance from the virtual camera that is less than the maximum shooting distance of the virtual camera are displayed in the target area.

[0124] As an example, see Figure 6A , Figure 6A This is the sixth schematic diagram of the virtual scene provided in the embodiments of this application. For example... Figure 6A The target area shown contains multiple virtual objects that are less than the maximum shooting distance of the virtual camera 601, namely the first virtual object 602, the second virtual object 603, the third virtual object 604, and the fourth virtual object 605.

[0125] In step 1032, in response to a selection operation for multiple virtual objects, the selected virtual object is taken as the target virtual object.

[0126] In some embodiments, step 1032 above can be implemented in any of the following ways:

[0127] Method 1: By default, all virtual objects are unselected. Each virtual object displays a selection box. In response to the triggering operation of the selection box of a virtual object, the selected virtual object is used as the target virtual object.

[0128] As an example, see Figure 6B , Figure 6B This is the seventh schematic diagram of the virtual scene provided in the embodiments of this application. For example... Figure 6B The target area shown on the left displays four virtual objects whose distance from the virtual camera 601 is less than the maximum shooting distance of the virtual camera. These are the first virtual object 602, the second virtual object 603, the third virtual object 604, and the fourth virtual object 605. All four virtual objects are unselected, and a corresponding selection box is displayed in the upper right corner of each virtual object. (In response to...) Figure 6B The selection operation of the selection boxes for the second virtual object 603 and the third virtual object 604 on the left will make the outlines of the second virtual object 603 and the third virtual object 604 thicker, that is, the second virtual object 603 and the third virtual object 604 will be used as the target virtual object.

[0129] Method 2: All virtual objects are selected by default, and each virtual object displays a delete control. In response to the triggering operation of the delete control of a virtual object, the selected virtual object is used as the target virtual object.

[0130] As an example, see Figure 6C , Figure 6C This is the eighth schematic diagram of the virtual scene provided in the embodiments of this application. For example... Figure 6C The target area shown on the left displays four virtual objects whose distance from the virtual camera 601 is less than the maximum shooting distance of the virtual camera. These are the first virtual object 602, the second virtual object 603, the third virtual object 604, and the fourth virtual object 605. All four virtual objects are selected, meaning their outlines are displayed in bold, and each virtual object has a corresponding delete control in its upper right corner. In response to... Figure 6C Clicking the delete controls on the first virtual object 602 and the third virtual object 604 on the left will remove the bolding of the outlines of the first virtual object 602 and the third virtual object 604, thus making the second virtual object 603 and the fourth virtual object 605 the target virtual objects.

[0131] Method 3: By default, all virtual objects are selected. In response to interactive operations along a specific direction, the state of the corresponding virtual object is switched to unselected, and the virtual object that is still selected is used as the target virtual object.

[0132] As an example, see Figure 6D , Figure 6D This is the ninth schematic diagram of the virtual scene provided in the embodiments of this application. For example... Figure 6D The target area shown on the left displays four virtual objects whose distance from the virtual camera 601 is less than the maximum shooting distance of the virtual camera. These are the first virtual object 602, the second virtual object 603, the third virtual object 604, and the fourth virtual object 605. All four virtual objects are selected, meaning their outlines are displayed in bold. In response to... Figure 6C At the dividing line L in the target area on the left, the upward sliding operation switches the state of the virtual objects above the dividing line L to an unselected state. That is, the state of the second virtual object 603, the third virtual object 604, and the fourth virtual object 605 is switched to an unselected state. In other words, the outline of the second virtual object 603, the third virtual object 604, and the fourth virtual object 605 is de-emphasized, and the first virtual object 602 is selected as the target virtual object.

[0133] In other embodiments, the viewfinder includes multiple type controls, each type control being associated with a virtual object of a certain type; step 1032 above can also be implemented in the following way: in response to a trigger operation for any type control, the virtual object associated with any type control is set to a selected state, and the virtual object associated with any type control is used as the target virtual object.

[0134] Here, the type of virtual object can be a player character or a non-player character, a building, or an item; the trigger operation for any type of control can be a trigger operation for a single type of control or a trigger operation for multiple types of controls. Setting the virtual object associated with any type of control to a selected state can be achieved by applying different display parameters to the selected virtual object and the unselected virtual object. For example, the selected virtual object can have a different color of its bounding box, a different line thickness, or a different transparency.

[0135] As an example, the types of virtual objects in the target area include player characters, non-player characters, and buildings. In response to a triggered action on the type controls associated with player characters and non-player characters, the virtual objects for both player characters and non-player characters are set to the selected state.

[0136] In other embodiments, the viewfinder includes a distance control, wherein the distance control is used to set the shooting distance range of the virtual camera; the above step 1032 can also be implemented in the following way: in response to the setting operation of the distance control, the distance range set by the setting operation is displayed, wherein the minimum distance of the distance range is the minimum shooting distance of the virtual camera, and the maximum distance of the distance range is the maximum shooting distance of the virtual camera; and the virtual object within the distance range is taken as the target virtual object.

[0137] As an example, see Figure 6E , Figure 6E This is the tenth schematic diagram of the virtual scene provided in the embodiments of this application. For example... Figure 6E The target area shown on the left displays four virtual objects whose distance from the virtual camera 601 is less than the virtual camera's maximum shooting distance (e.g., 100 meters). These are the first virtual object 602, the second virtual object 603, the third virtual object 604, the fourth virtual object 605, and the distance control 606. All four virtual objects are unselected. In response to... Figure 6E If the distance control 606 on the left is set to 50 meters, then in Figure 6E In the interface on the right, the first virtual object 602 is switched to the selected state, that is, the first virtual object 602 is used as the target virtual object.

[0138] In other embodiments, see Figure 3C , Figure 3C This is a schematic diagram of the third process of the data processing method for virtual scenes provided in the embodiments of this application. Figure 3B Step 1032 can also be executed Figure 3C Steps 10321 to 10322 are implemented, and will be explained in detail below.

[0139] In step 10321, a pre-trained machine learning model is invoked to predict the shooting intention of multiple virtual objects, thereby obtaining the probability that each virtual object conforms to the shooting intention. The machine learning model is trained based on virtual scene samples, which include multiple virtual object samples and labels. The labels represent the probability that each virtual object sample conforms to the shooting intention in the virtual scene samples.

[0140] In some embodiments, the virtual scene sample includes attributes and labels of multiple virtual object samples. Here, the attributes of the virtual object samples include geometric attributes (such as position, size, and shape), material attributes (such as color, texture, transparency, and gloss), and interaction attributes (the time, location, and frequency of interaction between the virtual object sample and the user). A virtual object sample is labeled 1 if its probability of conforming to the shooting intention in the virtual scene sample is true; a virtual object sample is labeled 0 if its probability of not conforming to the shooting intention in the virtual scene sample is false.

[0141] In step 10322, the virtual object with a probability greater than the probability threshold is taken as the target virtual object.

[0142] As an example, if the probability threshold is 0.7, and the pre-trained machine learning model is called to predict the shooting intentions of virtual object A, virtual object B, and virtual object C respectively, the probability of shooting intention of virtual object A is 0.75, the probability of shooting intention of virtual object B is 0.55, and the probability of shooting intention of virtual object C is 0.8. Then, virtual object A and virtual object C are selected as target virtual objects.

[0143] This application provides multiple selection schemes for virtual objects within a target area, offering users more interaction methods. Users can choose the most suitable method based on personal preferences or context, improving user convenience and satisfaction. Different selection schemes are applicable to different scenarios and needs, such as precisely selecting a single object, selecting a group of objects, or selecting all objects within an entire area, enhancing flexibility when capturing virtual objects. Responding to user selection of specific objects within the target area allows for more effective resource management, such as reducing rendering computation or storage space. In summary, the above solutions provide users with higher user satisfaction, operational efficiency, and application adaptability, offering a more personalized and flexible user experience.

[0144] See also Figure 3B The following will be an explanation following step 1032 above.

[0145] In step 1033, in response to the shooting trigger operation of the viewfinder, the target virtual object in the target area is photographed and the resulting three-dimensional image is displayed.

[0146] In some embodiments, the user's shooting trigger operation can take any of the following forms: a shooting button, for example, displaying a "Shoot" or "Shutter" button on the viewfinder, and initiating shooting in response to the user's trigger operation on the "Shoot" or "Shutter" button; a swipe operation, initiating shooting in response to the user performing a specific swipe action on the viewfinder, such as swiping up or down; a long press operation, in response to the user's long press operation on a specific area or button on the viewfinder until the shooting operation is completed; voice control, triggering shooting in response to receiving a voice command for shooting, such as "Take a picture" or "Cheese"; gesture recognition, using a front-facing camera or gesture sensor to recognize a specific gesture of the user to initiate shooting; facial recognition, triggering shooting by recognizing a specific facial expression or action of the user, such as blinking or smiling; a timer, automatically taking a picture after a preset time delay in response to the user's setting operation on a timer; a hardware button, triggering shooting in response to pressing a hardware button for shooting on the terminal device; and motion recognition, triggering shooting by recognizing the user's movement trajectory, such as waving an arm or jumping.

[0147] In some embodiments, when displaying a 3D image, the following processes may be performed: displaying a thumbnail of the 3D image from a specific viewpoint, wherein the specific viewpoint is the viewpoint used when displaying the target area in the viewfinder; and saving the 3D image and the thumbnail to an electronic photo album, wherein the thumbnail serves as preview information of the 3D image in the electronic photo album.

[0148] Here, when displaying a thumbnail of a 3D image from a specific viewpoint, the 3D image and the thumbnail can be automatically saved to an electronic photo album; alternatively, the 3D image and the thumbnail can be saved to an electronic photo album in response to a save operation on the 3D image.

[0149] In some embodiments, the virtual scene includes an electronic photo album entry; in response to a trigger operation on the electronic photo album entry, a thumbnail list is displayed, wherein the thumbnail list includes thumbnails of three-dimensional images; in response to a viewing operation on the thumbnails, the three-dimensional images are displayed.

[0150] As an example, see Figure 7A , Figure 7A This is the eleventh schematic diagram of the virtual scene provided in the embodiments of this application. Figure 7A The illustrated photo album shows preview thumbnails of six 3D images as an example. Figure 7A Thumbnail 701 is shown in the figure.

[0151] In some embodiments, the following processing may be performed on a three-dimensional image: in response to a rotation operation in the three-dimensional image along a third direction, the display viewpoint of the three-dimensional image is rotated according to the third direction.

[0152] Here, rotation in a 3D image along a third direction can be performed in any direction, and can be done by dragging with a single finger. For example, it can be a 10-degree clockwise rotation, which rotates the current 3D image's display viewpoint 10 degrees clockwise; or it can be a 20-degree counterclockwise rotation, which rotates the current 3D image's display viewpoint 20 degrees counterclockwise.

[0153] In other embodiments, the following processing may be performed on a three-dimensional image: in response to a translation operation in the three-dimensional image along a fourth direction, the display area of ​​the three-dimensional image is updated according to the fourth direction.

[0154] Here, the translation operation along the fourth direction in the 3D image can be a translation operation performed in any direction, and the translation operation can be a two-finger swipe operation. For example, it could be a response to a two-finger swipe to the left in the 3D image, which would shift the display area of ​​the current 3D image to the left.

[0155] In other embodiments, the following processing may be performed on a 3D image: adjusting the display size of the 3D image in response to a resizing operation on the 3D image; or, adjusting the display size of the 3D image in response to an adjustment operation on a resizing control in the 3D image.

[0156] Here, the resizing of the 3D image can be achieved by either expanding the image with a gesture to increase its display size or pinching it to decrease its display size. The degree of change in the 3D image's display size is directly proportional to the gesture's expansion or pinching parameters. For example, if the expansion gesture is 2 centimeters, the 3D image's display size will be 1.5 times its original size; if the expansion gesture is 3 centimeters, the 3D image's display size will be twice its original size.

[0157] In some embodiments, the three-dimensional image is displayed in the human-computer interaction interface of the first terminal device; when displaying the three-dimensional image, the following processing may be performed: in response to a sharing operation for the three-dimensional image, the three-dimensional image is sent to a second terminal device, wherein the three-dimensional image is used for the second terminal device to display a target area in a virtual scene at its original size.

[0158] Here, after the 3D image is sent to the second terminal device, when the target area in the virtual scene is displayed at the original size on the human-computer interaction interface of the second terminal device, a second player character can also be displayed in the target area. The second player character is controlled by the second terminal device.

[0159] As an example, this could be in response to a triggered action on a sharing control in a 3D image, sending the 3D image to a second terminal device. See also Figure 7B , Figure 7B This is the twelfth schematic diagram of the virtual scene provided in the embodiments of this application. In response to... Figure 7A The trigger operation of thumbnail 701 in the image is shown as follows: Figure 7B The photo details of the 3D image shown are also included. Figure 7B The image shows a delete control 702, a share control 703, and a scene entry point 704. In response to a trigger action on the share control 703, players can share the 3D scene with other players.

[0160] In some embodiments, when displaying a 3D image, a delete control may be displayed simultaneously. In response to a triggering operation on the delete control, the 3D image is deleted, and a thumbnail of the 3D image is also deleted from the electronic photo album.

[0161] As an example, see further. Figure 7B In response to a trigger operation on the delete control 702, players can perform deletion operations on the 3D scene.

[0162] In some embodiments, the virtual scene is displayed in the human-computer interaction interface of the first terminal device; when displaying the three-dimensional image, the following processes may be performed: displaying a scene entrance; in response to a trigger operation for the scene entrance, displaying a target area in the virtual scene according to the original size based on the three-dimensional image, and displaying a first player character in the target area, wherein the first player character is controlled by the first terminal device; in response to a control operation for the first player character, controlling the first player character to interact in the target area.

[0163] As an example, see further. Figure 7B ,exist Figure 7B Scene entry 704 is shown. In response to a trigger operation on scene entry 704, a virtual scene of a 3D image can be loaded and enlarged to the original size of a 3D model, allowing players to control their virtual characters to play in the virtual scene of the 3D model.

[0164] In some embodiments, when performing the above-described "displaying the target area in the virtual scene at its original size", the following processing may be performed: in response to an interaction request operation, an interaction request is sent to a second terminal device, wherein the interaction request is used to instruct a second player character to enter the target area to interact with a first player character, the second player character being controlled by the second terminal device.

[0165] Here, while displaying the target area in the virtual scene at its original size, an invitation control can be shown, and in response to a triggering operation on the invitation control, an interaction request can be sent to at least one second terminal device.

[0166] As an example, see Figure 7C , Figure 7C This is the thirteenth schematic diagram of the virtual scene provided in this application embodiment. In response to the player's trigger operation on scene entry 704, the following is displayed: Figure 7C The virtual scene shown Figure 7C The diagram shows an invitation entry 705 and an operation control 706. The operation control 706 includes controls for skills A, B, C, and D. In response to a player's triggering operation on any skill control of the operation control 706, the virtual character controlled by the player can perform the corresponding action. In response to a triggering operation on the invitation entry 705, the invitation entry can be... Figure 7C The link to the current game scene is sent to other players, allowing them to directly enter the player's current virtual scene by clicking the link and play together in the same virtual scene.

[0167] This application embodiment supports users in viewing, deleting, and sharing 3D images obtained through capture, improving the efficiency of 3D image management. It also supports users in entering the 3D scene of the 3D image for gameplay or interacting with other players entering the same 3D scene, increasing the dissemination and social interactivity of 3D images. This not only provides a richer and more diverse user experience but also promotes the development of 3D image and virtual reality technologies, bringing significant technical benefits to both users and developers.

[0168] In some embodiments, see Figure 3D , Figure 3D This is a schematic diagram of the fourth process of the data processing method for virtual scenes provided in the embodiments of this application. Figure 3A Step 103 can be achieved through steps 1034 to 1036, as explained in detail below.

[0169] In step 1034, in response to the shooting trigger operation of the viewfinder, three-dimensional data of the viewfinder is acquired, wherein the three-dimensional data includes the position, appearance, material and light source information of virtual objects in the virtual scene.

[0170] In some embodiments, step 1034 above can be implemented by performing the following processes: First, prepare a software platform with 3D modeling capabilities, which can capture and process 3D scene data in real time. Second, configure a user interface, which includes a viewfinder, allowing the user to observe the virtual scene and perform shooting operations through the viewfinder. Then, in response to the user's shooting trigger operation, acquire the 3D data from the viewfinder.

[0171] Here, the 3D data of the viewfinder includes the following information: the position of the virtual object, which records the spatial position of each virtual object using a 3D coordinate system; the appearance of the virtual object, which records the appearance attributes such as texture and color of each virtual object; the material of the virtual object, such as reflectivity, transparency, and roughness; and the light source information, which records the type, intensity, color, and position of all light sources in the virtual scene.

[0172] As examples, software platforms with 3D modeling capabilities could include Unreal Engine, Unity 3D, SketchUp, Rhino, and Blender.

[0173] In step 1035, a three-dimensional model is obtained by modeling based on the three-dimensional data.

[0174] In some embodiments, the captured 3D data can be compiled into a structured file format, such as OBJ, FBX, or GLTF, to facilitate subsequent storage, transmission, and sharing. Step 1035 above can be achieved by performing the following processes: First, preprocess the 3D data to remove noise, outliers, and other unwanted data generated during acquisition; perform filtering to smooth the point cloud data and reduce errors. Then, perform data registration to align point cloud data captured from different perspectives or at different times, ensuring correct spatial stitching; and use a registration algorithm (such as the Iterative Closest Point (ICP) algorithm) to optimize the relative positions of the point cloud data. Second, extract texture information from the original 3D data, map the texture onto the surface of the 3D model, and assign material properties to the model, such as color, gloss, and transparency. Finally, refine the 3D model, such as adding details, optimizing edges, and repairing holes.

[0175] In step 1036, the 3D model is rendered to obtain a 3D image including the target region.

[0176] In some embodiments, step 1036 above can be implemented by performing the following processes: First, import the 3D model file (such as OBJ, FBX, GLTF format, etc.) into the rendering software; then, set the parameters of the rendering software, for example, select a suitable rendering engine, such as real-time rendering or offline rendering; set the anti-aliasing level to reduce jagged edges in the image; set the resolution and output format of the rendered image. Finally, start the rendering process and calculate the lighting, shadows, and texture mapping of the scene according to the set parameters. After rendering is complete, the software will output a 3D image including the target area.

[0177] This application embodiment acquires 3D data of the viewfinder in response to a shooting trigger operation; models a 3D model based on the 3D data; and renders the 3D model to obtain a 3D image including the target area. The obtained 3D image allows users to observe from different angles and viewpoints, increasing the interactivity of the user experience. By integrating 3D data capture, modeling, and rendering technologies, it can provide users with an efficient, interactive, and high-quality platform for creating and displaying 3D content.

[0178] In summary, the embodiments of this application respond to the trigger operation of the viewfinder interface in the virtual scene, displaying the viewfinder interface of the virtual scene. Before taking a picture, the viewfinder interface intuitively displays the content of the virtual scene within the target area (such as information about virtual objects and other graphic elements) to facilitate the selection of the shooting area. Taking a picture of the viewfinder interface yields a three-dimensional image including the target area. Compared with related technologies that can only capture two-dimensional images from the current perspective, the three-dimensional image provides the user with a full-range and multi-view snapshot of the shooting area, making it easy to view the detailed information of the shooting area in the virtual scene.

[0179] The following will describe an exemplary application of the embodiments of this application in a game scenario.

[0180] In gaming scenarios, many games offer a photography function, allowing players to pause the game, freely adjust the virtual camera angle, and set filters and shooting effects to capture screenshots or take photos of the current game screen. Related technologies support players taking screenshots or photos in 2D mode and saving or sharing the resulting 2D still images with other players.

[0181] For example, related technologies can obtain two-dimensional still images in the following ways: 1) Activate shooting mode: In response to the player's trigger operation on the pause menu or shortcut key (such as the shooting entrance), the shooting mode is activated; 2) Virtual camera control: After entering shooting mode, in response to the player's adjustment operation on the angle, position and focal length of the virtual camera, the shooting perspective, shooting position and shooting area of ​​the virtual camera can be adjusted; 3) Set parameters: Shooting parameters can be changed, such as depth effect (DOF), filters, borders, etc. In addition, the posture and expression of the player character and non-player characters can be adjusted to obtain the best effect; 4) Save image: After the adjustment is completed, in response to the player's trigger operation on the screenshot button, the current screen is saved as a two-dimensional still image, and the image information is saved in the local storage device.

[0182] The relevant technologies can only produce two-dimensional static images through screenshots or photography, and do not support the reconstruction and interaction of three-dimensional scenes. Specifically, they have the following technical problems: 1) Limited to two-dimensional static images, screenshot or shooting modes can only capture a two-dimensional static image from the current perspective, and cannot provide the ability to observe the scene from all directions and multiple angles; 2) Lack of immersion, two-dimensional static images can only display the scene at a certain moment in a flat plane, and players cannot relive the situation in person, so it is difficult to bring a strong immersive experience; 3) Limited interactivity, the sharing mechanism of the relevant technologies usually only shares two-dimensional static images to social platforms, and cannot provide further interactive space, remaining only at the level of visual appreciation; 4) Fixed perspective restricts creative freedom, two-dimensional static images are limited by the position and direction of the virtual camera when shooting. If the best angle is missed, the position and direction of the virtual camera need to be adjusted to reshoot, and the operation is irreversible and will affect the player's shooting experience.

[0183] To address the aforementioned issues, the virtual scene data processing method provided in this application allows players to take photos in 3D mode to obtain 3D images. This not only records fleeting static moments but also saves the entire 3D scene. Furthermore, it supports players observing the 3D model of the scene from different angles by rotating, zooming in, or zooming out of the display interface, enabling players to experience a more immersive feeling within the virtual environment of the 3D model. In addition, these stereoscopic 3D images can be shared with other players or used to invite friends to enter the 3D scene for interactive gameplay, achieving a richer and more engaging social experience and providing users with an innovative, in-depth, and highly interactive gaming experience.

[0184] The data processing method for virtual scenes provided in the embodiments of this application will be described below with reference to the illustrations.

[0185] First, in response to the user's trigger action at the shooting entrance in the virtual scene, the system enters shooting mode. (See also...) Figure 4A and Figure 4B , Figure 4A This is a first schematic diagram of the virtual scene provided in the embodiments of this application. Figure 4B This is a second schematic diagram of the virtual scene provided in the embodiments of this application. For example... Figure 4A As shown, Figure 4A The diagram shows a first virtual object 401, a shooting entry point 402, a direction control 403, and a skill control 404. In response to a trigger operation on the shooting entry point 402, shooting mode is entered, and the following is displayed: Figure 4B The viewfinder interface shown. Figure 4B The image shows a shooting mode control 405, a shooting control 406, a viewfinder 407, a focus frame 408, and a focus adjustment control 409. The shooting mode control 405 supports switching between two-dimensional shooting mode and three-dimensional shooting mode. The image captured by the two-dimensional shooting mode is a two-dimensional still image, and the image captured by the three-dimensional shooting mode is a three-dimensional image. The default is the three-dimensional shooting mode.

[0186] In shooting mode, visual graphic elements unrelated to the virtual scene (such as operation controls, taskbar controls, and message bars) can be automatically hidden. For example... Figure 4A The operation controls, namely the direction control 403 and the skill control 404, are in Figure 4B It is not shown in the viewfinder.

[0187] When the viewfinder is displayed, the shooting angle, shooting position, and focal length of the virtual camera performing the shooting operation can be adjusted arbitrarily. The above adjustments to the virtual camera can be achieved by performing the following operations: 1) Rotate the viewing angle, responding to dragging operations in the viewfinder (such as a single-finger drag), to rotate the virtual camera's viewing angle for all-around observation; 2) Move the position, responding to sliding operations in the viewfinder (such as a two-finger slide), to pan; 3) Zoom in / out, responding to expanding or pinching gestures in the viewfinder, to zoom the virtual camera's lens; the focal length of the virtual camera can also be adjusted by adjusting the slider of the focal length adjustment control.

[0188] After completing the above adjustments to the virtual camera, it responds to the player's actions regarding the shooting controls in the viewfinder (such as...). Figure 4B Triggering the shooting control (406) in the virtual camera allows you to capture a 3D image of the current viewfinder. During shooting, all recordable 3D information within the viewfinder is recorded, including the position, texture, and lighting effects of virtual objects in the virtual scene. Simultaneously, a preview thumbnail of the 3D image is generated, and a success message is displayed. The thumbnail is automatically saved to the player's electronic photo album. The electronic album displays all the player's captured 3D images in a thumbnail list, allowing the player to manage the thumbnails of the 3D images in the album.

[0189] As an example, see Figure 7A ,exist Figure 7A The displayed electronic photo album shows preview thumbnails of six 3D images, such as... Figure 7A The thumbnail shown is 701.

[0190] In response to player actions such as double-clicking on thumbnails of 3D images in the digital photo album, the system can load the corresponding 3D model, allowing players to view, share, delete, and enter the scene to play with the 3D images. Supported viewing actions include at least one of the following: 1) Rotating the view: responding to dragging actions (such as single-finger dragging) within the 3D image, rotating the view for all-around observation; 2) Moving the position: responding to swiping actions (such as two-finger swiping) within the 3D image, panning the display interface; 3) Zooming in / out: responding to expanding or pinching gestures within the 3D image, zooming in or out; The system can also adjust the size of the 3D image by adjusting the slider of the size adjustment control.

[0191] As an example, see Figure 7B , Figure 7B This is the twelfth schematic diagram of the virtual scene provided in the embodiments of this application. In response to... Figure 7A The trigger operation of thumbnail 701 in the image is shown as follows: Figure 7B The photo details of the 3D image shown are also included. Figure 7B The diagram illustrates a delete control 702, a share control 703, and a scene entry point 704. In response to a trigger operation on the delete control 702, the player can delete the 3D scene; in response to a trigger operation on the share control 703, the player can share the 3D scene with other players; in response to a trigger operation on the scene entry point 704, the virtual scene of the 3D image can be loaded and enlarged to its original size, allowing the player to control their virtual character to play within the 3D model's virtual scene. While playing within the virtual scene, the player can send a link to the currently playing scene to other players, allowing them to directly enter the player's current virtual scene and play together.

[0192] As an example, see Figure 7C , Figure 7C This is the thirteenth schematic diagram of the virtual scene provided in this application embodiment. In response to the player's trigger operation on scene entry 704, the following is displayed: Figure 7C The virtual scene shown Figure 7CThe diagram shows an invitation entry 705 and an operation control 706. The operation control 706 includes controls for skills A, B, C, and D. In response to a player's triggering operation on any skill control of the operation control 706, the virtual character controlled by the player can perform the corresponding action. In response to a triggering operation on the invitation entry 705, the invitation entry can be... Figure 7C The link to the current game scene is sent to other players, allowing them to directly enter the player's current virtual scene by clicking the link and play together in the same virtual scene.

[0193] The following describes the overall implementation flow of the virtual scene data processing method provided in the embodiments of this application. See also Figure 8 , Figure 8 This is a schematic diagram of the fifth process of the data processing method for virtual scenes provided in the embodiments of this application. Below, in conjunction with... Figure 8 Steps 801 to 809 shown will be explained in detail.

[0194] In step 801, the shooting mode is activated.

[0195] In some embodiments, a shooting mode can be entered in response to a trigger operation on the shooting entrance. When entering shooting mode, the visibility attributes of visual graphic elements can be adjusted to automatically hide visual graphic elements unrelated to the virtual scene (such as operation controls, taskbar controls, and message bars) to ensure that the player has a clearer and more focused field of view.

[0196] Upon entering shooting mode, the default setting is 3D shooting mode. A shooting mode control is displayed in the viewfinder, allowing players to manually switch to 2D shooting mode. This control can be a simple radio button or a toggle switch. If 2D shooting mode is selected, triggering the shooting control captures only a single still image from the current viewpoint and saves it in a standard format (such as PNG or JPEG). If 3D shooting mode is selected, triggering the shooting control captures 3D data from the virtual scene, resulting in a 3D image.

[0197] In step 802, the shooting angle, position, and focal length of the virtual camera are adjusted.

[0198] In some embodiments, the above adjustments to the virtual camera can be achieved by performing the following processes: 1) Rotating the viewing angle in response to a drag operation (such as a single-finger drag operation) in the viewfinder, rotating the viewing angle of the virtual camera to achieve all-around observation; 2) Moving the position in response to a swipe operation (such as a two-finger swipe operation) in the viewfinder, achieving panning; 3) Zooming in / out in response to a gesture expansion or pinch gesture in the viewfinder, achieving lens zoom of the virtual camera; the focal length of the virtual camera can also be adjusted in response to the adjustment operation of the slider of the focus adjustment control.

[0199] In step 803, in response to a trigger operation on the shooting control, data of the virtual scene is captured.

[0200] In some embodiments, in response to a trigger operation of the shooting control, data such as the position, shape, texture, and lighting effects of virtual objects in the virtual scene can be captured. During the process, the position, shape, and material details of each virtual object within the shooting range are acquired and recorded, and information about the light source is recorded to ensure consistent lighting effects.

[0201] It's important to note that when capturing 3D data, it's necessary to consider not only the scene visible to the virtual camera but also to exclude objects that are far from the player and irrelevant to the current shot. Furthermore, virtual objects that are only partially within the field of view also need to be filtered; for example, virtual objects whose display volume exceeds half their own volume will be selected as target virtual objects. This will be explained in detail below with illustrations.

[0202] First, determine the effective field of view of the virtual camera.

[0203] In some embodiments, the shooting range of the virtual camera can be determined based on the maximum shooting distance of the virtual camera and the cropping area (the area between the near cropping plane and the far cropping plane). For example, if the maximum shooting distance of the virtual camera is 100 meters, then only virtual objects within 100 meters of the virtual camera will be recorded; virtual objects more than 100 meters away will not be recorded even if they are in the field of view. The near cropping plane refers to the plane whose distance from the virtual camera is at the minimum distance threshold (equivalent to the first distance threshold mentioned above); the far cropping plane refers to the plane whose distance from the virtual camera is at the maximum distance threshold (equivalent to the second distance threshold mentioned above). For example, the first distance threshold is 0.3 meters, and the second distance threshold is 100 meters.

[0204] As an example, see Figure 9 , Figure 9 This is a schematic diagram of the shooting range provided in an embodiment of this application. For example... Figure 9As shown, the maximum shooting distance, near clipping plane, and far clipping plane of the virtual camera 901 are illustrated, wherein the area between the near clipping plane and the far clipping plane is the clipping region 902.

[0205] Then, all fully visible virtual objects within the cropped area are saved. For virtual objects that partially enter the shot but are not fully displayed, boundary detection is performed to determine whether the corresponding virtual object should be included in this storage sequence. If the display completeness of a virtual object is greater than a completion threshold, it is identified as a target virtual object. For example, if the virtual object's volume entering the shot exceeds half its size, it is displayed; otherwise, it is not displayed.

[0206] As an example, see further. Figure 9 Within the cropping area 902, virtual objects 903, 904, and 905 are shown. Virtual object 903 is not within the field of view of the virtual camera 901 and therefore cannot be photographed; virtual object 904 is designated as the target virtual object because its volume exceeds half its own volume within the field of view of the virtual camera 901; and virtual object 905 is not photographed because its volume does not exceed half its own volume within the field of view of the virtual camera 901.

[0207] In step 804, it is determined whether data capture was successfully completed. If the result is negative, the process in step 805 is executed, and the process continues to step 802; if the result is positive, the process in step 806 is executed.

[0208] In step 805, a failure message is displayed.

[0209] In some embodiments, if data capture of the virtual scene is not completed, a "Data capture failed" message will be displayed in the viewfinder; at the same time, the process will continue to perform adjustments to the virtual camera.

[0210] In step 806, the data is saved locally.

[0211] In some embodiments, the captured 3D data of the virtual scene can be saved to the local file system. For example, the 3D information collected above can be packaged into an FBX format file, which is supported by default in Unreal Engine 4 (UE4), and stored in the local game's built-in file system. Each file should be managed independently and have a universally unique identifier (UUID) for easy indexing and retrieval in the future.

[0212] In step 807, the data is uploaded to the server.

[0213] In some embodiments, an upload interface can be provided on the local terminal device to synchronously upload the 3D scene data saved to the local file system to the server. For example, the 3D scene data can be uploaded to a cloud server. Upon receiving a player's sharing instruction, the data from the cloud server can also be transmitted to a remote server, such as the server of a terminal device controlled by another player. This allows players controlling different terminal devices to share and view the shared 3D image and interact within the same virtual scene through social interaction modules (such as link sharing modules).

[0214] In step 808, it is determined whether the saving was successful. If the result is no, the process in step 805 is executed, and the process continues to step 802; if the result is yes, the process in step 809 is executed.

[0215] In some embodiments, if data saving fails, a "Data saving failed" message is displayed in the viewfinder; at the same time, the process continues to perform adjustments to the virtual camera.

[0216] In step 809, a thumbnail is generated, and a message indicates that the image has been saved successfully.

[0217] In some embodiments, if the data of the 3D scene is saved successfully, a thumbnail of the 3D image from the current viewpoint is generated, and a message indicating successful saving is displayed.

[0218] Once the 3D data of the 3D image is stored on a cloud server, the terminal device automatically generates a unique link or invitation code, allowing other players to access the 3D scene through the link. To enable multiple players to enter the same 3D scene simultaneously, the first player to click the link and enter the scene becomes the room owner, responsible for initializing and broadcasting the current status information. Subsequent requests from other players clicking the same link to join the scene are retrieved from the server, and the player enters the shared 3D environment synchronously. After a successful link is established, each time a player joins, the 3D model is downloaded and loaded, and performance parameters are adjusted based on the capabilities of each terminal device to optimize the display of the 3D scene and reduce waiting time. For example, the following processing can be performed: 1) Adaptive graphics quality: detect the hardware specifications (such as CPU, GPU, RAM) of the terminal device at startup and set the initial graphics quality (providing multiple graphics quality options such as low, medium, and high); 2) Resolution and frame rate control: adjust the rendering resolution in real time according to the current frame rate to ensure the smoothness of 3D image display; 3) Effects and physics simulation adjustment: reduce the complexity of particle effects and dynamically enable / disable certain display effects according to the performance of the terminal device.

[0219] This application embodiment captures 3D scene data in a 3D shooting mode and provides a sharing function, bringing a better gaming experience to players. Specifically, this is reflected in the following aspects: 1) Enhanced immersion: 3D stereoscopic recording can completely preserve the scene. Players can not only capture static images but also view object positions, light source information, etc., realistically reproducing all the details seen by the player at a specific point in time, providing a deeper level of immersion. 2) Free perspective browsing: Users can view the captured content from any angle through rotation, zoom, and panning, and even enter the virtual scene to roam, which is more vivid and realistic than 2D static images in related technologies. 3) Rich social interaction: Multiple users can simultaneously join the same 3D scene space to explore and communicate, providing players with a new, highly interactive, and social way to play. 4) Promotes dissemination and sharing: 3D images are more visually impactful than 2D static images and are more likely to attract attention on social platforms. Users can enter 3D scenes shared by others through links to explore, and this novel interactive method easily sparks discussion on social networks.

[0220] The following description continues to illustrate the exemplary structure of the virtual scene data processing device 455 provided in the embodiments of this application as a software module. In some embodiments, such as... Figure 2 As shown, the software modules in the data processing device 455 storing the virtual scene in the memory 450 may include:

[0221] Scene display module 4551 is used to display virtual scenes.

[0222] The interface display module 4552 is used to display the viewfinder in response to a viewfinder trigger operation for a virtual scene, wherein the viewfinder includes the target area to be photographed in the virtual scene.

[0223] The image display module 4553 is used to display a three-dimensional image including the target area in response to a shooting trigger operation on the viewfinder.

[0224] In some embodiments, when displaying the viewfinder interface, the interface display module 4552 is also used to hide graphic elements in the virtual scene that are not related to shooting, wherein the graphic elements include at least one of the following: operation controls, taskbar controls, and message bars.

[0225] In some embodiments, the image display module 4553 is further configured to, in response to a shooting trigger operation on the viewfinder, take a picture of a cropped area in the target area using a virtual camera and display the captured three-dimensional image when the target area includes multiple virtual objects; wherein, the cropped area is a region in the target area whose distance from the virtual camera is between a first distance threshold and a second distance threshold, the first distance threshold being less than the second distance threshold and the second distance threshold being less than the maximum shooting distance of the virtual camera.

[0226] In some embodiments, the image display module 4553 is further configured to take pictures of all virtual objects displayed in the cropping area using a virtual camera, or to take pictures of virtual objects in the cropping area whose display completeness is greater than a completeness threshold, wherein the display completeness is the ratio of the portion of the virtual object displayed in the cropping area to the portion displayed in the virtual scene.

[0227] In some embodiments, the target area is captured by a virtual camera; the image display module 4553 is further configured to display multiple virtual objects in the target area that are at a distance less than the maximum shooting distance of the virtual camera; in response to a selection operation for multiple virtual objects, the selected virtual object is used as the target virtual object; in response to a shooting trigger operation for the viewfinder, the target virtual object in the target area is captured, and the captured three-dimensional image is displayed.

[0228] In some embodiments, the viewfinder includes multiple type controls, each type control being associated with a virtual object of a certain type; the image display module 4553 is further configured to, in response to a trigger operation on any type control, set the virtual object associated with any type control to a selected state, and use the virtual object associated with any type control as the target virtual object.

[0229] In some embodiments, the viewfinder includes a distance control; the image display module 4553 is further configured to, in response to a setting operation on the distance control, display a distance range set by the setting operation, wherein the minimum distance of the distance range is the minimum shooting distance of the virtual camera, and the maximum distance of the distance range is the maximum shooting distance of the virtual camera; and to use virtual objects within the distance range as target virtual objects.

[0230] In some embodiments, the image display module 4553 is further configured to invoke a pre-trained machine learning model to predict the shooting intention of multiple virtual objects respectively, and obtain the probability that each virtual object conforms to the shooting intention. The machine learning model is trained based on virtual scene samples, which include multiple virtual object samples and labels. The labels represent the probability that each virtual object sample conforms to the shooting intention in the virtual scene samples. Virtual objects with probabilities greater than a probability threshold are taken as target virtual objects.

[0231] In some embodiments, when displaying a three-dimensional image including a target area, the image display module 4553 is further configured to display a thumbnail of the three-dimensional image from a specific viewpoint, wherein the specific viewpoint is the viewpoint used when displaying the target area in the viewfinder; and to save the three-dimensional image and the thumbnail to an electronic photo album, wherein the thumbnail serves as preview information of the three-dimensional image in the electronic photo album.

[0232] In some embodiments, the virtual scene includes an electronic photo album entry; the image display module 4553 is further configured to, in response to a trigger operation on the electronic photo album entry, display a thumbnail list, wherein the thumbnail list includes thumbnails of three-dimensional images; in response to a viewing operation on the thumbnails, display a three-dimensional image; and perform at least one of the following processes on the three-dimensional image: in response to a rotation operation in the three-dimensional image along a third direction, rotate the display view of the three-dimensional image according to the third direction; in response to a translation operation in the three-dimensional image along a fourth direction, update the display area of ​​the three-dimensional image according to the fourth direction; in response to a size adjustment operation on the three-dimensional image, adjust the display size of the three-dimensional image; and in response to an adjustment operation on a size adjustment control in the three-dimensional image, adjust the display size of the three-dimensional image.

[0233] In some embodiments, the three-dimensional image is displayed in the human-computer interaction interface of the first terminal device; when displaying the three-dimensional image, the image display module 4553 is further configured to send the three-dimensional image to the second terminal device in response to a sharing operation for the three-dimensional image, wherein the three-dimensional image is used for the second terminal device to display the target area in the virtual scene according to the original size.

[0234] In some embodiments, the virtual scene is displayed in the human-computer interaction interface of the first terminal device; when displaying a three-dimensional image, the image display module 4553 is also used to display a scene entrance; in response to a trigger operation for the scene entrance, a target area in the virtual scene is displayed according to the original size based on the three-dimensional image, and a first player character is displayed in the target area, wherein the first player character is controlled by the first terminal device; in response to a control operation for the first player character, the first player character is controlled to interact in the target area.

[0235] In some embodiments, when displaying the target area in the virtual scene at its original size, the image display module 4553 is further configured to send an interaction request to the second terminal device in response to an interaction request operation, wherein the interaction request is used to instruct the second player character to enter the target area to interact with the first player character, the second player character being controlled by the second terminal device.

[0236] In some embodiments, the viewfinder is in a three-dimensional shooting mode; when the viewfinder is in a three-dimensional shooting mode, the interface display module 4552 is further configured to switch the three-dimensional shooting mode to a two-dimensional shooting mode in response to a switching operation of the shooting mode control, wherein the two-dimensional shooting mode is used to capture a two-dimensional image including the target area.

[0237] In some embodiments, the interface display module 4552 is further configured to perform at least one of the following processes: displaying a framing interface in response to receiving voice information for framing a virtual scene; displaying a framing interface in response to receiving motion-sensing information for framing a virtual scene; and displaying a framing interface in response to a trigger operation of a framing control in the virtual scene.

[0238] In some embodiments, the viewfinder includes a viewfinder frame and a focus frame. The viewfinder frame includes a target area in a virtual scene, and the focus frame is used to characterize the focus area when taking a picture in the target area.

[0239] In some embodiments, the interface display module 4552 is further configured to perform at least one of the following processes: in response to a rotation operation in the viewfinder along a first direction, rotating the viewpoint of the virtual camera in the viewfinder along the first direction; in response to a translation operation in the viewfinder along a second direction, moving the target area of ​​the virtual camera in the viewfinder along the second direction; in response to a focus adjustment operation in the viewfinder, adjusting the shooting focus of the virtual camera; and in response to an adjustment operation of the focus adjustment control in the viewfinder, adjusting the shooting focus of the virtual camera.

[0240] In some embodiments, the image display module 4553 is further configured to, in response to a shooting trigger operation on the viewfinder, acquire three-dimensional data of the viewfinder, wherein the three-dimensional data includes the position, appearance, material, and light source information of virtual objects in the virtual scene; perform modeling based on the three-dimensional data to obtain a three-dimensional model; and render the three-dimensional model to obtain a three-dimensional image including the target area.

[0241] This application provides a computer program product, which includes a computer program or computer-executable instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the virtual scene data processing method described above in this application.

[0242] This application provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the data processing method for a virtual scene provided in this application. For example, ... Figure 3A The data processing method for the virtual scene is shown.

[0243] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.

[0244] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.

[0245] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files that store one or more modules, subroutines, or code sections).

[0246] As an example, computer-executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located at one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.

[0247] In summary, the embodiments of this application respond to the trigger operation of the viewfinder interface in the virtual scene, displaying the viewfinder interface of the virtual scene. Before taking a picture, the viewfinder interface intuitively displays the content of the virtual scene within the target area (such as information about virtual objects and other graphic elements) to facilitate the selection of the shooting area. Taking a picture of the viewfinder interface yields a three-dimensional image including the target area. Compared with related technologies that can only capture two-dimensional images from the current perspective, the three-dimensional image provides the user with a full-range and multi-view snapshot of the shooting area, making it easy to view the detailed information of the shooting area in the virtual scene.

[0248] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.

Claims

1. A data processing method for a virtual scene, characterized in that, The method includes: Display virtual scenes; In response to a viewfinder trigger operation for the virtual scene, a viewfinder is displayed, wherein the viewfinder includes the target area to be photographed in the virtual scene; In response to a shooting trigger operation on the viewfinder, a three-dimensional image including the target area is displayed.

2. The method according to claim 1, characterized in that, When displaying the viewfinder interface, the method further includes: Hide graphic elements in the virtual scene that are not related to the shooting, wherein the graphic elements include at least one of the following: operation controls, taskbar controls, and message bars.

3. The method according to claim 1 or 2, characterized in that, The step of displaying a three-dimensional image including the target area in response to a shooting trigger operation on the viewfinder includes: When the target area includes multiple virtual objects, in response to a shooting trigger operation on the viewfinder, a cropped area in the target area is captured by a virtual camera, and the captured three-dimensional image is displayed; wherein, the cropped area is the area in the target area whose distance from the virtual camera is between a first distance threshold and a second distance threshold, the first distance threshold being less than the second distance threshold, and the second distance threshold being less than the maximum shooting distance of the virtual camera.

4. The method according to claim 3, characterized in that, The step of capturing the cropped area in the target area using a virtual camera includes: Alternatively, a virtual camera can be used to photograph all the virtual objects displayed in the cropping area, or... The virtual object whose display completeness in the cropped area is greater than a completeness threshold is photographed, wherein the display completeness is the ratio of the portion of the virtual object displayed in the cropped area to the portion displayed in the virtual scene.

5. The method according to claim 1, characterized in that, The target area was captured using a virtual camera; The step of displaying a three-dimensional image including the target area in response to a shooting trigger operation on the viewfinder includes: Display multiple virtual objects in the target area that are located at a distance less than the maximum shooting distance of the virtual camera; In response to a selection operation on the plurality of virtual objects, the selected virtual object is taken as the target virtual object; In response to a shooting trigger operation on the viewfinder, the target virtual object in the target area is photographed, and the resulting 3D image is displayed.

6. The method according to claim 5, characterized in that, The viewfinder interface includes multiple type controls, each of which is associated with a virtual object of a certain type. The step of responding to a selection operation for the plurality of virtual objects by taking the selected virtual object as the target virtual object includes: In response to a trigger operation for any type of control, the virtual object associated with the control of any type is set to a selected state, and the virtual object associated with the control of any type is used as the target virtual object.

7. The method according to claim 5, characterized in that, The viewfinder interface includes a distance control; The step of responding to a selection operation for the plurality of virtual objects by taking the selected virtual object as the target virtual object includes: In response to a setting operation on the distance control, the distance range set by the setting operation is displayed, wherein the minimum distance of the distance range is the minimum shooting distance of the virtual camera, and the maximum distance of the distance range is the maximum shooting distance of the virtual camera; The virtual object that is within the distance range is taken as the target virtual object.

8. The method according to claim 5, characterized in that, The step of responding to a selection operation for the plurality of virtual objects by taking the selected virtual object as the target virtual object includes: A pre-trained machine learning model is invoked to predict the shooting intention of the multiple virtual objects, thereby obtaining the probability that each virtual object conforms to the shooting intention. The machine learning model is trained based on virtual scene samples, which include multiple virtual object samples and labels. The labels represent the probability that each virtual object sample conforms to the shooting intention in the virtual scene samples. The virtual object corresponding to the probability greater than the probability threshold is taken as the target virtual object.

9. The method according to claim 1, characterized in that, When displaying a three-dimensional image including the target region, the method further includes: Display a thumbnail of the three-dimensional image from a specific viewpoint, wherein the specific viewpoint is the viewpoint used when displaying the target area in the viewfinder interface; The 3D image and the thumbnail are saved to an electronic photo album, wherein the thumbnail serves as a preview of the 3D image in the electronic photo album.

10. The method according to claim 1, characterized in that, The virtual scene includes an entry point for an electronic photo album; the method further includes: In response to a trigger operation on the electronic photo album entry, a thumbnail list is displayed, wherein the thumbnail list includes thumbnails of the 3D images; In response to a viewing operation of the thumbnail, the 3D image is displayed; Perform at least one of the following processes on the three-dimensional image: In response to a rotation operation along a third direction in the three-dimensional image, the display viewpoint of the three-dimensional image is rotated according to the third direction; In response to a translation operation along a fourth direction in the three-dimensional image, the display area of ​​the three-dimensional image is updated according to the fourth direction; In response to a size adjustment operation on the 3D image, the display size of the 3D image is adjusted; In response to an adjustment operation of the size adjustment control in the 3D image, the display size of the 3D image is adjusted.

11. The method according to claim 1, characterized in that, The three-dimensional image is displayed in the human-computer interaction interface of the first terminal device; When displaying the three-dimensional image, the method further includes: In response to a sharing operation for the 3D image, the 3D image is sent to a second terminal device, wherein the 3D image is used by the second terminal device to display the target area in the virtual scene at its original size.

12. The method according to claim 1 or 11, characterized in that, The virtual scene is displayed in the human-computer interaction interface of the first terminal device; When displaying the three-dimensional image, the method further includes: Display scene entry; In response to a trigger operation targeting the scene entrance, the target area in the virtual scene is displayed at its original size based on the 3D image, and a first player character is displayed in the target area, wherein the first player character is controlled by the first terminal device; In response to a control operation on the first player character, control the first player character to interact in the target area.

13. The method according to claim 12, characterized in that, When displaying the target area in the virtual scene at its original size, the method further includes: In response to an interaction request operation, an interaction request is sent to a second terminal device, wherein the interaction request is used to instruct a second player character to enter the target area to interact with the first player character, the second player character being controlled by the second terminal device.

14. The method according to any one of claims 1 to 13, characterized in that, The viewfinder is in 3D shooting mode; When the viewfinder is in the 3D shooting mode, the method further includes: In response to a switching operation of the shooting mode control, the three-dimensional shooting mode is switched to a two-dimensional shooting mode, wherein the two-dimensional shooting mode is used to capture a two-dimensional image including the target area.

15. The method according to any one of claims 1 to 14, characterized in that, The step of displaying the viewfinder in response to a viewfinder trigger operation for the virtual scene includes: Perform at least one of the following processes: In response to receiving voice information for framing the virtual scene, the framing interface is displayed; In response to receiving motion-sensing information for framing the virtual scene, a framing interface is displayed; In response to a trigger operation targeting the shooting entrance in the virtual scene, the viewfinder is displayed.

16. The method according to any one of claims 1 to 15, characterized in that, The viewfinder includes a viewfinder frame and a focus frame. The viewfinder frame includes the target area in the virtual scene, and the focus frame is used to represent the focus area when shooting in the target area.

17. The method according to claim 16, characterized in that, After displaying the viewfinder in response to a viewfinder trigger operation for the virtual scene, the method further includes: Perform at least one of the following processes: In response to a rotation operation in the viewfinder along a first direction, the viewpoint of the virtual camera is rotated in the viewfinder along the first direction; In response to a translation operation in the viewfinder along a second direction, the target area of ​​the virtual camera is moved in the viewfinder along the second direction; In response to a focus adjustment operation in the viewfinder, the shooting focus of the virtual camera is adjusted; In response to an adjustment operation of the focus adjustment control in the viewfinder, the shooting focus of the virtual camera is adjusted.

18. The method according to any one of claims 1 to 15, characterized in that, The step of displaying a three-dimensional image including the target area in response to a shooting trigger operation on the viewfinder includes: In response to a shooting trigger operation on the viewfinder, three-dimensional data of the viewfinder is acquired, wherein the three-dimensional data includes the position, appearance, material, and light source information of virtual objects in the virtual scene; A three-dimensional model is obtained by modeling based on the aforementioned three-dimensional data; The three-dimensional model is rendered to obtain the three-dimensional image including the target region.

19. A data processing device for a virtual scene, characterized in that, The device includes: The scene display module is used to display virtual scenes; The interface display module is used to display the framing interface in response to a framing interface trigger operation for the virtual scene, wherein the framing interface includes the target area in the virtual scene. An image display module is used to display a three-dimensional image including the target area in response to a shooting trigger operation on the viewfinder.

20. An electronic device, characterized in that, The electronic device includes: Memory is used to store executable instructions or computer programs. A processor, when executing computer-executable instructions or computer programs stored in the memory, implements the data processing method for the virtual scene according to any one of claims 1 to 18.

21. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, they implement the data processing method for the virtual scene according to any one of claims 1 to 18.

22. A computer program product comprising computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, they implement the data processing method for the virtual scene according to any one of claims 1 to 18.