Content display method and device of virtual scene, electronic device and storage medium
Patent Information
- Application Number
- CN202310581450.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-22
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2043-05-22
AI Technical Summary
[0098] The embodiments of this application include at least the following beneficial effects: By sending a screen capture request to the server, the server can respond to the screen capture request and use the virtual capture device corresponding to the virtual object in the virtual scene to capture the preset display screen of the virtual object. Since the virtual capture device corresponds to the virtual object, even if the virtual object in the virtual scene has uncertainty and openness, the virtual capture device can accurately capture the screen of the virtual object, improving the quality of the preset display screen. At the same time, it can also realize the automated capture of the preset display screen, improving the capture efficiency of the preset display screen. On this basis, it is only necessary to receive and display the candidate screen identifier sent by the server to mark the preset display screen, and then select the target screen identifier from at least one candidate screen identifier and send the first selection result of the target screen identifier to the server. The server can then further determine the target display screen from the preset display screen according to the first selection result, and then receive and display the scene display content generated by the server based on the target display screen. Thus, it is possible to quickly and in batches generate the scene display content of the virtual scene based on the selected target display screen, without having to manually synthesize the scene display content of the virtual scene. It can be seen that the content display method provided by the embodiments of this application can display content in the virtual scene with high quality and efficiency.
Smart Images

Figure CN119002757B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, electronic device and storage medium for displaying virtual scene content. Background Technology
[0002] With the development of internet technology, custom virtual scenes can be built based on applications such as instant messaging programs and games. Currently, more and more users prefer to display content within these custom virtual scenes. However, due to the uncertainty and openness of the content within these custom virtual scenes, how to display content in a high-quality and efficient manner is a pressing issue that needs to be addressed. Summary of the Invention
[0003] The following is an overview of the subject matter described in detail in this application. This overview is not intended to limit the scope of the claims.
[0004] This application provides a method, apparatus, electronic device, and storage medium for displaying content in a virtual scene, which can display content in a virtual scene with high quality and efficiency.
[0005] On the one hand, embodiments of this application provide a method for displaying content in a virtual scene, including:
[0006] Send a screen capture request to the server so that the server responds to the screen capture request and uses the virtual capture device corresponding to the virtual object in the virtual scene to capture the preset display screen of the virtual object;
[0007] Receive a candidate screen identifier sent by the server to mark the preset display screen, and display the candidate screen identifier;
[0008] In response to selecting a target screen identifier from at least one of the candidate screen identifiers, a first selection result of the target screen identifier is sent to the server, so that the server determines the target display screen from the preset display screens based on the first selection result;
[0009] Receive scene display content generated by the server based on the target display screen, and display the scene display content.
[0010] On the other hand, embodiments of this application also provide a method for displaying content in a virtual scene, including:
[0011] The receiving terminal sends a screen capture request, and in response to the screen capture request, the virtual capture device corresponding to the virtual object is used in the virtual scene to capture the preset display screen of the virtual object;
[0012] Send candidate screen identifiers to the terminal for marking the preset display screen, so that the terminal can select a target screen identifier from at least one of the candidate screen identifiers after displaying the candidate screen identifiers;
[0013] Receive a first selection result of the target screen identifier sent by the terminal, and determine the target display screen from the preset display screens based on the first selection result;
[0014] Based on the target display screen, scene display content is generated and sent to the terminal for the terminal to display the scene display content.
[0015] On the other hand, embodiments of this application also provide a virtual scene content display device, including:
[0016] The first sending module is used to send a screen capture request to the server so that the server responds to the screen capture request and uses the virtual capture device corresponding to the virtual object in the virtual scene to capture the preset display screen of the virtual object;
[0017] The first display module is used to receive a candidate screen identifier sent by the server for marking the preset display screen, and to display the candidate screen identifier;
[0018] The second sending module is configured to send a first selection result of the target screen identifier to the server in response to selecting a target screen identifier from at least one of the candidate screen identifiers, so that the server determines the target display screen from the preset display screens according to the first selection result;
[0019] The second display module is used to receive scene display content generated by the server based on the target display screen, and to display the scene display content.
[0020] Furthermore, the first sending module is specifically used for:
[0021] Display the virtual scene;
[0022] In response to ending modifications to the virtual scene, a screen capture request is sent to the server; or, in response to requesting the generation of scene display content in the virtual scene, a screen capture request is sent to the server.
[0023] Furthermore, the first display module is also used for:
[0024] In response to previewing the preset display screen based on any one of the candidate screen identifiers, a first preview request is sent to the server;
[0025] The server receives the preset display screen sent in response to the first preview request, and displays the preset display screen marked by the candidate screen identifier.
[0026] Furthermore, the second display module is specifically used for:
[0027] Displaying candidate action identifiers corresponding to the target screen identifier, wherein the candidate action identifiers are used to mark a preset composite screen, which is obtained by the server adding a virtual character of the target action type to the target display screen;
[0028] In response to selecting a target action identifier from at least one of the candidate action identifiers, a second selection result of the target action identifier is sent to the server, so that the server determines a target composite image from the preset composite image based on the second selection result;
[0029] Receive the scene display content generated by the server based on the target composite image.
[0030] Furthermore, the first display module is specifically used for:
[0031] The target screen identifier will remain displayed.
[0032] In response to selecting a current screen identifier from the target screen identifier, at least one candidate action identifier corresponding to the current screen identifier is displayed.
[0033] Furthermore, the first display module is specifically used for:
[0034] Select the image identifiers to be synthesized from the target image identifiers and keep them displayed;
[0035] The scene type of the target display scene marked by the image to be synthesized is a preset scene type.
[0036] Furthermore, the first display module is also used for:
[0037] In response to previewing the preset composite image based on any one of the candidate action identifiers, a second preview request is sent to the server;
[0038] Receive the preset composite screen sent by the server in response to the second preview request, and display the preset composite screen marked by the candidate action identifier;
[0039] The action type of the virtual character in the preset composite image varies depending on the type of virtual item in the preset composite image.
[0040] Furthermore, the second display module is specifically used for:
[0041] Display candidate comparison identifiers, wherein the candidate comparison identifiers are used to mark preset comparison images, the preset comparison images are obtained by the server based on the historical display images and the current display images of the virtual scene;
[0042] In response to selecting a target comparison identifier from at least one of the candidate comparison identifiers, a third selection result of the target comparison identifier is sent to the server, so that the server determines the target comparison screen from the preset comparison screens based on the third selection result;
[0043] Receive the scene display content generated by the server based on the target display screen and the target comparison screen.
[0044] Furthermore, the second display module is also used for:
[0045] In response to previewing the preset comparison screen based on any one of the candidate comparison identifiers, a third preview request is sent to the server;
[0046] Receive the preset comparison screen sent by the server in response to the third preview request, and display the preset comparison screen marked by the candidate comparison identifier;
[0047] The preset comparison screen simultaneously displays the historical display screen and the current display screen.
[0048] On the other hand, embodiments of this application also provide a virtual scene content display device, including:
[0049] The acquisition module is used to receive the image acquisition request sent by the terminal, and in response to the image acquisition request, to acquire the preset display screen of the virtual object in the virtual scene using the virtual acquisition device corresponding to the virtual object;
[0050] The third sending module is used to send candidate screen identifiers for marking the preset display screen to the terminal, so that the terminal can select a target screen identifier from at least one of the candidate screen identifiers after displaying the candidate screen identifiers;
[0051] The screen determination module is used to receive a first selection result of the target screen identifier sent by the terminal, and determine the target display screen from the preset display screens according to the first selection result;
[0052] The content generation module is used to generate scene display content based on the target display screen, and send the scene display content to the terminal for the terminal to display the scene display content.
[0053] Furthermore, the data acquisition module is specifically used for:
[0054] In a virtual scene, a virtual object to be displayed is determined; in the virtual scene, a reference position of a virtual acquisition device that matches the virtual object is determined; and the virtual acquisition device is generated at the reference position.
[0055] The focal length of the virtual acquisition device is determined based on the virtual object, and a preset display screen of the virtual object is acquired based on the focal length.
[0056] Furthermore, the data acquisition module is specifically used for:
[0057] The movement mode of the virtual acquisition device is determined based on the acquisition focal length, and the virtual acquisition device is moved based on the movement mode. During the movement, the image of the virtual object is acquired according to the acquisition focal length.
[0058] During the movement of the virtual acquisition device, if the virtual acquisition device collides with any of the virtual objects, the virtual acquisition device will stop moving.
[0059] Furthermore, the data acquisition module is specifically used for:
[0060] When the acquisition focal length is at the preset first focal length, the movement mode of the virtual acquisition device is determined to be linear displacement;
[0061] Alternatively, when the acquisition focal length is at a preset second focal length and the virtual object carries a target object tag, the movement mode of the virtual acquisition device is determined to be either forward / backward displacement or circular displacement.
[0062] Alternatively, when the acquisition focal length is at a preset second focal length and the virtual object does not carry a target object label, the movement mode of the virtual acquisition device is determined to be linear displacement.
[0063] Wherein, any focal length in the first focal length is less than any focal length in the second focal length.
[0064] Furthermore, the data acquisition module is specifically used for:
[0065] Obtain the solid geometric center of the virtual object;
[0066] The horizontal and vertical movement ranges of the virtual acquisition device are determined based on the reference position.
[0067] Within the horizontal and vertical movement ranges, the virtual acquisition device is moved according to the movement method, and during the movement, the virtual object is captured based on the acquisition focal length and the three-dimensional geometric center.
[0068] Furthermore, the data acquisition module is specifically used for:
[0069] Divide the virtual scene into multiple scene partitions, and obtain at least one of the first item distribution parameters and the first item feature parameters of the virtual items in the scene partitions;
[0070] The combination of virtual items to be displayed is determined in the scene partition based on at least one of the first item distribution parameters and the first item feature parameters.
[0071] Furthermore, the data acquisition module is specifically used for:
[0072] The scene partition is divided into multiple scene sub-partitions based on at least one of the first item distribution parameters and the first item feature parameters;
[0073] Obtain at least one of the second item distribution parameters of the virtual items in the scene sub-partition and the second item feature parameters of the virtual items in the scene sub-partition;
[0074] The combination of virtual items to be displayed is determined in the scene sub-partition based on at least one of the second item distribution parameters and the second item feature parameters.
[0075] Furthermore, the content generation module is specifically used for:
[0076] Add a virtual character of the target action type to the target display screen to obtain a preset composite screen;
[0077] Send candidate action identifiers for marking the preset composite screen to the terminal, so that the terminal can select a target action identifier from at least one of the candidate action identifiers after displaying the candidate action identifiers;
[0078] Receive a second selection result of the target action identifier sent by the terminal, and determine a target composite screen from the preset composite screen based on the second selection result;
[0079] Scene display content is generated based on the target composite image.
[0080] Furthermore, the content generation module is specifically used for:
[0081] Obtain the reference position of the virtual acquisition device when acquiring the target display screen;
[0082] Based on the virtual items in the target display screen, obtain a virtual character of the target action type, and add the virtual character to the screen capture range of the virtual acquisition device;
[0083] Based on the aforementioned reference position, the image is captured again using a virtual acquisition device to obtain a preset composite image.
[0084] Furthermore, the content generation module is specifically used for:
[0085] Obtain the action tags carried by the virtual items in the target display screen;
[0086] The corresponding target action library is invoked based on the action tag, and a virtual character of the target action type is obtained from the target action library.
[0087] Furthermore, the content generation module is specifically used for:
[0088] Collect historical and current display images of the virtual scene, and obtain a preset comparison image based on the historical and current display images;
[0089] Send candidate comparison identifiers to the terminal for marking the preset comparison screen, so that the terminal can select a target comparison identifier from at least one of the candidate comparison identifiers after displaying the candidate comparison identifiers;
[0090] Receive the third selection result of the target comparison identifier sent by the terminal, and determine the target comparison screen from the preset comparison screen according to the third selection result;
[0091] Scene display content is generated based on the target display screen and the target comparison screen.
[0092] Furthermore, the content generation module is specifically used for:
[0093] Multiple scene partitions are divided from the virtual scene, and information on the degree of change of virtual items in the scene partitions is obtained;
[0094] Based on the degree of change information, a target partition is determined among the multiple scene partitions, and the historical display screen and the current display screen of the target partition are collected.
[0095] On the other hand, embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method for displaying virtual scene content.
[0096] On the other hand, embodiments of this application also provide a computer-readable storage medium storing a computer program, which is executed by a processor to implement the above-described method for displaying content in a virtual scene.
[0097] On the other hand, embodiments of this application also provide a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the content display method for implementing the aforementioned virtual scene.
[0098] The embodiments of this application include at least the following beneficial effects: By sending a screen capture request to the server, the server can respond to the screen capture request and use the virtual capture device corresponding to the virtual object in the virtual scene to capture the preset display screen of the virtual object. Since the virtual capture device corresponds to the virtual object, even if the virtual object in the virtual scene has uncertainty and openness, the virtual capture device can accurately capture the screen of the virtual object, improving the quality of the preset display screen. At the same time, it can also realize the automated capture of the preset display screen, improving the capture efficiency of the preset display screen. On this basis, it is only necessary to receive and display the candidate screen identifier sent by the server to mark the preset display screen, and then select the target screen identifier from at least one candidate screen identifier and send the first selection result of the target screen identifier to the server. The server can then further determine the target display screen from the preset display screen according to the first selection result, and then receive and display the scene display content generated by the server based on the target display screen. Thus, it is possible to quickly and in batches generate the scene display content of the virtual scene based on the selected target display screen, without having to manually synthesize the scene display content of the virtual scene. It can be seen that the content display method provided by the embodiments of this application can display content in the virtual scene with high quality and efficiency.
[0099] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the application. Attached Figure Description
[0100] The accompanying drawings are used to provide a further understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0101] Figure 1 A schematic diagram illustrating an optional implementation environment provided for an embodiment of this application;
[0102] Figure 2 An optional flowchart for the virtual scene content display method provided in the embodiments of this application;
[0103] Figure 3 This is an optional operation diagram illustrating the generation of scene display content from a trigger request, as provided in an embodiment of this application.
[0104] Figure 4 This is an optional operation diagram illustrating the selection of a target screen identifier provided in an embodiment of this application;
[0105] Figure 5 An optional structural schematic diagram for the scene display content provided in the embodiments of this application;
[0106] Figure 6 This is an optional operation diagram of the preview preset display screen provided in the embodiments of this application;
[0107] Figure 7 Another optional flowchart for the virtual scene content display method provided in the embodiments of this application;
[0108] Figure 8a A schematic diagram illustrating an optional scene partitioning method provided in an embodiment of this application;
[0109] Figure 8b An optional schematic diagram illustrating the determination of a virtual item combination provided in an embodiment of this application;
[0110] Figure 9 A schematic diagram of an optional screen capture method provided in the embodiments of this application for the virtual acquisition device;
[0111] Figure 10 A schematic diagram of an optional horizontal movement of the virtual acquisition device provided in the embodiments of this application;
[0112] Figure 11 A schematic diagram of an optional vertical movement of the virtual acquisition device provided in an embodiment of this application;
[0113] Figure 12 Another optional horizontal movement diagram of the virtual acquisition device provided in the embodiments of this application;
[0114] Figure 13 This application provides a preset display screen after adding a virtual character with a default action type in an embodiment of the present application;
[0115] Figure 14 The preset display screen provided in this application embodiment shows a virtual character with a sitting action type added.
[0116] Figure 15 This is an optional operation diagram illustrating the selection of a target action identifier provided in an embodiment of this application;
[0117] Figure 16 This is an optional close-up view illustration provided for an embodiment of this application;
[0118] Figure 17This is an optional operation diagram illustrating the selection of a target comparison identifier provided in an embodiment of this application;
[0119] Figure 18 A schematic diagram illustrating another optional partitioning of the scene area provided in an embodiment of this application;
[0120] Figure 19 A schematic diagram of an optional preset comparison screen provided for an embodiment of this application;
[0121] Figure 20 This is an optional operation diagram illustrating the determination of the comparison position provided in an embodiment of this application;
[0122] Figure 21 An optional flowchart for displaying a preset display screen provided in the embodiments of this application;
[0123] Figure 22 An optional flowchart for displaying a preset composite screen provided in the embodiments of this application;
[0124] Figure 23 An optional flowchart for displaying a preset comparison screen provided in the embodiments of this application;
[0125] Figure 24 An optional publishing diagram illustrating the scenario display content provided in this application embodiment;
[0126] Figure 25 A schematic diagram of an optional structure of the first content display device provided in the embodiments of this application;
[0127] Figure 26 This is an optional structural schematic diagram of the second content display device provided in the embodiments of this application;
[0128] Figure 27 This is a partial structural block diagram of a terminal provided in an embodiment of this application;
[0129] Figure 28 A partial structural block diagram of the server provided in an embodiment of this application. Detailed Implementation
[0130] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0131] It should be noted that in various specific embodiments of this application, when processing data related to the characteristics of the target object, such as target object attribute information or attribute information sets, is required, the permission or consent of the target object will be obtained first. Furthermore, the collection, use, and processing of this data will comply with relevant laws, regulations, and standards. The target object can be a user. In addition, when embodiments of this application need to obtain target object attribute information, separate permission or consent from the target object will be obtained through pop-ups or redirection to a confirmation page. Only after obtaining the target object's separate permission or consent will the necessary target object-related data for the normal operation of the embodiments of this application be obtained.
[0132] To facilitate understanding of the technical solutions provided in the embodiments of this application, some key terms used in the embodiments of this application will be explained below:
[0133] Cloud computing refers to the delivery and usage model of IT infrastructure, meaning obtaining necessary resources in an on-demand and easily scalable manner through a network. In a broader sense, cloud computing also refers to the delivery and usage model of services, meaning obtaining necessary services in an on-demand and easily scalable manner through a network. These services can be IT and software related, internet-related, or other services. Cloud computing is a product of the development and integration of traditional computer and network technologies such as grid computing, distributed computing, parallel computing, utility computing, network storage technologies, virtualization, and load balancing.
[0134] Currently, an increasing number of users prefer to display content in custom virtual scenes. For example, users can use a camera to capture the content of the virtual scene, or they can use the screen recording function of their device. Regardless of the method, users need to perform operations such as selecting the viewing angle and adjusting the capture distance for the virtual scene content. Furthermore, due to the uncertainty and openness of the content in custom virtual scenes, how to display content in a high-quality and efficient manner is a pressing issue that needs to be addressed.
[0135] Based on this, embodiments of this application provide a method, apparatus, electronic device, and storage medium for displaying content in a virtual scene, which can effectively improve the efficiency of displaying content in a virtual scene.
[0136] Reference Figure 1 , Figure 1 This is a schematic diagram of an optional implementation environment provided in an embodiment of this application. The implementation environment includes a terminal 101 and a server 102, wherein the terminal 101 and the server 102 are connected through a communication network.
[0137] For example, terminal 101 can display a human-computer interaction interface. Terminal 101 can send a screen capture request to server 102. Server 102 responds to the screen capture request and uses a virtual capture device corresponding to the virtual object in the virtual scene to capture the preset display screen of the virtual object. Terminal 101 receives candidate screen identifiers sent by server 102 to mark the preset display screen and displays the candidate screen identifiers in the human-computer interaction interface. In response to terminal 101 selecting a target screen identifier from at least one candidate screen identifier, it sends a first selection result of the target screen identifier to server 102. Server 102 determines the target display screen from the preset display screens according to the first selection result, generates scene display content based on the target display screen, and then sends the scene display content to terminal 101. Terminal 101 displays the scene display content.
[0138] Terminal 101 sends a screen capture request to the server, enabling the server to respond and capture a preset display screen of the virtual object using a virtual capture device corresponding to the virtual object in the virtual scene. Since the virtual capture device corresponds to the virtual object, even if the virtual object in the virtual scene has uncertainty and openness, the virtual capture device can accurately capture the screen of the virtual object, improving the quality of the preset display screen. At the same time, it can also realize the automated capture of the preset display screen, improving the capture efficiency. Based on this, it only needs to receive and display the candidate screen identifier sent by the server to mark the preset display screen, and then select the target screen identifier from at least one candidate screen identifier and send the first selection result of the target screen identifier to the server. The server can then further determine the target display screen from the preset display screens based on the first selection result, and then receive and display the scene display content generated by the server based on the target display screen. This allows for the rapid and batch generation of scene display content of the virtual scene based on the selected target display screen, without the need for manual synthesis of the scene display content of the virtual scene. It is evident that the content display method provided in this embodiment can display content of the virtual scene with high quality and efficiency.
[0139] Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Additionally, server 102 can also be a node server in a blockchain network.
[0140] Terminal 101 can be a smartphone, tablet computer, laptop computer, desktop computer, smart speaker, smartwatch, virtual reality terminal, vehicle terminal, etc., but is not limited to these. Terminal 101 and server 102 can be directly or indirectly connected via wired or wireless communication, and this embodiment of the application does not impose any limitations.
[0141] The methods provided in this application can be applied to different technical fields, including but not limited to cloud computing, virtual reality, and augmented reality.
[0142] Reference Figure 2 , Figure 2 This is an optional flowchart of a virtual scene content display method provided in the embodiments of this application. The virtual scene content display method can be executed by a terminal or by a terminal and a server in cooperation. The content display method includes, but is not limited to, the following steps 201 to 204.
[0143] Step 201: Send a screen capture request to the server so that the server responds to the screen capture request and uses the virtual capture device corresponding to the virtual object in the virtual scene to capture the preset display screen of the virtual object.
[0144] The image capture request is a request sent from the terminal to the server, instructing the server to initiate image capture. A virtual scene is a space output by the terminal that differs from the real world. Visual perception of a virtual scene can be formed through the naked eye or with the assistance of devices. Examples include two-dimensional images output through a display screen, and three-dimensional images output through stereoscopic display technologies such as stereoscopic projection, virtual reality, and augmented reality. Furthermore, various possible hardware can be used to create auditory, tactile, olfactory, and motion perceptions, simulating various aspects of the real world. A virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. A virtual scene can be any of the following: two-dimensional, 2.5-dimensional, or three-dimensional.
[0145] Among them, the virtual acquisition device is a virtual acquisition device generated in a virtual scene. The virtual acquisition device has the ability to capture images. For example, the virtual acquisition device can be a virtual camera, etc.
[0146] The process of requesting the generation of scene display content signifies the initiation of this process. This request can be triggered within the virtual scene, specifically during its display. Specifically, the request can be actively triggered by the user, for example, based on user actions; or it can be automatically triggered by the terminal, for example, after a preset timeout period.
[0147] As can be seen, the preset display screen is a pre-generated display screen by the server, meaning there is no need to manually capture the screen to be displayed in the virtual scene using the terminal. The preset display screen can take the form of an image or a video clip. The preset display screen is used to generate the scene display content of the virtual scene; that is, the preset display screen is part of the scene display content, which is the content to be displayed in the virtual scene, and the scene display content can take the form of an image or a video.
[0148] Specifically, the preset display screen is used to showcase virtual objects within a virtual scene. The virtual display screen shows virtual objects currently existing in the virtual scene, and these virtual objects are data models within the virtual scene. Virtual objects can be virtual items, which are inanimate objects within the virtual scene. For example, if the virtual scene is a virtual house, the virtual items could be virtual furniture, virtual appliances, virtual decorations, virtual walls, etc. Alternatively, if the virtual scene is a virtual tourist attraction, the virtual items could be virtual sculptures, virtual statues, virtual pillars, etc. In addition, virtual objects can also be virtual characters, which are animate objects within the virtual scene, such as virtual people, virtual animals, virtual plants, etc.
[0149] In one possible implementation, when the virtual scene is customized, it will be modified. Accordingly, the preset display screen can include the current display screen of the virtual scene, which is the modified display screen. The preset display screen may only show virtual items from the virtual scene, and correspondingly, the scene display content will also only show virtual items from the virtual scene; or, the preset display screen may show both virtual items and virtual characters from the virtual scene, and correspondingly, the scene display content will also show both virtual items and virtual characters from the virtual scene.
[0150] In addition, the preset display screen can also include the historical display screen and the current display screen of the virtual scene. The historical display screen is the display screen of the virtual scene before it was modified, that is, the preset display screen is a comparison screen of the virtual scene before and after the modification.
[0151] Step 202: Receive candidate screen identifiers sent by the server to mark preset display screens, and display the candidate screen identifiers;
[0152] Among them, the candidate screen identifier is a visual identifier used to mark one of the preset display screens in the virtual scene. In one possible implementation, the candidate screen identifier is generated by the server based on the preset display screen. Specifically, the candidate screen identifier can be obtained by scaling down the preset display screen. For example, when the preset display screen is an image, the corresponding candidate screen identifier can be a thumbnail of the preset display screen.
[0153] Alternatively, the candidate screen identifier can be obtained by extracting and shrinking the preset display screen. For example, when the preset display screen is a video, the candidate screen identifier can be obtained by extracting one frame image from the preset display screen and then using the thumbnail of the extracted frame image as the candidate screen identifier.
[0154] In addition, when generating candidate screen identifiers, image recognition can be performed on the preset display screen marked by the candidate screen identifier, and then the screen name of the preset display screen can be determined based on the image recognition result, and the screen name can be displayed as part of the candidate screen identifier.
[0155] In one possible implementation, candidate image identifiers can be arranged and displayed based on a target order. This target order can be determined by the preset shot size of the displayed images. The shot size is determined by the difference in the distance between the virtual acquisition device and the virtual object when the focal length is constant, resulting in a difference in the size of the area presented in the image. For example, the shot size can be a wide shot, a long shot, a medium shot, a close-up, an extreme close-up, etc.
[0156] For example, the target order could be based on the shot size of the preset display, arranged from wide shot to close-up; or, the target order could be based on the degree of modification of virtual items in the preset display, for example, arranged from highest to lowest degree of modification; or, the target order could be based on the item tags of virtual items in the preset display, for example, if a virtual item in the preset display has a specific item tag, the corresponding candidate image would be displayed first; or, the target order could be based on the item value of virtual items in the preset display, for example, arranged from highest to lowest item value; or, the target order could be based on the level of detail of virtual items in the preset display, for example, arranged from highest to lowest level of detail.
[0157] Specifically, item tags are used to specially mark items, indicating the importance of virtual items. These tags can be specific type tags (e.g., large wall decorations, campfires), holiday tags, event tags, or user-defined tags. Item value can be the quantity of virtual resources required to obtain the right to display or use the virtual item, such as virtual coins or virtual diamonds. Alternatively, item value can be the actual value of the corresponding item in the real world, such as the selling price or historical storage time of the item. The refinement level of a virtual item can be determined by the number of planes it has; the more planes an item has, the higher its refinement level.
[0158] In one possible implementation, sending a screen capture request to the server could specifically involve displaying a virtual scene, and then sending the screen capture request to the server in response to the cessation of modifications to the virtual scene, thereby automatically detecting changes to the virtual scene. Alternatively, it could involve sending a screen capture request to the server in response to a request to generate scene display content within the virtual scene. When the user actively triggers a request to generate scene display content within the virtual scene, one approach could be to display a content generation request interface in response to the cessation of modifications to the virtual scene. This content generation request interface would display a request initiation control, and in response to operations on the request initiation control, a request would be made to generate scene display content for the virtual scene.
[0159] Modifying a virtual scene can involve altering virtual items within that scene, such as adding, removing, modifying, replacing, or repositioning them. Specifically, when displaying a virtual scene, there can be a browsing mode and a modification mode. In modification mode, changes can be made to the virtual scene.
[0160] Taking a virtual house as an example, refer to Figure 3 , Figure 3 This is an optional operation diagram illustrating the triggering request to generate scene display content provided in this application embodiment. After displaying the virtual scene, a modification control 301 for entering modification mode is displayed. In response to an operation on the modification control 301, modification mode can be entered, and a virtual item list 302 and a modification mode exit control 303 are displayed. The virtual item list 302 displays multiple virtual items, which may be virtual items purchased using virtual resources. Therefore, when modifying the virtual scene, virtual items from the virtual item list 302 can be added to the virtual scene. After the virtual scene modification is complete, in response to an operation on the modification mode exit control 303, the modification of the virtual scene is terminated, the modification mode is exited, and a browsing mode is entered, displaying the modified virtual scene. Furthermore, a content generation request interface 304 is displayed, which shows a generation request initiation control 305. In response to an operation on the generation request initiation control 305, a request to generate scene display content can be triggered. If there is no need to generate scene display content, the content generation request interface can be closed.
[0161] Therefore, based on Figure 3 In the example shown, there are two possible times to send a screen capture request to the server: one is after the operation of the exit control 303 for the modified mode; the other is after the operation of the initiation control 305 for the generation request.
[0162] The content generation request interface 304 can be displayed floating in the virtual scene to achieve a prominent display effect.
[0163] In addition, the content generation request interface 304 can also display the generation process information 306 of the scene display content. The generation process information 306 is used to preview the generation steps of the scene display content, thereby achieving a preview effect of the generation process of the scene display content and improving the efficiency of human-computer interaction.
[0164] By displaying the content generation request interface when the virtual scene modification is finished, and then triggering the request to generate scene display content based on the generation request initiation control in the content generation request interface, the interactive efficiency of requesting to generate scene display content can be improved.
[0165] In one possible implementation, when the user actively triggers a request to generate scene display content in the virtual scene, another approach is to display the virtual scene, where the virtual scene displays a request initiation control, and in response to the operation of the request initiation control, requests are made to generate the scene display content of the virtual scene.
[0166] The request initiation control can be displayed directly in the virtual scene, or it can be invoked through an operation.
[0167] For example, refer to again Figure 3 After displaying the virtual scene, a mode menu control 307 can be displayed. In response to the operation of the mode menu control 307, a request generation initiation control can be further displayed.
[0168] By displaying a request initiation control in the virtual scene, if the request to generate scene display content is not triggered through the content generation request interface, the request to generate scene display content can be retried through the request initiation control in the virtual scene, thereby increasing the ways to trigger the request to generate scene display content.
[0169] Step 203: In response to selecting a target screen identifier from at least one candidate screen identifier, a first selection result of the target screen identifier is sent to the server, so that the server determines the target display screen from the preset display screens based on the first selection result;
[0170] The target display screen is a preset display screen marked by a target display screen identifier. The first selection result is used to indicate the target display screen identifier selected by the terminal. For example, the first selection result may carry the identifier number corresponding to the target display screen identifier. The selection of the target display screen identifier from at least one candidate display screen identifier can be actively triggered by the user, for example, the target display screen identifier can be selected from at least one candidate display screen identifier based on the user's operation. Alternatively, it can be automatically triggered by the terminal, for example, the selection of the target display screen identifier from at least one candidate display screen identifier can be automatically triggered after a preset time period has been reached.
[0171] In one possible implementation, a selection control can be displayed in the candidate screen identifiers, and the corresponding candidate screen identifier can be selected in response to the operation of the selection control.
[0172] In one possible implementation, when the target display screen is a fragment, the scene display content can be a video composed of at least one fragment; when the target display screen is an image, the scene display content can be a video composed of multiple images, or an image composed of multiple images stitched together.
[0173] For example, refer to Figure 4 , Figure 4 This is an optional operation diagram illustrating the selection of a target screen identifier provided in an embodiment of this application, wherein the candidate screen identifier 401 can be displayed through the screen identifier selection interface 402. Figure 4 The example shown illustrates a scenario where the number of candidate screen identifiers 401 is five. A screen identifier selection interface 402 floats in the virtual scene. Screen identifier selection controls 403 can be displayed on the candidate screen identifiers 401. In response to an operation on the screen identifier selection control 403, the corresponding candidate screen identifier 401 is selected as the target screen identifier. Furthermore, the screen identifier selection interface 402 also displays a content generation control 404. In response to an operation on the content generation control 404, the selection of the target screen identifier is confirmed, and the first selection result of the target screen identifier is sent to the server.
[0174] In addition, the screen label selection interface 402 can also display the screen names corresponding to the candidate screen labels 401, such as "room panoramic view", "living room mid-range view", "dining room close-up", "kitchen corner", "exquisite details", etc.
[0175] In one possible implementation, the viewing angle of the preset display screen can also be selected. Specifically, the viewing angle of the preset display screen can be a front view, a side view, or a top view, etc. When the viewing angle is the front view, the preset display screen mainly displays the front of the virtual object; when the viewing angle is the side view, the preset display screen mainly displays the side of the virtual object; when the viewing angle is the top view, the preset display screen mainly displays the top of the virtual object.
[0176] In addition, the preset display screen can also be viewed from a first-person perspective, a second-person perspective, or a third-person perspective, etc. When the perspective is a first-person perspective, the preset display screen mainly shows virtual items in the field of vision of the currently controlled virtual character; when the perspective is a second-person perspective or a third-person perspective, in addition to displaying virtual items, the preset display screen can also further display the currently controlled virtual character.
[0177] Specifically, a viewpoint selection control can be set in the screen identifier selection interface. In response to operations on the viewpoint selection control, a candidate viewpoint list is displayed. This list contains multiple candidate views, which can be the aforementioned main view, side view, top view, first-person view, second-person view, or third-person view, etc. In response to selecting one or more target views from the multiple candidate views, the viewpoint information of the corresponding target viewpoint is added to the first selection result. After receiving the first selection result, the server can determine the target display screen from the preset display screens based on the identifier number and select the viewpoint of that target display screen based on the viewpoint information.
[0178] The server can pre-collect different perspectives of the same preset display screen and send the candidate screen identifiers corresponding to the preset display screens from different perspectives to the terminal. If different target perspectives are selected based on the perspective selection control, the terminal can read the candidate screen identifiers of the corresponding target perspectives and display them, thereby facilitating the preview of preset display screens from different perspectives.
[0179] Once a target viewpoint is selected, all candidate screen markers can be applied simultaneously, meaning that each candidate screen marker refreshes and displays as the target viewpoint changes; alternatively, different target viewpoints can be selected for different candidate screen markers. The candidate screen markers for the currently selected viewpoint will refresh and display, while the other candidate screen markers will remain unchanged, thus making the final preset display screen more personalized.
[0180] Furthermore, multiple target perspectives can be selected. Correspondingly, candidate screen icons for different perspectives of the same preset display screen can be displayed simultaneously in the screen icon selection interface. The server can then generate scene display content based on different perspectives of the same preset display screen, thereby enhancing the richness of the same preset display screen and showcasing the same virtual object from all angles.
[0181] By using the viewpoint selection control to select the target viewpoint, the content of the preset display screen can be enriched. At the same time, since the preset display screens of different viewpoints are all pre-collected by the server, the efficiency of human-computer interaction can be further improved.
[0182] Step 204: Receive the scene display content generated by the server based on the target display screen, and display the scene display content.
[0183] In this process, after the server determines the target screen identifier selected by the terminal based on the first selection result, it can read the target display screen corresponding to the target screen identifier, generate scene display content based on the target display screen, and then send the scene display content to the terminal for display.
[0184] For example, refer to Figure 5 , Figure 5 This is an optional structural diagram of the scene display content provided in this application embodiment. In this example, the scene display content 501 is a video. When displaying the scene display content 501, a video progress bar 502 can be displayed simultaneously, and the display progress of the scene display content 501 can be controlled through the video progress bar 502. In addition to displaying the scene display content 501, a target display screen 503 can also be further displayed. In this example, the target display screen 503 is displayed to the side of the scene display content 501. The user can edit the target display screen 503, for example, adjust the playback order of the target display screens 503, or delete one or more target display screens 503.
[0185] In addition, when displaying scene display content 501, a publishing control 504 and a return control 505 can be displayed on the side of scene display content 501. In response to the operation of publishing control 504, scene display content 501 can be published to a target page. The target page can be a page for content sharing, such as the status sharing page of a social application. Specifically, in response to the operation of publishing control 504, the terminal can directly call the publishing interface provided by the server corresponding to the target page, and then publish scene display content 501 to the target page without the need for other editors, thereby effectively improving the publishing efficiency of scene display content 501.
[0186] In response to the operation of the return control 505, the screen icon selection interface 402 can be returned to, and the candidate screen icon 401 can be selected again.
[0187] In addition, the scene display content can also be images, composed of multiple target display screens stitched together. Users can edit the target display screens; for example, they can adjust the size or position of the target display screens, or delete one or more target display screens.
[0188] By sending a screen capture request to the server, the server can respond to the request and use a virtual capture device corresponding to the virtual object in the virtual scene to capture the preset display screen of the virtual object. Since the virtual capture device corresponds to the virtual object, even if the virtual object in the virtual scene has uncertainty and openness, the virtual capture device can accurately capture the screen of the virtual object, improving the quality of the preset display screen. At the same time, it can also realize the automated capture of the preset display screen, improving the capture efficiency. On this basis, it is only necessary to receive and display the candidate screen identifier sent by the server to mark the preset display screen, and then select the target screen identifier from at least one candidate screen identifier and send the first selection result of the target screen identifier to the server. The server can then further determine the target display screen from the preset display screens based on the first selection result, and then receive and display the scene display content generated by the server based on the target display screen. Thus, it is possible to quickly and in batches generate the scene display content of the virtual scene based on the selected target display screen, without the need to manually synthesize the scene display content of the virtual scene. It can be seen that the content display method provided by the embodiments of this application can display content in the virtual scene with high quality and efficiency.
[0189] In one possible implementation, after displaying candidate screen identifiers for marking preset display screens, the system can also respond to previewing the preset display screen based on any candidate screen identifier by sending a first preview request to the server, receiving the preset display screen sent by the server in response to the first preview request, and displaying the preset display screen marked by the candidate screen identifier.
[0190] The first preview request is used to retrieve the preset display screen corresponding to the candidate screen identifier from the server. When the preset display screen is an image, previewing the preset display screen restores and displays the original preset display screen. When the preset display screen is a clip, previewing the preset display screen plays the original preset display screen. The candidate screen identifier can serve as a preview control for user interaction. Specifically, the candidate screen identifier previews the preset display screen, and in response to operations on the candidate screen identifier, displays the original preset display screen, which can float in the virtual scene.
[0191] For example, refer to Figure 6 , Figure 6 This is an optional operation diagram of a preview preset display screen provided in the embodiments of this application. In this example, the preset display screen is used as a segment for illustration. When any candidate screen identifier 401 is clicked, the corresponding preset display screen 601 can be played. At the same time, when the preset display screen 601 is displayed, the segment progress bar 602 can be displayed simultaneously, and the display progress of the preset display screen 601 can be controlled through the segment progress bar 602.
[0192] In addition, the preset display screen can be previewed based on the candidate screen identifier. Alternatively, the preset display screen can be automatically previewed after the display duration of the candidate screen identifier reaches a time threshold, thereby improving the efficiency of human-computer interaction.
[0193] In one possible implementation, refer to Figure 7 , Figure 7 This is another optional flowchart of the virtual scene content display method provided in the embodiments of this application. The virtual scene content display method can be executed by a terminal or by a terminal and a server in cooperation. The content display method includes, but is not limited to, the following steps 701 to 704.
[0194] Step 701: Receive the screen capture request sent by the terminal, and in response to the screen capture request, use the virtual capture device corresponding to the virtual object in the virtual scene to capture the preset display screen of the virtual object;
[0195] Step 702: Send candidate screen identifiers to the terminal for marking preset display screens, so that the terminal can select a target screen identifier from at least one candidate screen identifier after displaying the candidate screen identifiers;
[0196] Step 703: Receive the first selection result of the target screen identifier sent by the receiving terminal, and determine the target display screen from the preset display screens based on the first selection result;
[0197] Step 704: Generate scene display content based on the target display screen, and send the scene display content to the terminal for the terminal to display the scene display content.
[0198] The preset display screen is pre-collected by the server. After collecting the preset display screen, the server can generate candidate screen identifiers for the preset display screen and send the candidate screen identifiers and the corresponding preset display screens to the terminal. The terminal first displays the candidate screen identifiers, then previews the preset display screen based on any one of the candidate screen identifiers, and finally reads the corresponding preset display screen from the local machine for display.
[0199] In one possible implementation, the server can also send candidate screen identifiers to the terminal. The terminal first displays the candidate screen identifiers, and then previews a preset display screen based on any candidate screen identifier. The terminal then accesses the server to obtain the corresponding preset display screen for display.
[0200] Specifically, when the server uses the virtual acquisition device corresponding to the virtual object in the virtual scene to capture the preset display screen of the virtual object, it can determine the virtual object to be displayed in the virtual scene, determine the reference position of the virtual acquisition device that matches the virtual object in the virtual scene, generate the virtual acquisition device at the reference position, determine the acquisition focal length of the virtual acquisition device according to the virtual object, and capture the preset display screen of the virtual object according to the acquisition focal length.
[0201] The virtual object can be a combination of virtual items, and each combination includes at least one virtual item. After determining the combination of virtual items to be displayed, the reference position of the virtual acquisition device can be further determined. The virtual acquisition device can then be generated and activated to capture images, obtaining a preset display screen for the corresponding virtual item combination. After determining the reference position of the virtual acquisition device, the correspondence between the screen number of the captured preset display screen and the corresponding reference position can be saved for subsequent retrieval. The screen number is used by the server to save and retrieve the corresponding preset display screen.
[0202] In one possible implementation, the number of virtual acquisition devices can be the same as the number of virtual item combinations. When there are multiple virtual item combinations, the number of virtual acquisition devices can also be multiple.
[0203] By determining the reference position of the virtual acquisition device that matches the virtual object, and by determining the acquisition focal length of the virtual acquisition device based on the virtual object, it is possible to flexibly and accurately generate a matching virtual acquisition device based on the virtual object to be displayed in the virtual scene. At the same time, by determining the acquisition focal length of the virtual acquisition device based on the virtual object, a preset display screen corresponding to the virtual object can be generated, thereby effectively improving the quality of the preset display screen.
[0204] In one possible implementation, when the server determines the combination of virtual items to be displayed in the virtual scene, it may specifically divide the virtual scene into multiple scene partitions, obtain at least one of the first item distribution parameters and the first item feature parameters of the virtual items in the scene partitions, and determine the combination of virtual items to be displayed in the scene partitions based on the first item distribution parameters and the first item feature parameters.
[0205] A scene partition is a specific area within a virtual scene. For example, if the virtual scene is a virtual house, the scene partition could be the various rooms within that house, such as the living room, kitchen, or bedroom. Similarly, if the virtual scene is a virtual attraction, the scene partition could be the visitor area, rest area, service area, etc.
[0206] For example, refer to Figure 8a, Figure 8a This is an optional scene partitioning diagram provided in the embodiments of this application. Taking a virtual house as an example, the scene partitions that can be divided are: living room 1, living room 2, bedroom, kitchen and study.
[0207] In one possible implementation, the server divides the virtual scene into multiple scene partitions. Specifically, this can be done by dividing the virtual scene into multiple scene partitions based on the scene structure parameters of the virtual scene. The scene structure parameters are parameters that indicate the main architecture of the virtual scene. Taking a virtual house as an example, the scene structure parameters can be the house orientation, the location of the main door, the location of the room doors, the entrance route, wall data, etc.
[0208] By dividing a virtual scene into multiple scene partitions based on its scene structure parameters, the precision of scene partitioning can be effectively improved, making the partitioning more closely resemble the partitioning principles in the real world.
[0209] In addition, the virtual scene can also be divided into multiple scene partitions on an even basis.
[0210] The first item distribution parameter is a parameter that indicates the distribution attributes of virtual items in the scene partition. For example, the first item distribution parameter can be the number of virtual items, the distance between virtual items, or the density of virtual items (the quotient between the distance between virtual items and the number of virtual items), etc.
[0211] The first item feature parameter is a parameter that indicates the inherent attributes of the virtual item in the scene partition. For example, the first item feature parameter may be the item tag of the virtual item, the item value of the virtual item, or the refinement level of the virtual item, etc.
[0212] In one possible implementation, the first item distribution parameters and the first item feature parameters are obtained, and the combination of virtual items to be displayed is determined based on the first item distribution parameters and the first item feature parameters, thereby improving the reliability and rationality of determining the combination of virtual items to be displayed.
[0213] Specifically, a ranking score for each virtual item combination can be calculated by weighting the first item distribution parameters and the first item feature parameters, and the virtual item combination to be displayed can be determined based on the ranking score. The specific weights of the first item distribution parameters and the first item feature parameters can be set according to actual conditions, and this embodiment does not impose any limitations. Furthermore, when there are multiple first item distribution parameters or first item feature parameters, different weights can be assigned to different first item distribution parameters, or different first item feature parameters. For example, when the first item distribution parameters include both the number of virtual items and the distance between virtual items, different weights can be assigned to the number of virtual items and the distance between virtual items, thereby improving the precision of determining the virtual item combination to be displayed.
[0214] For example, refer to Figure 8b , Figure 8b This is an optional schematic diagram illustrating the determination of a virtual item combination provided in an embodiment of this application. Figure 8a Taking living room 1 as an example, the sofa and coffee table in the upper left corner of living room 1 are the virtual items with the largest number of virtual items, the highest importance of item tags, and the closest proximity between virtual items. Therefore, the sofa and coffee table constitute the virtual item combination to be displayed in living room 1.
[0215] In one possible implementation, when the server determines the combination of virtual items to be displayed in a scene partition based on at least one of the first item distribution parameters and the first item feature parameters, it can specifically divide the scene partition into multiple scene sub-partitions based on at least one of the first item distribution parameters and the first item feature parameters, obtain at least one of the second item distribution parameters and the second item feature parameters of the virtual items in the scene sub-partitions, and determine the combination of virtual items to be displayed in the scene sub-partitions based on at least one of the second item distribution parameters and the second item feature parameters.
[0216] The scene sub-partition is one area within the scene partition, meaning it is obtained through a secondary division of the virtual scene. Since the scene sub-partition is determined based on at least one of the first item distribution parameters and the first item feature parameters, it is actually the area corresponding to the virtual item combination initially determined from the scene partition. In other words, the scene sub-partition is used to determine the final virtual item combination to be displayed after the virtual item combination is initially determined from the scene partition.
[0217] Based on this, by further obtaining at least one of the second item distribution parameters and the second item feature parameters, the combination of virtual items to be displayed in the scene sub-partition can be determined, which can achieve finer-grained image capture, thus making it easier to obtain preset display images of various different scene types.
[0218] It is understandable that the principle of the second item distribution parameter is similar to that of the first item distribution parameter, and the principle of the second item characteristic parameter is similar to that of the first item characteristic parameter, indicating that the granularity of the division is different, which will not be elaborated here.
[0219] For example, to undertake Figure 8b In the example shown, the scene sub-partition can be the area corresponding to the sofa and coffee table. Therefore, for the scene sub-partition corresponding to the sofa, the virtual item combination can be the sofa itself. It is understood that the above example is for illustrative purposes only; in actual applications, the number of virtual items can be much larger, and therefore the number of virtual items in a virtual item combination can also be greater.
[0220] In one possible implementation, a step-by-step virtual acquisition device can be additionally set up in the virtual scene. The reference position of this step-by-step virtual acquisition device can be a preset reference position in the virtual scene. For example, taking a virtual house as an example, the preset reference position could be the main door. When a step-by-step virtual acquisition device is additionally set up in the virtual scene, it can start from the preset reference position, move along a preset path, and capture images of virtual objects. Alternatively, it can move sequentially to the reference position matching the virtual object to capture images.
[0221] In one possible implementation, when the server captures a preset display image of a virtual object based on the capture focal length, it can specifically determine the movement mode of the virtual capture device based on the capture focal length, move the virtual capture device based on the movement mode, and capture the image of the virtual object according to the capture focal length during the movement, thereby capturing fragments of virtual item combinations, and can keep the capture focal length unchanged during the movement to improve the stability of image capture.
[0222] In related technologies, manually capturing images can easily lead to clipping issues in the captured images. However, in this embodiment, if the virtual capture device collides with any virtual object during its movement, the virtual capture device is stopped, thus avoiding clipping and improving the stability of image capture. For example, the collision between the virtual capture device and any virtual object can be determined by comparing the outline of the virtual capture device with the outline of the virtual object.
[0223] Specifically, the outline range of the virtual item combination can be obtained. Based on the outline range, the reference position of the virtual acquisition device can be determined in the virtual scene. In this case, there can be multiple virtual acquisition devices. The outline range of the virtual item combination is the area enclosed by the outer edges of the virtual item combination. Specifically, since the acquisition field of view (minimum width and minimum height of the acquisition field of view) of the virtual acquisition device can be determined based on the outline range, the reference position of the virtual acquisition device can be determined in the virtual scene based on the outline range. After configuring the virtual acquisition device at the reference position, the image of the virtual item combination can be captured. By obtaining the outline range of the virtual item combination to determine the reference position of the virtual acquisition device, the virtual acquisition device can completely capture the image of the virtual item combination.
[0224] In one possible implementation, a first focal length and a second focal length can be preset, and the acquisition focal length can be randomly selected from the first focal length or the second focal length. Any focal length in the first focal length is shorter than any focal length in the second focal length. The first focal length can be a short focal length, and the second focal length can be a long focal length.
[0225] Therefore, when determining the movement mode of the virtual acquisition device based on the acquisition focal length, specifically when the acquisition focal length is at the preset first focal length, the movement mode of the virtual acquisition device can be determined to be linear displacement. Correspondingly, the preset display image acquired based on the acquisition focal length has a shot size of medium to high, such as medium shot or full shot. When the preset display image has a shot size of medium to high, moving the virtual acquisition device by linear displacement can make the preset display image more stable.
[0226] When the acquisition focal length is at the preset second focal length and the virtual object carries a target object tag, the movement mode of the virtual acquisition device is determined to be either forward / backward displacement or circular displacement. The target object tag indicates the importance of the virtual object; for example, it could be a specific item tag. Correspondingly, the preset display image obtained based on the acquisition focal length will have a framing of close-up or less, such as a close-up or extreme close-up. When the preset display image has a framing of close-up or less, since the virtual object carries a target object tag, indicating that the virtual object is of high importance, moving the virtual acquisition device forward / backward displacement or circular displacement allows the preset display image to show more details, improving the focusing effect on the virtual object.
[0227] When the acquisition focal length is at the preset second focal length and the virtual object does not carry a target object label, the movement mode of the virtual acquisition device is determined to be linear displacement. Since the virtual object is of low importance, the virtual acquisition device can be moved by linear displacement, which can make the preset display screen more stable.
[0228] It is evident that using different movement methods for different focal lengths allows for more precise acquisition of the preset display images, thereby effectively enhancing the richness of the preset display images.
[0229] For example, taking virtual objects as a combination of virtual items as an example, when using a virtual acquisition device to capture images of a combination of virtual items in a scene sub-partition, the item tags of the virtual items in the combination can be obtained. The movement mode of the virtual acquisition device can be determined based on the item tags of the virtual items in the combination. The correspondence between item tags and the movement mode of the virtual acquisition device can be preset. The movement mode of the virtual acquisition device can be matched according to the correspondence, so that the image of a specific combination of virtual items can be captured in a corresponding way, so as to capture more refined and diverse images.
[0230] Specifically, the focal length for capturing virtual object combinations within a scene sub-zone is generally in the second focal length range. If the virtual object combination is determined to include large wall decorations or other virtual items located on walls based on the item tags, then when moving the virtual capture device horizontally, it can be moved horizontally towards the virtual object combination, thereby increasing the sense of focus on the combination. For example, if the virtual object combination includes isolated virtual items such as campfires or sculptures, the virtual capture device can be moved horizontally around the combination, resulting in greater visual diversity.
[0231] In one possible implementation, when the virtual acquisition device is moved based on a movement method and the image of the virtual object is captured according to the acquisition focal length during the movement, the three-dimensional geometric center of the virtual object can be obtained. The horizontal and vertical movement ranges of the virtual acquisition device are determined based on the reference position. Within the horizontal and vertical movement ranges, the virtual acquisition device is moved based on a movement method, and the image of the virtual object is captured according to the acquisition focal length and the three-dimensional geometric center during the movement.
[0232] The three-dimensional geometric center of a virtual object is its physical center point. Taking a virtual item combination as an example, the three-dimensional geometric center of the combination can be calculated from the three-dimensional geometric centers of each virtual item within the combination. When using a virtual acquisition device for image capture, the device can be moved. Therefore, by obtaining the physical center point of the virtual item combination as the focus of image capture, the virtual acquisition device can maintain the capture of the complete virtual item combination even during movement.
[0233] For example, refer to Figure 9 , Figure 9This is an optional image acquisition diagram of the virtual acquisition device provided in the embodiments of this application. The reference position of the virtual acquisition device is determined by the outline range of the virtual object combination, and the three-dimensional geometric center of the virtual object combination is used as the focus of the virtual acquisition device for image acquisition.
[0234] In one possible implementation, the horizontal movement range of the virtual acquisition device is determined based on a reference position. Specifically, a radial trajectory arc can be generated using the geometric center of the virtual object as the center and the distance between the reference position and the center as the radius. This trajectory arc represents the horizontal movement range of the virtual acquisition device. The angle of the trajectory arc can be determined according to the actual situation, for example, it can be 30 degrees or 40 degrees. In this case, the virtual acquisition device can move left or right by half the angle of the trajectory arc, for example, 15 degrees or 20 degrees. Of course, the left and right movement angles of the virtual acquisition device can also be different, and this application embodiment does not limit this.
[0235] For example, refer to Figure 10 , Figure 10 This is a schematic diagram of an optional horizontal movement of the virtual acquisition device provided in the embodiments of this application. The horizontal movement range of the virtual acquisition device is a radial trajectory arc, and the three-dimensional geometric center of the virtual acquisition device is always used as the acquisition focus during the movement of the virtual acquisition device.
[0236] In one possible implementation, the vertical movement range of the virtual acquisition device is determined based on a reference position. Specifically, this can be achieved by obtaining the maximum vertical distance of the virtual scene and using this maximum vertical distance as the vertical movement range of the virtual acquisition device. When moving the virtual acquisition device vertically, a random coefficient ranging from 0 to 0.5 can be introduced. The range of upward or downward movement of the virtual acquisition device is obtained by multiplying the random coefficient by the maximum vertical distance, i.e., Ha = H * x, where Ha is the range of upward or downward movement of the virtual acquisition device, H is the maximum vertical distance, and x is the random coefficient. By introducing a random coefficient, the movement of the virtual acquisition device can be limited, while also allowing for a more diverse range of images captured by the virtual acquisition device.
[0237] For example, refer to Figure 11 , Figure 11 This is a schematic diagram of an optional vertical movement of the virtual acquisition device provided in the embodiments of this application. The maximum vertical distance can be the distance between the ceiling and the floor. The vertical movement range of the virtual acquisition device is the product of a random coefficient and the maximum vertical distance. Furthermore, during the movement of the virtual acquisition device, the three-dimensional geometric center of the virtual acquisition device is always used as the acquisition focus.
[0238] In one possible implementation, for a step-type virtual acquisition device, the horizontal movement range of the virtual acquisition device is determined based on a reference position. Specifically, the position furthest from the reference position can be determined in the virtual scene, and a parabola with the reference position as the starting point and the position furthest from the reference position as the ending point can be used as the horizontal movement range of the step-type virtual acquisition device.
[0239] For example, refer to Figure 12 , Figure 12 This is another optional horizontal movement diagram of the virtual acquisition device provided in the embodiments of this application. Taking the main door as the reference position as an example, the horizontal movement range of the virtual acquisition device is a parabola with the reference position as the starting point and the position furthest from the reference position as the ending point. Furthermore, during the movement of the virtual acquisition device, the three-dimensional geometric center of the virtual acquisition device is always used as the acquisition focus, thereby realizing walk-in image acquisition.
[0240] In one possible implementation, when the viewpoint is a first-person view, a side view, or a top view, the server can set up virtual acquisition devices at the corresponding locations for each viewpoint. Accordingly, the reference position, acquisition focal length, and geometric center of the virtual object will differ depending on the viewpoint. Furthermore, the virtual acquisition device can be moved to capture the preset display screen from different viewpoints, thus enhancing the richness of the preset display. When the viewpoint is a first-person perspective, the server can only display virtual items, while when the viewpoint is a second-person or third-person perspective, the server can display both virtual items and the currently controlled virtual character as virtual objects.
[0241] In one possible implementation, for a step-by-step virtual acquisition device, the vertical movement range of the virtual acquisition device is determined based on a reference position. Specifically, this can be achieved by obtaining the height of a reference object in the virtual scene (e.g., the tallest virtual item), and using that height as the vertical movement range of the step-by-step virtual acquisition device. When moving the virtual acquisition device vertically, a random coefficient ranging from 0 to 0.5 can also be introduced. The upward or downward movement range of the virtual acquisition device is obtained by multiplying the random coefficient by the object height.
[0242] In one possible implementation, when the terminal receives scene display content generated by the server based on the target display screen, it can specifically display candidate action identifiers corresponding to the target screen identifier. In response to selecting the target action identifier from at least one candidate action identifier, the terminal sends a second selection result of the target action identifier to the server, so that the server determines the target composite screen from the preset composite screen according to the second selection result, and receives the scene display content generated by the server based on the target composite screen. The above processing can be applied to the case where only virtual items in the virtual scene are displayed in the preset display screen.
[0243] The candidate action identifier is a visual identifier used to mark a preset composite image. The preset composite image is a target display image with a virtual character of one of the action types added. The preset composite image is obtained by the server adding a virtual character of the target action type to the target display image. Similarly, the preset composite image can also be an image or a video. The target composite image is the preset composite image marked by the target action identifier. By displaying scene display content generated based on the target composite image, virtual characters can be added to the scene display content, making the scene display content richer.
[0244] In one possible implementation, the candidate action identifier is generated based on a preset composite image, and the virtual character is displayed in the candidate action identifier. Specifically, the candidate action identifier can be obtained by scaling down the preset composite image; for example, when the preset composite image is an image, the corresponding candidate action identifier can be a thumbnail of the preset composite image.
[0245] Alternatively, candidate action identifiers can be obtained by extracting and scaling down a preset composite image. For example, when the preset composite image is a video, the candidate action identifier can be obtained by extracting a frame image containing a virtual character from the preset composite image and then using the thumbnail of the extracted frame image as the candidate action identifier.
[0246] In one possible implementation, after displaying the candidate action identifier corresponding to the target screen identifier, in response to previewing the preset composite screen based on any candidate action identifier, a second preview request is sent to the server, the preset composite screen sent by the server in response to the second preview request is received, and the preset composite screen marked by the candidate action identifier is displayed.
[0247] The action type of the virtual character in the preset composite image changes depending on the type of virtual item in the preset composite image. Since the preset composite image is based on the target display image, it changes with the type of virtual item in the target display image. In other words, the action type of the virtual character in the preset composite image is related to the type of virtual item in the target display image, thus making the virtual character and virtual item in the preset composite image more matched and improving the rationality of the preset composite image.
[0248] For example, if the type of virtual item in the target display screen is a chair, then the preset action type of the virtual character in the composite screen can be sitting down or standing up.
[0249] When the preset composite image is an image, previewing the preset composite image restores and displays the original preset composite image. When the preset composite image is a clip, previewing the preset composite image plays the original preset composite image. Candidate image indicators can serve as preview controls for user interaction. Specifically, previewing the preset composite image based on the candidate image indicators can respond to operations on the candidate image indicators and display the original preset composite image, which can be displayed floating in the virtual scene.
[0250] In addition, previewing the preset composite screen based on the candidate action identifier can also automatically preview the preset composite screen after the display duration of the candidate action identifier reaches the duration threshold, thereby improving the efficiency of human-computer interaction.
[0251] Based on this, for the server, when generating scene display content based on the target display screen, it can specifically add a virtual character of the target action type to the target display screen to obtain a preset composite screen, send candidate action identifiers to the terminal to mark the preset composite screen, so that the terminal can select the target action identifier from at least one candidate action identifier after displaying the candidate action identifiers, receive the second selection result of the target action identifier sent by the terminal, determine the target composite screen from the preset composite screen according to the second selection result, and generate scene display content based on the target composite screen.
[0252] In one possible implementation, after selecting a target screen identifier from at least one candidate screen identifier, the terminal can send the screen number corresponding to the target display screen to the server. The server, based on the screen number corresponding to the target display screen, obtains the reference position of the virtual acquisition device during the acquisition of the target display screen, obtains a virtual character of the target action type based on virtual items in the target display screen, adds the virtual character to the screen acquisition range of the virtual acquisition device, and, based on the reference position, performs screen acquisition again using the virtual acquisition device to obtain a preset composite screen. The server then sends the candidate action identifiers and the preset composite screen to the terminal. The terminal first displays the candidate action identifiers, previews the preset display screen based on any one of the candidate action identifiers, and then reads the corresponding preset display screen from its local storage for display.
[0253] In one possible implementation, the server can also send candidate screen identifiers to the terminal. The terminal first displays the candidate screen identifiers, and then previews a preset display screen based on any candidate screen identifier. The terminal then accesses the server to obtain the corresponding preset display screen for display.
[0254] Compared to directly combining a preset display screen with a virtual character to obtain a preset composite image, adding the virtual character to the image capture range of the virtual capture device before capturing the preset composite image results in a more realistic image effect. Furthermore, by reusing the reference position of the virtual capture device when capturing the target display screen, the efficiency of capturing the preset composite image can be effectively improved, and the consistency between the preset composite image and the target display screen can be maintained as much as possible.
[0255] In one possible implementation, when the server obtains a virtual character of the target action type based on the virtual items in the target display screen, it can specifically obtain the action tags carried by the virtual items in the target display screen, call the corresponding target action library based on the action tags, and obtain the virtual character of the target action type from the target action library.
[0256] Action tags are used to indicate the type of action a virtual character takes when interacting with a virtual item. For example, when the virtual item is a chair, it can carry an action tag for the action of sitting down.
[0257] The target action library is used to store virtual characters with corresponding action types. The target action library can be divided into two categories: one is the action library corresponding to action tags, which stores virtual characters with action types corresponding to action tags; the other is used to store virtual characters with default action types, which stores virtual characters with action types corresponding to virtual items that do not carry action tags.
[0258] For example, refer to Figure 13 , Figure 13 The preset display screen provided in this application embodiment has a virtual character with a default action type added. Since the virtual items in the preset display screen do not carry action tags, the virtual character is obtained from the target action library used to store the default action type. There are many default action types, such as leaning against a wall, being idle, or walking randomly.
[0259] For example, refer to Figure 14 , Figure 14 The preset display screen provided in this application embodiment has a virtual character with a sitting action type added. Since the virtual items in the preset display screen carry the action tag of the sitting action type, the virtual character is obtained from the target action library used to store the sitting action type. There are many types of sitting actions, such as sitting down to clap, sitting down to cross your legs, or sitting down to laugh, etc.
[0260] By configuring action tags for virtual items and setting up two types of target action libraries, the virtual characters corresponding to the action types of virtual items with and without action tags can be determined respectively, thereby effectively improving the efficiency of adding virtual characters to the screen capture range of the virtual capture device.
[0261] In one possible implementation, when the terminal displays at least one candidate action identifier corresponding to the target screen identifier, it can keep displaying the target screen identifier and, in response to selecting the current screen identifier from the target screen identifier, display at least one candidate action identifier corresponding to the current screen identifier.
[0262] By maintaining the target screen identifier, selecting the current screen identifier, and then displaying at least one candidate action identifier corresponding to the current screen identifier, when there are multiple target screen identifiers, it is convenient to display different candidate action identifiers for different target screens, thus avoiding display chaos of candidate action identifiers.
[0263] For one of the target screen icons, multiple candidate action icons can be displayed. Different candidate action icons mark the target display screens for virtual characters with different action types.
[0264] The types of virtual items in the target display screen marked by different target screen identifiers may be different. As explained earlier, since the action type of the virtual character in the preset composite screen changes with the type of virtual item in the preset composite screen, the action type in the preset composite screen marked by the corresponding candidate action identifier also changes with the type of virtual item in the preset composite screen for different target screen identifiers, that is, it is related to the type of virtual item in the target display screen marked by the target screen identifier.
[0265] For example, refer to Figure 15 , Figure 15 This is an optional operation diagram illustrating the selection of a target action identifier provided in this application embodiment. Specifically, the terminal can maintain the display of multiple target screen identifiers 1501, and multiple candidate action identifiers 1502 can be displayed through an action identifier selection interface 1503. The action identifier selection interface 1503 is floating in the virtual scene. In response to an operation on one of the target screen identifiers 1501, the corresponding candidate action identifier 1502 is displayed in the action identifier selection interface 1503. An action identifier selection control 1504 can be displayed on the candidate action identifier 1502. In response to an operation on the action identifier selection control 1504, the corresponding candidate action identifier 1502 is selected as the target action identifier. In this scenario, a content generation control 404 is displayed in the action identifier selection interface 1503. In response to an operation on the content generation control 404, the selection of the target action identifier is confirmed, and the scene display content generated based on the target composite screen is displayed. In addition, the action identifier selection interface 1503 also displays a return control 505. In response to an operation on the return control 505, the user can return to the screen identifier selection interface 402, thereby allowing the target screen identifier to be selected again. In addition, the action icon selection interface 1503 can also display candidate action icons 1502 that do not include virtual characters.
[0266] Furthermore, since the virtual item in the target display screen corresponding to target screen identifier 1501 is a sofa, the action type in the preset composite screen marked by candidate action identifier 1502 is sitting or standing.
[0267] Similarly, you can choose the preset viewpoint of the composite image. Specifically, the preset viewpoint can be a main view, a side view, or a top view, etc. In addition, the preset viewpoint can also be a first-person view, a second-person view, or a third-person view, etc. When the viewpoint is a first-person view, the preset composite image mainly displays virtual items within the field of view of the currently controlled virtual character and the virtual character added to the preset composite image. When the viewpoint is a second-person view or a third-person view, in addition to displaying virtual items and the virtual characters added to the preset composite image, the preset composite image can also further display the currently controlled virtual character.
[0268] Specifically, a viewpoint selection control can be set in the action identifier selection interface. In response to operations on the viewpoint selection control, a candidate viewpoint list is displayed. This list contains multiple candidate views, which can be the aforementioned main view, side view, top view, first-person view, second-person view, or third-person view, etc. In response to selecting one or more target views from the multiple candidate views, the viewpoint information of the corresponding target viewpoint is added to the first selection result. After receiving the first selection result, the server can determine the target composite image from the preset composite images based on the identifier number and select the viewpoint of that target composite image based on the viewpoint information.
[0269] The server can pre-collect different perspectives of the same preset composite image and send the candidate action identifiers corresponding to the preset composite images from different perspectives to the terminal. If different target perspectives are selected based on the perspective selection control, the terminal can read and display the candidate action identifiers of the corresponding target perspectives, thereby facilitating the preview of preset composite images from different perspectives.
[0270] Once a target viewpoint is selected, all candidate action markers can be applied simultaneously, meaning that each candidate action marker refreshes and displays as the target viewpoint changes; alternatively, different target viewpoints can be selected for different candidate action markers. The candidate action markers for the currently selected viewpoint will refresh and display, while the remaining candidate action markers will remain unchanged, thus making the final preset composite image more personalized.
[0271] Furthermore, multiple target perspectives can be selected. Correspondingly, candidate action icons from different perspectives of the same preset composite image can be displayed simultaneously in the action icon selection interface. The server can then generate scene display content based on different perspectives of the same preset composite image, thereby enhancing the richness of the same preset composite image and showcasing the same virtual object from all angles.
[0272] By selecting the target viewpoint using the viewpoint selection control, the content of the preset composite image can be enriched. At the same time, since the preset composite images of different viewpoints are all pre-collected by the server, the efficiency of human-computer interaction can be further improved.
[0273] Similarly, when the viewpoint is main view, side view, or top view, the server can set up virtual acquisition devices at the corresponding locations for each viewpoint. Accordingly, the reference position, acquisition focal length, and geometric center of the virtual objects will differ depending on the viewpoint. Furthermore, in each viewpoint, the virtual acquisition device can be moved to capture preset composite images, enhancing their richness. When the viewpoint is first-person, the server can display only virtual items and virtual characters added to the preset composite image. When the viewpoint is second-person or third-person, the server can display virtual items, the currently controlled virtual character, and virtual characters added to the preset composite image together.
[0274] In one possible implementation, when the terminal displays the target screen identifier again, it may specifically select the screen identifier to be synthesized from the target screen identifiers and keep it displayed, wherein the scene of the target display screen marked by the screen identifier to be synthesized is a preset scene.
[0275] The preset shot type can be a medium shot or higher, such as a medium shot, a long shot, or a full shot. Since the target display screen marked by the image to be composited is a preset shot type, the target display screen for which virtual characters are subsequently added will be a medium shot or higher. This avoids obstructing the display of virtual items after the virtual characters are added, and also improves the reasonableness of the size relationship between virtual characters and virtual items.
[0276] For example, refer to Figure 16 , Figure 16 This is an optional close-up view illustration provided in an embodiment of this application. Since the target display view is a close-up, if a virtual character is added, it will obstruct the display of the virtual item. Therefore, the target display icon corresponding to the target display view will not be displayed again.
[0277] Specifically, for the server, after determining the target display screen based on the screen number, it determines the scene type of the target display screen. Based on the scene type, the server filters the target display screens, sending the target display screens with preset scenes and their corresponding candidate action identifiers to the terminal for display. Target display screens without preset scenes are not processed. The server can determine the scene type of the target display screen based on the distance between the geometric center of the virtual acquisition device and the virtual object combination.
[0278] For example, refer to again Figure 4 and Figure 15 , Figure 4In the example shown, all candidate image markers 401 were selected. The last candidate image marker 401 indicates a close-up shot, while the remaining candidate images marked by 401 are all medium shots or longer. Therefore, Figure 15 In the example shown, the remaining candidate screen identifiers 401, other than the last candidate screen identifier 401, are displayed.
[0279] In one possible implementation, when the terminal receives scene display content generated by the server based on the target display screen, it can specifically display candidate comparison identifiers. In response to selecting the target comparison identifier from at least one candidate comparison identifier, the terminal sends a third selection result of the target comparison identifier to the server, so that the server determines the target comparison screen from the preset comparison screens according to the third selection result, and receives scene display content generated by the server based on the target display screen and the target comparison screen. The above processing can be applied to the case where the preset display screen is the current display screen of a virtual scene.
[0280] The candidate comparison marker is a visual identifier used to mark preset comparison images. These preset comparison images include both historical and current views of the virtual scene. Both images are displayed simultaneously, and their perspectives are identical. The preset comparison images are generated by the server based on these images. Similarly, preset comparison images can also be images or videos. The target comparison image is the preset comparison image marked by the target comparison marker. By displaying scene content generated based on the target comparison image and the target comparison image, a comparison of the virtual scene before and after modifications can be added to the scene display content, enriching the scene display content.
[0281] In one possible implementation, the candidate comparison markers are generated based on preset comparison images, and the candidate comparison markers can simultaneously display both historical and current display images. Specifically, the candidate comparison markers can be obtained by scaling down the preset comparison images; for example, when the preset comparison images are images, the corresponding candidate comparison markers can be thumbnails of the preset comparison images.
[0282] Alternatively, candidate comparison markers can be obtained by extracting and reducing the size of a preset comparison image. For example, when the preset comparison image is a video, the candidate comparison marker can be obtained by extracting a frame image containing a virtual character from the preset comparison image and then using the thumbnail of the extracted frame image as the candidate comparison marker.
[0283] For the server, when generating scene display content based on the target display screen, it can specifically collect the historical display screen and the current display screen of the virtual scene, obtain a preset comparison screen based on the historical display screen and the current display screen, send candidate comparison identifiers to the terminal to mark the preset comparison screen, so that the terminal can select the target comparison identifier from at least one candidate comparison identifier after displaying the candidate comparison identifiers, receive the third selection result of the target comparison identifier sent by the terminal, determine the target comparison screen from the preset comparison screen based on the third selection result, and generate scene display content based on the target display screen and the target comparison screen.
[0284] In one possible implementation, after displaying the candidate comparison identifier corresponding to the target screen identifier, in response to previewing the preset comparison screen based on any candidate comparison identifier, a third preview request is sent to the server, the preset comparison screen sent by the server in response to the third preview request is received, and the preset comparison screen marked by the candidate comparison identifier is displayed.
[0285] When the preset comparison screen is an image, previewing the preset comparison screen restores and displays the original preset comparison screen. When the preset comparison screen is a clip, previewing the preset comparison screen plays the original preset comparison screen. Candidate screen indicators can serve as preview controls for user interaction. Specifically, previewing the preset comparison screen based on the candidate screen indicators can respond to operations on the candidate screen indicators and display the original preset comparison screen, which can float in the virtual scene.
[0286] In addition, the preset comparison screen can be previewed based on the candidate comparison icon. Alternatively, the preset comparison screen can be previewed automatically after the display duration of the candidate comparison icon reaches the duration threshold, thereby improving the efficiency of human-computer interaction.
[0287] In generating scene display content based on the target display screen and the target comparison screen, the target display screen and the target comparison screen can be spliced together to obtain the scene display content.
[0288] For example, refer to Figure 17 , Figure 17This is an optional operation diagram illustrating the selection of a target comparison identifier provided in this application embodiment. Specifically, the terminal can display a comparison identifier selection interface 1701, which displays multiple candidate comparison identifiers 1702. The comparison identifier selection interface 1701 is floating in a virtual scene. A comparison identifier selection control 1703 can be displayed on each candidate comparison identifier 1702. In response to an operation on the comparison identifier selection control 1703, the corresponding candidate comparison identifier 1703 is selected as the target comparison identifier. In this scenario, a content generation control 404 is displayed in the comparison identifier selection interface 1701. In response to an operation on the content generation control 404, the selection of the candidate comparison identifier 1703 is confirmed, and scene display content generated based on the target display screen and the target comparison screen is displayed. Additionally, the comparison identifier selection interface 1701 also displays a return control 505. In response to an operation on the return control 505, the user can return to the display screen identifier selection interface 402, thereby allowing the target screen identifier to be selected again.
[0289] Similarly, you can choose the perspective of the preset comparison screen. Specifically, the perspective of the preset comparison screen can be a front view, a side view, or a top view, etc. In addition, the perspective of the preset comparison screen can also be a first-person perspective, a second-person perspective, or a third-person perspective, etc. When the perspective is a first-person perspective, the preset comparison screen mainly displays virtual items within the field of view of the currently controlled virtual character; when the perspective is a second-person perspective or a third-person perspective, the preset comparison screen can display not only virtual items but also the currently controlled virtual character.
[0290] Specifically, a viewpoint selection control can be set in the comparison identifier selection interface. In response to operations on the viewpoint selection control, a candidate viewpoint list is displayed. This list contains multiple candidate views, which can be the aforementioned main view, side view, top view, first-person view, second-person view, or third-person view, etc. In response to selecting one or more target views from the multiple candidate views, the viewpoint information of the corresponding target viewpoint is added to the first selection result. After receiving the first selection result, the server can determine the target comparison screen from the preset comparison screens based on the identifier number and select the viewpoint of that target comparison screen based on the viewpoint information.
[0291] The server can pre-collect different perspectives of the same preset comparison image and send the candidate image identifiers corresponding to the preset comparison images from different perspectives to the terminal. If different target perspectives are selected based on the perspective selection control, the terminal can read the candidate comparison identifiers of the corresponding target perspectives and display them, thereby facilitating the preview of preset comparison images from different perspectives.
[0292] Once a target viewpoint is selected, all candidate comparison markers can be applied simultaneously, meaning that each candidate comparison marker will refresh and display as the target viewpoint changes; alternatively, different target viewpoints can be selected for different candidate comparison markers. The candidate comparison markers for the currently selected viewpoint will refresh and display, while the remaining candidate comparison markers will remain unchanged, thus making the final preset comparison screen more personalized.
[0293] Furthermore, multiple target perspectives can be selected. Correspondingly, candidate comparison icons for different perspectives of the same preset comparison image can be displayed simultaneously in the comparison icon selection interface. The server can then generate scene display content based on different perspectives of the same preset comparison image, thereby enhancing the richness of the same preset comparison image and providing a comprehensive display of the same virtual object.
[0294] By using the viewpoint selection control to select the target viewpoint, the content of the preset comparison screen can be enriched. At the same time, since the preset comparison screens of different viewpoints are all pre-collected by the server, the efficiency of human-computer interaction can be further improved.
[0295] Similarly, when the viewpoint is main view, side view, or top view, the server can set up virtual acquisition devices at the corresponding locations for each viewpoint. Accordingly, the reference position, acquisition focal length, and geometric center of the virtual object will differ depending on the viewpoint. Furthermore, in different viewpoints, the virtual acquisition device can be moved to capture preset comparison images, enhancing the richness of the comparison images. When the viewpoint is first-person, the server can display only virtual items; when the viewpoint is second-person or third-person, the server can display both virtual items and the currently controlled virtual character.
[0296] In one possible implementation, when the server collects the historical and current display images of the virtual scene, it can specifically divide the virtual scene into multiple scene partitions after the virtual scene has been modified, obtain the degree of change information of virtual items in the scene partitions, determine the target partition among the multiple scene partitions based on the degree of change information, collect the historical and current display images of the target partition, and obtain a preset comparison image based on the historical and current display images of the target partition.
[0297] Specifically, as explained above, this can involve dividing the virtual scene into multiple scene partitions based on the scene structure parameters of the virtual scene, or dividing the virtual scene into multiple scene partitions on an average basis.
[0298] For example, refer to Figure 18 , Figure 18 This is another optional scene partitioning diagram provided in the embodiments of this application. If multiple scene partitions are divided in an average manner, the virtual scene can be exemplarily divided into nine scene partitions from A to I.
[0299] The degree of change information is used to indicate the degree of change of virtual items in the scene partition after the modification compared to before the modification. For example, the degree of change information can be the difference between the third item distribution parameter of the virtual items in the scene partition after the modification and the third item distribution parameter before the modification, or the degree of change information can be the difference between the item value of the virtual items in the scene partition after the modification and the item value before the modification, or it can be a weighted value obtained by weighting the difference between the third item distribution parameter and the difference between the item value, and so on.
[0300] It is understandable that the third item distribution parameter is similar to the first item distribution parameter mentioned above, and can be the number of virtual items, or the distance between virtual items, etc., which will not be elaborated here.
[0301] Among them, the target partition is the partition whose degree of change reaches the threshold among multiple scene partitions. The number of target partitions can be one or more. After obtaining the degree of change information, the multiple scene partitions can be sorted from high to low according to the degree of change information. The scene partition whose ranking is before the preset ranking threshold is determined as the target partition. For example, the ranking threshold can be 5, 10, etc.
[0302] Specifically, when a terminal initiates modifications to the virtual scene (e.g., entering modification mode), the server can save the current scene data of the virtual scene, as well as the current third-party item distribution parameters and item values of each scene partition within the virtual scene. The scene data is the data used to construct the virtual scene, and may include, for example, the main structure data of the virtual scene, the modeling data of virtual items, and the location data of virtual items. When the terminal finishes modifying the virtual scene, the server can save the modified scene data, the modified third-party item distribution parameters and item values of each scene partition within the virtual scene. Then, based on the differences between the third-party item distribution parameters of virtual items in the modified scene partitions and those before the modification, and the differences between the item values of virtual items in the modified scene partitions and those before the modification, a weighted average of these values is used to obtain the degree of change information. The five scene partitions with the highest degree of change are selected as target partitions based on this degree of change information.
[0303] Next, in each target partition, the combination of virtual items to be displayed is determined using a method similar to that described above, and a virtual acquisition device is configured to capture images. Specifically, the reference position of the virtual acquisition device can be determined based on the combination of virtual items in the modified scene partition, and then the current display image of the scene partition can be captured using the virtual acquisition device. Furthermore, the virtual scene before the modification is reconstructed using the saved scene data. Based on the reference position of the virtual acquisition device when capturing images of the modified scene partition, images of the scene partition before the modification are captured to obtain the historical display images of the scene partition. Then, a preset comparison image can be obtained based on the current display image and the historical display image.
[0304] In one possible implementation, when determining the combination of virtual items to be displayed in the modified scene partition, the modified virtual items can be identified within the modified scene partition, their item values can be obtained, and the virtual items in the scene partition can be sorted from highest to lowest item value. Virtual items ranked below a preset ranking threshold are identified as the virtual items to be compared; for example, the ranking threshold could be 2, 3, etc. After determining the virtual items to be compared, the combination of virtual items containing these items can be used as the combination of virtual items to be displayed in the modified scene partition.
[0305] For example, refer to Figure 19 , Figure 19 This is a schematic diagram of an optional preset comparison screen provided in an embodiment of this application, for example. Figure 18 Taking scene partition B as an example, after the modification, virtual items with high value such as computer desks, computers and computer chairs were added to scene partition B. Therefore, scene partition B was selected as the target partition after sorting according to the degree of change. Then, the current display screen and historical display screen of scene partition B were collected to obtain the preset comparison screen of scene partition B.
[0306] In one possible implementation, in addition to automatically generating a preset comparison screen, a preset comparison screen can also be manually specified for generation. Based on this, when the terminal displays scene display content generated based on the target display screen, it can specifically respond to the request to generate a comparison screen, display the comparison screen generation interface, respond to the comparison position determination control based on the comparison position to determine the comparison position in the virtual scene, and display scene display content generated based on the target display screen and the target comparison screen.
[0307] Similarly, the target comparison screen includes the historical display screen and the current display screen at the comparison position. The comparison screen generation interface displays a comparison position determination control, which is used to specify the comparison position in the virtual scene for comparing the before and after images. By displaying the comparison position determination control, users can manually specify the comparison position to generate the target comparison screen, thereby improving the flexibility of the target comparison screen.
[0308] For example, refer to Figure 20 , Figure 20 This is an optional operation diagram illustrating the determination of the comparison position provided in an embodiment of this application, wherein, referring again... Figure 17 The comparison indicator selection interface 1701 can also display a manual comparison control 1704. In response to operations on the manual comparison control 1704, the following can be displayed: Figure 20 The comparison position selection interface 2001 shown contains a comparison position determination control 2002 and an activation control 2003 for activating the comparison position determination control 2002. The comparison position determination control 2002 displays a top-down view of the scene partition before modification. In response to the operation of the activation control 2003, the comparison position determination control 2002 is activated. In response to the click operation of the comparison position determination control 2002, the clicked position can be determined as the comparison position.
[0309] In addition, the comparison location selection interface 2001 also displays a scene partition preview control 2004. In response to the operation of the virtual scene preview control 2004, the modified scene partition can be displayed so that the user can preview the modified scene partition. The virtual scene preview control 2004 displays a top-down view of the scene partition after the modification.
[0310] In addition, the comparison position selection interface 2001 also displays a scene partition switching control 2005. In response to the operation of the scene partition switching control 2005, a scene partition list can be displayed. The scene partition list displays multiple scene partitions. By selecting a scene partition in the scene partition list, the effect of switching scene partitions is achieved. Correspondingly, the top-down view displayed by the comparison position determination control 2002 and the scene partition preview control 2004 also switches accordingly.
[0311] In addition, the comparison position selection interface 2001 also displays a comparison screen generation control 2006. In response to operations on the comparison screen generation control 2006, a jump display will occur. Figure 17The comparison indicator selection interface 1701 shown will display and select candidate comparison indicators 1702 corresponding to the target comparison image generated by manually determining the comparison position. In response to the operation on the newly added candidate comparison indicator 1702, the target comparison image generated by manually determining the comparison position can be previewed. Finally, in response to the operation on the content generation control 404, the scene display content generated based on the target display image and the target comparison image can be displayed.
[0312] Specifically, the terminal determines the comparison position by clicking the comparison position determination control 2002, and then sends the comparison position to the server. The server reconstructs the virtual scene before and after the modification based on the saved scene data. According to the combination of virtual items in the comparison position, the reference position of the virtual acquisition device is determined in the virtual scene before and after the modification. The virtual acquisition device is used to collect the current display screen and the historical display screen of the comparison position, and then the target comparison screen can be obtained based on the current display screen and the historical display screen.
[0313] The principle of the virtual scene content display method provided in the embodiments of this application is explained in detail below.
[0314] First, refer to again Figure 3 Taking a virtual house as an example, a user can first run and display the virtual scene through a terminal, which can be a smartphone, and the virtual scene is displayed on the terminal's screen. Alternatively, the terminal can be a virtual reality device, and the virtual scene can be displayed through stereoscopic projection. Figure 3 The following example illustrates the display of a virtual scene on the terminal screen. After displaying the virtual scene, the system defaults to browsing mode, showing one scene section (i.e., a room in a virtual house). For example, the living room can be displayed by default, and users can switch between different scene sections. In response to an operation on the modification control 301, the system can enter modification mode and display a virtual item list 302 and a modification mode exit control 303. Users can then use the virtual items in the virtual item list 302 to modify the virtual scene (e.g., adding virtual items from the list 302 to the virtual scene). In response to an operation on the modification mode exit control 303, the modification of the virtual scene ends, the system exits modification mode and enters browsing mode, displaying the modified virtual scene. A content generation request interface 304 is also displayed, showing a generation request initiation control 305. An operation on the generation request initiation control 305 triggers a request to generate scene display content.
[0315] Next, refer to again Figure 4After triggering the request to generate scene display content, the screen identifier selection interface 402 is displayed. The screen identifier selection interface 402 displays multiple candidate screen identifiers 401 and content generation controls 404. (Refer to...) Figure 6 In response to an operation on the candidate screen identifier 401, a corresponding preset display screen 601 can be displayed. A screen identifier selection control 403 can be displayed on the candidate screen identifier 401. In response to an operation on the screen identifier selection control 403, the corresponding candidate screen identifier 401 is selected as the target screen identifier. In response to an operation on the content generation control 404, the selection of the target screen identifier is confirmed, and the scene display content generated based on the target display screen is displayed. The display method of the scene display content can be referred to again. Figure 5 The example shown.
[0316] Specifically, refer to Figure 21 , Figure 21 An optional flowchart for displaying a preset display screen provided in the embodiments of this application, wherein:
[0317] Users can modify virtual items in the scene partitions of a virtual scene through the terminal when the virtual scene is in modification mode. For example, they can perform virtual addition, deletion, or modification operations. The terminal will send the item number of the virtual item and the modification information of the virtual item (such as the specific location of the added virtual item, the scene partition where the modification occurred, etc.) to the server. The server stores the item number of the virtual item and the modification information of the virtual item in a dynamic database for later use. The item number is used by the server to identify the corresponding virtual item.
[0318] After the user confirms the changes are complete and exits the corresponding scene partition via the terminal, the terminal sends an item shaping instruction (i.e., a screen capture request) to the server. The server then starts the virtual capture device generation system based on the item shaping instruction. The virtual capture device generation system can include a virtual capture device generation system for constructing the scene partition and a virtual capture device generation system for capturing close-ups of virtual items. In general, when generating a virtual capture device, the server mainly determines the capture focus and field of view of the virtual capture device, the reference position of the virtual capture device, and the movement route of the virtual capture device.
[0319] Specifically, for the virtual acquisition device generation system used to construct scene partitions:
[0320] First, the server identifies the virtual scene, divides it into multiple scene partitions, and determines the modified scene partition based on the modification information sent by the terminal, thus identifying the scene partition to be collected.
[0321] Next, for the scene partition to be collected, the virtual item combination with a large number of virtual items and small distance between virtual items in the scene partition is taken as the virtual item combination to be displayed, the three-dimensional geometric center of the virtual item combination to be displayed is determined and saved as the collection focus of the virtual collection device.
[0322] Next, lock the focus of the virtual acquisition device, determine the short focal length and field of view of the virtual acquisition device. Specifically, the field of view can be determined based on the outline of the virtual object combination, and the horizontal and vertical movement range of the virtual acquisition device can be determined.
[0323] Next, determine the reference position of the virtual acquisition device. Specifically, the reference position of the virtual acquisition device can be determined based on the acquisition focus and the acquisition field of view, or the entrance of the scene partition can be used as the reference position of the virtual acquisition device.
[0324] Next, determine the movement route of the virtual acquisition device. When the reference position of the virtual acquisition device is determined based on the acquisition focus and the acquisition field of view, the virtual acquisition device can be moved by a short-amplitude linear displacement. When the entrance of the scene partition is used as the reference position of the virtual acquisition device, the virtual acquisition device can be moved by a step-in displacement.
[0325] Next, the virtual capture device is activated to capture images, obtain and save the preset display screen;
[0326] Finally, the preset display screen and the reference position of the virtual acquisition device are stored, and the screen name of the preset display screen is automatically generated. The preset display screen is then sent to the terminal for display.
[0327] For virtual acquisition device generation systems used to capture close-ups of virtual objects:
[0328] First, further obtain the partition information of the scene partition. The partition information of the scene partition may include the number of virtual items in the scene partition, the distance between virtual items, the item tags of virtual items, the item value or the refinement of virtual items, the number of modifications to virtual items in the scene partition, etc.
[0329] Next, the scene partition is divided into scene sub-partitions based on the partition information;
[0330] Next, the sub-partition information of the scene sub-partitions is analyzed. Sub-partition information is similar to partition information and can include the number of virtual items, the distance between virtual items, the item tags of virtual items, the item value or refinement level of virtual items, the number of modifications to virtual items within the scene sub-partition, etc. Taking the distance between virtual items or the number of modifications to virtual items within a scene sub-partition as examples, the scene sub-partitions can be sorted based on these criteria. Scene sub-partitions ranked below a preset threshold are selected for display.
[0331] Next, the virtual items in the scene sub-partitions are merged into a virtual item combination, the three-dimensional geometric center of the virtual item combination to be displayed is determined, saved and locked as the collection focus of the virtual acquisition device;
[0332] Next, similar to the processing of the virtual acquisition device generation system used for scene partitioning construction, the short focal length and field of view of the virtual acquisition device are determined, the horizontal and vertical movement ranges of the virtual acquisition device are determined, and the reference position of the virtual acquisition device is determined.
[0333] Next, determine whether the virtual items in the virtual item combination carry specific item tags (such as large wall decorations, campfires, etc.). If the virtual items in the virtual item combination carry specific item tags, then move the virtual acquisition device by means of forward and backward displacement or circular displacement; otherwise, move the virtual acquisition device by means of short-amplitude linear displacement or vertical position.
[0334] Next, the virtual capture device is activated to capture images, obtain and save the preset display screen;
[0335] Finally, the preset display screen and the reference position of the virtual acquisition device are stored, and the screen name of the preset display screen is automatically generated. The preset display screen is then sent to the terminal for display.
[0336] In addition, to further enrich the scene display content, the content generation control 404 in the screen icon selection interface 402 can be replaced with a control for requesting the addition of virtual characters. Specifically, refer again... Figure 15In response to the operation of the control used to request the addition of a virtual character, the selection of the target screen identifier is confirmed, and then the action identifier selection interface 1503 is displayed. The action identifier selection interface 1503 displays multiple target screen identifiers 1501. In response to the operation of one of the target screen identifiers 1501, multiple candidate action identifiers 1502 are displayed. An action identifier selection control 1504 can be displayed on the candidate action identifier 1502. In response to the operation of the candidate action identifier 1502, the corresponding preset composite screen is displayed. In response to the operation of the action identifier selection control 1504, the corresponding candidate action identifier 1502 is selected as the target action identifier. In this scenario, the content generation control 404 is displayed in the action identifier selection interface 1503. In response to the operation of the content generation control 404, the selection of the target action identifier is confirmed, and the scene display content generated based on the target composite screen is displayed. In addition, the action identifier selection interface 1503 also displays a return control 505. In response to the operation of the return control 505, the screen identifier selection interface 402 can be returned to, so that the target screen identifier can be reselected.
[0337] Specifically, refer to Figure 22 , Figure 22 An optional flowchart for displaying a preset composite screen provided in the embodiments of this application, wherein:
[0338] After the terminal selects the target display screen, it sends the screen number corresponding to the target display screen to the server. The server then reads the virtual acquisition device's reference position from the virtual acquisition device's generated system based on the screen number.
[0339] Next, the server determines whether the shot of the target display screen is medium shot or above. If the shot of the target display screen is not medium shot or above, then no virtual character is added to the target display screen, and the terminal does not keep displaying the target screen identifier corresponding to the target display screen, so the target composite screen corresponding to the target display screen is not displayed.
[0340] If the target display screen is a medium shot or above, the server determines whether the virtual items in the target display screen carry specific action tags. If the virtual items in the target display screen carry specific action tags, the server calls the action library corresponding to the specific action tag, retrieves the virtual character of the corresponding action type from the action library, adds it to the scene partition corresponding to the target display screen, and interacts with the virtual items.
[0341] If the virtual item in the target display screen does not carry an action tag or does not carry a specific action tag, the default action library is called, and a virtual character of a general action type is randomly selected from the action library and added to the position where there is no virtual item in the scene partition corresponding to the target display screen;
[0342] Next, the server reuses the virtual acquisition device to generate the system to save the reference position of the virtual acquisition device, and performs a second image acquisition at the reference position to obtain and save the preset composite segment;
[0343] Finally, the preset composite segment's screen name is automatically generated, and the preset composite segment is sent to the terminal for display.
[0344] In addition, to further enrich the scene display content, the content generation control 404 in the screen identifier selection interface 402 can be replaced with a control for requesting the addition of comparison screens. Specifically, refer again... Figure 17 In response to the operation of the control used to request the addition of a comparison screen, the selection of the target screen identifier is confirmed, and then the comparison identifier selection interface 1701 is displayed. The comparison identifier selection interface 1701 displays multiple candidate comparison identifiers 1702, and comparison identifier selection controls 1703 can be displayed on the candidate comparison identifiers 1702. In response to the operation of the candidate comparison identifier 1702, the corresponding preset comparison screen is displayed. In response to the operation of the comparison identifier selection control 1703, the corresponding candidate comparison identifier 1703 is selected as the target comparison identifier. In this scenario, the content generation control 404 is displayed in the comparison identifier selection interface 1701. In response to the operation of the content generation control 404, the selection of the candidate comparison identifier 1703 is confirmed, and the scene display content generated based on the target display screen and the target comparison screen is displayed. Additionally, the comparison identifier selection interface 1703 also displays a return control 505. In response to the operation of the return control 505, the user can return to the display screen identifier selection interface 402, thereby allowing the target screen identifier to be selected again.
[0345] In addition, the comparison indicator selection interface 1701 can also display a manual comparison control 1704, which can be referenced again. Figure 20In response to the operation of the manual comparison control 1704, the comparison position selection interface 2001 can be displayed. The comparison position selection interface 2001 displays a comparison position determination control 2002 and an activation control 2003 for activating the comparison position determination control 2002. The comparison position determination control 2002 displays a top-down view of the scene partition before modification. In response to the operation of the activation control 2003, the comparison position determination control 2002 is activated. Clicking on the comparison position determination control 2002 will determine the clicked position as the comparison position. Additionally, the comparison position selection interface 2001 also displays a comparison screen generation control 2006. In response to the operation of the comparison screen generation control 2006, the comparison identifier selection interface 1701 is displayed. At this time, the comparison identifier selection interface 1701 will display and select the candidate comparison identifier 1702 corresponding to the target comparison screen generated by manually determining the comparison position. In response to the operation of the newly added candidate comparison identifier 1702, the target comparison screen generated by manually determining the comparison position can be previewed. Finally, in response to the operation of the content generation control 404, the scene display content generated based on the target display screen and the target comparison screen can be displayed.
[0346] Specifically, refer to Figure 23 , Figure 23 An optional flowchart for displaying a preset comparison screen provided in the embodiments of this application, wherein:
[0347] When a user enters the virtual scene modification mode through a terminal, the terminal sends a modification start command to the server. The server divides the virtual scene into multiple scene partitions according to the modification start command, and stores the current (i.e., before modification) scene data of each scene partition, as well as the virtual item density and item value of the virtual items in the scene partition.
[0348] Next, when a user modifies a virtual item in a scene partition of a virtual scene through a terminal, the terminal sends the item number of the virtual item and the modification information of the virtual item to the server. The server stores the item number of the virtual item and the modification information of the virtual item in a dynamic database for later use.
[0349] Next, after the user confirms the changes are complete and exits the corresponding scene partition through the terminal, the terminal sends an item shaping instruction to the server. The server stores the current (i.e., modified) scene data of each scene partition, as well as the virtual item density and item value of the virtual items in the scene partition.
[0350] Next, for each scene partition, the server calculates the difference in virtual item density before and after the change, as well as the difference in item value before and after the change. The two differences are weighted to obtain a weighted difference. The scene partitions are sorted according to the weighted difference, and the top 5 scene partitions with the largest weighted differences are selected as the scene partitions to be compared.
[0351] Next, refer to Figure 21 The process of the virtual acquisition device generation system shown determines the reference position. For example, the combination of virtual items that has changed in the modified scene partition can be used as the combination of virtual items to be displayed. The acquisition focus and acquisition field of view of the virtual acquisition device are determined, the reference position of the virtual acquisition device is determined, and the movement route of the virtual acquisition device is determined. For one scene partition to be compared, the images before and after the modification are acquired using the same acquisition focus, acquisition field of view, reference position and movement route to obtain the current display image and the historical display image, and then stitch them together to form a preset comparison image.
[0352] Next, the server sends the preset comparison screen to the terminal for display.
[0353] In addition, when a user manually determines the comparison location via the terminal, the terminal sends the determined comparison location to the server. The server then retrieves the scene data before and after the scene partitioning was modified, reconstructs the scene partitioning before and after the modification using the saved scene data, and, based on the combination of virtual items at the comparison location, refers to... Figure 21 The process of the virtual acquisition device generation system shown is to determine the reference position, determine the reference position of the virtual acquisition device in the scene partition before and after the modification, use the virtual acquisition device to collect the current display screen and the historical display screen of the comparison position respectively, and then stitch the current display screen and the historical display screen into the target comparison screen.
[0354] Next, the server sends the target comparison screen to the terminal for display.
[0355] Alternatively, scene display content can be generated based on the target composite image and the target comparison image. Specifically, refer again... Figure 3After displaying the virtual scene, it defaults to browsing mode, showing one of the scene partitions within the virtual scene. In response to an operation on the modification control 301, it can enter modification mode and display a virtual item list 302 and a modification mode exit control 303, allowing modification of the virtual scene using the virtual items in the virtual item list 302. In response to an operation on the modification mode exit control 303, it triggers the end of virtual scene modification, exits modification mode, and enters browsing mode, displaying the modified virtual scene. It also displays a content generation request interface 304, which shows a generation request initiation control 305. In response to an operation on the generation request initiation control 305, it can trigger a request to generate scene display content.
[0356] Next, refer to again Figure 4 After triggering the request to generate scene display content, the screen identifier selection interface 402 is displayed. The screen identifier selection interface 402 displays multiple candidate screen identifiers 401. Furthermore, the content generation control 404 in the screen identifier selection interface 402 is replaced with a control for requesting the addition of a virtual character. (Refer to...) Figure 6 In response to the operation of the candidate screen identifier 401, the corresponding preset display screen 601 can be displayed. The candidate screen identifier 401 can display a screen identifier selection control 403. In response to the operation of the screen identifier selection control 403, the corresponding candidate screen identifier 401 is selected as the target screen identifier. In response to the operation of the control used to request the addition of a virtual character, the selection of the target screen identifier is confirmed, and the action identifier selection interface 1503 is displayed.
[0357] Next, refer to again Figure 15 The action icon selection interface 1503 displays multiple target screen icons 1501, and the content generation control 404 in the action icon selection interface 1503 is replaced with a control for requesting the addition of a comparison screen. In response to an operation on one of the target screen icons 1501, multiple candidate action icons 1502 are displayed. An action icon selection control 1504 can be displayed on each candidate action icon 1502. In response to an operation on a candidate action icon 1502, a corresponding preset composite screen is displayed. In response to an operation on the action icon selection control 1504, the corresponding candidate action icon 1502 is selected as the target action icon. In response to an operation on the control for requesting the addition of a comparison screen, the selection of the target action icon is confirmed, and the user is redirected to the comparison icon selection interface 1701. Additionally, the action icon selection interface 1503 also displays a return control 505. In response to an operation on the return control 505, the user can return to the screen icon selection interface 402, allowing them to reselect a target screen icon.
[0358] Next, refer to again Figure 17The comparison identifier selection interface 1701 displays multiple candidate comparison identifiers 1702 and a content generation control 404. A comparison identifier selection control 1703 can be displayed on each candidate comparison identifier 1702. In response to an operation on a candidate comparison identifier 1702, a corresponding preset comparison screen is displayed; in response to an operation on the comparison identifier selection control 1703, the corresponding candidate comparison identifier 1703 is selected as the target comparison identifier. In addition, the comparison identifier selection interface 1701 can also display a manual comparison control 1704, which can be referenced again... Figure 20 In response to the operation of the manual comparison control 1704, the comparison position selection interface 2001 can be displayed. The comparison position selection interface 2001 displays a comparison position determination control 2002 and an activation control 2003 for activating the comparison position determination control 2002. The comparison position determination control 2002 displays a top-down view of the scene partition before modification. In response to the operation of the activation control 2003, the comparison position determination control 2002 is activated. Clicking on the comparison position determination control 2002 will determine the clicked position as the comparison position. Additionally, the comparison position selection interface 2001 also displays a comparison screen generation control 2006. In response to the operation of the comparison screen generation control 2006, the comparison identifier selection interface 1701 is displayed. At this time, the comparison identifier selection interface 1701 will display and select the candidate comparison identifier 1702 corresponding to the target comparison screen generated by manually determining the comparison position. In response to the operation of the newly added candidate comparison identifier 1702, the target comparison screen generated by manually determining the comparison position can be previewed. Finally, in response to the operation of the content generation control 404, the scene display content generated based on the target composite image and the target comparison image can be displayed. In addition, the comparison label selection interface 1703 also displays a return control 505. In response to the operation of the return control 505, the display action label selection interface 1503 can be returned, so that the target action label can be reselected.
[0359] In addition, when generating scene display content, you can also add background music, transition animations, text and other content on the basis of the target display screen to make the scene display content richer.
[0360] Additionally, refer to Figure 24 , Figure 24This is an optional publishing illustration of the scene display content provided in this application embodiment. After generating the scene display content 501, it can be published to the target page 2401 with one click using the publishing control, thereby achieving the effect of quick sharing of the scene display content 501. For example, if both the target composite image and the target comparison image are clips, then the scene display content is a video. In this case, the scene display content can be played directly on the target page 2401. After the scene display content is played, the clips of the target composite image can be played first, followed by the clips of the target comparison image, or the clips of the target comparison image can be played first, followed by the clips of the target composite image, depending on the order in which the scene display content is generated based on the target composite image and the target comparison image.
[0361] In addition, the content display method provided in this application embodiment can also be applied to other types of virtual scenes. For example, when using an augmented reality device to tour a scenic spot online, the displayed virtual scene is the corresponding virtual scenic spot. Similarly, scene display content of the virtual scene can also be requested to be generated in the virtual scene. In this case, when initiating the content display of the virtual scene, the virtual scene is not modified. Therefore, the final generated scene display content may include a target display screen displaying virtual items, or it may include a target composite screen displaying virtual items and virtual characters.
[0362] It is understood that although the steps in the above flowcharts are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this embodiment, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the above flowcharts may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.
[0363] Additionally, refer to Figure 25 , Figure 25 An optional structural schematic diagram of the first content display device provided in the embodiments of this application is shown. The first content display device 2500 includes:
[0364] The first sending module 2501 is used to send a screen capture request to the server so that the server responds to the screen capture request and uses the virtual capture device corresponding to the virtual object in the virtual scene to capture the preset display screen of the virtual object.
[0365] The first display module 2502 is used to receive candidate screen identifiers sent by the server for marking preset display screens, and to display the candidate screen identifiers;
[0366] The second sending module 2503 is configured to send a first selection result of the target screen identifier to the server in response to selecting a target screen identifier from at least one candidate screen identifier, so that the server determines the target display screen from the preset display screens according to the first selection result.
[0367] The second display module 2504 is used to receive scene display content generated by the server based on the target display screen and display the scene display content.
[0368] Furthermore, the first sending module 2501 is specifically used for:
[0369] Display virtual scenes;
[0370] In response to ending modifications to the virtual scene, a screen capture request is sent to the server; or, in response to requesting the generation of scene display content within the virtual scene, a screen capture request is sent to the server.
[0371] Furthermore, the first display module 2502 is also used for:
[0372] In response to previewing the preset display screen based on any candidate screen identifier, a first preview request is sent to the server;
[0373] Receive the preset display screen sent by the server in response to the first preview request, and display the preset display screen marked by the candidate screen identifier.
[0374] Furthermore, the second display module 2504 is specifically used for:
[0375] The candidate action identifiers corresponding to the target screen identifier are displayed. The candidate action identifiers are used to mark the preset composite screen, which is obtained by adding a virtual character of the target action type to the target screen displayed by the server.
[0376] In response to selecting a target action identifier from at least one candidate action identifier, a second selection result of the target action identifier is sent to the server, so that the server determines the target composite image from the preset composite image based on the second selection result;
[0377] The receiving server generates scene display content based on the target composite image.
[0378] Furthermore, the first display module 2502 is specifically used for:
[0379] Maintain the display of the target screen identifier;
[0380] In response to selecting the current screen identifier from the target screen identifiers, at least one candidate action identifier corresponding to the current screen identifier is displayed.
[0381] Furthermore, the first display module 2502 is specifically used for:
[0382] Select the target image identifiers to be composited and keep them displayed;
[0383] Among them, the shot type of the target display image marked by the image to be composited is the preset shot type.
[0384] Furthermore, the first display module 2502 is also used for:
[0385] In response to previewing a preset composite image based on any candidate action identifier, a second preview request is sent to the server;
[0386] Receive the preset composite screen sent by the server in response to the second preview request, and display the preset composite screen marked by the candidate action identifier;
[0387] The type of action of the virtual character in the preset composite image varies depending on the type of virtual item in the preset composite image.
[0388] Furthermore, the second display module 2504 is specifically used for:
[0389] The candidate comparison identifier is used to mark the preset comparison screen, which is obtained by the server based on the historical display screen and the current display screen of the virtual scene.
[0390] In response to selecting a target comparison identifier from at least one candidate comparison identifier, a third selection result of the target comparison identifier is sent to the server, so that the server determines the target comparison screen from the preset comparison screens based on the third selection result;
[0391] The receiving server generates scene display content based on the target display screen and the target comparison screen.
[0392] Furthermore, the second display module 2504 is also used for:
[0393] In response to previewing a preset comparison screen based on any candidate comparison identifier, a third preview request is sent to the server;
[0394] Receive the preset comparison screen sent by the server in response to the third preview request, and display the preset comparison screen marked by the candidate comparison identifier;
[0395] The preset comparison screen displays both the historical display screen and the current display screen.
[0396] Additionally, refer to Figure 26 , Figure 26 This is an optional structural diagram of the second content display device provided in the embodiments of this application. The second content display device 2600 includes:
[0397] The acquisition module 2601 is used to receive the screen acquisition request sent by the terminal, and in response to the screen acquisition request, use the virtual acquisition device corresponding to the virtual object in the virtual scene to acquire the preset display screen of the virtual object.
[0398] The third sending module 2602 is used to send candidate screen identifiers for marking preset display screens to the terminal, so that the terminal can select a target screen identifier from at least one candidate screen identifier after displaying the candidate screen identifiers.
[0399] The screen determination module 2603 is used to receive the first selection result of the target screen identifier sent by the terminal, and determine the target display screen from the preset display screens according to the first selection result.
[0400] The content generation module 2604 is used to generate scene display content based on the target display screen and send the scene display content to the terminal for the terminal to display the scene display content.
[0401] Furthermore, the acquisition module 2601 is specifically used for:
[0402] In the virtual scene, determine the virtual object to be displayed, determine the reference position of the virtual acquisition device that matches the virtual object in the virtual scene, and generate the virtual acquisition device at the reference position.
[0403] The focal length of the virtual acquisition device is determined based on the virtual object, and the preset display screen of the virtual object is acquired based on the focal length.
[0404] Furthermore, the acquisition module 2601 is specifically used for:
[0405] The movement mode of the virtual acquisition device is determined based on the acquisition focal length, and the virtual acquisition device is moved based on the movement mode. During the movement, the image of the virtual object is acquired according to the acquisition focal length.
[0406] If the virtual acquisition device collides with any virtual object during its movement, the virtual acquisition device will stop moving.
[0407] Furthermore, the acquisition module 2601 is specifically used for:
[0408] When the acquisition focal length is at the preset first focal length, the movement mode of the virtual acquisition device is determined to be linear displacement;
[0409] Alternatively, when the acquisition focal length is at the preset second focal length and the virtual object carries a target object label, the movement mode of the virtual acquisition device is determined to be either forward / backward displacement or circular displacement.
[0410] Alternatively, when the acquisition focal length is at the preset second focal length and the virtual object does not carry a target object label, the movement mode of the virtual acquisition device is determined to be linear displacement.
[0411] In this case, any focal length in the first focal length is shorter than any focal length in the second focal length.
[0412] Furthermore, the acquisition module 2601 is specifically used for:
[0413] Obtain the solid geometric center of the virtual object;
[0414] The horizontal and vertical movement ranges of the virtual acquisition device are determined based on the reference position.
[0415] Within the horizontal and vertical movement ranges, the virtual acquisition device is moved based on the movement mode, and during the movement, the image of the virtual object is acquired according to the acquisition focal length and the geometric center of the solid.
[0416] Furthermore, the acquisition module 2601 is specifically used for:
[0417] Divide the virtual scene into multiple scene partitions, and obtain at least one of the first item distribution parameters and the first item feature parameters of the virtual items in the scene partitions;
[0418] Based on at least one of the first item distribution parameters and the first item feature parameters, determine the combination of virtual items to be displayed in the scene partition.
[0419] Furthermore, the acquisition module 2601 is specifically used for:
[0420] The scene partition is divided into multiple scene sub-partitions based on at least one of the first item distribution parameters and the first item feature parameters;
[0421] Obtain at least one of the second item distribution parameters of virtual items in the scene sub-partition and the second item feature parameters of virtual items in the scene sub-partition;
[0422] Based on at least one of the second item distribution parameters and the second item feature parameters, determine the combination of virtual items to be displayed in the scene sub-partition.
[0423] Furthermore, the content generation module 2604 is specifically used for:
[0424] Add a virtual character representing the target's action type to the target display screen to obtain a preset composite image;
[0425] Send candidate action identifiers to the terminal for marking the preset composite screen, so that the terminal can select the target action identifier from at least one candidate action identifier after displaying the candidate action identifiers;
[0426] The receiving terminal sends a second selection result of the target action identifier, and the target composite screen is determined from the preset composite screen based on the second selection result;
[0427] Scene display content is generated based on the target composite image.
[0428] Furthermore, the content generation module 2604 is specifically used for:
[0429] Obtain the reference position of the virtual acquisition device when the target screen is displayed;
[0430] Based on the virtual objects in the target display screen, obtain the virtual character of the target action type, and add the virtual character to the screen capture range of the virtual acquisition device;
[0431] Based on the reference position, the image is captured again using a virtual acquisition device to obtain the preset composite image.
[0432] Furthermore, the content generation module 2604 is specifically used for:
[0433] Obtain the action tags carried by virtual items in the target display screen;
[0434] The corresponding target action library is invoked based on the action tag, and a virtual character of the target action type is obtained from the target action library.
[0435] Furthermore, the content generation module 2604 is specifically used for:
[0436] Collect historical and current display images of the virtual scene, and obtain a preset comparison image based on the historical and current display images;
[0437] Send candidate comparison identifiers to the terminal for marking preset comparison screens, so that the terminal can select a target comparison identifier from at least one candidate comparison identifier after displaying the candidate comparison identifiers;
[0438] The third selection result of the target comparison identifier sent by the receiving terminal is used to determine the target comparison screen from the preset comparison screen based on the third selection result;
[0439] Scene display content is generated based on the target display screen and the target comparison screen.
[0440] Furthermore, the content generation module 2604 is specifically used for:
[0441] Divide the virtual scene into multiple scene partitions and obtain information on the degree of change of virtual items in the scene partitions;
[0442] Based on the degree of change information, the target partition is determined among multiple scene partitions, and the historical display screen and the current display screen of the target partition are collected.
[0443] The first content display device 2500 and the second content display device 2600 mentioned above are based on the same inventive concept as content display. By sending a screen capture request to the server, the server can respond to the screen capture request. In the virtual scene, the virtual capture device corresponding to the virtual object captures the preset display screen of the virtual object. Since the virtual capture device corresponds to the virtual object, even if the virtual object in the virtual scene has uncertainty and openness, the virtual capture device can accurately capture the screen of the virtual object, improve the quality of the preset display screen, and at the same time, it can also realize the automatic capture of the preset display screen, improving the capture efficiency of the preset display screen. Based on this, it is only necessary to receive and display the candidate screen identifier sent by the server to mark the preset display screen, and then select the target screen identifier from at least one candidate screen identifier and send the first selection result of the target screen identifier to the server. The server can then further determine the target display screen from the preset display screens according to the first selection result, and then receive and display the scene display content generated by the server based on the target display screen. In this way, the scene display content of the virtual scene can be generated quickly and in batches based on the selected target display screen, without the need to manually synthesize the scene display content of the virtual scene. It can be seen that the content display method provided by the embodiments of this application can display the content of the virtual scene with high quality and efficiency.
[0444] The electronic device provided in this application embodiment for executing the above-described virtual scene content display method can be a terminal, referring to... Figure 27 , Figure 27 This is a partial structural block diagram of a terminal provided in an embodiment of this application. The terminal includes: a camera assembly 2710, a memory 2720, an input unit 2730, a display unit 2740, a sensor 2750, an audio circuit 2760, a wireless fidelity (WiFi) module 2770, a processor 2780, and a power supply 2790, among other components. Those skilled in the art will understand that... Figure 27 The terminal structure shown does not constitute a limitation on the terminal and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0445] The camera assembly 2710 can be used to capture images or videos. Optionally, the camera assembly 2710 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions.
[0446] The memory 2720 can be used to store software programs and modules, and the processor 2780 executes various terminal functions and data processing by running the software programs and modules stored in the memory 2720.
[0447] The input unit 2730 can be used to receive input numeric or character information, and to generate key signal inputs related to the terminal's settings and function control. Specifically, the input unit 2730 may include a touch panel 2731 and other input devices 2732.
[0448] Display unit 2740 can be used to display input or provided information, as well as various menus of the terminal. Display unit 2740 may include display panel 2741.
[0449] Audio circuitry 2760, speaker 2761, and microphone 2762 provide an audio interface.
[0450] The power supply 2790 can be AC power, DC power, a disposable battery, or a rechargeable battery.
[0451] The number of sensors 2750 can be one or more, and these sensors 2750 include, but are not limited to: accelerometers, gyroscopes, pressure sensors, optical sensors, etc.
[0452] An accelerometer can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by the terminal. For example, an accelerometer can be used to detect the components of gravitational acceleration along the three coordinate axes. The processor 2780 can control the display unit 2740 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by the accelerometer. The accelerometer can also be used for games or for acquiring user motion data.
[0453] The gyroscope sensor can detect the terminal's orientation and rotation angle. It can work in conjunction with the accelerometer to capture the user's 3D movements on the terminal. Based on the data collected by the gyroscope sensor, the processor 2780 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0454] The pressure sensor can be installed on the side bezel of the terminal and / or on the lower layer of the display unit 2740. When the pressure sensor is installed on the side bezel of the terminal, it can detect the user's grip signal on the terminal, and the processor 2780 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor. When the pressure sensor is installed on the lower layer of the display unit 2740, the processor 2780 can control the operable controls on the UI interface based on the user's pressure operation on the display unit 2740. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0455] An optical sensor is used to collect ambient light intensity. In one embodiment, the processor 2780 can control the display brightness of the display unit 2740 based on the ambient light intensity collected by the optical sensor. Specifically, when the ambient light intensity is high, the display brightness of the display unit 2740 is increased; when the ambient light intensity is low, the display brightness of the display unit 2740 is decreased. In another embodiment, the processor 2780 can also dynamically adjust the shooting parameters of the camera assembly 2710 based on the ambient light intensity collected by the optical sensor.
[0456] In this embodiment, the processor 2780 included in the terminal can execute the virtual scene content display method of the previous embodiment.
[0457] The electronic device provided in this application embodiment for executing the above-described virtual scene content display method can also be a server, see below. Figure 28 , Figure 28The diagram illustrates a partial structural block of a server provided in this application embodiment. The server 2800 can vary significantly due to different configurations or performance characteristics. It may include one or more Central Processing Units (CPUs) 2822 (e.g., one or more processors) and a memory 2832, and one or more storage media 2830 (e.g., one or more mass storage devices) for storing application programs 2842 or data 2844. The memory 2832 and storage media 2830 may be temporary or persistent storage. The program stored in the storage media 2830 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the server 2800. Furthermore, the CPU 2822 may be configured to communicate with the storage media 2830 and execute the series of instruction operations in the storage media 2830 on the server 2800.
[0458] Server 2800 may also include one or more power supplies 2826, one or more wired or wireless network interfaces 2850, one or more input / output interfaces 2858, and / or one or more operating systems 2841, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0459] The processor in the server 2800 can be used to execute methods for displaying content in virtual scenes.
[0460] This application also provides a computer-readable storage medium for storing program code, which is used to execute the virtual scene content display method of the foregoing embodiments.
[0461] This application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the content display method for implementing the virtual scene described above.
[0462] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate to describe embodiments of this application, for example, those that can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatuses.
[0463] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0464] It should be understood that in the description of the embodiments of this application, "multiple" means two or more, "greater than", "less than", "exceeding" etc. are understood to exclude the number itself, and "above", "below", "within" etc. are understood to include the number itself.
[0465] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.
[0466] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0467] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0468] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0469] It should also be understood that the various implementation methods provided in this application can be combined arbitrarily to achieve different technical effects.
[0470] The above provides a detailed description of the preferred embodiments of this application. However, this application is not limited to the above-described embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A method for displaying content in a virtual scene, characterized in that, include: Send a screen capture request to the server so that the server responds to the screen capture request, determine the virtual object to be displayed in the virtual scene, determine the reference position of the virtual capture device that matches the virtual object in the virtual scene, and generate the virtual capture device at the reference position; The focal length of the virtual acquisition device is determined based on the virtual object, and the movement mode of the virtual acquisition device is determined based on the focal length. The virtual acquisition device is moved based on the movement mode. During the movement, the image of the virtual object is captured according to the focal length to obtain a preset display image of the virtual object. If the virtual acquisition device collides with any virtual object during the movement, the virtual acquisition device is controlled to stop moving. The movement mode includes horizontal movement and vertical movement. Receive a candidate screen identifier sent by the server to mark the preset display screen, and display the candidate screen identifier; In response to selecting a target screen identifier from at least one of the candidate screen identifiers, a first selection result of the target screen identifier is sent to the server, so that the server determines the target display screen from the preset display screens based on the first selection result; Receive scene display content generated by the server based on the target display screen, and display the scene display content.
2. The content display method according to claim 1, characterized in that, Sending the image capture request to the server includes: Display the virtual scene; In response to ending modifications to the virtual scene, a screen capture request is sent to the server; or, in response to requesting the generation of scene display content in the virtual scene, a screen capture request is sent to the server.
3. The content display method according to claim 1, characterized in that, After the display of candidate screen identifiers for marking the preset display screen, the content display method further includes: In response to previewing the preset display screen based on any one of the candidate screen identifiers, a first preview request is sent to the server; The server receives the preset display screen sent in response to the first preview request, and displays the preset display screen marked by the candidate screen identifier.
4. The content display method according to any one of claims 1 to 3, characterized in that, The virtual object is a virtual item, and receiving the scene display content generated by the server based on the target display screen includes: Displaying candidate action identifiers corresponding to the target screen identifier, wherein the candidate action identifiers are used to mark a preset composite screen, which is obtained by the server adding a virtual character of the target action type to the target display screen; In response to selecting a target action identifier from at least one of the candidate action identifiers, a second selection result of the target action identifier is sent to the server, so that the server determines a target composite image from the preset composite image based on the second selection result; Receive the scene display content generated by the server based on the target composite image.
5. The content display method according to claim 4, characterized in that, The display of candidate action identifiers corresponding to the target screen identifier includes: The target screen identifier will remain displayed. In response to selecting a current screen identifier from the target screen identifier, at least one candidate action identifier corresponding to the current screen identifier is displayed.
6. The content display method according to claim 5, characterized in that, The step of maintaining the display of the target screen identifier includes: Select the image identifiers to be synthesized from the target image identifiers and keep them displayed; The scene type of the target display scene marked by the image to be synthesized is a preset scene type.
7. The content display method according to claim 4, characterized in that, After displaying the candidate action identifier corresponding to the target screen identifier, the content display method further includes: In response to previewing the preset composite image based on any one of the candidate action identifiers, a second preview request is sent to the server; Receive the preset composite screen sent by the server in response to the second preview request, and display the preset composite screen marked by the candidate action identifier; The action type of the virtual character in the preset composite image varies depending on the type of virtual item in the preset composite image.
8. The content display method according to any one of claims 1 to 3, characterized in that, Receiving the scene display content generated by the server based on the target display screen includes: Display candidate comparison identifiers, wherein the candidate comparison identifiers are used to mark preset comparison images, the preset comparison images are obtained by the server based on the historical display images and the current display images of the virtual scene; In response to selecting a target comparison identifier from at least one of the candidate comparison identifiers, a third selection result of the target comparison identifier is sent to the server, so that the server determines the target comparison screen from the preset comparison screens based on the third selection result; Receive the scene display content generated by the server based on the target display screen and the target comparison screen.
9. The content display method according to claim 8, characterized in that, After displaying the candidate comparison markers, the content display method further includes: In response to previewing the preset comparison screen based on any one of the candidate comparison identifiers, a third preview request is sent to the server; Receive the preset comparison screen sent by the server in response to the third preview request, and display the preset comparison screen marked by the candidate comparison identifier; The preset comparison screen simultaneously displays the historical display screen and the current display screen.
10. A method for displaying content in a virtual scene, characterized in that, include: The receiving terminal sends a screen capture request, and in response to the screen capture request, determines a virtual object to be displayed in a virtual scene, determines a reference position of a virtual capture device that matches the virtual object in the virtual scene, and generates the virtual capture device at the reference position. The focal length of the virtual acquisition device is determined based on the virtual object, and the movement mode of the virtual acquisition device is determined based on the focal length. The virtual acquisition device is moved based on the movement mode. During the movement, the image of the virtual object is captured according to the focal length to obtain a preset display image of the virtual object. If the virtual acquisition device collides with any virtual object during the movement, the virtual acquisition device is controlled to stop moving. The movement mode includes horizontal movement and vertical movement. Send candidate screen identifiers to the terminal for marking the preset display screen, so that the terminal can select a target screen identifier from at least one of the candidate screen identifiers after displaying the candidate screen identifiers; Receive a first selection result of the target screen identifier sent by the terminal, and determine the target display screen from the preset display screens based on the first selection result; Based on the target display screen, scene display content is generated and sent to the terminal for the terminal to display the scene display content.
11. The content display method according to claim 10, characterized in that, Determining the movement mode of the virtual acquisition device based on the acquisition focal length includes: When the acquisition focal length is at the preset first focal length, the movement mode of the virtual acquisition device is determined to be linear displacement; Alternatively, when the acquisition focal length is at a preset second focal length and the virtual object carries a target object tag, the movement mode of the virtual acquisition device is determined to be either forward / backward displacement or circular displacement. Alternatively, when the acquisition focal length is at a preset second focal length and the virtual object does not carry a target object label, the movement mode of the virtual acquisition device is determined to be linear displacement. Wherein, any focal length in the first focal length is less than any focal length in the second focal length.
12. The content display method according to claim 10, characterized in that, The process of moving the virtual acquisition device based on the aforementioned movement method, and capturing images of the virtual object according to the acquisition focal length during the movement, includes: Obtain the solid geometric center of the virtual object; The horizontal and vertical movement ranges of the virtual acquisition device are determined based on the reference position. Within the horizontal and vertical movement ranges, the virtual acquisition device is moved according to the movement method, and during the movement, the virtual object is captured based on the acquisition focal length and the three-dimensional geometric center.
13. The content display method according to claim 10, characterized in that, The virtual object is a combination of virtual items, and determining the virtual object to be displayed in the virtual scene includes: Divide the virtual scene into multiple scene partitions, and obtain at least one of the first item distribution parameters of the virtual items in the scene partitions and the first item feature parameters of the virtual items in the scene partitions; The combination of virtual items to be displayed is determined in the scene partition based on at least one of the first item distribution parameters and the first item feature parameters.
14. The content display method according to claim 13, characterized in that, The step of determining the combination of virtual items to be displayed in the scene partition based on at least one of the first item distribution parameters and the first item feature parameters includes: The scene partition is divided into multiple scene sub-partitions based on at least one of the first item distribution parameters and the first item feature parameters; Obtain at least one of the second item distribution parameters of the virtual items in the scene sub-partition and the second item feature parameters of the virtual items in the scene sub-partition; The combination of virtual items to be displayed is determined in the scene sub-partition based on at least one of the second item distribution parameters and the second item feature parameters.
15. The content display method according to any one of claims 10 to 14, characterized in that, The virtual object is a virtual item, and the generation of scene display content based on the target display screen includes: Add a virtual character of the target action type to the target display screen to obtain a preset composite screen; Send candidate action identifiers for marking the preset composite screen to the terminal, so that the terminal can select a target action identifier from at least one of the candidate action identifiers after displaying the candidate action identifiers; Receive a second selection result of the target action identifier sent by the terminal, and determine a target composite screen from the preset composite screen based on the second selection result; Scene display content is generated based on the target composite image.
16. The content display method according to claim 15, characterized in that, Adding a virtual character of the target action type to the target display screen to obtain a preset composite screen includes: Obtain the reference position of the virtual acquisition device when acquiring the target display screen; Based on the virtual items in the target display screen, obtain a virtual character of the target action type, and add the virtual character to the screen capture range of the virtual acquisition device; Based on the aforementioned reference position, the image is captured again using a virtual acquisition device to obtain a preset composite image.
17. The content display method according to claim 16, characterized in that, The step of obtaining a virtual character of a target action type based on the virtual items in the target display screen includes: Obtain the action tags carried by the virtual items in the target display screen; The corresponding target action library is invoked based on the action tag, and a virtual character of the target action type is obtained from the target action library.
18. The content display method according to any one of claims 10 to 14, characterized in that, The generation of scene display content based on the target display screen includes: Collect historical and current display images of the virtual scene, and obtain a preset comparison image based on the historical and current display images; Send candidate comparison identifiers to the terminal for marking the preset comparison screen, so that the terminal can select a target comparison identifier from at least one of the candidate comparison identifiers after displaying the candidate comparison identifiers; Receive the third selection result of the target comparison identifier sent by the terminal, and determine the target comparison screen from the preset comparison screen according to the third selection result; Scene display content is generated based on the target display screen and the target comparison screen.
19. A virtual scene content display device, characterized in that, include: The first sending module is used to send a screen capture request to the server so that the server responds to the screen capture request, determines the virtual object to be displayed in the virtual scene, determines the reference position of the virtual capture device that matches the virtual object in the virtual scene, and generates the virtual capture device at the reference position. The focal length of the virtual acquisition device is determined based on the virtual object, and the movement mode of the virtual acquisition device is determined based on the focal length. The virtual acquisition device is moved based on the movement mode. During the movement, the image of the virtual object is captured according to the focal length to obtain a preset display image of the virtual object. If the virtual acquisition device collides with any virtual object during the movement, the virtual acquisition device is controlled to stop moving. The movement mode includes horizontal movement and vertical movement. The first display module is used to receive a candidate screen identifier sent by the server for marking the preset display screen, and to display the candidate screen identifier; The second sending module is configured to send a first selection result of the target screen identifier to the server in response to selecting a target screen identifier from at least one of the candidate screen identifiers, so that the server determines the target display screen from the preset display screens according to the first selection result; The second display module is used to receive scene display content generated by the server based on the target display screen, and to display the scene display content.
20. A virtual scene content display device, characterized in that, include: The acquisition module is used to receive a screen acquisition request sent by the terminal, and in response to the screen acquisition request, determine the virtual object to be displayed in the virtual scene, determine the reference position of the virtual acquisition device that matches the virtual object in the virtual scene, and generate the virtual acquisition device at the reference position. The focal length of the virtual acquisition device is determined based on the virtual object, and the movement mode of the virtual acquisition device is determined based on the focal length. The virtual acquisition device is moved based on the movement mode. During the movement, the image of the virtual object is captured according to the focal length to obtain a preset display image of the virtual object. If the virtual acquisition device collides with any virtual object during the movement, the virtual acquisition device is controlled to stop moving. The movement mode includes horizontal movement and vertical movement. The third sending module is used to send candidate screen identifiers for marking the preset display screen to the terminal, so that the terminal can select a target screen identifier from at least one of the candidate screen identifiers after displaying the candidate screen identifiers; The screen determination module is used to receive a first selection result of the target screen identifier sent by the terminal, and determine the target display screen from the preset display screens according to the first selection result; The content generation module is used to generate scene display content based on the target display screen, and send the scene display content to the terminal for the terminal to display the scene display content.
21. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the content display method according to any one of claims 1 to 18.
22. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the content display method according to any one of claims 1 to 18.
23. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the content display method according to any one of claims 1 to 18.
Citation Information
Patent Citations
Control method for virtual camera, device and equipment
CN112121423A
Picture display method and device in virtual scene, computer equipment and storage medium
CN112870712A