Interaction method and device in virtual space, electronic device and storage medium
By using virtual space, the interactive effect of virtual resources is reflected, the interactive effect of virtual resources is reflected, and the application effect of virtual resources is reflected.
Patent Information
- Application Number
- CN202410669473.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-05-27
AI Technical Summary
The existing interactive methods in virtual spaces are single and lack interactivity, which cannot meet the expectations of the audience and leads to audience loss.
Display virtual resources moving toward predetermined objects in virtual space, and display collision effects when colliding, including shape changes, fragmentation, texture changes, etc. By identifying the position of predetermined objects, the movement of resources is controlled, and collision effects of different resources are rendered in parallel to provide a variety of effects.
It enriches the interactive methods, enhances interactivity, and meets users' expectations. By displaying users' expectations in virtual space, it enriches the interactive effects of virtual resources, reflects the interactive effects of virtual resources, reflects the interactive effects between audience objects and predetermined objects, reflects the interactive effects of virtual resources, reflects the interactive effects of virtual resources, reflects the interactive effects of virtual resources, reflects the interactivity of virtual resources, and reflects the interactive effects of virtual resources.
Smart Images

Figure CN118678140B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of multimedia technology, and in particular to an interactive method, device, electronic device, and storage medium in a virtual space. Background Art
[0002] With the development of multimedia technology, live streaming has become a popular trend, pervasive in our daily lives. Live streaming platforms typically offer a variety of interactive methods within the virtual space, including following the host, joining a fan group, liking, sending gifts, and commenting. When a virtual audience sends a gift to the host, the gifts are displayed in sequence within the virtual space. However, since the gifts displayed in the virtual space are merely special effects that play as a reminder of the gifts received, the interaction is limited and weak, failing to meet audience expectations and leading to audience loss. Summary of the Invention
[0003] The present disclosure provides an interactive method, device, electronic device, and storage medium in a virtual space, which not only enriches the interactive methods, but also has stronger interactivity and better interactive effects, and can meet the audience's expectations for interaction. The technical solutions of the present disclosure are as follows:
[0004] According to one aspect of an embodiment of the present disclosure, a method for interacting in a virtual space is provided, comprising:
[0005] In a case where a viewer object in a virtual space donates a first virtual resource to a host object in the virtual space, displaying in the virtual space that the first virtual resource moves toward a predetermined object in the virtual space;
[0006] When the first virtual resource collides with the predetermined object, a collision effect of the first virtual resource is displayed, where the collision effect is used to indicate that the first virtual resource changes from a first form to a second form when colliding with the predetermined object.
[0007] According to another aspect of an embodiment of the present disclosure, another interactive method in a virtual space is provided, including:
[0008] Displaying a first gift control for a first virtual resource in the virtual space, wherein the first gift control is used to give one of the first virtual resources to the anchor object in the virtual space each time when the first gift control is triggered;
[0009] In response to a triggering operation on the first gift control, displaying, in the virtual space, that the first virtual resource moves toward a predetermined object in the virtual space;
[0010] When the first virtual resource collides with the predetermined object, a collision effect of the first virtual resource is displayed, where the collision effect is used to indicate that the first virtual resource changes from a first form to a second form when colliding with the predetermined object.
[0011] According to another aspect of an embodiment of the present disclosure, there is provided an interactive device in a virtual space, comprising:
[0012] The first display unit is configured to, when a viewer object in a virtual space donates a first virtual resource to a host object in the virtual space, display, in the virtual space, that the first virtual resource moves toward a predetermined object in the virtual space;
[0013] The second display unit is configured to display a collision effect of the first virtual resource when the first virtual resource collides with the predetermined object, wherein the collision effect is used to indicate that the first virtual resource changes from a first form to a second form when colliding with the predetermined object.
[0014] In some embodiments, the first display unit is configured to identify the position of the predetermined object in the virtual space; and based on the position of the predetermined object, display the first virtual resource moving toward the predetermined object.
[0015] In some embodiments, the second display unit is configured to display the first virtual resource fragmented into a plurality of parts when the first virtual resource collides with the predetermined object.
[0016] In some embodiments, the second display unit is configured to display a deformation of the overall shape of the first virtual resource when the first virtual resource collides with the predetermined object.
[0017] In some embodiments, the second display unit is configured to display a change in the texture of the first virtual resource when the first virtual resource collides with the predetermined object.
[0018] In some embodiments, the first display unit is configured to display, in the virtual space, a plurality of the first virtual resources moving toward the predetermined object respectively when the number of the donated first virtual resources reaches a preset value;
[0019] The second display unit is configured to display a collision effect of any first virtual resource when the first virtual resource collides with the predetermined object.
[0020] In some embodiments, the second display unit is configured to perform:
[0021] Displaying the plurality of first virtual resources moving toward the front of the predetermined object; or
[0022] Displaying a plurality of the first virtual resources falling from top to bottom onto the predetermined object; or,
[0023] Displaying a plurality of the first virtual resources thrown upward onto the predetermined object; or
[0024] Displaying the plurality of first virtual resources moving from the center of the virtual space to the surrounding areas and moving to the predetermined object; or
[0025] The plurality of first virtual resources are displayed moving from the periphery of the virtual space toward the predetermined object at the center.
[0026] In some embodiments, the apparatus further comprises:
[0027] The third display unit is configured to execute in the virtual space, display a progress bar of the first virtual resource, wherein the progress bar is used to indicate the amount of the first virtual resource donated by the audience object, and the maximum amount of resources indicated by the progress bar is equal to the preset value.
[0028] In some embodiments, the apparatus further comprises:
[0029] The fourth display unit is configured to display a space setting interface before the virtual space is opened, wherein a collision prompt control is displayed in the space setting interface, and the collision prompt control is used to prompt the predetermined object to turn on the collision effect of the virtual resources in the virtual space; in response to the triggering operation of the collision prompt control, multiple virtual resources and a start control are displayed in the space setting interface, the multiple virtual resources are virtual resources with collision effects, and the start control is used to turn on the collision effects of the multiple virtual resources; in response to the triggering operation of the start control, multiple collision effects are displayed in the space setting interface, and the movement trajectories of the virtual resources indicated by different collision effects are different.
[0030] In some embodiments, the apparatus further comprises:
[0031] The rendering unit is configured to execute, while presenting the first virtual resource to the anchor object, a collision effect of the first virtual resource and the second virtual resource in parallel if there is an act of presenting the second virtual resource to the anchor object in the virtual space.
[0032] In some embodiments, the second virtual resource is a virtual resource without collision effects;
[0033] The rendering unit is configured to execute, while the first virtual resource is presented to the anchor object, if there is an act of presenting the second virtual resource to the anchor object in the virtual space, rendering the collision effect of the first virtual resource through the first rendering process and rendering the second virtual resource through the second rendering process. The first rendering process is used to render the virtual resources with the collision effect, and the second rendering process is used to render the virtual resources without the collision effect according to the order in which the virtual resources are presented.
[0034] In some embodiments, the second virtual resource is a virtual resource with a collision effect;
[0035] The rendering unit is configured to execute, while presenting the first virtual resource to the anchor object, if there is an act of presenting the second virtual resource to the anchor object in the virtual space, rendering the collision effect of the first virtual resource and the collision effect of the second virtual resource in parallel through a first rendering process, wherein the first rendering process is used to render virtual resources with collision effects.
[0036] In some embodiments, the rendering unit includes:
[0037] A first rendering sub-unit is configured to execute, through a first rendering thread in the first rendering process, rendering a collision effect of the first virtual resource;
[0038] The second rendering sub-unit is configured to execute, through the second rendering thread in the first rendering process, rendering the collision effect of the second virtual resource, wherein the first rendering thread and the second rendering thread are executed in parallel.
[0039] In some embodiments, the second display unit is further configured to, while executing the gift of the first virtual resource to the anchor object, display the second virtual resource while displaying the collision effect of the first virtual resource in the virtual space if there is an act of gifting the second virtual resource to the anchor object in the virtual space, and the second virtual resource is a virtual resource without a collision effect or a virtual resource with a collision effect.
[0040] According to another aspect of an embodiment of the present disclosure, another interactive device in a virtual space is provided, comprising:
[0041] The first display unit is further configured to execute a first gift control for displaying a first virtual resource in the virtual space, wherein the first gift control is used to gift one of the first virtual resources to the anchor object in the virtual space each time it is triggered;
[0042] The second display unit is further configured to display, in the virtual space, movement of the first virtual resource to a predetermined object in the virtual space in response to a triggering operation on the first gifting control.
[0043] The third display unit is further configured to display a collision special effect of the first virtual resource in a case where the first virtual resource collides with the predetermined object, the collision special effect being used to represent a change from a first shape to a second shape of the first virtual resource when colliding with the predetermined object.
[0044] In some embodiments, the second display unit is further configured to display, in the virtual space, a second gifting control of the first virtual resource in a case where a number of the first virtual resource gifted reaches a preset value, the second gifting control being used to gift a plurality of the first virtual resource to the anchor object each time the second gifting control is triggered; and display, in the virtual space, movement of the plurality of the first virtual resource to the predetermined object in response to a triggering operation on the second gifting control.
[0045] In some embodiments, the second display unit is further configured to display, in the virtual space, movement of the plurality of the first virtual resource from a predetermined position to the predetermined object in response to a triggering operation on the second gifting control.
[0046] In some embodiments, the apparatus further includes:
[0047] The rendering unit is configured to render, in parallel, a collision special effect of the first virtual resource and a second virtual resource in a case where the first virtual resource is gifted to the anchor object while there is an action of gifting the second virtual resource to the anchor object in the virtual space, the second virtual resource being a virtual resource without a collision special effect or a virtual resource with a collision special effect.
[0048] According to another aspect of the embodiments of the present disclosure, an electronic device is provided, which includes:
[0049] one or more processors;
[0050] a memory for storing program code executable by the processor;
[0051] wherein the processor is configured to execute the program code to implement the above-mentioned interaction method in the virtual space.
[0052] According to another aspect of the embodiments of the present disclosure, a computer readable storage medium is provided, which, when program code in the computer readable storage medium is executed by a processor of an electronic device, enables the electronic device to perform the above-mentioned interaction method in the virtual space.
[0053] According to another aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program / instruction, which implements the above-mentioned interactive method in the virtual space when executed by a processor.
[0054] The disclosed embodiments provide an interactive method for a virtual space, in which an audience object can interact with a designated predetermined object in the virtual space by donating a virtual resource to a host object. That is, when an audience object donates a virtual resource to a host object, a first virtual resource can be displayed moving toward the predetermined object, which more clearly and explicitly reflects the interaction between the audience object and the predetermined object. When the first virtual resource collides with the predetermined object, a collision effect of the first virtual resource can be displayed, which more impactfully reflects the interactive effect between the audience object and the predetermined object. This not only enriches the interactive methods between the audience object and the predetermined object, but also the above-mentioned interactive methods are more interactive and can meet the audience object's expectations for interaction. Moreover, the collision effect of the first virtual resource can be displayed in the virtual space without the aid of a third-party tool, thereby saving the interactive cost between the audience object and the predetermined object.
[0055] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.
[0057] Figure 1 The figure is a schematic diagram showing an implementation environment of an interactive method in a virtual space according to an exemplary embodiment.
[0058] Figure 2 The figure is a flow chart showing an interactive method in a virtual space according to an exemplary embodiment.
[0059] Figure 3 The figure is a flowchart of another interactive method in a virtual space according to an exemplary embodiment.
[0060] Figure 4 The figure is a schematic diagram showing how to enable a collision effect according to an exemplary embodiment.
[0061] Figure 5 The figure is a schematic diagram showing a moving method of a first virtual resource according to an exemplary embodiment.
[0062] Figure 6 The figure is a schematic diagram showing a collision special effect according to an exemplary embodiment.
[0063] Figure 7 The figure is a schematic diagram showing a progress bar according to an exemplary embodiment.
[0064] Figure 8 is a schematic diagram showing parallel rendering according to an exemplary embodiment.
[0065] Figure 9 The figure is a flowchart showing another interactive mode in a virtual space according to an exemplary embodiment.
[0066] Figure 10 It is a framework diagram showing an interactive mode in a virtual space according to an exemplary embodiment.
[0067] Figure 11 The figure is a schematic diagram showing a compatible collision effect according to an exemplary embodiment.
[0068] Figure 12 The figure is a flowchart of another interactive method in a virtual space according to an exemplary embodiment.
[0069] Figure 13 It is a schematic diagram showing a first gift control according to an exemplary embodiment.
[0070] Figure 14 is a schematic diagram showing a second gift control according to an exemplary embodiment.
[0071] Figure 15 The figure is a schematic diagram showing a method of donating virtual resources according to an exemplary embodiment.
[0072] Figure 16 The figure is a block diagram showing an interactive device in a virtual space according to an exemplary embodiment.
[0073] Figure 17 The figure is a block diagram showing another interactive device in a virtual space according to an exemplary embodiment.
[0074] Figure 18 This is a structural block diagram of a terminal provided according to an embodiment of the present application.
[0075] Figure 19 This is a structural diagram of a server provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0076] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
[0077] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.
[0078] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, storage, and display, etc.), and signals involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the virtual resources and the acts of giving away virtual resources involved in this disclosure are obtained with full authorization.
[0079] Figure 1 FIG. 1 is a schematic diagram showing an implementation environment of an interactive method in a virtual space according to an exemplary embodiment. Taking the electronic device as a server as an example, see Figure 1 , the implementation environment specifically includes: a terminal 101 and a server 102.
[0080] Terminal 101 is at least one of a smartphone, smartwatch, desktop computer, laptop, MP3 player, MP4 player, and portable computer. Terminal 101 runs an application that supports live streaming. This application can be a live streaming application, a communication application, or a conferencing application, and is not limited in this embodiment of the present disclosure. Users can log in to this application through terminal 101 to access the services provided by the application. Terminal 101 can connect to server 102 via a wireless network or a wired network, and can then connect to other terminals through server 102.
[0081] Terminal 101 generally refers to one of multiple terminals. This embodiment uses terminal 101 as an example. Those skilled in the art will appreciate that the number of terminals may be greater or lesser. For example, there may be a few terminals, or dozens, hundreds, or even more. This embodiment does not limit the number or device type of terminals.
[0082] Server 102 is at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Server 102 can be connected to terminal 101 and other terminals via a wireless network or a wired network. Server 102 can provide background services for applications that support live broadcasting. In some embodiments, the number of the above servers can be greater or lesser, and this is not limited in the embodiments of the present disclosure. Of course, server 102 also includes other functional servers to provide more comprehensive and diverse services.
[0083] Figure 2 is a flow chart showing an interactive method in a virtual space according to an exemplary embodiment. Figure 2 The interactive method in the virtual space is applied to the terminal, and the interactive method in the virtual space includes the following steps:
[0084] In step 201 , when a viewer object in a virtual space donates a first virtual resource to a host object in the virtual space, the terminal displays in the virtual space that the first virtual resource moves toward a predetermined object in the virtual space.
[0085] In the embodiments of the present disclosure, a terminal can be operated by a host or audience in the virtual space, although this disclosure does not limit this. A real-life image of the host is displayed in the virtual space. A predetermined object in the virtual space can be the host, another person displayed in addition to the host, or a specific object (e.g., a table), although this disclosure does not limit this. The host can interact with audience members in the virtual space, although this disclosure does not limit the number of audience members. The virtual space can be a live broadcast room or a virtual room, although this disclosure does not limit this. The virtual space can offer various interactive methods, such as following the host, joining a fan group, sharing the virtual space, donating virtual resources, or making purchases, although this disclosure does not limit this. Audience members in the virtual space can use their terminals to perform these various interactive actions in the virtual space, thereby interacting with the predetermined object in the virtual space. When a virtual audience member donates a first virtual resource to the host, the terminal can display the first virtual resource moving toward the predetermined object in the virtual space. The first virtual resource is a virtual resource with a collision effect. Specifically, the first virtual resource can display a corresponding collision effect on an object in the virtual space when colliding with a predetermined object. The first virtual resource can be, for example, a virtual flower, virtual beer, or a virtual egg, though this disclosure is not limited to this.
[0086] In step 202, when the first virtual resource collides with a predetermined object, the terminal displays a collision effect of the first virtual resource, where the collision effect is used to indicate that the first virtual resource changes from a first form to a second form when colliding with the predetermined object.
[0087] In an embodiment of the present disclosure, when a first virtual resource collides with a predetermined object in a virtual space, the terminal displays a collision effect of the first virtual resource in the virtual space. That is, when the first virtual resource collides with a predetermined object in a virtual space, the terminal displays a change in the shape of the first virtual resource in the virtual space. The collision effects of different virtual resources may be the same or different, and this is not limited in this embodiment of the present disclosure. The collision effect may be that the virtual resource is broken into multiple parts, the shape of the virtual resource becomes larger, the texture of the virtual resource changes, or the color of the virtual resource changes, etc., and this is not limited in this embodiment of the present disclosure.
[0088] For example, virtual flowers in a virtual space can have collision effects. When a virtual audience member presents a virtual flower to a virtual host, the terminal displays the virtual flower moving toward the intended object. When the virtual flower touches the intended object, the terminal displays the virtual flower shattering into multiple virtual petals.
[0089] According to the solution provided by the embodiments of the present disclosure, in a virtual space, an audience object can interact with a designated predetermined object in the virtual space by donating virtual resources to a host object. That is, when an audience object donates a virtual resource to a host object, the first virtual resource can be displayed moving toward the predetermined object, which more clearly and explicitly reflects the interaction between the audience object and the predetermined object. When the first virtual resource collides with the predetermined object, a collision effect of the first virtual resource can be displayed, which more impactfully reflects the interaction effect between the audience object and the predetermined object. This not only enriches the interaction methods between the audience object and the predetermined object, but also the above-mentioned interaction methods are relatively strong, which can meet the audience object's expectations for interaction. Moreover, the collision effect of the first virtual resource can be displayed in the virtual space without the aid of third-party tools, thereby saving the interaction cost between the audience object and the predetermined object.
[0090] In some embodiments, displaying the first virtual resource moving toward a predetermined object in the virtual space includes:
[0091] identifying a location of a predetermined object in a virtual space;
[0092] Based on the position of the predetermined object, the first virtual resource is displayed moving toward the predetermined object.
[0093] The solution provided by the embodiment of the present disclosure identifies the position of a predetermined object in a virtual space, so that the position of the predetermined object can be determined in real time, thereby controlling the movement of the first virtual resource according to the position of the predetermined object. Even if the predetermined object moves, the first virtual resource can still achieve the effect of moving toward the predetermined object, providing a guarantee for subsequent collision between the first virtual resource and the predetermined object.
[0094] In some embodiments, when the first virtual resource collides with a predetermined object, displaying a collision effect of the first virtual resource includes:
[0095] In the case where the first virtual resource collides with a predetermined object, the first virtual resource is displayed as being fragmented into a plurality of parts.
[0096] The solution provided by the embodiment of the present disclosure is that when the first virtual resource collides with the predetermined object, the first virtual resource is displayed as being fragmented into multiple parts. This not only enriches the display form of the virtual resource and the interaction method in the virtual space, but also more clearly and explicitly reflects the interaction between the audience object and the predetermined object. The interactivity is relatively strong, the interaction effect is better, and the audience object's expectations for interaction can be met.
[0097] In some embodiments, when the first virtual resource collides with a predetermined object, displaying a collision effect of the first virtual resource includes:
[0098] When the first virtual resource collides with a predetermined object, the entire shape of the first virtual resource is displayed to be deformed.
[0099] According to the solution provided by the embodiment of the present disclosure, when the first virtual resource collides with the predetermined object, the entire first virtual resource is displayed to be deformed. This not only enriches the display form of the virtual resource and the interaction method in the virtual space, but also more clearly and explicitly reflects the interaction between the audience object and the predetermined object. The interactivity is relatively strong, the interaction effect is better, and the audience object's expectations for interaction can be met.
[0100] In some embodiments, when the first virtual resource collides with a predetermined object, displaying a collision effect of the first virtual resource includes:
[0101] When the first virtual resource collides with a predetermined object, a texture showing the first virtual resource changes.
[0102] According to the solution provided by the embodiment of the present disclosure, when the first virtual resource collides with the predetermined object, the texture of the first virtual resource displayed changes, which not only enriches the display form of the virtual resource and the interaction method in the virtual space, but also more clearly and explicitly reflects the interaction between the audience object and the predetermined object. The interactivity is relatively strong, the interaction effect is better, and the audience object's expectations for interaction can be met.
[0103] In some embodiments, when the first virtual resource collides with a predetermined object, displaying a collision effect of the first virtual resource includes:
[0104] When the number of donated first virtual resources reaches a preset value, in the virtual space, multiple first virtual resources are displayed moving toward predetermined objects respectively;
[0105] For any first virtual resource, when the first virtual resource collides with a predetermined object, a collision effect of the first virtual resource is displayed.
[0106] The solution provided by the embodiment of the present disclosure can simultaneously display multiple first virtual resources moving toward a predetermined object when there are enough first virtual resources given in the virtual space. Thus, when the predetermined object is colliding, collision effects of the multiple first virtual resources can be displayed. This not only enriches the display form of virtual resources and the interaction mode in the virtual space, but also further and more impactfully reflects the interaction effect between the audience object and the predetermined object compared to the collision effect of a single virtual resource, enhances the interactivity between the audience object and the predetermined object, and can meet the audience object's expectations for interaction.
[0107] In some embodiments, displaying the plurality of first virtual resources moving toward predetermined objects respectively includes at least one of the following:
[0108] Displaying a plurality of first virtual resources moving toward the front of a predetermined object; or,
[0109] Displaying a plurality of first virtual resources falling from top to bottom onto a predetermined object; or,
[0110] Displaying multiple first virtual resources thrown upward from bottom to the predetermined object; or,
[0111] Displaying a plurality of first virtual resources moving from the center of the virtual space to the surrounding areas and moving to the predetermined object; or
[0112] A plurality of first virtual resources are displayed moving from the periphery of the virtual space to a predetermined object at the center.
[0113] According to the solution provided by the embodiments of the present disclosure, when a virtual resource moves toward a predetermined object, it may move toward the front of the predetermined object, or fall onto the predetermined object from top to bottom, or be thrown onto the predetermined object from bottom to top, or move from the center of the virtual space to the surrounding areas to move onto the predetermined object, or move from the surrounding areas of the virtual space to the predetermined object in the center, etc., thereby enriching the movement direction (movement trajectory) of the virtual resource.
[0114] In some embodiments, the method further comprises:
[0115] In the virtual space, a progress bar of the first virtual resource is displayed, the progress bar is used to represent the number of the first virtual resource gifted by the audience object, and a maximum resource number represented by the progress bar is equal to a preset value.
[0116] The scheme provided by the embodiments of the present disclosure can display a progress bar of a virtual resource in a virtual space to prompt an audience object in the virtual space to gift a number of virtual resources, thereby facilitating the improvement of an interactive atmosphere in the virtual space.
[0117] In some embodiments, the method further includes:
[0118] When the first virtual resource is gifted to the anchor object, if there is a behavior of gifting a second virtual resource to the anchor object in the virtual space, a collision special effect of the first virtual resource and the second virtual resource are rendered in parallel.
[0119] The scheme provided by the embodiments of the present disclosure can render virtual resources gifted in parallel, so that the rendering process of the first virtual resource is not disturbed by other virtual resources, thereby enabling the collision special effect of the first virtual resource to be directly rendered and displayed in the virtual space when it is determined that there is a behavior of gifting the first virtual resource in the virtual space, that is, the interactive effect between the audience object and the predetermined object can be quickly displayed in the virtual space, thereby improving the interactive efficiency; and the collision special effect of the first virtual resource does not need to be rendered by a third-party tool, thereby saving the interactive cost of the audience object and the predetermined object.
[0120] In some embodiments, the second virtual resource is a virtual resource without a collision special effect.
[0121] When the first virtual resource is gifted to the anchor object, if there is a behavior of gifting a second virtual resource to the anchor object in the virtual space, a collision special effect of the first virtual resource and the second virtual resource are rendered in parallel, including:
[0122] When the first virtual resource is gifted to the anchor object, if there is a behavior of gifting a second virtual resource to the anchor object in the virtual space, a collision special effect of the first virtual resource is rendered by a first rendering process, and the second virtual resource is rendered by a second rendering process, the first rendering process is used to render a virtual resource with a collision special effect, and the second rendering process is used to render a virtual resource without a collision special effect according to a gifting order of the virtual resource.
[0123] The solution provided by the embodiment of the present disclosure uses different rendering processes to render virtual resources with collision effects and virtual resources without collision effects respectively, so that the rendering process of the first virtual resource is not interfered with by other virtual resources. Therefore, when it is determined that there is an act of giving the first virtual resource in the virtual space, the collision effect of the first virtual resource can be directly rendered and displayed in the virtual space, that is, the interaction effect between the audience object and the predetermined object can be displayed in the virtual space more quickly, thereby improving the interaction efficiency; and the collision effect of the first virtual resource does not need to be rendered with the help of a third-party tool, which can save the interaction cost between the audience object and the predetermined object.
[0124] In some embodiments, the second virtual resource is a virtual resource with a collision effect;
[0125] While the first virtual resource is being presented to the anchor object, if there is an action of presenting the second virtual resource to the anchor object in the virtual space, the collision effect of the first virtual resource and the second virtual resource are rendered in parallel, including:
[0126] While the first virtual resource is being presented to the anchor object, if there is an act of presenting the second virtual resource to the anchor object in the virtual space, the collision effect of the first virtual resource and the collision effect of the second virtual resource are rendered in parallel through the first rendering process, and the first rendering process is used to render the virtual resource with the collision effect.
[0127] The solution provided by the embodiment of the present disclosure can render different virtual resources with collision effects in parallel, so that the rendering processes of the virtual resources with collision effects do not interfere with each other. Therefore, when it is determined that there are different virtual resources with collision effects in the virtual space, the collision effects of each virtual resource can be directly rendered, which is conducive to quickly displaying the interaction effect between the audience object and the predetermined object in the virtual space, thereby improving the interaction efficiency; and the collision effects of the virtual resources do not need to be rendered with the help of third-party tools, which can save the interaction cost between the audience object and the predetermined object.
[0128] In some embodiments, rendering the collision effect of the first virtual resource and the collision effect of the second virtual resource in parallel by the first rendering process includes:
[0129] Rendering a collision effect of the first virtual resource through a first rendering thread in the first rendering process;
[0130] The collision effect of the second virtual resource is rendered by the second rendering thread in the first rendering process, and the first rendering thread and the second rendering thread are executed in parallel.
[0131] The solution provided by the embodiment of the present disclosure renders different virtual resources with collision effects respectively through different rendering threads in the first rendering process, so that the rendering processes of the virtual resources with collision effects do not interfere with each other. Therefore, when it is determined that different virtual resources with collision effects are given away in the virtual space, the collision effects of each virtual resource can be directly rendered. Compared with the solution of rendering virtual resources in sequence according to the order of giving away, this solution is conducive to quickly displaying the interaction effect between the audience object and the predetermined object in the virtual space, thereby improving the interaction efficiency; and the collision effects of the virtual resources do not need to be rendered with the help of third-party tools, which can save the interaction cost between the audience object and the predetermined object.
[0132] In some embodiments, the method further comprises:
[0133] While the first virtual resource is being presented to the anchor object, if there is an act of presenting the second virtual resource to the anchor object in the virtual space, the second virtual resource is displayed while displaying the collision effect of the first virtual resource in the virtual space. The second virtual resource is a virtual resource without a collision effect or a virtual resource with a collision effect.
[0134] The solution provided by the embodiment of the present disclosure can simultaneously display virtual resources with collision effects and virtual resources without collision effects in a virtual space, or simultaneously display different virtual resources with collision effects, so that the display of the first virtual resource (the virtual resource with collision effects) is not interfered with by other virtual resources. Therefore, when it is determined that there is an act of giving the first virtual resource in the virtual space, the collision effect of the first virtual resource can be directly displayed in the virtual space, that is, the interaction effect between the audience object and the predetermined object can be displayed in the virtual space more quickly, thereby improving the interaction efficiency.
[0135] above Figure 2 The figure only shows the basic process of the present disclosure. The following takes the terminal (i.e., the first terminal) operated by the anchor object as an example to further illustrate the solution provided by the present disclosure. Figure 3 This is a flow chart showing another interactive method in a virtual space according to an exemplary embodiment. The interactive method in the virtual space is applied to the first terminal, see Figure 3 , the interactive methods in this virtual space include:
[0136] In step 301, the first terminal turns on a collision effect of virtual resources in a virtual space.
[0137] In an embodiment of the present disclosure, a first terminal is operated by a host in a virtual space. Before opening the virtual space, the host can use the first terminal to enable collision effects for virtual resources in the virtual space. Accordingly, before the virtual space is opened, the first terminal displays a space settings interface. The space settings interface displays a collision prompt control, which prompts the host to enable collision effects for virtual resources in the virtual space. In response to triggering the collision prompt control, the first terminal displays multiple virtual resources and an activation control in the space settings interface. The multiple virtual resources are virtual resources with collision effects. The activation control is used to enable collision effects for the multiple virtual resources. Then, in response to triggering the activation control, the terminal displays multiple collision effects in the space settings interface. Different collision effects indicate different movement trajectories for the virtual resources. In the solution provided by the embodiment of the present disclosure, before the virtual space is opened, the host can control whether to enable collision effects for the multiple virtual resources in the virtual space through the space settings interface. If the collision effects for the multiple virtual resources are enabled, the host can select the collision effect that meets their needs.
[0138] For example, Figure 4 FIG. 1 is a schematic diagram showing a method of enabling collision effects according to an exemplary embodiment. Figure 4The first terminal displays a collision control 401 and a space activation control 402 in the space setting interface. The collision control 401 is used to prompt the host object to activate the collision effect of the virtual resources in the virtual space. When the host object triggers the collision control 401, the first terminal displays a collision setting panel 403 in the space setting interface. The collision setting panel 403 displays multiple virtual resources that provide collision effects. The multiple virtual resources are virtual roses, virtual hearts, virtual beer, and virtual eggs. The collision setting panel 403 also displays a collision effect display area 404 and an activation control 405. When any of the above multiple virtual resources is selected, the first terminal can display the collision effect of the virtual resource in the collision effect display area 404. When the activation control 405 is triggered, the first terminal displays two collision effects in the collision setting panel 403. The movement trajectories of the virtual resources indicated by different collision effects are different. For example, one collision effect is used to present a virtual resource moving toward the front of a predetermined object, which is equivalent to throwing a gift in front of the predetermined object; another collision effect is used to present a virtual resource falling from top to bottom onto the predetermined object, which is equivalent to a "rain" for the predetermined object, etc. The embodiments of the present disclosure do not limit the collision effects. Among them, the predetermined object can be specified by the host object and can be any person or object in the virtual space, etc. The embodiments of the present disclosure do not limit this. If the host object does not select any collision effect, the first terminal will present a default collision effect in the virtual space. The embodiments of the present disclosure do not limit the default collision effect. A panel close control 406 can also be displayed in the settings panel 403. In response to the triggering operation of the panel close control 406, the first terminal closes the settings panel 403. Then, in response to the triggering operation of the space start control 402, the first terminal opens the virtual space.
[0139] In step 302, when the audience object in the virtual space donates the first virtual resource to the host object in the virtual space, the first terminal displays in the virtual space that the first virtual resource moves toward a predetermined object in the virtual space.
[0140] In an embodiment of the present disclosure, when an audience object in a virtual space presents a first virtual resource to an anchor object in a virtual space, the first terminal can display, in the virtual space, the first virtual resource moving toward a predetermined object. The embodiment of the present disclosure does not limit the number of audience objects that trigger the above-mentioned gifting behavior. That is, for any audience object in the virtual space, when the audience object presents a first virtual resource to an anchor object in the virtual space, the first terminal can display, in the virtual space, the first virtual resource moving toward a predetermined object. Alternatively, when multiple audience objects in the virtual space present the first virtual resource to an anchor object, the first terminal can also display, in the virtual space, the first virtual resource moving toward a predetermined object. The embodiment of the present disclosure does not limit the movement method (movement direction or movement trajectory) of the first virtual resource.
[0141] In some embodiments, virtual resources with collision effects can move with predetermined objects. Accordingly, the process of the first terminal displaying the movement of the first virtual resource toward the predetermined object includes: the first terminal identifies the position of the predetermined object in the virtual space. Then, based on the position of the predetermined object, the first terminal displays the movement of the first virtual resource toward the predetermined object. The solution provided by the embodiment of the present disclosure, by identifying the position of the predetermined object in the virtual space, makes it possible to determine the position of the predetermined object in real time, thereby controlling the movement of the first virtual resource according to the position of the predetermined object. Even if the predetermined object moves, the first virtual resource can achieve the effect of moving toward the predetermined object, thereby providing a guarantee for the subsequent collision of the first virtual resource with the predetermined object.
[0142] In some embodiments, when the number of donated first virtual resources reaches a preset value, the first terminal displays multiple first virtual resources in the virtual space, moving toward a predetermined object. That is, each time a viewer object donates a first virtual resource, the first terminal can display the first virtual resource moving toward the predetermined object. When the number of donated first virtual resources in the virtual space is sufficient, the first terminal can again display the first virtual resource moving toward the predetermined object. At this time, multiple first virtual resources move toward the predetermined object simultaneously, which is equivalent to an upgrade of the movement method (interactive effect) of the virtual resources. The solution provided by the embodiment of the present disclosure can simultaneously display multiple first virtual resources moving toward the predetermined object when the number of donated first virtual resources in the virtual space is sufficient. When the predetermined object is colliding with the predetermined object, a collision effect of multiple first virtual resources can be displayed. This not only enriches the display form of virtual resources and the interactive method in the virtual space, but also further and more impactfully reflects the interactive effect between the viewer object and the predetermined object compared to the collision effect of a single virtual resource, enhances the interactivity between the viewer object and the predetermined object, and can meet the viewer object's expectations for interaction.
[0143] The moving manner of the first virtual resource is not limited in the embodiments of the present disclosure. Five moving manners are exemplarily introduced below.
[0144] In the first manner, the first terminal displays the plurality of first virtual resources moving towards the front of the predetermined object.
[0145] In the second manner, the first terminal displays the plurality of first virtual resources falling from top to bottom onto the predetermined object.
[0146] In the third manner, the first terminal displays the plurality of first virtual resources being thrown from bottom to top onto the predetermined object.
[0147] In the fourth manner, the first terminal displays the plurality of first virtual resources moving from the center of the virtual space to the periphery and onto the predetermined object.
[0148] In the fifth manner, the first terminal displays the plurality of first virtual resources moving from the periphery of the virtual space to the predetermined object at the center.
[0149] The five moving manners can be freely combined, and the embodiments of the present disclosure are not limited in this regard. For example, the first manner and the second manner are combined. That is, in the case that the number of the first virtual resources for gifting reaches a preset value, the first terminal displays a part of the plurality of first virtual resources moving towards the front of the predetermined object and another part of the plurality of first virtual resources falling from top to bottom onto the predetermined object in the virtual space. The above manner enriches the moving direction of the virtual resource and the interaction manner between the objects.
[0150] For example, Figure 5 is a schematic diagram of a moving manner of a first virtual resource according to an exemplary embodiment. Referring to Figure 5 , the first virtual resource is a virtual rose. Referring to Figure 5 (a), the first terminal displays the plurality of first virtual resources moving towards the front of the predetermined object, which is equivalent to “hitting” the front of the predetermined object. Figure 5 (a), the first terminal displays the plurality of first virtual resources falling from top to bottom onto the predetermined object, which is equivalent to “flower rain” falling on the predetermined object.
[0151] In step 303, in the case that the first virtual resource collides with the predetermined object, the first terminal displays a collision special effect of the first virtual resource, and the collision special effect is used to indicate that the first virtual resource changes from the first form to the second form when colliding with the predetermined object.
[0152] In the embodiments of the present disclosure, when the first virtual resource collides with the predetermined object in the virtual space, the first terminal displays a change in the form of the first virtual resource in the virtual space. The collision special effect can be that the virtual resource is broken into multiple parts, the shape of the virtual resource is changed, the texture of the virtual resource is changed, and the like, which are not limited in the embodiments of the present disclosure.
[0153] In some embodiments, the collision special effect is that the virtual resource is broken into multiple parts. Accordingly, in the case that the first virtual resource collides with the predetermined object, the first terminal displays that the first virtual resource is broken into multiple parts. The scheme provided by the embodiments of the present disclosure displays that the first virtual resource is broken into multiple parts when the first virtual resource collides with the predetermined object, which not only enriches the display form of the virtual resource and the interactive mode in the virtual space, but also more clearly and explicitly embodies the interaction between the audience object and the predetermined object, the interaction is relatively strong, the interactive effect is better, and the expectation of the audience object for the interaction can be met.
[0154] In some embodiments, the collision special effect is that the shape of the virtual resource is changed. Accordingly, in the case that the first virtual resource collides with the predetermined object, the first terminal displays that the overall shape of the first virtual resource is deformed. For example, the overall shape of the first virtual resource is enlarged. The scheme provided by the embodiments of the present disclosure displays that the overall shape of the first virtual resource is deformed when the first virtual resource collides with the predetermined object, which not only enriches the display form of the virtual resource and the interactive mode in the virtual space, but also more clearly and explicitly embodies the interaction between the audience object and the predetermined object, the interaction is relatively strong, the interactive effect is better, and the expectation of the audience object for the interaction can be met.
[0155] In some embodiments, the collision special effect is that the texture of the virtual resource is changed. Accordingly, in the case that the first virtual resource collides with the predetermined object, the first terminal displays that the texture of the first virtual resource is changed. For example, the texture of the first virtual resource is changed from a flower-shaped texture to a rainbow-shaped texture, and the like. The scheme provided by the embodiments of the present disclosure displays that the texture of the first virtual resource is changed when the first virtual resource collides with the predetermined object, which not only enriches the display form of the virtual resource and the interactive mode in the virtual space, but also more clearly and explicitly embodies the interaction between the audience object and the predetermined object, the interaction is relatively strong, the interactive effect is better, and the expectation of the audience object for the interaction can be met.
[0156] In some embodiments, when the number of donated first virtual resources reaches a preset value, for any first virtual resource, when the first virtual resource collides with a predetermined object, the first terminal displays a collision effect of the first virtual resource. The solution provided by the embodiment of the present disclosure is that when there are enough donated first virtual resources in the virtual space, multiple first virtual resources can be simultaneously displayed to move toward the predetermined object respectively, so that when colliding with the predetermined object, the collision effects of multiple first virtual resources can be displayed, which not only enriches the display form of virtual resources and the interaction method in the virtual space, but also further and more impactfully reflects the interaction effect between the audience object and the predetermined object compared to the collision effect of a single virtual resource, enhances the interactivity between the audience object and the predetermined object, and can meet the audience object's expectations for interaction.
[0157] For example, Figure 6 FIG2 is a schematic diagram showing a collision effect according to an exemplary embodiment. Figure 6 The first virtual resource is a virtual rose. When a viewer in the virtual space gives a virtual rose to a host in the virtual space, the first terminal displays the virtual rose moving toward the intended object. When the virtual rose touches the intended object, the first terminal displays the virtual rose breaking into multiple virtual petals.
[0158] Among them, in the process of determining whether the number of donated first virtual resources reaches the preset value, the first terminal can count the number of donated first virtual resources within the preset time length. When the number of donated first virtual resources within the preset time length reaches the preset value, the first terminal displays multiple first virtual resources in the virtual space, each moving toward the predetermined object. For any first virtual resource, when the first virtual resource collides with the predetermined object, the first terminal displays the collision effect of the first virtual resource. That is, the collision effect of the first virtual resource can be related to time. Only when the number of donated first virtual resources within a short period of time (for example, the preset time length = 3 minutes) is large enough, will the collision effects of multiple first virtual resources be displayed at the same time, which is conducive to enhancing the interactive atmosphere in the virtual space.
[0159] In some embodiments, the first terminal can display a progress bar for the first virtual resource in the virtual space. The progress bar is used to indicate the number of first virtual resources that the audience object has donated. The maximum number of resources represented by the progress bar is equal to a preset value. The solution provided by the embodiment of the present disclosure can display a progress bar for virtual resources in the virtual space to prompt the audience objects in the virtual space about the number of virtual resources donated, which is conducive to enhancing the interactive atmosphere in the virtual space. The progress bar can be the progress of a single audience object donating the first virtual resource, or the progress of multiple audience objects jointly donating the first virtual resource, etc., and the embodiment of the present disclosure does not limit this.
[0160] For example, Figure 7 FIG2 is a schematic diagram showing a progress bar according to an exemplary embodiment. Figure 7 , the first virtual resource is a virtual rose. In the case that there are multiple audience objects in the virtual space giving virtual roses to the anchor object, the first terminal displays a progress bar of the virtual roses below the comment area in the virtual space. Figure 7 It can be seen that the number of virtual roses donated by multiple audience objects has reached 20% of the preset value.
[0161] In some embodiments, each audience object in the virtual space can donate virtual resources to the anchor object. When there are virtual resources that are donated at the same time in the virtual space, the first terminal can render them in parallel. Accordingly, while donating the first virtual resource to the anchor object, if there is an act of donating the second virtual resource to the anchor object in the virtual space, the first terminal renders the collision effect of the first virtual resource and the second virtual resource in parallel. The solution provided by the embodiment of the present disclosure can render virtual resources donated at the same time in parallel, so that the rendering process of the first virtual resource is not interfered with by other virtual resources, so that when it is determined that there is an act of donating the first virtual resource in the virtual space, the collision effect of the first virtual resource can be directly rendered and displayed in the virtual space, that is, the interactive effect between the audience object and the predetermined object can be displayed in the virtual space more quickly, thereby improving the interaction efficiency; and the collision effect of the first virtual resource does not need to be rendered with the help of a third-party tool, which can save the interaction cost between the audience object and the predetermined object.
[0162] Among them, the second virtual resource can be a virtual resource without collision effects. Virtual resources with collision effects and virtual resources without collision effects in the virtual space can be rendered through different rendering processes. Accordingly, while the first virtual resource is presented to the anchor object, if there is an act of presenting the second virtual resource to the anchor object in the virtual space, the first terminal renders the collision effect of the first virtual resource through the first rendering process and renders the second virtual resource through the second rendering process. The first rendering process is used to render virtual resources with collision effects. The second rendering process is used to render virtual resources without collision effects in the order in which the virtual resources are presented. The rendering logic of the first rendering process and the second rendering process are different. The first rendering process can render different virtual resources with collision effects in parallel. The second rendering process can render virtual resources without collision effects in the order in which they are presented. Optionally, the second rendering process can render virtual resources without collision effects in sequence according to the order in which the virtual resources are presented. The solution provided by the embodiment of the present disclosure uses different rendering processes to render virtual resources with collision effects and virtual resources without collision effects respectively, so that the rendering process of the first virtual resource is not interfered with by other virtual resources. Therefore, when it is determined that there is an act of giving the first virtual resource in the virtual space, the collision effect of the first virtual resource can be directly rendered and displayed in the virtual space, that is, the interaction effect between the audience object and the predetermined object can be displayed in the virtual space more quickly, thereby improving the interaction efficiency; and the collision effect of the first virtual resource does not need to be rendered with the help of a third-party tool, which can save the interaction cost between the audience object and the predetermined object.
[0163] Alternatively, while any virtual resource with collision effects is presented to the host object, other virtual resources with collision effects may also be presented to the host object in the virtual space. That is, the second virtual resource may also be a virtual resource with collision effects. Accordingly, while the first virtual resource is presented to the host object, if there is an act of presenting the second virtual resource to the host object in the virtual space, the first terminal renders the collision effects of the first virtual resource and the collision effects of the second virtual resource in parallel through the first rendering process. The solution provided by the embodiment of the present disclosure is capable of rendering different virtual resources with collision effects in parallel, so that the rendering processes of the virtual resources with collision effects do not interfere with each other, so that when it is determined that different virtual resources with collision effects are presented in the virtual space, the collision effects of each virtual resource can be directly rendered, which is conducive to quickly displaying the interaction effect between the audience object and the predetermined object in the virtual space, thereby improving the interaction efficiency; and the collision effects of the virtual resources do not need to be rendered with the help of third-party tools, which can save the interaction cost between the audience object and the predetermined object.
[0164] Among them, the first rendering process includes multiple rendering threads. The multiple rendering threads correspond one-to-one to multiple virtual resources with collision effects. Each rendering thread is used to render corresponding different virtual resources with collision effects. Accordingly, the process of the first terminal rendering the collision effect of the first virtual resource and the collision effect of the second virtual resource in parallel through the first rendering process includes: the first terminal renders the collision effect of the first virtual resource through the first rendering thread in the first rendering process. The first terminal renders the collision effect of the second virtual resource through the second rendering thread in the first rendering process. The first rendering thread and the second rendering thread are executed in parallel. The solution provided by the embodiment of the present disclosure renders different virtual resources with collision effects respectively through different rendering threads in the first rendering process, so that the rendering processes of the virtual resources with collision effects do not interfere with each other. Therefore, when it is determined that different virtual resources with collision effects are given away in the virtual space, the collision effects of each virtual resource can be directly rendered. Compared with the solution of rendering virtual resources in sequence according to the order of giving away, this solution is conducive to quickly displaying the interaction effect between the audience object and the predetermined object in the virtual space, thereby improving the interaction efficiency; and the collision effects of the virtual resources do not need to be rendered with the help of third-party tools, which can save the interaction cost between the audience object and the predetermined object.
[0165] As mentioned above, virtual resources with collision effects and virtual resources without collision effects can be rendered in parallel, or virtual resources with collision effects can also be rendered in parallel. After rendering, the virtual resources rendered in parallel can also be displayed in parallel. Accordingly, while presenting the first virtual resource to the host object, if there is an act of presenting the second virtual resource to the host object in the virtual space, the first terminal displays the collision effect of the first virtual resource in the virtual space while displaying the second virtual resource. The second virtual resource is a virtual resource without collision effects or a virtual resource with collision effects. The solution provided by the embodiment of the present disclosure can simultaneously display virtual resources with collision effects and virtual resources without collision effects in the virtual space, or display different virtual resources with collision effects at the same time, so that the display of the first virtual resource (virtual resource with collision effects) is not interfered with by other virtual resources, so that when it is determined that there is an act of presenting the first virtual resource in the virtual space, the collision effect of the first virtual resource can be directly displayed in the virtual space, that is, the interactive effect between the audience object and the predetermined object can be displayed in the virtual space more quickly, thereby improving the efficiency of interaction.
[0166] For example, Figure 8 FIG1 is a schematic diagram showing a parallel rendering according to an exemplary embodiment. Figure 8For virtual resources that do not have collision effects, the first terminal renders the resource effects of the virtual resource through the second rendering process. The resource effects are at a different level from the predetermined object. The predetermined object is in the video layer. The resource effects are in the special effects layer. The video layer and the special effects layer exist independently and do not interfere with each other. That is, there is no interactive relationship between the resource effects of the virtual resource and the predetermined object. The second rendering process can render virtual resources without collision effects in the order in which the virtual resources are given. For virtual resources with collision effects, the first terminal renders them through the first rendering process. The collision effects rendered by the first rendering process are special effects in the video layer. That is, the first terminal renders the collision effects in the video layer through the first rendering process. Then, the first terminal can merge the collision effects rendered by the first rendering process and the resource effects rendered by the second rendering process for display. The display effect of the first terminal (the terminal of the predetermined object) includes the content of the video layer, the content of the UI layer, and the content of the special effects layer. The content of the UI layer may include information such as the message of receiving the virtual resource and the avatar of the predetermined object, which is not limited in this embodiment of the present disclosure.
[0167] In the disclosed embodiment, the first rendering process can support the real-time interaction between the underlying rendering logic (rendering script) and the virtual space. For example, receiving messages from virtual resources, obtaining avatars of predetermined objects, downloading rendering resources, etc., can realize real-time interaction of any user interaction behavior. That is, when there is a virtual resource with a collision effect presented in the virtual space, the first terminal can directly render the collision effect of the virtual resource through the first rendering process, without queuing the presented virtual resource with a collision effect, that is, it is not interfered with by other virtual resources, and can quickly display the interaction effect between the audience object and the predetermined object in the virtual space, thereby improving the interaction efficiency.
[0168] For example, Figure 9 FIG. 1 is a flow chart showing another interactive mode in a virtual space according to an exemplary embodiment. Figure 9During the process of the host object in the virtual space opening the virtual space, when the host object turns on the collision effect, the rendering engine in the first terminal can obtain the configuration information of the virtual resource from the intelligent three-dimensional object reconstruction system (Y-tech). The configuration information may include first configuration information of the virtual resource and multiple second configuration information. The first configuration information is used to represent the general rendering logic of the collision effect. The multiple second configuration information are respectively used to represent the rendering logic of the collision effect of each virtual resource. The first configuration information and the second configuration information are in a one-to-many relationship. Then, after the virtual space is opened, the first terminal can determine the virtual resources donated in the virtual space in real time by establishing a two-way communication link (communication framework) between the rendering engine and the server, thereby rendering the interactive effect between the host object and the audience object in real time. That is, when there are virtual resources with collision effects donated in the virtual space, the first terminal can render the virtual resources with collision effects in parallel through the first rendering process in the rendering engine. Specifically, different rendering threads in the first rendering process render the collision effects of their corresponding virtual resources in parallel based on the first configuration information and their corresponding second configuration information. When there are virtual resources without collision effects provided as gifts in the virtual space, the first terminal sequentially renders the virtual resources without collision effects through the second rendering process in the rendering engine.
[0169] Continue to see Figure 9 After the virtual space is opened, the first terminal can also display a resource panel in the virtual space. The host object can modify the collision effects of the virtual resource through this resource panel. For example, the designated object can use the resource panel to change the collision effect of the first virtual resource from collision effect 1 to collision effect 2. Collision effect 1 is used to show the virtual resource moving toward the front of the designated object, equivalent to throwing a gift in front of the designated object. Collision effect 2 is used to show the virtual resource falling from top to bottom onto the designated object, equivalent to "raining" on the designated object. In other words, throughout the broadcast, the audience object can interact with the host object in real time. In other words, the first terminal interacts with the server through a two-way communication link (communication framework) between the rendering engine and the server to modify the collision effects of the virtual resource. The server obtains the actions triggered by the host object on the first terminal (such as offline operations and interactive operations with audience objects) in real time through the two-way communication link (communication framework) between the rendering engine and the server, and pushes the host object information on the first terminal to the terminals of each audience object.
[0170] For example, Figure 10This is a framework diagram illustrating an interactive method in a virtual space according to an exemplary embodiment. The server sends the gameplay instructions for collision effects, namely, the configuration information for the collision effects, to the first terminal via signaling. The configuration information can be broken down into first configuration information processed by general rendering logic and second configuration information that implements the collision effects for specific virtual resources. The first and second configuration information have a one-to-many relationship. The first terminal downloads and loads the first configuration information through the effects framework, and the first configuration information operates normally throughout the lifecycle of the virtual space. The first terminal reads the configuration information sent by the server, downloads, and loads the second configuration information. Different second configuration information can be processed in parallel by different rendering threads to achieve the purpose of parallel rendering of collision effects for different virtual resources. Each rendering thread is responsible for independent rendering logic (second configuration information), while the common rendering logic of the collision effects is uniformly managed by the first configuration information. During the collision effect rendering process, the first terminal can utilize the communication capabilities of the effects framework to support downloading virtual resources, cross-terminal communication, and launching other rendering threads (rendering channels). The first terminal's final rendering will be merged into the video capture frame, displayed on the screen in real time, and streamed to the viewer.
[0171] Since the collision effects are rendered by an independent first rendering process in the embodiment of the present disclosure, there will be higher performance consumption and incompatibility issues between calls to different versions of scripts. This solution proposes that a global downgrade protocol description can be used to provide a guarantee of compatibility in terms of running device points, virtual resource version pairing, App version restrictions, etc. For example, Figure 11 is a schematic diagram showing a compatible collision effect according to an exemplary embodiment. Figure 11In the process of loading the configuration information of the collision special effect of the virtual resource, the first terminal first loads the first configuration information for representing general rendering logic. If the first configuration information fails to be loaded, the first terminal automatically repeats the loading. If the first terminal fails to complete the loading of the first configuration information after completing the maximum number of retries, the loading is considered to fail; or if the first terminal fails to load the first configuration information within the maximum time length, the loading is also considered to fail. After the loading fails, the first terminal can display a prompt information to prompt that the current virtual space does not support the gameplay of the collision special effect. That is, the first terminal guarantees the stability of the virtual space through the state machine, heartbeat keep-alive mechanism, and the like. The maximum number of retries and the maximum time length can be configured by the developer, and the embodiments of the present disclosure do not limit this. In the case where the first configuration information is successfully loaded, the first terminal loads the second configuration information for representing the rendering logic of the collision special effect of each virtual resource. In the process of loading the second configuration information, the first terminal detects the version of the first configuration information, the version of the second configuration information, the device partition, and the App version. In the case where the version of the first configuration information, the version of the second configuration information, the device partition, and the App version all conform to the config version, the first terminal can successfully load the configuration information (that is, the second configuration information) of the collision special effect of each virtual resource.
[0172] The scheme provided by the embodiments of the present disclosure enables the audience object to interact with the predetermined object in the virtual space by gifting the virtual resource to the anchor object, that is, when the audience object gifts the virtual resource to the anchor object, the first virtual resource moving to the predetermined object can be displayed, which more clearly and explicitly embodies the interaction between the audience object and the predetermined object. When the first virtual resource collides with the predetermined object, the collision special effect of the first virtual resource can be displayed, which more impactively embodies the interaction effect between the audience object and the predetermined object. The above interaction mode is strong and can meet the expectation of the audience object for the interaction. Moreover, the collision special effect of the first virtual resource can be displayed in the virtual space without the aid of a third-party tool, thereby saving the interaction cost of the audience object and the predetermined object.
[0173] All the optional technical solutions described above can be combined to form optional embodiments of the present disclosure, which will not be described herein again.
[0174] The following takes the terminal operated by the audience object (that is, the second terminal) as an example to describe the interaction method in the virtual space provided by the present disclosure. Figure 12 is a flowchart of another interaction method in a virtual space according to an example embodiment. Referring to Figure 12 The interaction method in the virtual space is applied to the second terminal, and the interaction method in the virtual space includes the following steps:
[0175] In step 1201, the second terminal displays a first gift control of a first virtual resource in the virtual space. The first gift control is used to gift a first virtual resource to the anchor object in the virtual space each time it is triggered.
[0176] In the disclosed embodiment, the second terminal is operated by an audience member in the virtual space. The audience member can interact with a predetermined object in the virtual space through the first terminal. The virtual space can be a live broadcast studio or a virtual room, which is not limited in the disclosed embodiment. The second terminal displays a first gift control for a first virtual resource in the virtual space. The audience member can use the first gift control to gift the first virtual resource to the host.
[0177] For example, Figure 13 FIG. 1 is a schematic diagram showing a first gift control according to an exemplary embodiment. Figure 13 The first virtual resource is a virtual rose. The second terminal can display a first gift control 1301 of the virtual rose below the comment area in the virtual space.
[0178] In step 1202 , in response to a triggering operation on the first gift control, the second terminal displays, in the virtual space, the first virtual resource moving toward a predetermined object in the virtual space.
[0179] In an embodiment of the present disclosure, when the first gift control is triggered, the second terminal gifts the first virtual resource to the first terminal. Accordingly, in the virtual space, the second terminal displays the first virtual resource moving toward the predetermined object. The second terminal can display the movement process of the first virtual resource donated by the current viewer object, or it can display the movement process of the first virtual resource donated by other viewer objects, and this embodiment of the present disclosure is not limited to this. The movement method of the first virtual resource presented by the second terminal in step 1202 is the same as the movement method of the first virtual resource presented by the first terminal in step 302. That is, with respect to the movement method of the virtual resource, the terminal of the predetermined object can display the same situation as the terminal of the viewer object. The movement method of the first virtual resource presented by the second terminal can be obtained from the live broadcast data pushed by the first terminal, that is, the movement method rendered by the first terminal; or it can be rendered independently by the second terminal, that is, the second terminal can independently render the virtual resource and only obtain the video stream containing the predetermined object from the first terminal. This embodiment of the present disclosure is not limited to this.
[0180] In some embodiments, the moving method of the first virtual resource may refer to the moving method in step 302 and will not be described in detail here.
[0181] In some embodiments, when the number of donated first virtual resources reaches a preset value, the second terminal displays a second donation control for the first virtual resources in the virtual space. The second donation control is used to donate multiple first virtual resources to the anchor object each time it is triggered. In response to the triggering operation of the second donation control, in the virtual space, the second terminal displays multiple first virtual resources moving toward the predetermined object. In the solution provided in the embodiment of the present disclosure, when the number of first virtual resources donated by the audience object reaches a preset value, it indicates that the audience object may donate a large amount of first virtual resources to the anchor object. In this case, the second terminal provides the audience object with a second donation control so that the audience object can donate multiple first virtual resources at one time through the second donation control, without frequently triggering the first donation control. The operation is simple and can improve the interaction efficiency.
[0182] In response to the triggering operation of the second gift control, the second terminal displays, in the virtual space, multiple first virtual resources moving from a predetermined position to a predetermined object. The predetermined position can be the position of the second gift control (that is, multiple first virtual resources move from the second gift control to the predetermined object), the top of the virtual space (that is, multiple first virtual resources fall from top to bottom onto the predetermined object), the bottom of the virtual space (that is, multiple first virtual resources are thrown from bottom to top onto the predetermined object), the palm of the host object (that is, multiple first virtual resources move from the palm of the host object to the predetermined object. Equivalent to giving virtual resources to the host object through the host object.), etc. The embodiment of the present disclosure does not limit the predetermined position. Multiple first virtual resources can move from the predetermined position to the predetermined object at the same time, or can move from the predetermined position to the predetermined object in sequence, or can move from the predetermined position to the predetermined object in batches. The embodiment of the present disclosure does not limit the movement method. The solution provided by the embodiment of the present disclosure, by displaying multiple first virtual resources moving from a predetermined position to a predetermined object, impactfully reflects the interactive effect between the audience object and the predetermined object. This not only enhances interactivity, but also enriches the interactive methods between the audience object and the predetermined object, and can meet the audience object's expectations for interaction.
[0183] For example, Figure 14 FIG. 1 is a schematic diagram showing a second gift control according to an exemplary embodiment. Figure 14, the first virtual resource is a virtual rose. The second terminal can display a second gift control 1401 for the virtual roses in the lower right corner of the virtual space. A "Press and hold" prompt message is displayed in second gift control 1401, prompting the viewer to trigger the gifting action by long-pressing the second gift control. When second gift control 1401 is triggered, the second terminal can also display the number of first virtual resources that can be gifted each time the second gift control is triggered. For example, each time the viewer triggers second gift control 1401, the viewer can gift 10 virtual roses to the host.
[0184] In step 1203, when the first virtual resource collides with the predetermined object, the second terminal displays a collision effect of the first virtual resource, where the collision effect is used to indicate that the first form of the first virtual resource changes to the second form when the first virtual resource collides with the predetermined object.
[0185] In an embodiment of the present disclosure, when a first virtual resource collides with a predetermined object in a virtual space, the second terminal displays a change in the form of the first virtual resource in the virtual space. The collision effect may be that the virtual resource is broken into multiple parts, the shape of the virtual resource becomes larger, the color of the virtual resource changes, etc., which is not limited in the embodiment of the present disclosure. The principle of the second terminal displaying the collision effect in this step is the same as the principle of the first terminal displaying the collision effect in step 303. That is, for the collision effect of the virtual resource, the terminal of the predetermined object can display the same situation as the terminal of the audience object. Among them, the collision effect of the first virtual resource presented by the second terminal can be obtained from the live broadcast data pushed by the first terminal, that is, the collision effect rendered by the first terminal; or, it can also be rendered independently by the second terminal, that is, the second terminal can independently render the collision effect of the virtual resource and only obtain the video stream containing the predetermined object from the first terminal. This embodiment of the present disclosure is not limited in this.
[0186] In some embodiments, there are also virtual resources without collision effects in the virtual space. While the first virtual resource is presented to the anchor object, if there is an act of presenting the second virtual resource to the anchor object in the virtual space, the collision effects of the first virtual resource and the second virtual resource are rendered in parallel. The second virtual resource is a virtual resource without collision effects or a virtual resource with collision effects. The solution provided by the embodiment of the present disclosure can render the virtual resources presented at the same time in parallel, so that the rendering process of the first virtual resource is not interfered with by other virtual resources, so that when it is determined that there is an act of presenting the first virtual resource in the virtual space, the collision effects of the first virtual resource can be directly rendered and displayed in the virtual space, that is, the interactive effect between the audience object and the predetermined object can be displayed in the virtual space more quickly, thereby improving the interaction efficiency; and the collision effects of the first virtual resource do not need to be rendered with the help of third-party tools, which can save the interaction cost between the audience object and the predetermined object.
[0187] The principle of the second terminal rendering in parallel in this step is the same as that of the first terminal rendering in parallel in step 303, and will not be repeated here.
[0188] In some embodiments, in addition to sending virtual resources to the anchor object through the first and second gifting controls described above, the audience object can also send virtual resources to the anchor object through a resource panel in the virtual space. The resource panel displays a plurality of virtual resources provided in the virtual space, including virtual resources with collision effects and virtual resources without collision effects. When any virtual resource in the resource panel is selected, if the virtual resource has a collision effect, the second terminal displays a collision prompt control of the virtual resource in the virtual space. In response to a triggering operation on the collision prompt control, the second terminal displays a collision setting panel in the virtual space. The collision setting panel displays a plurality of virtual resources with collision effects and a gifting control. When any virtual resource in the collision setting panel is selected, in response to a triggering operation on the gifting control, the second terminal sends the selected virtual resource to the first terminal.
[0189] For example, Figure 15 is a schematic diagram of gifting virtual resources according to an exemplary embodiment. Referring to Figure 15 , the resource panel displays a plurality of virtual resources. When the virtual rose is selected, since the virtual rose has a collision effect, the second terminal displays a collision prompt control 1501 of the virtual resource in the virtual space. When the collision prompt control 1501 is triggered, the terminal displays a collision setting panel in the virtual space. The collision setting panel displays a plurality of virtual resources with collision effects and a gifting control 1502. When any virtual resource in the collision setting panel is selected, in response to a triggering operation on the gifting control 1502, the second terminal sends the selected virtual resource to the first terminal. The collision setting panel also displays a display area 1503 of the collision effect. The second terminal can display the collision effect of the selected virtual resource in the display area 1503 of the collision effect.
[0190] The disclosed embodiments provide an interactive method for a virtual space, in which an audience object can interact with a designated predetermined object in the virtual space by donating a virtual resource to a host object. That is, when an audience object donates a virtual resource to a host object, a first virtual resource can be displayed moving toward the predetermined object, which more clearly and explicitly reflects the interaction between the audience object and the predetermined object. When the first virtual resource collides with the predetermined object, a collision effect of the first virtual resource can be displayed, which more impactfully reflects the interactive effect between the audience object and the predetermined object. This not only enriches the interactive methods between the audience object and the predetermined object, but also the above-mentioned interactive methods are more interactive and can meet the audience object's expectations for interaction. Moreover, the collision effect of the first virtual resource can be displayed in the virtual space without the aid of a third-party tool, thereby saving the interactive cost between the audience object and the predetermined object.
[0191] Figure 16 FIG1 is a block diagram of an interactive device in a virtual space according to an exemplary embodiment. Figure 16 , the interactive devices in the virtual space include:
[0192] The first display unit 1601 is configured to, when a viewer object in the virtual space donates a first virtual resource to a host object in the virtual space, display, in the virtual space, that the first virtual resource moves toward a predetermined object in the virtual space;
[0193] The second display unit 1602 is configured to display a collision effect of the first virtual resource when the first virtual resource collides with a predetermined object, where the collision effect is used to indicate that the first virtual resource changes from a first form to a second form when colliding with the predetermined object.
[0194] In some embodiments, the first display unit 1601 is configured to identify a position of a predetermined object in the virtual space; and based on the position of the predetermined object, display the first virtual resource moving toward the predetermined object.
[0195] In some embodiments, the second display unit 1602 is configured to display the first virtual resource fragmented into multiple parts when the first virtual resource collides with a predetermined object.
[0196] In some embodiments, the second display unit 1602 is configured to display a deformation of the overall shape of the first virtual resource when the first virtual resource collides with a predetermined object.
[0197] In some embodiments, the second display unit 1602 is configured to display a change in the texture of the first virtual resource when the first virtual resource collides with a predetermined object.
[0198] In some embodiments, the first display unit 1601 is configured to display, in the virtual space, a plurality of first virtual resources moving toward predetermined objects respectively when the number of donated first virtual resources reaches a preset value;
[0199] The second display unit 1602 is configured to display a collision effect of any first virtual resource when the first virtual resource collides with a predetermined object.
[0200] In some embodiments, the second display unit 1602 is configured to perform:
[0201] Displaying a plurality of first virtual resources moving toward the front of a predetermined object; or,
[0202] Displaying a plurality of first virtual resources falling from top to bottom onto a predetermined object; or,
[0203] Displaying multiple first virtual resources thrown upward from bottom to the predetermined object; or,
[0204] Displaying a plurality of first virtual resources moving from the center of the virtual space to the surrounding areas and moving to the predetermined object; or
[0205] A plurality of first virtual resources are displayed moving from the periphery of the virtual space to a predetermined object at the center.
[0206] In some embodiments, the apparatus further comprises:
[0207] The third display unit is configured to be executed in the virtual space and display a progress bar of the first virtual resource, where the progress bar is used to indicate the amount of the first virtual resource donated by the audience object, and the maximum amount of resources indicated by the progress bar is equal to a preset value.
[0208] In some embodiments, the apparatus further comprises:
[0209] The fourth display unit is configured to display a space setting interface before the virtual space is opened, wherein a collision prompt control is displayed in the space setting interface, and the collision prompt control is used to prompt a predetermined object to turn on the collision effects of virtual resources in the virtual space; in response to the triggering operation of the collision prompt control, multiple virtual resources and a start control are displayed in the space setting interface, the multiple virtual resources are virtual resources with collision effects, and the start control is used to turn on the collision effects of multiple virtual resources; in response to the triggering operation of the start control, multiple collision effects are displayed in the space setting interface, and the movement trajectories of the virtual resources indicated by different collision effects are different.
[0210] In some embodiments, the apparatus further comprises:
[0211] The rendering unit is configured to execute, while presenting the first virtual resource to the anchor object, a collision effect of the first virtual resource and the second virtual resource in parallel if there is an action of presenting the second virtual resource to the anchor object in the virtual space.
[0212] In some embodiments, the second virtual resource is a virtual resource without a collision effect.
[0213] The rendering unit is configured to execute, while presenting a first virtual resource to the anchor object, if there is an act of presenting a second virtual resource to the anchor object in the virtual space, rendering the collision effect of the first virtual resource through the first rendering process and rendering the second virtual resource through the second rendering process. The first rendering process is used to render the virtual resource with the collision effect, and the second rendering process is used to render the virtual resource without the collision effect according to the order in which the virtual resources are presented.
[0214] In some embodiments, the second virtual resource is a virtual resource with a collision effect.
[0215] The rendering unit is configured to execute, while presenting the first virtual resource to the anchor object, if there is an act of presenting the second virtual resource to the anchor object in the virtual space, the collision effect of the first virtual resource and the collision effect of the second virtual resource in parallel through the first rendering process, and the first rendering process is used to render the virtual resource with the collision effect.
[0216] In some embodiments, the rendering unit includes:
[0217] A first rendering sub-unit is configured to execute, through a first rendering thread in a first rendering process, rendering a collision effect of a first virtual resource;
[0218] The second rendering sub-unit is configured to execute, through the second rendering thread in the first rendering process, rendering the collision effect of the second virtual resource, and the first rendering thread and the second rendering thread are executed in parallel.
[0219] In some embodiments, the second display unit 1602 is further configured to, while executing the act of presenting the first virtual resource to the anchor object, present the second virtual resource to the anchor object in the virtual space, while displaying the collision effect of the first virtual resource in the virtual space, display the second virtual resource, and the second virtual resource is a virtual resource without a collision effect or a virtual resource with a collision effect.
[0220] The disclosed embodiments provide an interactive device for a virtual space, in which an audience object can interact with a designated predetermined object in the virtual space by donating a virtual resource to a host object. That is, when an audience object donates a virtual resource to a host object, a first virtual resource can be displayed moving toward the predetermined object, which more clearly and explicitly reflects the interaction between the audience object and the predetermined object. When the first virtual resource collides with the predetermined object, a collision effect of the first virtual resource can be displayed, which more impactfully reflects the interactive effect between the audience object and the predetermined object. This not only enriches the interactive methods between the audience object and the predetermined object, but also the above-mentioned interactive methods are more interactive and can meet the audience object's expectations for interaction. Moreover, the collision effect of the first virtual resource can be displayed in the virtual space without the aid of a third-party tool, thereby saving the interaction cost between the audience object and the predetermined object.
[0221] It should be noted that the aforementioned embodiments of the interactive virtual space device, in which the interaction between an audience object and a predetermined object occurs, illustrate the division of the aforementioned functional units. In actual applications, the aforementioned functions can be assigned to different functional units as needed, i.e., the internal structure of the electronic device can be divided into different functional units to perform all or part of the functions described above. Furthermore, the aforementioned embodiments of the interactive virtual space device and the embodiments of the interactive virtual space method are conceptually identical. Their specific implementation is detailed in the method embodiments and will not be further elaborated here.
[0222] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0223] Figure 17 FIG2 is a block diagram of another interactive device in a virtual space according to an exemplary embodiment. Figure 17 , the interactive devices in the virtual space include:
[0224] The first display unit 1701 is further configured to execute a first gift control for displaying a first virtual resource in the virtual space, where the first gift control is used to gift a first virtual resource to the anchor object in the virtual space each time it is triggered;
[0225] The second display unit 1702 is further configured to execute, in response to a triggering operation on the first gift control, displaying, in the virtual space, the first virtual resource moving toward a predetermined object in the virtual space;
[0226] The third display unit 1703 is further configured to display a collision effect of the first virtual resource when the first virtual resource collides with a predetermined object, where the collision effect is used to indicate that the first virtual resource changes from a first form to a second form when colliding with the predetermined object.
[0227] In some embodiments, the second display unit 1702 is further configured to execute a second gift control for displaying the first virtual resource in the virtual space when the number of gifted first virtual resources reaches a preset value, and the second gift control is used to gift multiple first virtual resources to the anchor object each time it is triggered; in response to the triggering operation of the second gift control, multiple first virtual resources are displayed in the virtual space and move toward the predetermined object.
[0228] In some embodiments, the second display unit 1702 is further configured to execute, in response to a triggering operation on the second gift control, displaying the plurality of first virtual resources moving from a predetermined position to a predetermined object in the virtual space.
[0229] In some embodiments, the third display unit 1703 is further configured to execute, while presenting the first virtual resource to the anchor object, if there is an act of presenting the second virtual resource to the anchor object in the virtual space, a collision effect of the first virtual resource and the second virtual resource are rendered in parallel, and the second virtual resource is a virtual resource without a collision effect or a virtual resource with a collision effect.
[0230] The disclosed embodiments provide an interactive device for a virtual space, in which an audience object can interact with a designated predetermined object in the virtual space by donating a virtual resource to a host object. That is, when an audience object donates a virtual resource to a host object, a first virtual resource can be displayed moving toward the predetermined object, which more clearly and explicitly reflects the interaction between the audience object and the predetermined object. When the first virtual resource collides with the predetermined object, a collision effect of the first virtual resource can be displayed, which more impactfully reflects the interactive effect between the audience object and the predetermined object. This not only enriches the interactive methods between the audience object and the predetermined object, but also the above-mentioned interactive methods are more interactive and can meet the audience object's expectations for interaction. Moreover, the collision effect of the first virtual resource can be displayed in the virtual space without the aid of a third-party tool, thereby saving the interaction cost between the audience object and the predetermined object.
[0231] Figure 18is a structural block diagram of a terminal 1800 according to an embodiment of the present application. The terminal 1800 can be a portable mobile terminal such as a smartphone, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a notebook computer or a desktop computer. The terminal 1800 can also be referred to as a user equipment, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0232] Generally, the terminal 1800 includes a processor 1801 and a memory 1802.
[0233] The processor 1801 can include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1801 can be implemented in at least one of a hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), a PLA (Programmable Logic Array). The processor 1801 can also include a main processor and a coprocessor, the main processor being a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit), and the coprocessor being a low-power processor for processing data in a standby state. In some embodiments, the processor 1801 can be integrated with a GPU (Graphics Processing Unit) for rendering and drawing content required to be displayed by a display screen. In some embodiments, the processor 1801 can further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
[0234] The memory 1802 can include one or more computer-readable storage media that can be non-transitory. The memory 1802 can also include a high-speed random access memory and a non-volatile memory such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1802 is used to store at least one computer program for being executed by the processor 1801 to implement the interaction method in a virtual space provided by the method embodiments.
[0235] In some embodiments, terminal 1800 may optionally include a peripheral device interface 1803 and at least one peripheral device. The processor 1801, memory 1802, and peripheral device interface 1803 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1803 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 1804, a display screen 1805, a camera assembly 1806, an audio circuit 1807, and a power supply 1808.
[0236] The peripheral device interface 1803 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1801 and the memory 1802. In some embodiments, the processor 1801, the memory 1802, and the peripheral device interface 1803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1801, the memory 1802, and the peripheral device interface 1803 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0237] RF circuit 1804 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. RF circuit 1804 communicates with communication networks and other communication devices via electromagnetic signals. RF circuit 1804 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. In some embodiments, RF circuit 1804 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. RF circuit 1804 can communicate with other terminals via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, RF circuit 1804 may also include circuitry related to Near Field Communication (NFC), although this application does not limit this.
[0238] The display screen 1805 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1805 is a touch screen display, the display screen 1805 also has the ability to collect touch signals on the surface or above the surface of the display screen 1805. The touch signal can be input as a control signal to the processor 1801 for processing. At this time, the display screen 1805 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, there can be one display screen 1805, which is set on the front panel of the terminal 1800; in other embodiments, there can be at least two display screens 1805, which are respectively set on different surfaces of the terminal 1800 or in a folding design; in other embodiments, the display screen 1805 can be a flexible display screen, which is set on the curved surface or folding surface of the terminal 1800. Even more, the display screen 1805 can be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1805 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0239] The camera assembly 1806 is used to capture images or videos. In some embodiments, the camera assembly 1806 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1806 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0240] The audio circuit 1807 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input into the processor 1801 for processing, or input into the radio frequency circuit 1804 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, each located in different parts of the terminal 1800. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 1801 or the radio frequency circuit 1804 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1807 may also include a headphone jack.
[0241] Power supply 1808 is used to power various components in terminal 1800. Power supply 1808 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 1808 includes a rechargeable battery, the rechargeable battery can be wired or wirelessly rechargeable. A wired rechargeable battery is charged via a wired line, while a wireless rechargeable battery is charged via a wireless coil. The rechargeable battery can also support fast charging technology.
[0242] In some embodiments, the terminal 1800 further includes one or more sensors 1809 , including but not limited to: an acceleration sensor 1810 , a gyroscope sensor 1811 , a pressure sensor 1812 , an optical sensor 1813 , and a proximity sensor 1814 .
[0243] The accelerometer 1810 can detect the magnitude of acceleration along the three coordinate axes of the coordinate system established by the terminal 1800. For example, the accelerometer 1810 can be used to detect the components of gravity acceleration along the three coordinate axes. The processor 1801 can control the display screen 1805 to display the user interface in either a landscape or portrait view based on the gravity acceleration signal collected by the accelerometer 1810. The accelerometer 1810 can also be used to collect game or user motion data.
[0244] The gyroscope sensor 1811 can detect the orientation and rotation angle of the terminal 1800. It can also work with the accelerometer 1810 to collect the user's 3D movements on the terminal 1800. Based on the data collected by the gyroscope sensor 1811, the processor 1801 can implement the following functions: motion sensing (for example, changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.
[0245] The pressure sensor 1812 can be provided on the side frame of the terminal 1800 and / or below the display screen 1805. When the pressure sensor 1812 is provided on the side frame of the terminal 1800, it can detect the user's gripping signal of the terminal 1800. The processor 1801 then performs left-hand or right-hand recognition or shortcut operations based on the gripping signal collected by the pressure sensor 1812. When the pressure sensor 1812 is provided below the display screen 1805, the processor 1801 controls the operable controls on the UI interface based on the user's pressure operation on the display screen 1805. Operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0246] Optical sensor 1813 is used to detect ambient light intensity. In one embodiment, processor 1801 can control the display brightness of display screen 1805 based on the ambient light intensity detected by optical sensor 1813. Specifically, when the ambient light intensity is high, the display brightness of display screen 1805 is increased; when the ambient light intensity is low, the display brightness of display screen 1805 is decreased. In another embodiment, processor 1801 can also dynamically adjust the shooting parameters of camera assembly 1806 based on the ambient light intensity detected by optical sensor 1813.
[0247] Proximity sensor 1814, also known as a distance sensor, is typically located on the front panel of terminal 1800. Proximity sensor 1814 is used to detect the distance between the user and the front of terminal 1800. In one embodiment, when proximity sensor 1814 detects that the distance between the user and the front of terminal 1800 is gradually decreasing, processor 1801 controls display screen 1805 to switch from the screen-on state to the screen-off state. When proximity sensor 1814 detects that the distance between the user and the front of terminal 1800 is gradually increasing, processor 1801 controls display screen 1805 to switch from the screen-off state to the screen-on state.
[0248] Those skilled in the art will understand that Figure 18 The structure shown in the figure does not constitute a limitation on the terminal 1800, and the terminal 1800 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0249] Figure 19This is a structural diagram of a server provided according to an embodiment of the present application. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1901 and one or more memories 1902, wherein the memory 1902 stores at least one computer program, and the at least one computer program is loaded and executed by the processor 1901 to implement the voice control method provided by the above-mentioned various method embodiments. Of course, the server 1900 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 1900 may also include other components for implementing device functions, which will not be described in detail here.
[0250] In an exemplary embodiment, a computer-readable storage medium including instructions is further provided, such as memory 1802 or memory 1902 including instructions. The instructions may be executed by processor 1801 of terminal 1800 or processor 1901 of server 1900 to perform the above method. Alternatively, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0251] A computer program product includes a computer program / instruction, which implements the above-mentioned interactive method in the virtual space when executed by a processor.
[0252] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0253] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An interactive method in a virtual space, characterized in that: The method comprises: When a viewer object in a virtual space donates a first virtual resource to a host object in the virtual space, the first virtual resource is displayed in the virtual space as moving toward a predetermined object in the virtual space, and the first virtual resource can follow the predetermined object; When the first virtual resource collides with the predetermined object, a collision effect of the first virtual resource is displayed, wherein the collision effect is used to indicate that the first virtual resource changes from a first form to a second form when colliding with the predetermined object; When the number of the first virtual resources donated in the virtual space reaches a preset value, the multiple first virtual resources that have been donated are displayed again in the virtual space and move toward the predetermined object at the same time. When any of the multiple first virtual resources collides with the predetermined object, the collision effect of the first virtual resource is displayed.
2. The interactive method in a virtual space according to claim 1, characterized in that: The displaying the first virtual resource moving toward a predetermined object in the virtual space includes: identifying a position of the predetermined object in the virtual space; Based on the position of the predetermined object, the first virtual resource is displayed moving toward the predetermined object.
3. The interactive method in virtual space according to claim 1, characterized in that: The displaying of a collision effect of the first virtual resource when the first virtual resource collides with the predetermined object includes: In the case where the first virtual resource collides with the predetermined object, the first virtual resource is displayed as being fragmented into a plurality of parts.
4. The method for interacting in a virtual space according to claim 1, wherein when the first virtual resource collides with the predetermined object, displaying a collision effect of the first virtual resource comprises: When the first virtual resource collides with the predetermined object, the overall shape of the first virtual resource is displayed to be deformed.
5. The method for interacting in a virtual space according to claim 1, wherein when the first virtual resource collides with the predetermined object, displaying a collision effect of the first virtual resource comprises: When the first virtual resource collides with the predetermined object, the texture of the first virtual resource is changed.
6. The interactive method in a virtual space according to claim 1, characterized in that: The display of the donated plurality of first virtual resources being simultaneously moved to the predetermined object includes at least one of the following: Displaying the plurality of first virtual resources moving toward the front of the predetermined object; or Displaying a plurality of the first virtual resources falling from top to bottom onto the predetermined object; or, Displaying a plurality of the first virtual resources thrown upward onto the predetermined object; or Displaying the plurality of first virtual resources moving from the center of the virtual space to the surrounding areas and moving to the predetermined object; or The plurality of first virtual resources are displayed moving from the periphery of the virtual space toward the predetermined object at the center.
7. The interactive method in a virtual space according to claim 1, characterized in that: The method further comprises: In the virtual space, a progress bar of the first virtual resource is displayed, wherein the progress bar is used to indicate the amount of the first virtual resource donated by the audience object, and the maximum amount of resources indicated by the progress bar is equal to a preset value.
8. The interactive method in a virtual space according to claim 1, characterized in that: The method further comprises: Before the virtual space is opened, a space setting interface is displayed, wherein a collision prompt control is displayed in the space setting interface, and the collision prompt control is used to prompt the predetermined object to open a collision effect of virtual resources in the virtual space; In response to a triggering operation on the collision prompt control, a plurality of virtual resources and a start control are displayed in the space setting interface, the plurality of virtual resources being virtual resources with collision effects, and the start control being used to turn on the collision effects of the plurality of virtual resources; In response to a triggering operation on the start control, a plurality of collision effects are displayed in the space setting interface, and different collision effects indicate different movement trajectories of the virtual resources.
9. The interactive method in a virtual space according to claim 1, characterized in that: The method further comprises: While the first virtual resource is being presented to the anchor object, if there is an action of presenting a second virtual resource to the anchor object in the virtual space, a collision effect of the first virtual resource and the second virtual resource are rendered in parallel.
10. The interactive method in a virtual space according to claim 9, characterized in that: The second virtual resource is a virtual resource without collision effects; The step of simultaneously presenting the first virtual resource to the anchor object and presenting the second virtual resource to the anchor object in the virtual space includes: While the first virtual resource is being presented to the anchor object, if there is an act of presenting the second virtual resource to the anchor object in the virtual space, a collision effect of the first virtual resource is rendered by a first rendering process, and the second virtual resource is rendered by a second rendering process. The first rendering process is used to render virtual resources with collision effects, and the second rendering process is used to render virtual resources without collision effects according to the order in which the virtual resources are presented.
11. The interactive method in a virtual space according to claim 9, characterized in that: The second virtual resource is a virtual resource with a collision effect; The step of simultaneously presenting the first virtual resource to the anchor object and presenting the second virtual resource to the anchor object in the virtual space includes: While the first virtual resource is being presented to the anchor object, if there is an act of presenting the second virtual resource to the anchor object in the virtual space, a collision effect of the first virtual resource and a collision effect of the second virtual resource are rendered in parallel by a first rendering process, and the first rendering process is used to render virtual resources with collision effects.
12. The interactive method in a virtual space according to claim 11, characterized in that: The rendering of the collision effect of the first virtual resource and the collision effect of the second virtual resource in parallel by the first rendering process includes: Rendering a collision effect of the first virtual resource through a first rendering thread in the first rendering process; The collision effect of the second virtual resource is rendered by the second rendering thread in the first rendering process, and the first rendering thread and the second rendering thread are executed in parallel.
13. The interactive method in a virtual space according to claim 1, characterized in that: The method further comprises: While the first virtual resource is being presented to the anchor object, if there is an act of presenting the second virtual resource to the anchor object in the virtual space, the second virtual resource is displayed in the virtual space while displaying the collision effect of the first virtual resource. The second virtual resource is a virtual resource without a collision effect or a virtual resource with a collision effect.
14. An interactive method in a virtual space, characterized in that: The method comprises: Displaying a first gift control for a first virtual resource in the virtual space, wherein the first gift control is used to give one of the first virtual resources to the anchor object in the virtual space each time when the first gift control is triggered; In response to a triggering operation on the first gift control, in the virtual space, the first virtual resource is displayed to move toward a predetermined object in the virtual space, and the first virtual resource is capable of following the predetermined object; When the first virtual resource collides with the predetermined object, a collision effect of the first virtual resource is displayed, wherein the collision effect is used to indicate that the first virtual resource changes from a first form to a second form when colliding with the predetermined object; When the number of the first virtual resources donated in the virtual space reaches a preset value, the multiple first virtual resources that have been donated are displayed again in the virtual space and move toward the predetermined object at the same time. When any of the multiple first virtual resources collides with the predetermined object, the collision effect of the first virtual resource is displayed.
15. The interactive method in a virtual space according to claim 14, characterized in that: In response to the triggering operation on the first gift control, displaying, in the virtual space, the first virtual resource moving toward a predetermined object in the virtual space includes: When the number of the donated first virtual resources reaches a preset value, a second donation control for the first virtual resources is displayed in the virtual space, wherein the second donation control is used to donate a plurality of the first virtual resources to the anchor object each time when the second donation control is triggered; In response to a triggering operation on the second gift control, a plurality of the first virtual resources are displayed in the virtual space, moving toward the predetermined object.
16. The interactive method in a virtual space according to claim 15, characterized in that: In response to the triggering operation of the second gift control, displaying the plurality of first virtual resources moving toward the predetermined object in the virtual space includes: In response to a triggering operation on the second gift control, the plurality of first virtual resources are displayed in the virtual space moving from a predetermined position to the predetermined object.
17. The interactive method in a virtual space according to claim 14, characterized in that: The method further comprises: While the first virtual resource is being presented to the anchor object, if there is an act of presenting a second virtual resource to the anchor object in the virtual space, the collision effect of the first virtual resource and the second virtual resource are rendered in parallel, and the second virtual resource is a virtual resource without a collision effect or a virtual resource with a collision effect.
18. An interactive device in a virtual space, characterized in that: The device comprises: The first display unit is configured to, when a viewer object in a virtual space presents a first virtual resource to a host object in the virtual space, display, in the virtual space, that the first virtual resource moves toward a predetermined object in the virtual space, and that the first virtual resource can follow the movement of the predetermined object; a second display unit configured to display a collision effect of the first virtual resource when the first virtual resource collides with the predetermined object, the collision effect being used to indicate that the first virtual resource changes from a first form to a second form when colliding with the predetermined object; The first display unit is further configured to, when the number of the first virtual resources donated in the virtual space reaches a preset value, display the first virtual resources donated again in the virtual space and move them toward the predetermined object simultaneously; The second display unit is further configured to display a collision effect of the first virtual resource when any of the plurality of first virtual resources collides with the predetermined object.
19. An interactive device in a virtual space, characterized in that: The device comprises: A first display unit is configured to execute a first gift control for displaying a first virtual resource in a virtual space, wherein the first gift control is used to gift one of the first virtual resources to a host object in the virtual space each time the first gift control is triggered; a second display unit configured to, in response to a triggering operation on the first gift control, display, in the virtual space, the first virtual resource moving toward a predetermined object in the virtual space, and the first virtual resource being able to move along with the predetermined object; a third display unit configured to display a collision effect of the first virtual resource when the first virtual resource collides with the predetermined object, the collision effect being used to indicate that the first virtual resource changes from a first form to a second form when colliding with the predetermined object; The second display unit is further configured to, when the number of the first virtual resources donated in the virtual space reaches a preset value, display the first virtual resources donated again in the virtual space and move them toward the predetermined object at the same time; The third display unit is further configured to display a collision effect of the first virtual resource when any of the plurality of first virtual resources collides with the predetermined object.
20. An electronic device, characterized in that: The electronic device comprises: one or more processors; a memory for storing program code executable by the processor; The processor is configured to execute the program code to implement the interactive method in a virtual space as claimed in any one of claims 1 to 17.
21. A computer-readable storage medium, characterized in that When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the interactive method in a virtual space as described in any one of claims 1 to 17.
22. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the interactive method in a virtual space according to any one of claims 1 to 17 is implemented.
Citation Information
Patent Citations
Live broadcast room virtual gift interaction method, electronic device and device
CN111083505A