Bullet screen display method and device, electronic equipment, storage medium and program product

By determining the target scene depth and rendering parameters based on the rendering information of the barrage content in the 3D scene, the problem of wasted rendering resources in the 3D scene is solved, achieving efficient rendering and improving the visual experience.

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

Patent Information

Application Number
CN202411110018.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

When the existing technology renders barrages into three-dimensional objects in a three-dimensional scene, it leads to waste and excessive consumption of rendering resources, which cannot be effectively reduced.

Method used

By using the rendering information based on the barrage content in the three-dimensional scene, the target scene depth is determined from multiple scene depths, and the rendering parameters corresponding to the target scene depth are used for rendering processing to reduce excessive consumption and waste of rendering resources and optimize rendering performance. .

Benefits of technology

It achieves efficient rendering of barrage in three-dimensional scenes, reduces resource consumption, improves the overall visual experience and rendering efficiency, and enhances the three-dimensional effect of barrage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828098A_ABST
    Figure CN118828098A_ABST
Patent Text Reader

Abstract

The invention discloses a bullet screen display method and device, electronic equipment, a storage medium and a program product. The method comprises the steps of displaying a three-dimensional scene; based on bullet screen input operation on the three-dimensional scene, the input bullet screen content is displayed at the target scene depth of the three-dimensional scene with the rendering effect corresponding to the target scene depth, and the target scene depth is determined from multiple scene depths based on the rendering information of the input bullet screen content. In the application, the depth of the scene displayed by the barrage and the corresponding rendering effect are determined based on the rendering information of the barrage, so that hierarchical display of different barrages and application of different rendering effects can be realized according to the rendering information of the barrage. The hierarchical display mode not only can enhance the three-dimensional effect of different barrages, improve the overall visual experience, and render the barrages with different rendering effects for different levels, but also can optimize the performance consumption of rendering different barrages so as to reduce the excessive consumption and waste of rendering resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a bullet screen display method, device, electronic device, storage medium and program product. Background Art

[0002] In ordinary video scenes, bullet comments have become an indispensable function. In existing three-dimensional scenes, bullet comments are usually rendered in a plane in a similar way to ordinary video scenes. The bullet comments rendered in this way have no three-dimensional effect. However, if the bullet comments in the three-dimensional scene are converted from two-dimensional to three-dimensional objects for rendering, although the three-dimensional effect of the bullet comments can be increased, the rendering process will occupy a large amount of rendering overhead, resulting in a waste of rendering resources. Summary of the invention

[0003] The embodiments of the present application provide a bullet screen display method, device, electronic device, storage medium and program product, which can improve and reduce excessive consumption and waste of rendering resources.

[0004] The embodiment of the present application provides a bullet-screen display method, comprising: displaying a three-dimensional scene; based on a bullet-screen input operation on the three-dimensional scene, displaying the input bullet-screen content at a target scene depth of the three-dimensional scene with a rendering effect corresponding to the target scene depth, wherein the target scene depth is determined from a plurality of scene depths based on rendering information of the input bullet-screen content;

[0005] An embodiment of the present application also provides a barrage display device, including: a display unit for displaying a three-dimensional scene; the display unit is also used to display the input barrage content at a target scene depth of the three-dimensional scene based on a barrage input operation on the three-dimensional scene, with a rendering effect corresponding to the target scene depth, wherein the target scene depth is determined from multiple scene depths based on rendering information of the input barrage content.

[0006] In some embodiments, based on the barrage input operation on the three-dimensional scene, the input barrage content is displayed at the target scene depth of the three-dimensional scene with a rendering effect corresponding to the target scene depth, including: based on the barrage input operation on the three-dimensional scene, obtaining the rendering information of the input barrage content; determining the target scene depth from multiple scene depths according to the rendering information of the input barrage content, and the multiple scene depths correspond to different rendering parameters; using the rendering parameters corresponding to the target scene depth, rendering the input barrage content to display the input barrage content at the target scene depth of the three-dimensional scene with the rendering effect corresponding to the target scene depth.

[0007] In some embodiments, the rendering information includes rendering load, and determining the target scene depth from multiple scene depths based on the rendering information of the input barrage content includes: obtaining a load threshold condition of the scene depth; when the rendering load of the input barrage content satisfies the load threshold condition of any of the scene depths, determining any of the scene depths as the target scene depth.

[0008] In some embodiments, when the rendering load of the input barrage content meets the load threshold condition of any of the scene depths, any of the scene depths is determined as the target scene depth, including: when the rendering load of the input barrage content meets the load threshold condition of any of the scene depths, obtaining the remaining rendering load of any of the scene depths; when the rendering load of the input barrage content meets the remaining rendering load of any of the scene depths, determining any of the scene depths as the target scene depth.

[0009] In some embodiments, when the rendering load of the input barrage content meets the load threshold condition of any of the scene depths, before obtaining the remaining rendering load of any of the scene depths, it also includes: obtaining the rendering load of the barrage content to be rendered at the scene depth, where the barrage content to be rendered refers to the barrage content waiting for rendering processing corresponding to the scene depth; determining the remaining rendering load of the scene depth according to the rendering load of the barrage content to be rendered and the rendering load upper limit of the scene depth;

[0010] When the rendering load of the input barrage content meets the load threshold condition of any of the scene depths, determining any of the scene depths as the target scene depth also includes: using the input barrage content as the barrage content to be rendered at the target scene depth.

[0011] In some embodiments, when the rendering load of the input barrage content meets the load threshold condition of any of the scene depths, any of the scene depths is determined as the target scene depth, and also includes: when the rendering load of the input barrage content does not meet the remaining rendering load of any of the scene depths, based on the rendering priority of any of the scene depths, determining a to-be-selected scene depth from the multiple scene depths, the rendering priority being related to the rendering parameters; obtaining the remaining rendering load of the to-be-selected scene depth; when the rendering load of the input barrage content meets the remaining rendering load of the to-be-selected scene depth, determining the to-be-selected scene depth as the target scene depth.

[0012] In some embodiments, the rendering information of the input barrage content is obtained based on the barrage input operation on the three-dimensional scene, including: based on the barrage input operation on the three-dimensional scene, obtaining the barrage length, the number of special effects and the barrage survival time of the input barrage content; and determining the rendering load of the input barrage content in combination with the barrage length, the number of special effects and the barrage survival time.

[0013] In some embodiments, the display unit is also used to: when the observation line of sight of the three-dimensional scene is adjusted, display the input barrage content based on the adjusted rendering effect, and the adjusted rendering effect is obtained by adjusting the rendering effect corresponding to the depth of the target scene based on the adjusted observation line of sight.

[0014] In some embodiments, when the observation line of sight of the three-dimensional scene is adjusted, the input barrage content is displayed based on the adjusted rendering effect, including: when the observation line of sight of the three-dimensional scene is adjusted, obtaining a line of sight adjustment angle, and the line of sight adjustment angle is determined based on the adjusted observation line of sight; based on the line of sight adjustment angle, determining a rotation angle of the input barrage content; according to the rotation angle, adjusting the rendering effect corresponding to the depth of the target scene to obtain the adjusted rendering effect; in the three-dimensional scene, displaying the input barrage content with the adjusted rendering effect.

[0015] In some embodiments, determining the rotation angle of the input barrage content based on the line of sight adjustment angle includes: determining the basic rotation angle of the input barrage content based on the line of sight adjustment angle; adjusting the basic rotation angle based on rendering constraint parameters to obtain the rotation angle of the input barrage content.

[0016] In some implementations, before adjusting the rendering effect corresponding to the target scene depth according to the rotation angle to obtain the adjusted rendering effect, the method further includes: when the rotation angle exceeds an angle threshold, using the angle threshold as the rotation angle.

[0017] An embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores instructions; the processor loads the instructions from the memory to execute the steps in any one of the bullet screen display methods provided in the embodiments of the present application.

[0018] An embodiment of the present application also provides a computer-readable storage medium, which stores instructions, and the instructions are suitable for a processor to load to execute the steps in any barrage display method provided in the embodiment of the present application.

[0019] An embodiment of the present application also provides a computer program product, including instructions, which, when executed by a processor, implement the steps of any barrage display method provided in the embodiment of the present application.

[0020] The embodiment of the present application can display a three-dimensional scene; based on the barrage input operation on the three-dimensional scene, the input barrage content is displayed at the target scene depth of the three-dimensional scene with the rendering effect corresponding to the target scene depth, and the target scene depth is determined from multiple scene depths based on the rendering information of the input barrage content.

[0021] In the present application, the input barrage content is displayed in a three-dimensional scene based on the scene depth, so that the barrage content can be integrated into the three-dimensional scene in combination with the three-dimensional scene depth, rather than simply superimposed on the display screen of the three-dimensional scene, to enhance the three-dimensional effect of the barrage. Among them, the scene depth and the corresponding rendering effect displayed are determined based on the rendering information of the barrage, so that different barrages can be displayed in layers and different rendering effects can be applied according to the rendering information of the barrage. This hierarchical display method can not only enhance the three-dimensional effect of different barrages and enhance the overall visual experience, but also render barrages with different rendering effects at different levels, and optimize the performance consumption of rendering different barrages to reduce excessive consumption and waste of rendering resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1a It is a scene schematic diagram of the bullet screen display method provided in an embodiment of the present application;

[0024] Figure 1b It is a flowchart of the bullet screen display method provided in an embodiment of the present application;

[0025] Figure 1c is a schematic diagram of a bullet screen display in a three-dimensional scene provided by an embodiment of the present application;

[0026] Figure 1d This is a schematic diagram of adjusting the observation sight line provided in an embodiment of the present application;

[0027] Figure 2a is a flowchart of a bullet screen display method provided by another embodiment of the present application;

[0028] Figure 2b is a flowchart of another bullet screen display method provided by another embodiment of the present application;

[0029] Figure 3 It is a structural schematic diagram of a bullet screen display device provided in an embodiment of the present application;

[0030] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0032] Embodiments of the present application provide a bullet screen display method, device, electronic device, storage medium and program product.

[0033] The bullet screen display device can be integrated into an electronic device, which can be a terminal, a server, or other devices. The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, or a desktop computer, a smart home, a smart car, an XR device, or other devices; the server can be a single server, or a server cluster or a cloud server composed of multiple servers.

[0034] In some embodiments, the barrage display device can also be integrated into multiple electronic devices. For example, the barrage display device can be integrated into multiple servers, and the barrage display method of the present application can be implemented by multiple servers.

[0035] In some embodiments, the terminal may also be used as a server to implement part or all of the functions of the server.

[0036] For example, refer to Figure 1a The barrage display method is integrated in a terminal, which may be an XR device, and which may display a three-dimensional scene; based on a barrage input operation on the three-dimensional scene, the input barrage content is displayed at a target scene depth of the three-dimensional scene with a rendering effect corresponding to the target scene depth, and the target scene depth is determined from multiple scene depths based on rendering information of the input barrage content.

[0037] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0038] The following are detailed descriptions. It should be noted that the order of the following embodiments is not intended to limit the preferred order of the embodiments. It is understandable that in the specific implementation of the present application, it involves user-related data such as barrage input operations and barrage content. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0039] In this embodiment, a bullet screen display method is provided, such as Figure 1b As shown, the specific process of the bullet screen display method can be as follows:

[0040] 110. Display a three-dimensional scene.

[0041] The three-dimensional scene is a scene created and displayed in a three-dimensional space. The three-dimensional scene can be completely virtual or a combination of virtual and real, which is not limited in this application and depends on the application scenario and specific needs.

[0042] In some embodiments, the three-dimensional scene may be a scene realized based on one or more extended reality (XR) technologies such as virtual reality (VR), augmented reality (AR), and mixed reality (MR). In this way, the user can immersively experience the three-dimensional scene through XR devices such as virtual reality glasses, helmets, or displays.

[0043] For example, the three-dimensional scene can be completely virtual, such as generated by computer graphics technology and presented in virtual reality (VR). In this case, the user can immerse himself in a completely virtual three-dimensional environment through a VR device (such as a head-mounted display). Alternatively, the three-dimensional scene can also be a scene created and displayed based on a three-dimensional space in the real world. In this case, virtual objects can be superimposed on the scene of the user's real field of view through augmented reality (AR) or mixed reality (MR) technology, interacting with the surrounding real objects and environment.

[0044] The embodiments of the present application can be implemented by a terminal, or by a terminal and a server. When implemented by a terminal alone, the terminal can be a terminal device such as an XR device that can display and render a three-dimensional scene. When implemented by a terminal and a server, the terminal can be a terminal device such as an XR device that can render and display a three-dimensional scene, or it can be a traditional device such as a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, or a desktop computer, a smart home, a smart car, etc., which is a non-XR device. The traditional device can display the display screen of the three-dimensional scene, but does not have the ability to render the three-dimensional scene, so the server is required to perform the rendering process.

[0045] 120. Based on the barrage input operation on the three-dimensional scene, the input barrage content is displayed at the target scene depth of the three-dimensional scene with a rendering effect corresponding to the target scene depth, and the target scene depth is determined from multiple scene depths based on the rendering information of the input barrage content.

[0046] Among them, the barrage input operation refers to the operation of inputting barrage to the three-dimensional scene, and the barrage input operation can be used to input and send barrage in the three-dimensional scene, so that when watching the display screen related to the three-dimensional scene, the barrage can be seen displayed in the three-dimensional scene. For example, the barrage input operation may include but is not limited to one or more methods such as clicks, shortcut keys, gesture operations, and voice commands. For example, a user can watch the display screen of the three-dimensional scene through a terminal, and input barrage content in the form of text, symbols, images, or animations through the terminal, so that the input barrage content is immediately displayed in a specific area of ​​the display screen for other viewers to see. This application does not limit the form of the barrage content, and can be set according to actual needs or application scenarios.

[0047] Among them, rendering information refers to information related to the rendering process. In an embodiment of the present application, the rendering information may include data or parameters that affect rendering performance indicators such as rendering picture quality, rendering speed, and system resource utilization. For example, rendering information may include but is not limited to a combination of one or more of text content, position and motion trajectory, display time, style and special effects. In an embodiment of the present application, the rendering information can be determined by one or more methods such as system settings, user settings, or settings based on the content of the bullet screen.

[0048] The scene depth refers to the depth distance from the viewpoint of an observer, such as a user or a camera, to the position in the three-dimensional scene. For example, in a three-dimensional scene, the X-axis represents the horizontal space, the Y-axis represents the vertical space, and the Z-axis represents the depth. In this way, the Z-axis distance from the viewpoint of the observer to any position in the three-dimensional scene can be used as the scene depth of the arbitrary position. The target scene depth refers to the scene depth corresponding to the rendering information of the input bullet content.

[0049] Among them, the rendering effect refers to the visual effect of the rendered bullet screen, and the rendering effect can represent the visual effect of rendering presentation by different rendering parameters such as fonts and styles, animation effects, backgrounds and shadows, transparency, image resolution, etc. In the embodiment of the present application, the rendering effect is related to the rendering overhead, and a good rendering effect requires a higher rendering overhead to achieve. For example, for complex animation effects or high-resolution images, higher computing resources are required for rendering.

[0050] For example, in a three-dimensional scene, multiple locations with different scene depths can be pre-specified for displaying bullet chat content, and the multiple different scene depths can correspond to different rendering effects, so that the terminal can display the bullet chat content at different scene depths based on different rendering effects. Figure 1c The schematic diagram of barrage display in the three-dimensional scene shown can set barrage layer 1 to barrage layer 3 respectively at specified multiple (such as three) different scene depths, and the barrage content can be displayed in the corresponding barrage layer such as barrage layer 3 with the rendering effect corresponding to the corresponding scene depth.

[0051] In an embodiment of the present application, the input barrage content is displayed in a three-dimensional scene based on the scene depth, so that the barrage content can be integrated into the three-dimensional scene in combination with the three-dimensional scene depth, rather than simply superimposed on the display screen of the three-dimensional scene, to enhance the three-dimensional effect of the barrage. Among them, the scene depth and the corresponding rendering effect displayed are determined based on the rendering information of the barrage, so that different barrages can be displayed in layers and different rendering effects can be applied according to the rendering information of the barrage. This hierarchical display method can not only enhance the three-dimensional effect of different barrages and enhance the overall visual experience, render barrages with different rendering effects at different levels, but also optimize the performance consumption of rendering different barrages to reduce excessive consumption and waste of rendering resources.

[0052] In some implementations, the input bullet-chat content can be rendered according to the rendering parameters corresponding to the target scene depth, so that the rendering effect corresponds to the scene depth, and hierarchical display of different bullet-chat and application of different rendering effects can be achieved. Specifically, based on the bullet-chat input operation of the three-dimensional scene, the input bullet-chat content is displayed at the target scene depth of the three-dimensional scene with the rendering effect corresponding to the target scene depth, including:

[0053] Based on the bullet screen input operation on the three-dimensional scene, the rendering information of the input bullet screen content is obtained;

[0054] According to the rendering information of the input bullet comment content, a target scene depth is determined from multiple scene depths, and the multiple scene depths correspond to different rendering parameters;

[0055] The input barrage content is rendered using rendering parameters corresponding to the target scene depth, so as to display the input barrage content at the target scene depth of the three-dimensional scene with a rendering effect corresponding to the target scene depth.

[0056] The rendering parameters refer to the parameters that affect the rendering effect, such as font and style, animation effect, background and shadow, transparency, image resolution, display angle, etc. That is, different rendering parameters can correspond to different rendering effects. For example, the server matches the rendering information of the input bullet content with the preset rendering information of multiple pre-specified scene depths one by one, and uses the scene depth corresponding to the preset rendering information obtained by matching as the target scene depth.

[0057] For example, the terminal displays a display screen of a three-dimensional scene, and the user can input bullet-screen content in the form of text or text + symbols through the terminal. The terminal or server can use the rendering performance index of the relevant rendering information of the bullet-screen content input by the user to specify the scene depth corresponding to the rendering performance index corresponding to the bullet-screen content input by the user in multiple scene depths as the target scene depth, and can render the input bullet-screen content at the target scene depth of the three-dimensional scene according to the rendering parameters corresponding to the target scene depth, so that the terminal can render and display the display screen with the bullet-screen content based on the superimposed scene information. The rendered bullet-screen content can be in the form of text, images, animations, etc., which is not limited by this application.

[0058] In some implementations, the bullet screen input operation may be an operation performed by a local terminal or an operation performed by other terminals. In this way, based on the bullet screen input operation on the local terminal or other terminals, the bullet screen content and rendering information input by the local terminal or other terminals may be obtained for processing on the local terminal or server.

[0059] In some embodiments, the server can obtain the rendering information of the input bullet content, and perform rendering processing on the server, and render the bullet content with the rendering effect corresponding to the target scene depth at the corresponding scene depth of the scene information of the three-dimensional scene to generate a display screen of the three-dimensional scene showing the bullet content, and the display screen is a screen in the form of a two-dimensional image or video frame. The server can send the display screen showing the bullet content to the terminal for display, and the terminal can be an XR device or a non-XR device. In this way, the display screen is rendered on the server so that the rendered display screen can be applied to different terminal devices to improve device compatibility.

[0060] In some embodiments, when the terminal is an XR device, the terminal can obtain the rendering information of the input bullet content, and render it locally in the terminal, and render the bullet content with the rendering effect corresponding to the target scene depth at the corresponding scene depth of the scene information of the three-dimensional scene, and display the input bullet content at the corresponding scene depth of the three-dimensional scene displayed on the terminal. In this way, the local computing power of the XR device is used to render the display screen in real time, so that the XR device can respond to the bullet content quickly and in real time, providing a more immersive experience.

[0061] In some embodiments, the bullet-chat content can be rendered and displayed in the real-time rendering display screen of the three-dimensional scene to enhance the real-time nature of the user's interaction in the three-dimensional scene. For example, the bullet-chat content input by the audience can be rendered in the real-time rendering display of the three-dimensional scene screen, so that the bullet-chat content can be rendered synchronously during the three-dimensional scene rendering process, thereby improving rendering efficiency and immediacy.

[0062] In some embodiments, rendering parameters corresponding to different scene depths can achieve different three-dimensional effects. For example, different rendering parameters can enhance or weaken the three-dimensional rendering effect of the bullet screen by enhancing or weakening one or more of the background, shadow, transparency, image resolution, etc., and the rendering parameters can correspond to different three-dimensional rendering effects. In the embodiment of the present application, the three-dimensional rendering effect of the bullet screen is related to the rendering overhead. The higher the quality of the three-dimensional rendering effect, the higher the required rendering overhead.

[0063] In some embodiments, the multiple scene depths include quality scene depth and performance scene depth. Performance scene depth has higher rendering performance and requires lower rendering overhead, while quality scene depth will give priority to ensuring rendering effects and requires higher rendering overhead to ensure viewing experience. Therefore, for the same bullet chat content, the rendering effect of quality scene depth is stronger than that of performance scene depth, and the rendering overhead corresponding to quality scene depth is higher than the rendering overhead corresponding to performance scene depth.

[0064] In some implementations, the quality scene depth and the performance scene depth may include a plurality of sub-scene depths, respectively. The plurality of sub-scene depths correspond to different rendering parameters. The different rendering parameters may achieve different rendering effects.

[0065] In some embodiments, when the target scene depth is the performance scene depth, the rendering effect of the input bullet content can be enhanced, and the input bullet content can be displayed with the enhanced rendering effect. For example, after rendering is completed, the image frame displaying the input bullet content can be enhanced to enhance the three-dimensional rendering effect and ensure a good visual effect.

[0066] In some implementations, the rendering load of the input bullet-screen content can be determined based on the bullet-screen length, the number of special effects, and the survival time of the bullet-screen. The rendering load can accurately and quickly quantify the rendering overhead of the input bullet-screen content to more accurately manage the rendering effect of the input bullet-screen content. Specifically, the rendering information includes the rendering load. Based on the bullet-screen input operation of the three-dimensional scene, the rendering information of the input bullet-screen content of the three-dimensional scene is obtained, including:

[0067] Based on the barrage input operation of the three-dimensional scene, the barrage length, the number of special effects and the barrage survival time of the input barrage content are obtained;

[0068] The rendering load of the input barrage content is determined based on the barrage length, number of special effects, and barrage survival time.

[0069] Among them, the length of the barrage refers to the number of characters or words in the input barrage content. The number of special effects refers to the number of special effect elements contained in the input barrage content, such as special effect elements may include dynamic effects, color changes, font size changes, etc. The barrage survival time refers to the length of time the barrage is displayed (i.e., stays) in a three-dimensional scene. The number of special effects and the survival time of the barrage can be determined by one or more methods such as system settings, user settings, or settings based on the input barrage content. Among them, the rendering load can be used to represent the workload of rendering processing. The higher the rendering load of the barrage content, the higher the rendering overhead of rendering the barrage content.

[0070] For example, the terminal or server can perform a weighted summation of the barrage length, the number of special effects, and the barrage survival time of the input barrage content as the rendering load of the input barrage content. For example, the rendering load P of any input barrage content i can be calculated by the following formula: di :P di =a*l+b*s+c*t. Among them, l represents the length of the bullet screen, s represents the number of special effects, and t represents the survival time of the bullet screen. A, B, and C represent weights. Usually, the value range of a, B, and C is 0 to 1. For example, a, B, and C can be 1.

[0071] In some implementations, the input bullet chat content can be assigned to the corresponding scene depth for rendering processing through different load threshold conditions to reduce excessive consumption and waste of rendering resources and reduce unnecessary rendering overhead. Specifically, the rendering information includes rendering load, and according to the rendering information of the input bullet chat content, the target scene depth is determined from multiple scene depths, including:

[0072] Get the load threshold condition of scene depth;

[0073] When the rendering load of the input bullet comment content meets the load threshold condition of any scene depth, any scene depth is determined as the target scene depth.

[0074] The load threshold condition refers to a threshold condition for allocating the input bullet chat content to a specific scene depth. For example, the load threshold condition is expressed as a numerical threshold or an interval threshold, which can be set according to actual needs or application scenarios.

[0075] For example, when multiple scene depths include performance scene depth and quality scene depth, a numerical threshold T can be set. When the rendering load of the input barrage content is greater than or equal to T, the performance scene depth can be used as the target scene depth. When the rendering load of the input barrage content is less than T, the quality scene depth can be used as the target scene depth. In this way, when the input barrage content occupies a high rendering overhead, a lower rendering effect is used to display it at the performance scene depth to reduce the excessive consumption of rendering resources for the barrage content that is expected to occupy a high rendering overhead. When the input barrage content occupies a low rendering overhead, a higher rendering effect is used to display it at the performance scene depth. In this way, barrages are rendered with different rendering parameters for different scene depths to optimize the performance consumption of rendering different barrages, reduce excessive consumption and waste of rendering resources, and reduce unnecessary rendering overhead.

[0076] For another example, when the number of multiple scene depths is more than two, an interval threshold corresponding to each scene depth can be set. When the rendering load of the input barrage content falls within any interval threshold, the scene depth corresponding to the interval threshold is used as the target scene depth to optimize the performance consumption of rendering different barrages, reduce excessive consumption and waste of rendering resources, and reduce unnecessary rendering overhead.

[0077] In some embodiments, a hash table or dictionary may be used to store multiple scene depths and preset rendering information (such as load threshold conditions) and rendering parameters corresponding to each scene depth. For example, the scene depth may be used as a key, and the preset rendering information and rendering parameters may be stored in a terminal or server as values.

[0078] In some embodiments, the scene depth corresponding to the input bullet-chat content can be determined based on the load threshold condition of the scene depth and the remaining rendering load to ensure that the scene depth to which the input bullet-chat content is assigned has sufficient rendering resources and capabilities to render and process the input bullet-chat content, thereby avoiding rendering failure or delay due to insufficient resources. Specifically, when the rendering load of the input bullet-chat content meets the load threshold condition of any scene depth, any scene depth is determined as the target scene depth, including:

[0079] When the rendering load of the input bullet comment content meets the load threshold condition of any scene depth, the remaining rendering load of any scene depth is obtained;

[0080] When the rendering load of the input bullet comment content satisfies the remaining rendering load of any scene depth, any scene depth is determined as the target scene depth.

[0081] The remaining rendering load refers to the amount of rendering processing that can be undertaken at the corresponding scene depth.

[0082] For example, when the rendering load of the input bullet-chat content meets the load threshold condition of any scene depth, the rendering load can be compared with the remaining rendering load of the scene depth. If the rendering load is less than or equal to the remaining rendering load, it means that the scene depth has enough resources to process the input bullet-chat content, and the scene depth can be used as the target scene depth. If the rendering load is greater than the remaining rendering load, it means that the scene depth does not have enough resources to process the input bullet-chat content, and the scene depth cannot be used as the target scene depth.

[0083] In some implementations, the remaining rendering load of the scene depth can be determined based on the rendering load of the bullet-chat content waiting to be rendered in the scene depth and the upper limit of the rendering load of the scene depth, so as to effectively manage the rendering resources of each scene depth. Specifically, when the rendering load of the input bullet-chat content meets the load threshold condition of any scene depth, before obtaining the remaining rendering load of any scene depth, it also includes:

[0084] Obtain the rendering load of the bullet chat content to be rendered at the scene depth, where the bullet chat content to be rendered refers to the bullet chat content corresponding to the scene depth and waiting for rendering processing;

[0085] Determine the remaining rendering load of the scene depth according to the rendering load of the bullet screen content to be rendered and the upper limit of the rendering load of the scene depth;

[0086] When the rendering load of the input bullet chat content meets the load threshold condition of any scene depth, any scene depth is determined as the target scene depth, further comprising:

[0087] The input bullet comment content is used as the bullet comment content to be rendered at the target scene depth.

[0088] Among them, the barrage content to be rendered at the scene depth refers to the barrage content waiting to be rendered and displayed at the scene depth, and the rendering effect displayed by the barrage content is the rendering effect corresponding to the scene depth. It can be understood that in actual applications, there are usually multiple barrage contents waiting to be rendered and displayed. In an embodiment of the present application, the multiple input barrage contents waiting to be rendered and displayed can be displayed at one or more scene depths.

[0089] The rendering load of the bullet content to be rendered refers to the workload waiting for rendering processing at the corresponding scene depth. The rendering load of the bullet content to be rendered can be the sum of the rendering loads of the bullet content to be rendered. The rendering load upper limit refers to the maximum workload of rendering processing that can be carried by the corresponding scene depth.

[0090] For example, the rendering load limit of each scene depth can be pre-set as needed, and the rendering load limits of different scene depths can be the same or different. For each scene depth, such as scene depth i, the rendering load of the bullet content to be rendered {P1, P2, ..., P n} to obtain the load Sp to be rendered for the rendering scene. i =∑p, and so on, we can get the rendering load Sp1,Sp2,…,Sp of each scene depth. n For each scene depth, the load to be rendered of the scene depth may be subtracted from the upper limit of the rendering load of the scene depth to obtain the remaining rendering load of each scene depth.

[0091] In actual applications, the upper limit of the rendering load corresponding to each scene depth can be set according to different strategies. For example, based on the performance priority strategy, the upper limit of the rendering load of the performance scene depth can be set higher than the upper limit of the rendering load of the quality scene depth, or based on the quality priority strategy, the upper limit of the rendering load of the performance scene depth can be set lower than the upper limit of the rendering load of the quality scene depth, or based on the balance strategy, the upper limit of the rendering load of the performance scene depth can be set equal to the upper limit of the rendering load of the quality scene depth.

[0092] In some embodiments, the rendering load upper limit may be set lower for scene depths with better rendering effects. For example, the rendering load upper limit of the performance scene depth may be set higher than the rendering load of the quality scene depth, so that scene depths with smaller rendering overhead for rendering effects bear more rendering tasks, thereby minimizing excessive consumption and waste of rendering resources and improving rendering efficiency.

[0093] In some embodiments, a corresponding rendering queue can be set for each scene depth, and the rendering queue is used to store the bullet chat content to be rendered at the corresponding scene depth, so as to independently manage the bullet chat content waiting to be rendered at each scene depth. In this way, after determining the target scene depth corresponding to the input bullet chat content, the input bullet chat content can be added to the rendering queue of the target scene depth, so that the input bullet chat content is used as the bullet chat content to be rendered at the target scene depth.

[0094] In some embodiments, when the input bullet-chat content exceeds the remaining rendering load of the corresponding scene depth, the scene depth of the input bullet-chat content and the corresponding rendering effect can be dynamically adjusted and adapted according to the rendering priority, so that even in the case of high scene depth load, the timely rendering of the bullet-chat content can be guaranteed to improve the rendering efficiency. Specifically, when the rendering load of the input bullet-chat content meets the load threshold condition of any scene depth, any scene depth is determined as the target scene depth, and it also includes:

[0095] When the rendering load of the input bullet comment content does not meet the remaining rendering load of any scene depth, a candidate scene depth is determined from multiple scene depths based on the rendering priority of any scene depth, and the rendering priority is related to the rendering parameters;

[0096] Get the remaining rendering load of the scene depth to be selected;

[0097] When the rendering load of the input bullet comment content satisfies the remaining rendering load of the to-be-selected scene depth, the to-be-selected scene depth is determined as the target scene depth.

[0098] The rendering priority may be a priority determined for multiple scene depths based on rendering parameters (i.e., rendering effects corresponding to the rendering parameters). When the quality scene depth and the performance scene depth may include multiple sub-scene depths, the multiple sub-scene depths correspond to different rendering priorities.

[0099] The selected scene depth refers to the scene depth that can be used to render the input bullet comment content according to the rendering priority.

[0100] In some implementations, the higher the rendering priority of the scene depth, the lower the rendering effect corresponding to the rendering parameters of the scene depth, that is, the lower the rendering cost of the rendered bullet content of the scene depth. For example, the rendering priority of the performance scene depth is higher than the rendering priority of the quality scene depth. In this way, according to the rendering priority, the bullet content can be preferentially allocated to the scene depth rendering display that occupies less rendering cost, so as to reduce unnecessary rendering cost, ensure timely rendering of the bullet content, and improve rendering efficiency.

[0101] For example, the rendering priority of the selected scene depth is lower than that of any scene depth, that is, the rendering effect corresponding to the rendering parameters of the selected scene depth is higher, and the rendering overhead of rendering the barrage content is higher. In this way, when the rendering load of the input barrage content does not meet the remaining rendering load of the corresponding scene depth, the selected scene depth with a lower rendering priority can be selected to render the input barrage content, so as to avoid rendering failure or delay due to insufficient resources and improve the overall resource utilization efficiency. In the case of high load of scene depth, timely rendering of barrage content can be guaranteed, thereby improving rendering efficiency.

[0102] In some embodiments, when the rendering load of the input barrage content does not meet the remaining rendering load of the to-be-selected scene depth, the to-be-selected scene depth may be used as any scene depth, and the execution step is returned to when the rendering load of the input barrage content does not meet the remaining rendering load of any scene depth, based on the rendering priority of any scene depth, the to-be-selected scene depth and subsequent steps are determined from multiple scene depths until the to-be-selected scene depth is determined as the target scene depth, or the rendering load of the input barrage content does not meet the remaining rendering load of the last determined to-be-selected scene depth.

[0103] In some embodiments, the rendering effect of the bullet-screen content in the three-dimensional scene can be dynamically adjusted based on the observation line of sight, so that the rendering of the bullet-screen content corresponds to the observation line of sight, so that the bullet-screen content is always clearly visible, and the realism and immersion of the three-dimensional scene are enhanced. Specifically, the bullet-screen display method also includes:

[0104] When the observation line of the three-dimensional scene is adjusted, the input bullet comment content is displayed based on the adjusted rendering effect, and the adjusted rendering effect is obtained by adjusting the rendering effect corresponding to the target scene depth based on the adjusted observation line of sight.

[0105] The observation line of sight refers to the line of sight of an observer, such as a user or a camera, when looking outward from its position in a three-dimensional scene. The observation line of sight may generally be the line of sight of a virtual camera in the three-dimensional scene, and the virtual camera may define the position, orientation, and viewing angle range of the observer in the three-dimensional scene to capture and render an image of the three-dimensional scene.

[0106] For example, the bullet content can be set to be perpendicular to the observation line so that the bullet content is always clearly visible. When the observation line moves, the display position of the rendering effect of the input bullet content can be adjusted with the movement of the observation line at a corresponding rotation angle.

[0107] In some embodiments, the rotation angle of the bullet-chat content can be determined based on the adjusted observation line of sight, so that the relative angle between the input bullet-chat content and the observation line of sight remains unchanged, so that the bullet-chat content is always clearly visible, and the realism and immersion of the three-dimensional scene are enhanced. Specifically, when the observation line of the three-dimensional scene is adjusted, the input bullet-chat content is displayed based on the adjusted rendering effect, including:

[0108] When the observation sight line of the three-dimensional scene is adjusted, the sight line adjustment angle is obtained, and the sight line adjustment angle is determined based on the adjusted observation sight line;

[0109] Based on the sight line adjustment angle, determine the rotation angle of the input barrage content;

[0110] According to the rotation angle, the rendering effect corresponding to the target scene depth is adjusted to obtain the adjusted rendering effect;

[0111] In the three-dimensional scene, the input bullet comment content is displayed with the adjusted rendering effect.

[0112] For example, the barrage content can be set perpendicular to the observation line of sight so that the barrage content is always clearly visible. When the observation line of sight moves, the display position of the rendering effect of the input barrage content can be adjusted with the corresponding rotation angle according to the moving angle of the observation line of sight (i.e., the line of sight adjustment angle), and the line of sight adjustment angle can be the angle between the observation lines before and after the adjustment. For example, the display angle of the input barrage content in the three-dimensional scene can be adjusted based on the rotation angle, so that the input barrage content is always perpendicular to the observation line of sight, and the input barrage content is rendered and displayed at the adjusted display angle. It can be understood that before and after the rendering effect corresponding to the target scene depth is adjusted, the scene depth of the corresponding barrage content rendering and display remains unchanged.

[0113] In some embodiments, when the sight line is adjusted, the rotation angle can be constrained by rendering constraint parameters to avoid excessive deviation of the displayed bullet comment content due to the sight line adjustment, thereby avoiding reducing the immersion and user experience. Specifically, based on the sight line adjustment angle, determining the rotation angle of the input bullet comment content includes:

[0114] Based on the sight line adjustment angle, determine the basic rotation angle of the input bullet comment content;

[0115] Based on the rendering constraint parameters, the basic rotation angle is adjusted to obtain the rotation angle of the input bullet comment content.

[0116] The rendering constraint parameter is a parameter used to limit the rotation angle of the input bullet comment content. The rendering constraint parameter can constrain the rotation angle to avoid excessive deviation caused by adjusting the observation line of sight.

[0117] For example, the plane at the target scene depth and perpendicular to the observation line of sight (i.e., the bullet screen layer) can be used as the display position of the bullet screen content after rendering at the target scene depth. Figure 1d As shown in the schematic diagram of the observation line adjustment, when the observation line is adjusted, the rotation angle of the observation line adjustment before and after the adjustment (i.e., the line of sight adjustment angle) is x. In theory, the barrage layer will also rotate accordingly at the rotation angle x (i.e., the basic rotation angle). However, if the barrage layer rotates too much before and after the adjustment, it will cause visual illusions or dizziness, reducing the sense of immersion and user experience. Therefore, by adding a rendering constraint parameter k, the rotation angle of the plane position can be y=k*k, k<1.0, so that the rotated barrage layer is approximately perpendicular to the observation line of sight, making the barrage content clearly visible, and avoiding excessive offsets that cause visual illusions or dizziness, thereby avoiding reducing the sense of immersion and user experience.

[0118] In some embodiments, when the sight line is adjusted, an angle threshold can be used to limit the upper limit of the rotation angle to avoid excessive deviation of the displayed bullet screen content due to the sight line adjustment, thereby avoiding reducing the immersion and user experience. Specifically, according to the rotation angle, the rendering effect corresponding to the target scene depth is adjusted, and before the adjusted rendering effect is obtained, the method further includes:

[0119] When the rotation angle exceeds the angle threshold, the angle threshold is used as the rotation angle.

[0120] For example, the angle threshold may be a threshold value set according to actual needs or application scenarios, and the embodiments of the present application are not limited thereto. For example, the angle threshold value may be set to ±10°. When the rotation angle is greater than 10° or less than -10°, the rotation angle exceeds the threshold range of the angle threshold value -10° to 10°, and the upper threshold limit exceeded by the rotation angle may be used as the final rotation angle. If the rotation angle is greater than 10°, 10° may be used as the final rotation angle, and if the rotation angle is less than -10°, -10° may be used as the final rotation angle.

[0121] In some embodiments, a dwell time may be preset, and when the dwell time after the observation sight line is adjusted exceeds the preset dwell time, such as 0.1s, it is considered that a sight line adjustment is performed. Specifically, when the observation sight line of the three-dimensional scene is adjusted, the sight line adjustment angle is obtained, including: when the observation sight line of the three-dimensional scene is adjusted, and when it is detected that the dwell time of the adjusted observation sight line exceeds the preset dwell time, the sight line adjustment angle is obtained.

[0122] The bullet screen display solution provided in the embodiment of the present application can be applied in various bullet screen display scenarios. For example, taking the application in a terminal as an example, a three-dimensional scene is displayed; based on the bullet screen input operation of the three-dimensional scene, the input bullet screen content is displayed at the target scene depth of the three-dimensional scene with the rendering effect corresponding to the target scene depth, and the target scene depth is determined from multiple scene depths based on the rendering information of the input bullet screen content.

[0123] From the above, it can be seen that the embodiments of the present application can display the input barrage content in a three-dimensional scene based on the scene depth, so that the barrage content can be integrated into the three-dimensional scene in combination with the three-dimensional scene depth, rather than simply superimposed on the display screen of the three-dimensional scene, to enhance the three-dimensional effect of the barrage. Among them, the scene depth and the corresponding rendering effect displayed are determined based on the rendering information of the barrage, so that different barrages can be displayed in layers and different rendering effects can be applied according to the rendering information of the barrage. This hierarchical display method can not only enhance the three-dimensional effect of different barrages and improve the overall visual experience, render barrages with different rendering effects at different levels, but also optimize the performance consumption of rendering different barrages to reduce excessive consumption and waste of rendering resources.

[0124] The method described in the above embodiment will be further described in detail below.

[0125] The bullet screen display method provided in the embodiment of the present application can be executed by an electronic device. In this embodiment, the method of the embodiment of the present application will be described in detail by taking the electronic device as an XR device as an example.

[0126] like Figure 2a As shown, a specific process of a bullet screen display method is as follows:

[0127] 210. The XR device displays a three-dimensional scene.

[0128] 220. The XR device obtains input bullet-screen content based on the bullet-screen input operation on the three-dimensional scene.

[0129] For example, a user can immersively watch a three-dimensional scene through an XR device, and at the same time, turn on the barrage switch in the player panel displayed by the XR device to activate the barrage function and display the barrage. Figure 2b In the barrage display process shown, the user can input the barrage content of the three-dimensional scene through the XR device, or the user's XR device can obtain the barrage content of the three-dimensional scene input by other users through other terminal devices, that is, perform the barrage input operation.

[0130] 230. The XR device obtains rendering information of the input bullet comment content.

[0131] 240. The XR device determines a target scene depth from multiple scene depths according to the rendering information of the input bullet comment content, and the multiple scene depths correspond to different rendering parameters.

[0132] In XR applications, rendering performance and 3D effects (i.e., three-dimensional effects) are two ends of the scale. Over-emphasizing the 3D effect will lead to degradation of rendering performance. In an embodiment of the present application, based on the rendering information of the bullet screen content and based on multiple scene depths, the bullet screen rendering is cached and accelerated through layered pre-rendering to ensure the 3D effect while optimizing the rendering performance consumption. In an embodiment of the present application, each layer is a scene depth, so through the setting of multiple scene depths, it is expected that the bullet screen and the video content in the XR scene have different depths to present a three-dimensional effect. By rendering the bullet screen content of the three-dimensional scene at different scene depths, the 3D effect and rendering efficiency can be guaranteed.

[0133] For example, the depth of the three-dimensional scene can be graded in advance, such as divided into N levels (that is, divided into N levels to display bullet screens), each level corresponds to a different scene depth, and each level can be called a bullet screen layer. For example, N = 2, which can be divided into two levels: performance level and quality level. For example, the performance level uses 1000×1000 for rendering, and the quality level uses 2000×2000 for rendering. The performance level has higher rendering performance and requires lower rendering overhead, while the quality level will give priority to rendering effects and requires higher rendering overhead to ensure the viewing experience.

[0134] XR devices can call the bullet chat classifier, which is mainly used to determine the level of the bullet chat. For example, the text-only bullet chat content is placed in the performance level to achieve high performance. The bullet chat content with animations and special effects is placed in the quality level to achieve better rendering quality. In this way, by optimizing the performance consumption of rendering different bullet chats, high performance and high quality of the rendering process can be achieved.

[0135] Specifically, Figure 2b In the barrage display process shown in FIG. 1 , the barrage classifier can calculate the rendering load P of the barrage content based on the length l of the barrage content, the number of special effects s, and the survival time t. si =a*l+b*s+c*t, which determines the rendering information of the input barrage content.

[0136] like Figure 2b The barrage display process shown in the figure, the barrage classifier can also schedule the barrage through the barrage elastic scheduling strategy. Specifically, the barrage content can be hierarchically classified based on the rendering information, that is, the barrage classification is performed to determine the target scene depth corresponding to the barrage content, that is, at which level the barrage is rendered. For example, when the rendering load P of the barrage content di When it is greater than the threshold T, the bullet-message content is classified into performance levels (i.e., performance scene depth), and the rendering load P of the bullet-message content is di When it is less than T, the bullet chat content is classified into a quality level (i.e., quality scene depth). At the same time, if multiple bullet chat layers of different levels are set, different threshold levels can be set accordingly for classifying the bullet chat content.

[0137] In order to ensure balanced rendering performance, it is necessary to ensure that the rendering performance of each bullet screen layer is balanced. Figure 2b The barrage display process shown can also be adapted for performance. For example, the total amount of rendering of N barrage layers (i.e., the rendering load of the barrage content to be rendered) can be respectively: Sp1, Sp2, ..., Sp n , the statistical method of the total rendering volume is: Sp i =∑p. At the same time, the performance upper limit (i.e., rendering load upper limit) of N bullet screen layers can be set as: {P1, P2, ..., P nDepending on the strategy, the performance cap of each bullet screen layer may not be equal. For example, performance priority strategy: performance layer cap > quality layer cap, quality priority strategy: quality layer cap > performance layer cap, balanced strategy: quality layer cap = performance layer cap.

[0138] In this way, for each bullet comment content, after calculating its rendering information and classifying it into bullet comment layer i, if the total rendering amount of the bullet comment layer exceeds the performance upper limit, it can be postponed to the next level based on the rendering priority to achieve dynamic scheduling of the bullet comment content.

[0139] 250. The XR device uses the rendering parameters corresponding to the target scene depth to render the input barrage content, so as to display the input barrage content at the target scene depth of the three-dimensional scene with the rendering effect corresponding to the target scene depth.

[0140] For example, the XR device can render the input bullet content at the target scene depth of the three-dimensional scene according to the rendering parameters corresponding to the bullet layer (i.e., the target scene depth) corresponding to the bullet content, so that the terminal can render and display the display screen with the bullet content based on the superimposed scene information. Figure 2b The barrage display process shown in the figure can be rendered in the corresponding barrage layer 1 to barrage layer n when there are multiple barrage contents.

[0141] like Figure 2b As shown in the bullet screen display process, for the performance level (such as bullet screen layer 1), after rendering is completed, the image frames displaying the bullet screen content can be enhanced to enhance the three-dimensional effect and ensure a better visual effect.

[0142] 260. When the observation line of sight of the three-dimensional scene is adjusted, the XR device displays the input barrage content based on the adjusted rendering effect.

[0143] For example, Figure 2b As shown in the barrage display process, since the XR scene is 3D, when the observation line of sight is adjusted, the XR device can dynamically adjust the rendering direction (i.e., rendering rotation angle) of each barrage layer such as barrage layer 1 to barrage layer n based on the observation line of sight adjustment strategy by calculating the changes in the observation line of sight, thereby enhancing the three-dimensional effect of the barrage content.

[0144] Specifically, when the observation line of sight is adjusted, the XR device will calculate two angles in real time, namely the rotation angle of the bullet screen layer and the rendering rotation angle. Assuming that the bullet screen layer is always perpendicular to the observation line of sight, when the observation line of sight is adjusted, the rotation angle of the observation line of sight adjustment (i.e., the line of sight adjustment angle) is x. In theory, the plane position will also rotate accordingly with x as the rendering rotation angle (i.e., the rotation angle). If the rendering rotation angle is always adjusted according to the line of sight adjustment angle, it will cause excessive offset. Therefore, it is necessary to add the rendering constraint parameter k for fine-tuning so that the final calculation formula for the rendering rotation angle is: y=k*x, k<1.0.

[0145] Thus, for any bullet content, the information when it is rendered can be expressed as Dan i ={dp, content, angle, pos}, where dp represents the scene depth of the bullet content display, and the value range is: dp∈{1,2,…,N}, content represents the bullet content, angle represents the tilt angle, that is, the rotation angle determined based on the observation line of sight, and pos represents the rendering position of the bullet, which can be the bullet rendering plane. i ,i∈{1,…,N}, the bullet screen rendering plane is the plane that displays the bullet screen in layers.

[0146] In an embodiment of the present application, a dwell time can be preset. When the dwell time after the observation line of sight is adjusted exceeds the preset dwell time, such as 0.1s, it is regarded as a line of sight adjustment. That is, when it is detected that the dwell time of the observation line of sight exceeds the preset dwell time, the plane of the barrage layer is rotated based on the final rendering rotation angle to display the input barrage content based on the adjusted rendering effect. In addition, an angle threshold such as ±10° can be set. When the rendering rotation angle is greater than 10°, 10° can be used as the final rotation angle. When the rendering rotation angle is less than -10°, -10° can be used as the final rotation angle.

[0147] In the XR scenario, the barrage will be converted from its original 2D nature to a 3D nature, which will consume more performance. Since the performance of XR devices is often limited, traditional game engine-based rendering solutions have huge disadvantages for scenes with massive barrages, and it is difficult to meet the high refresh rate requirements of three-dimensional rendering effects, such as 90Hz. Therefore, in order to ensure performance, the related technology has to reduce the number of barrage renderings. In comparison, the embodiment of the present application proposes a barrage display method based on the layered idea, targeting the special properties of the barrage in the XR scenario, combined with the depth information and rendering information of the XR scene. Different from other rendering methods, it optimizes the performance consumption of rendering different barrages to achieve high performance and high quality of the rendering process, which is more suitable for barrage rendering display in the XR scenario.

[0148] In order to better implement the above method, the embodiment of the present application also provides a bullet screen display device, such as Figure 3 As shown, the bullet screen display device may include a display unit 310 as follows:

[0149] The display unit is used to display a three-dimensional scene.

[0150] The display unit is also used to display the input barrage content based on the barrage input operation on the three-dimensional scene at the target scene depth of the three-dimensional scene with a rendering effect corresponding to the target scene depth. The target scene depth is determined from multiple scene depths based on the rendering information of the input barrage content.

[0151] In some embodiments, based on the barrage input operation on a three-dimensional scene, the input barrage content is displayed at a target scene depth of the three-dimensional scene with a rendering effect corresponding to the target scene depth, including: based on the barrage input operation on the three-dimensional scene, obtaining rendering information of the input barrage content; determining the target scene depth from multiple scene depths according to the rendering information of the input barrage content, and the multiple scene depths correspond to different rendering parameters; using the rendering parameters corresponding to the target scene depth to render the input barrage content, so as to display the input barrage content at the target scene depth of the three-dimensional scene with a rendering effect corresponding to the target scene depth.

[0152] In some embodiments, the rendering information includes a rendering load, and a target scene depth is determined from multiple scene depths based on the rendering information of the input barrage content, including: obtaining a load threshold condition for the scene depth; when the rendering load of the input barrage content meets the load threshold condition of any scene depth, determining any scene depth as the target scene depth.

[0153] In some embodiments, when the rendering load of the input barrage content meets the load threshold condition of any scene depth, any scene depth is determined as the target scene depth, including: when the rendering load of the input barrage content meets the load threshold condition of any scene depth, obtaining the remaining rendering load of any scene depth; when the rendering load of the input barrage content meets the remaining rendering load of any scene depth, determining any scene depth as the target scene depth.

[0154] In some embodiments, when the rendering load of the input bullet chat content meets the load threshold condition of any scene depth, before obtaining the remaining rendering load of any scene depth, the method further includes: obtaining the rendering load of the bullet chat content to be rendered at the scene depth, where the bullet chat content to be rendered refers to the bullet chat content waiting for rendering processing corresponding to the scene depth; determining the remaining rendering load of the scene depth according to the rendering load of the bullet chat content to be rendered and the rendering load upper limit of the scene depth;

[0155] When the rendering load of the input bullet chat content meets the load threshold condition of any scene depth, any scene depth is determined as the target scene depth, and it also includes: using the input bullet chat content as the bullet chat content to be rendered at the target scene depth.

[0156] In some embodiments, when the rendering load of the input barrage content meets the load threshold condition of any scene depth, any scene depth is determined as the target scene depth, and it also includes: when the rendering load of the input barrage content does not meet the remaining rendering load of any scene depth, based on the rendering priority of any scene depth, determining a to-be-selected scene depth from multiple scene depths, the rendering priority being related to the rendering parameters; obtaining the remaining rendering load of the to-be-selected scene depth; when the rendering load of the input barrage content meets the remaining rendering load of the to-be-selected scene depth, determining the to-be-selected scene depth as the target scene depth.

[0157] In some embodiments, based on the barrage input operation on the three-dimensional scene, rendering information of the input barrage content is obtained, including: based on the barrage input operation on the three-dimensional scene, obtaining the barrage length, number of special effects and barrage survival time of the input barrage content; combining the barrage length, number of special effects and barrage survival time to determine the rendering load of the input barrage content.

[0158] In some embodiments, the display unit is also used to: when the observation line of sight of the three-dimensional scene is adjusted, display the input barrage content based on the adjusted rendering effect, and the adjusted rendering effect is obtained by adjusting the rendering effect corresponding to the target scene depth based on the adjusted observation line of sight.

[0159] In some embodiments, when the observation line of sight of a three-dimensional scene is adjusted, the input barrage content is displayed based on the adjusted rendering effect, including: when the observation line of sight of the three-dimensional scene is adjusted, the line of sight adjustment angle is obtained, and the line of sight adjustment angle is determined based on the adjusted observation line of sight; based on the line of sight adjustment angle, the rotation angle of the input barrage content is determined; according to the rotation angle, the rendering effect corresponding to the depth of the target scene is adjusted to obtain the adjusted rendering effect; in the three-dimensional scene, the input barrage content is displayed with the adjusted rendering effect.

[0160] In some embodiments, the rotation angle of the input barrage content is determined based on the line of sight adjustment angle, including: determining the basic rotation angle of the input barrage content based on the line of sight adjustment angle; adjusting the basic rotation angle based on the rendering constraint parameters to obtain the rotation angle of the input barrage content.

[0161] In some implementations, before adjusting the rendering effect corresponding to the target scene depth according to the rotation angle to obtain the adjusted rendering effect, the method further includes: when the rotation angle exceeds an angle threshold, using the angle threshold as the rotation angle.

[0162] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.

[0163] As can be seen from the above, the bullet screen display device of this embodiment includes a display unit. The display unit is used to display a three-dimensional scene; the display unit is also used to display the input bullet screen content at a target scene depth of the three-dimensional scene based on the bullet screen input operation on the three-dimensional scene, with a rendering effect corresponding to the target scene depth, and the target scene depth is determined from multiple scene depths based on the rendering information of the input bullet screen content.

[0164] Therefore, the embodiment of the present application displays the input barrage content in a three-dimensional scene based on the scene depth, so that the barrage content can be integrated into the three-dimensional scene in combination with the three-dimensional scene depth, rather than simply superimposed on the display screen of the three-dimensional scene, to enhance the three-dimensional effect of the barrage. Among them, the scene depth and the corresponding rendering effect displayed are determined based on the rendering information of the barrage, so that different barrages can be displayed in layers and different rendering effects can be applied according to the rendering information of the barrage. This layered display method can not only enhance the three-dimensional effect of different barrages and improve the overall visual experience, render barrages with different rendering effects at different levels, but also optimize the performance consumption of rendering different barrages to reduce excessive consumption and waste of rendering resources.

[0165] The present application embodiment further provides an electronic device. In this embodiment, the electronic device is a terminal as an example for detailed description. For example, Figure 4 As shown, it shows a schematic diagram of the structure of the terminal involved in the embodiment of the present application, specifically:

[0166] The terminal may include components such as a processor 410 of one or more processing cores, a memory 420 of one or more computer-readable storage media, a power supply 430, an input module 440, and a communication module 450. Those skilled in the art will appreciate that Figure 4 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0167] The processor 410 is the control center of the terminal, and uses various interfaces and lines to connect various parts of the entire terminal. It executes various functions of the terminal and processes data by running or executing software programs and / or modules stored in the memory 420, and calling data stored in the memory 420. In some embodiments, the processor 410 may include one or more processing cores; in some embodiments, the processor 410 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 410.

[0168] The memory 420 can be used to store software programs and modules. The processor 410 executes various functional applications and data processing by running the software programs and modules stored in the memory 420. The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 420 may also include a memory controller to provide the processor 410 with access to the memory 420.

[0169] The terminal also includes a power supply 430 for supplying power to various components. In some embodiments, the power supply 430 can be logically connected to the processor 410 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. The power supply 430 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0170] The terminal may further include an input module 440, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0171] The terminal may also include a communication module 450. In some embodiments, the communication module 450 may include a wireless module. The terminal may perform short-range wireless transmission through the wireless module of the communication module 450, thereby providing the user with wireless broadband Internet access. For example, the communication module 450 may be used to help the user send and receive emails, browse web pages, and access streaming media.

[0172] Although not shown, the terminal may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 410 in the terminal will load the executable files corresponding to the processes of one or more applications into the memory 420 according to the following instructions, and the processor 410 will run the applications stored in the memory 420, thereby realizing various functions, as follows:

[0173] Based on the barrage input operation on the three-dimensional scene, the input barrage content is displayed at the target scene depth of the three-dimensional scene with the rendering effect corresponding to the target scene depth, and the target scene depth is determined from multiple scene depths based on the rendering information of the input barrage content.

[0174] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0175] As can be seen from the above, the embodiment of the present application displays the input barrage content in a three-dimensional scene based on the scene depth, so that the barrage content can be integrated into the three-dimensional scene in combination with the three-dimensional scene depth, rather than simply superimposed on the display screen of the three-dimensional scene, to enhance the three-dimensional effect of the barrage. Among them, the scene depth and the corresponding rendering effect displayed are determined based on the rendering information of the barrage, so that different barrages can be displayed in layers and different rendering effects can be applied according to the rendering information of the barrage. This hierarchical display method can not only enhance the three-dimensional effect of different barrages and improve the overall visual experience, render barrages with different rendering effects at different levels, but also optimize the performance consumption of rendering different barrages to reduce excessive consumption and waste of rendering resources.

[0176] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0177] To this end, an embodiment of the present application provides a computer-readable storage medium, which stores instructions that can be loaded by a processor to execute the steps in any of the bullet screen display methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:

[0178] Display a three-dimensional scene; based on the barrage input operation on the three-dimensional scene, the input barrage content is displayed at the target scene depth of the three-dimensional scene with a rendering effect corresponding to the target scene depth, and the target scene depth is determined from multiple scene depths based on the rendering information of the input barrage content.

[0179] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0180] According to one aspect of the present application, a computer program product is provided, including instructions, which, when executed by a processor, implement the steps in the method provided in various optional implementations provided in the above embodiments. The instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the instructions from the computer-readable storage medium, and the processor executes the instructions, so that the electronic device performs the methods provided in various optional implementations provided in the above embodiments.

[0181] Since the instructions stored in the storage medium can execute the steps in any barrage display method provided in the embodiments of the present application, the beneficial effects that can be achieved by any barrage display method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0182] The above is a detailed introduction to a barrage display method, device, electronic device, storage medium and program product provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A bullet screen display method, It is characterized in that include: Display three-dimensional scenes; Based on the barrage input operation on the three-dimensional scene, the input barrage content is displayed at the target scene depth of the three-dimensional scene with the rendering effect corresponding to the target scene depth, and the target scene depth is determined from multiple scene depths based on the rendering information of the input barrage content.

2. The bullet screen display method according to claim 1, It is characterized in that Based on the bullet-screen input operation on the three-dimensional scene, displaying the input bullet-screen content at the target scene depth of the three-dimensional scene with the rendering effect corresponding to the target scene depth includes: Based on the bullet-screen input operation on the three-dimensional scene, obtaining the rendering information of the input bullet-screen content; Determining a target scene depth from a plurality of scene depths according to the rendering information of the input bullet comment content, wherein the plurality of scene depths correspond to different rendering parameters; The input barrage content is rendered using the rendering parameters corresponding to the target scene depth to display the input barrage content at the target scene depth in the three-dimensional scene with a rendering effect corresponding to the target scene depth.

3. The bullet screen display method according to claim 2, It is characterized in that The rendering information includes a rendering load, and determining a target scene depth from a plurality of scene depths according to the rendering information of the input barrage content includes: Obtaining a load threshold condition of the scene depth; When the rendering load of the input bullet comment content meets the load threshold condition of any of the scene depths, any of the scene depths is determined as the target scene depth.

4. The bullet screen display method according to claim 3, It is characterized in that When the rendering load of the input bullet chat content meets the load threshold condition of any of the scene depths, determining any of the scene depths as the target scene depth includes: When the rendering load of the input bullet comment content meets the load threshold condition of any of the scene depths, obtaining the remaining rendering load of any of the scene depths; When the rendering load of the input bullet commentary content satisfies the remaining rendering load of any of the scene depths, any of the scene depths is determined as the target scene depth.

5. The bullet screen display method according to claim 4, It is characterized in that When the rendering load of the input bullet chat content meets the load threshold condition of any of the scene depths, determining any of the scene depths as the target scene depth further includes: When the rendering load of the input bullet comment content does not satisfy the remaining rendering load of any of the scene depths, determining a scene depth to be selected from the multiple scene depths based on a rendering priority of any of the scene depths, the rendering priority being related to the rendering parameter; Obtaining the remaining rendering load of the depth of the to-be-selected scene; When the rendering load of the input bullet comment content satisfies the remaining rendering load of the to-be-selected scene depth, the to-be-selected scene depth is determined as the target scene depth.

6. The bullet screen display method according to claim 4, It is characterized in that When the rendering load of the input bullet comment content meets the load threshold condition of any scene depth, before obtaining the remaining rendering load of any scene depth, the method further includes: Obtaining the rendering load of the bullet-chat content to be rendered at the scene depth, where the bullet-chat content to be rendered refers to the bullet-chat content corresponding to the scene depth and waiting for rendering processing; Determine the remaining rendering load of the scene depth according to the rendering load of the bullet screen content to be rendered and the rendering load upper limit of the scene depth; When the rendering load of the input bullet chat content meets the load threshold condition of any of the scene depths, determining any of the scene depths as the target scene depth further includes: The input bullet-moji content is used as the bullet-moji content to be rendered at the target scene depth.

7. The bullet screen display method according to claim 3, It is characterized in that The acquiring the rendering information of the inputted bullet-screen content based on the bullet-screen input operation on the three-dimensional scene includes: Based on the barrage input operation on the three-dimensional scene, obtaining the barrage length, the number of special effects and the barrage survival time of the input barrage content; The rendering load of the input barrage content is determined in combination with the barrage length, the number of special effects and the barrage survival time.

8. The bullet screen display method according to any one of claims 1 to 7, It is characterized in that The method further comprises: When the observation line of the three-dimensional scene is adjusted, the input barrage content is displayed based on the adjusted rendering effect, and the adjusted rendering effect is obtained by adjusting the rendering effect corresponding to the depth of the target scene based on the adjusted observation line of sight.

9. The bullet screen display method according to claim 8, It is characterized in that When the observation sight line of the three-dimensional scene is adjusted, displaying the input bullet comment content based on the adjusted rendering effect includes: When the observation sight line of the three-dimensional scene is adjusted, obtaining a sight line adjustment angle, wherein the sight line adjustment angle is determined based on the adjusted observation sight line; Based on the sight line adjustment angle, determining a rotation angle of the input barrage content; According to the rotation angle, adjusting the rendering effect corresponding to the target scene depth to obtain the adjusted rendering effect; In the three-dimensional scene, the input bullet comment content is displayed with the adjusted rendering effect.

10. The bullet screen display method according to claim 9, It is characterized in that The determining the rotation angle of the input barrage content based on the sight line adjustment angle includes: Based on the sight line adjustment angle, determining a basic rotation angle of the input barrage content; Based on the rendering constraint parameters, the basic rotation angle is adjusted to obtain the rotation angle of the input barrage content.

11. The bullet screen display method according to claim 9, It is characterized in that Before adjusting the rendering effect corresponding to the target scene depth according to the rotation angle to obtain the adjusted rendering effect, the method further includes: When the rotation angle exceeds an angle threshold, the angle threshold is used as the rotation angle.

12. A bullet screen display device, It is characterized in that include: A display unit, used for displaying a three-dimensional scene; The display unit is also used to display the input barrage content based on the barrage input operation on the three-dimensional scene at a target scene depth of the three-dimensional scene with a rendering effect corresponding to the target scene depth, and the target scene depth is determined from multiple scene depths based on the rendering information of the input barrage content.

13. An electronic device, It is characterized in that It includes a processor and a memory, wherein the memory stores instructions; the processor loads the instructions from the memory to execute the steps in the bullet screen display method as described in any one of claims 1 to 11.

14. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, which are suitable for a processor to load to execute the steps in the bullet screen display method according to any one of claims 1 to 11.

15. A computer program product comprising instructions, It is characterized in that When the instructions are executed by the processor, the steps in the bullet screen display method described in any one of claims 1 to 11 are implemented.