Split-screen display method and device, electronic equipment and readable storage medium

CN122945914APending Publication Date: 2026-10-20GUANGZHOU KULUO SHUJIE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610930094.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-25
Publication Date
2026-10-20

AI Technical Summary

Technical Problem

这导致玩家查看功能配置界面和队友视角画面时,无法感知自己所操控虚拟对象所处虚拟环境的变化

Benefits of technology

本申请实施例提供的分屏画面的显示方法,首先,根据主屏和副屏显示区域相对于完整取景区域的位置关系,分别确定第一取景对象对应的第一偏移参数和各副屏显示区域对应的第二偏移参数。随后,将第一偏移参数和各第二偏移参数作用于第一取景对象和各第二取景对象对应的偏移参数中的偏移项,以对第一取景对象和各第二取景对象对应的取景窗口进行偏移。将第一取景对象输出经取景窗口偏移后的主屏画面显示在主屏显示区域,并将各第二取景对象输出经取景窗口偏移后的副屏画面,显示于对应的副屏显示区域,得到由主屏画面和至少一个副屏画面在对应分界位置处合成的分屏画面。相比上述相关技术,本申请以分屏显示的方式对不同的画面分开显示,主屏显示区域和副屏显示区域显示不同取景对象生成的画面,二者画面分区域并行显示而非互相遮挡,能够从根源避免副屏内容覆盖主视角画面的情况。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

This application discloses a method, apparatus, electronic device, and readable storage medium for displaying split-screen images. The method includes: acquiring a first framing object for generating a main screen image and at least one second framing object for generating a sub-screen image; determining a first offset parameter corresponding to the first framing object and a second offset parameter corresponding to each sub-screen display area; applying the first offset parameter to a first offset term in the first projection parameter of the first framing object; applying the second offset parameter corresponding to the sub-screen display area to a second offset term in the second projection parameter of the corresponding second framing object; displaying the main screen image in the main screen display area, and displaying each sub-screen image in its corresponding sub-screen display area. This application displays images generated by different framing objects in a split-screen display manner, with the two images displayed in parallel in separate areas rather than obscuring each other, thus fundamentally avoiding the situation where image content obscures each other.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and computer-readable storage medium for displaying split-screen images. Background Technology

[0002] As games rapidly evolve, gameplay becomes increasingly diverse, with various interactive pop-ups, function setting interfaces, and teammate perspectives integrated into the game flow for players to view at any time. For example, during gameplay, players can switch to the function configuration interface to adjust gameplay settings. Another example is when assisting teammates in combat, triggering a display of their teammate's perspective to provide a clear understanding of their teammates' environment and the battle situation.

[0003] In related technologies, when displaying function panels and teammates' perspectives during gameplay, some of the original view of the player-controlled virtual object is obscured. This prevents players from perceiving changes in the virtual environment surrounding their controlled virtual object when viewing function configuration interfaces and teammates' perspectives. For example, they may not be able to detect if new enemy objects have appeared nearby. Summary of the Invention

[0004] This application provides a method, apparatus, electronic device, and readable storage medium for displaying split-screen images. The technical solutions provided by this application include the following aspects.

[0005] According to one aspect of the embodiments of this application, a method for displaying split-screen images is provided, the method comprising: Obtain a first viewfinder object for generating the main screen image and at least one second viewfinder object for generating the secondary screen image; Based on the positional relationship between the main screen display area and the secondary screen display area relative to the complete framing area, the first offset parameter corresponding to the first framing object and the second offset parameter corresponding to each of the secondary screen display areas are determined respectively. The first offset parameter is applied to the first offset item in the first projection parameter of the first view object, so that the first view object outputs the main screen image after being offset by the view window. For each of the sub-screen display areas, the second offset parameter corresponding to the sub-screen display area is applied to the second offset item in the second projection parameter of the corresponding second view object, so that the corresponding second view object outputs the sub-screen image after being offset by the view window; The main screen image is displayed in the main screen display area, and each of the sub-screen images is displayed in its corresponding sub-screen display area, resulting in a split-screen image composed of the main screen image and at least one of the sub-screen images at corresponding boundary positions.

[0006] According to one aspect of the embodiments of this application, a display device for split-screen display is provided, comprising: The acquisition module is used to acquire a first framing object for generating the main screen image and at least one second framing object for generating the secondary screen image. The determining module is used to determine the first offset parameter corresponding to the first framing object and the second offset parameter corresponding to each of the secondary screen display areas based on the positional relationship between the main screen display area and the secondary screen display area relative to the complete framing area. The first offset module is used to apply the first offset parameter to the first offset item in the first projection parameter of the first framing object, so that the first framing object outputs the main screen image after being offset by the framing window. The second offset module is used to apply the second offset parameter corresponding to each of the sub-screen display areas to the second offset item in the second projection parameter of the corresponding second framing object, so that the corresponding second framing object outputs the sub-screen image after being offset by the framing window. The display module is used to display the main screen image in the main screen display area and display each of the sub-screen images in the corresponding sub-screen display area, so as to obtain a split-screen image composed of the main screen image and at least one of the sub-screen images at the corresponding dividing position.

[0007] According to one aspect of the embodiments of this application, a computer device is provided, the computer device including a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to realize the display of the above-mentioned split-screen screen.

[0008] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is loaded and executed by a processor to realize the display of the above-mentioned split-screen screen.

[0009] According to one aspect of the embodiments of this application, a computer program product is provided, the computer program product including a computer program stored in a computer-readable storage medium, and a processor reading from the computer-readable storage medium and executing the computer program to realize the display of the above-mentioned split-screen screen.

[0010] The technical solution provided in this application can bring the following beneficial effects: The split-screen display method provided in this application first determines a first offset parameter corresponding to the first framing object and a second offset parameter corresponding to each sub-screen display area based on the positional relationship between the main screen and sub-screen display areas relative to the complete framing area. Then, the first offset parameter and each of the second offset parameters are applied to the offset terms in the offset parameters corresponding to the first framing object and each of the second framing objects to offset the framing windows corresponding to the first framing object and each of the second framing objects. The main screen image output by the first framing object after offset by the framing window is displayed in the main screen display area, and the sub-screen images output by each of the second framing objects after offset by the framing window are displayed in their respective sub-screen display areas, resulting in a split-screen image synthesized from the main screen image and at least one sub-screen image at corresponding boundary positions. Compared to the aforementioned related technologies, this application displays different images separately using a split-screen display method. The main screen display area and the sub-screen display area display images generated by different framing objects, and the two images are displayed in parallel in separate areas rather than obscuring each other, which can fundamentally prevent the sub-screen content from covering the main view image. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 A flowchart illustrating a method for displaying split-screen images according to an exemplary embodiment of this application is shown; Figure 2 This illustration shows a schematic diagram of a split-screen display method provided in an exemplary embodiment of this application; Figure 3 This illustration shows a schematic diagram of a split-screen display method provided in an exemplary embodiment of this application; Figure 4 A flowchart illustrating a method for displaying split-screen images according to an exemplary embodiment of this application is shown; Figure 5 This illustration shows a schematic diagram of a split-screen display method provided in an exemplary embodiment of this application; Figure 6 This illustration shows a schematic diagram of a split-screen display method provided in an exemplary embodiment of this application; Figure 7 A flowchart illustrating a method for displaying split-screen images according to an exemplary embodiment of this application is shown; Figure 8 This illustration shows a schematic diagram of a split-screen display method provided in an exemplary embodiment of this application; Figure 9 This illustration shows a schematic diagram of a split-screen display method provided in an exemplary embodiment of this application; Figure 10 A flowchart illustrating a method for displaying split-screen images according to an exemplary embodiment of this application is shown; Figure 11 A flowchart illustrating a method for displaying split-screen images according to an exemplary embodiment of this application is shown; Figure 12 This illustration shows a structural block diagram of a split-screen display method apparatus provided in an exemplary embodiment of this application; Figure 13 A structural block diagram of a computer device provided in an exemplary embodiment of this application is shown. Detailed Implementation

[0013] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0014] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0015] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0016] It should be understood that although the terms first, second, etc., may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, a first parameter may also be referred to as a second parameter, and similarly, a second parameter may also be referred to as a first parameter. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0017] It should be noted that this application may display prompts, pop-ups, or output voice messages before and during the collection of user data. These prompts, pop-ups, or voice messages are used to inform the user that their data is being collected. This ensures that the application only begins the steps for collecting user data after receiving confirmation from the user regarding the prompt or pop-up; otherwise (i.e., without user confirmation), the steps for collecting user data end, meaning no user data is collected. In other words, all user data collected in this application is collected with the user's consent and authorization, and the collection, use, and processing of this user data must comply with the relevant laws, regulations, and standards of the relevant countries and regions.

[0018] Figure 1 A flowchart illustrating a method for displaying a split-screen view according to an exemplary embodiment of this application is shown. This method is executed by a terminal, server, computer, or client.

[0019] Reference Figure 1 The following is a brief description of the split-screen display method according to the embodiments of this application: Step 110: Obtain a first viewfinder for generating the main screen and at least one second viewfinder for generating the secondary screen.

[0020] In this embodiment, the framing scene can be a real scene or a virtual scene, such as a game scene; this is merely an example. When the framing scene is a real scene, both the first and second framing objects are real cameras or lenses. When the framing scene is a game scene, both the first and second framing objects are virtual cameras or virtual lenses.

[0021] In this embodiment, split-screen display may include a main screen and at least one secondary screen. That is, during split-screen display, a main screen and one or more secondary screens can be displayed simultaneously, and there is no limitation on the number of secondary screens.

[0022] Taking a game's graphical user interface (GUI) as an example, the GUI is split-screen, dividing it into a main display area and at least one secondary display area. The images displayed in different areas are framed by different viewfinders. A first viewfinder is acquired and used as the viewfinder for generating the main screen image. At least one second viewfinder is acquired, and all second viewfinders are used as viewfinders for each secondary screen image, with a one-to-one correspondence between the second viewfinder and the secondary screen image.

[0023] For example, such as Figure 2As shown, in the screen normalized coordinate space, the graphical user interface (i.e., the complete viewfinder area) is divided into one main display area and two secondary display areas, namely secondary display area 1 and secondary display area 2. The main display area is used to display the main screen image generated after framing the first viewfinder object. Secondary display area 1 is used to display secondary screen image 1 generated after framing the second viewfinder object 1, and secondary display area 2 is used to display secondary screen image 2 generated after framing the second viewfinder object 2.

[0024] Step 120: Based on the positional relationship between the main screen display area and the secondary screen display area relative to the complete framing area, determine the first offset parameter corresponding to the first framing object and the second offset parameter corresponding to each secondary screen display area.

[0025] The complete viewfinder area refers to the entire area of ​​the graphical user interface. In split-screen display, this complete viewfinder area is divided into the main display area and at least one secondary display area. For example... Figure 3 As shown, split-screen method 1 is used to horizontally split the entire viewfinder area, dividing it into two regions: the main display area on the left and the secondary display area on the right. Split-screen method 2 is used to vertically split the entire viewfinder area, dividing it into two regions: the main display area at the top and the secondary display area at the bottom.

[0026] The positional relationship between the main display area and the full viewfinder refers to the location of the main display area within the full viewfinder; similarly, the positional relationship between the secondary display area and the full viewfinder refers to the location of the secondary display area within the full viewfinder.

[0027] For example, taking the secondary screen display area as an example, the position and size of the secondary screen display area are set within a defined screen normalized coordinate space. For example... Figure 3 As shown, taking split-screen mode 1 as an example, the upper left corner is the origin of the coordinate system, the horizontal axis to the right is the positive X-axis, and the vertical axis downwards is the positive Y-axis, constructing a normalized planar coordinate space for the graphical user interface (i.e., the complete viewfinder area). The coordinate values ​​of the horizontal and vertical axes in this coordinate space are both [0,1]. In this coordinate space, a secondary screen display area can be defined by setting anchor points and display area size. The anchor point refers to the starting point of the secondary screen display area in the normalized coordinate space of this screen, and the display area size refers to the span from the anchor point coordinates towards the positive X-axis and positive Y-axis. For example... Figure 3 As shown, the secondary screen display area in split-screen mode 1 is the display area determined by the anchor point (0.6,0) and the display area size (0.4,1).

[0028] For example Figure 3 Taking split-screen mode 1 in the example, as follows: Figure 3 As shown, in split-screen mode 1, the main screen display area is positioned to the left of the full viewfinder, with its horizontal range extending from the left edge to the 60% horizontal dividing line. This means the main screen display area occupies 60% of the total width of the full viewfinder. The secondary screen display area is positioned to the right of the full viewfinder, with its horizontal range extending from the 60% horizontal dividing line to the right edge. This means the secondary screen display area occupies 40% of the total width of the full viewfinder. In other words, the main and secondary screen display areas are adjacent to each other, with the main screen display area having a 60% horizontal screen-to-body ratio and the secondary screen display area having a 40% horizontal screen-to-body ratio.

[0029] In this embodiment, before split-screen display, the main screen display area generated after the first viewfinder object is framed is the complete viewfinder area. In the case of split-screen display, the complete viewfinder area is divided into a main screen display area and at least one secondary screen display area. Based on the positional relationship between the main screen display area and the complete viewfinder area after split-screen display, a first offset parameter corresponding to the first viewfinder object is determined.

[0030] Similarly, for each second viewfinder object and its corresponding secondary display area, the second offset parameter corresponding to the secondary display area needs to be determined based on the positional relationship between the secondary display area after split-screen display and the complete viewfinder area. The secondary display area, the second viewfinder object, and the second offset parameter are in a one-to-one correspondence.

[0031] For example, such as Figure 3 As shown, in the complete viewfinder area after split-screen display 1, the main screen display area and the secondary screen display area are adjacent to each other on the left and right, with horizontal screen ratios of 60% and 40% respectively. Therefore, for the main screen display area, the first offset parameter is determined based on the 60% horizontal screen ratio on the left. And for the secondary screen display area, the second offset parameter is determined based on the 40% horizontal screen ratio on the right.

[0032] Step 130: Apply the first offset parameter to the first offset item in the first projection parameter of the first view object, so that the first view object outputs the main screen image after being offset by the view window.

[0033] The first offset term in the first projection parameter of the first viewfinder object is a parameter component used to offset the viewfinder window vertically or horizontally.

[0034] For example, taking a first virtual camera as the first viewfinder, the first projection parameter can be the projection matrix corresponding to the first virtual camera. The first offset parameter is applied to the horizontal or vertical offset item in the projection matrix of the first virtual camera. Subsequently, the first viewfinder outputs the main screen image after offset by the viewfinder window.

[0035] For example, with Figure 3 Taking the split-screen method 1 as an example, the main screen display area and the secondary screen display area are adjacent to each other on the left and right, and the horizontal screen ratio of the main screen display area is 60%, while the horizontal screen ratio of the secondary screen display area is 40%. Therefore, based on the case that the horizontal screen ratio of the main screen display area is 60%, a first offset parameter is determined, and this first offset parameter is applied to the horizontal offset item in the projection matrix of the first virtual camera. Subsequently, the first framing object outputs the main screen image after being offset by the framing window.

[0036] For example, with Figure 3 Taking the split-screen method 2 as an example, the main screen display area and the secondary screen display area are adjacent vertically, and the vertical screen ratio of the main screen display area is 60%, while the vertical screen ratio of the secondary screen display area is 40%. Therefore, based on the case that the vertical screen ratio of the main screen display area is 60%, a first offset parameter is determined, and this first offset parameter is applied to the vertical offset item in the projection matrix of the first virtual camera. Subsequently, the first framing object outputs the main screen image after offset by the framing window.

[0037] Step 140: For each secondary screen display area, apply the second offset parameter corresponding to the secondary screen display area to the second offset item in the second projection parameter of the corresponding second view object, so that the corresponding second view object outputs the secondary screen image after being offset by the view window.

[0038] In this embodiment of the application, for each secondary screen display area, the following steps are performed: the second offset parameter corresponding to the secondary screen display area is applied to the second offset item in the second projection parameter of the corresponding second view object, so that the corresponding second view object outputs the secondary screen image after being offset by the view window.

[0039] For example, taking a second virtual camera as the second viewfinder, the second projection parameter can be the projection matrix corresponding to the second virtual camera. The second offset parameter is applied to the horizontal or vertical offset item in the projection matrix of the second virtual camera. Subsequently, the second viewfinder outputs the sub-screen image after being offset by the viewfinder window.

[0040] For example, with Figure 3Taking the split-screen method 1 as an example, the main screen display area and the secondary screen display area are adjacent to each other on the left and right, and the horizontal screen ratio of the main screen display area is 60%, while the horizontal screen ratio of the secondary screen display area is 40%. Therefore, based on the case that the horizontal screen ratio of the secondary screen display area is 40%, a second offset parameter is determined, and this second offset parameter is applied to the horizontal offset item in the projection matrix of the second virtual camera. Subsequently, the second viewfinder outputs the secondary screen image after being offset by the viewfinder window.

[0041] For example, with Figure 3 Taking the split-screen method 2 as an example, the main screen display area and the secondary screen display area are adjacent vertically, and the vertical screen ratio of the main screen display area is 60%, while that of the secondary screen display area is 40%. Therefore, based on the 40% vertical screen ratio of the secondary screen display area, a second offset parameter is determined, and this second offset parameter is applied to the vertical offset term in the projection matrix of the second virtual camera. Subsequently, the second viewfinder outputs the secondary screen image after being offset by the viewfinder window.

[0042] Step 150: Display the main screen image in the main screen display area, and display each secondary screen image in its corresponding secondary screen display area, to obtain a split-screen image composed of the main screen image and at least one secondary screen image at the corresponding dividing position.

[0043] In this embodiment, the main screen image output by the first viewfinder object after being offset by a first offset parameter through the viewfinder window, and the secondary screen images output by each second viewfinder object after being offset by a corresponding second offset parameter through the viewfinder window, are obtained. Subsequently, the main screen image is displayed in the main screen display area, and each secondary screen image is displayed in its corresponding secondary screen display area, thus obtaining a split-screen image composed of the main screen image and at least one secondary screen image at corresponding boundary positions.

[0044] The split-screen display method provided in this application first determines a first offset parameter corresponding to the first framing object and a second offset parameter corresponding to each sub-screen display area based on the positional relationship between the main screen and sub-screen display areas relative to the complete framing area. Then, the first offset parameter and each of the second offset parameters are applied to the offset terms in the offset parameters corresponding to the first framing object and each of the second framing objects to offset the framing windows corresponding to the first framing object and each of the second framing objects. The main screen image output by the first framing object after offset by the framing window is displayed in the main screen display area, and the sub-screen images output by each of the second framing objects after offset by the framing window are displayed in their respective sub-screen display areas, resulting in a split-screen image synthesized from the main screen image and at least one sub-screen image at corresponding boundary positions. Compared to the aforementioned related technologies, this application displays different images separately using a split-screen display method. The main screen display area and the sub-screen display area display images generated by different framing objects, and the two images are displayed in parallel in separate areas rather than obscuring each other, which can fundamentally prevent the sub-screen content from covering the main view image.

[0045] Figure 4 A flowchart illustrating a method for displaying a split-screen view according to an exemplary embodiment of this application is shown. This method is executed by a terminal, server, computer system, or client. The method includes the following steps.

[0046] Step 210: Obtain a first viewfinder for generating the main screen and at least one second viewfinder for generating the secondary screen.

[0047] In one possible implementation, the split-screen display is triggered based on a split-screen display trigger event. This split-screen display trigger event includes single-player gameplay events, which may include at least one of the following: attack events, skill release events, target trigger events, or story events.

[0048] In this embodiment, when the main screen is displayed in full-screen mode, a split-screen display trigger event is initiated to display the graphical user interface in split-screen mode. Taking a game as an example, the split-screen display trigger event includes a single-player gameplay event, meaning that split-screen display is triggered when the game enters single-player gameplay mode. This allows for automatic split-screen activation based on the player's gameplay, eliminating the need for manual screen splitting and ensuring smooth gameplay while maintaining the player's rhythm.

[0049] The aforementioned single-player gameplay event refers to a single player controlling a primary virtual object within a specific game process in a single-player or story-driven game. Following the main storyline, the player independently explores the virtual game environment, advancing the narrative. It's important to emphasize that while the primary virtual object may interact with non-player characters or other players' virtual objects during gameplay, in this application's single-player gameplay event, no multi-player cooperation is required. The primary virtual object alone participates in driving the main storyline forward, which distinguishes it from two-player or multi-player cooperative game modes.

[0050] Based on the single-player gameplay event, the player's game behavior can be further divided into the following events: movement events, attack events, skill release events, target trigger events, and triggering events to enter a preset storyline. Furthermore, a secondary screen display area associated with the single-player gameplay event can be displayed in the secondary screen display area after split-screen display. For example, in a single-player gameplay event, the single player controls a first virtual object to perform game activities in the game scene. In response to the first virtual object moving, the secondary screen displays the mission destination, mission path, obstacle status, or target area status. In response to the first virtual object attacking or releasing a skill, the secondary screen displays the non-player character status, scene change status, or result preview. In response to the first virtual object triggering a virtual machine shutdown, the secondary screen displays the mechanism feedback screen or the scene screen affected by the virtual machine shutdown. In response to the first virtual object performing a storyline selection, the secondary screen displays the storyline performance screen or the storyline branch result screen. These are merely examples, and this application does not impose any limitations.

[0051] This single-player gameplay event based on the participation of the first virtual object creates a strong connection between the main screen and the secondary screen. The timing of the split screen is aligned with the needs of the game's storyline. The main screen and the secondary screen can change synchronously with the game behavior of the first virtual object, ensuring that the main screen and the secondary screen maintain the continuity of the virtual environment's visuals or the game's narrative. In this way, players can simultaneously view the real-time game behavior of the first virtual object they control in the current game process and the secondary screen related to the current game process events, without having to switch perspectives back and forth, greatly enhancing the player's immersive experience.

[0052] In one possible implementation, the first and second viewfinders are located in the same virtual world, and the main screen and secondary screen are images corresponding to different viewfinder windows within the same virtual world. That is, the first and second viewfinders capture images of a virtual scene within the same virtual world, and the content captured by the first and second viewfinders can be the same or different. Since the first and second viewfinders are located in the same virtual world, the images generated based on the content captured by their respective viewfinder windows are the main screen content and the secondary screen content, respectively. For example, the viewfinder window of the first viewfinder is pointed at location point C in the virtual world, and the viewfinder window of the second viewfinder is pointed at location point D, which is far away from location point C in the same virtual world. The main screen image captured by the first viewfinder at location point C is the virtual scene where location point C is located, and the secondary screen image captured by the second viewfinder at location point D is the virtual scene where location point D is located.

[0053] In one possible implementation, the first framing object is located in a first virtual world, and the second framing object is located in a second virtual world. The first and second virtual worlds have independent scene data or coordinate systems, and the first and second offset parameters ensure that the main screen and the secondary screen are continuously connected according to the screen edge coordinates at the dividing position.

[0054] In the embodiments of this application, the first framing object used to render the main screen and the second framing object used to render the secondary screen belong to independent first and second virtual worlds, respectively. Each of these two virtual worlds has independent scene data and an independent coordinate system, and their scene spaces are not interconnected. For the first framing object and each of the second framing objects, by configuring first and second offset parameters that adapt to the positional relationship between each display area and the complete framing area, the framing window of the corresponding framing object is offset. This allows the main screen and secondary screen, originating from two independent virtual scenes, to continuously align their edge coordinates at the screen-divide boundary, achieving a seamless, uninterrupted, and gap-free splicing display. This solves the problem of fragmented splicing edges and visual inconsistencies caused by inconsistent spatial coordinate systems in different virtual worlds.

[0055] For example, the first and second viewfinders are located in different virtual worlds. These two virtual worlds contain triangular prisms 1 and 2 of the same size but different materials. The first and second viewfinders use the same basic camera parameters, such as FOV (field of view) and shooting posture, to photograph the corresponding triangular prisms. The two-dimensional viewfinder images captured by the first viewfinder 1 and the second viewfinder 2 are triangle 1 and triangle 2, respectively. For example, with the main screen display area and the secondary screen display area each having a screen ratio of 50%, the first and second offset parameters result in a split-screen display effect for the main screen and the secondary screen, as shown below. Figure 4 As shown, the main screen and the secondary screen are seamlessly joined by half a triangle 1 and half a triangle 2.

[0056] In one possible implementation, each sub-screen image is generated by multiple second view objects, or by the same second view object under different rendering channels or different projection parameters.

[0057] In this embodiment, when the number of secondary screen images is greater than or equal to two, each secondary screen image can be generated by a different second framing object, and the secondary screen image and the second framing object correspond one-to-one. Two or more secondary screen images can also be generated separately by the same second framing object based on different rendering channels or projection parameters. That is, the second framing object can simultaneously generate different secondary screen images under different rendering channels or different rendering parameters, meaning the second framing object corresponds to multiple secondary screen images. Reusing a single framing object with multiple rendering channels and multiple projection parameters reduces the number of virtual cameras created, lowering resource consumption and rendering overhead.

[0058] Step 220: Based on the positional relationship between the main screen display area and the secondary screen display area relative to the complete framing area, determine the first offset parameter corresponding to the first framing object and the second offset parameter corresponding to each secondary screen display area.

[0059] Step 230: When only adjusting the offset item in the projection parameters without changing the framing range of the main screen and the secondary screen, when applying the first offset parameter to the first offset item in the first projection parameters and applying the second offset parameter to the second offset item in the second projection parameters of the corresponding second framing object, keep the horizontal zoom parameter and vertical zoom parameter in the first and second projection parameters unchanged, so that the corresponding first framing object outputs the main screen image after being offset by the framing window, and the corresponding second framing object outputs the secondary screen image after being offset by the framing window.

[0060] Among them, the horizontal zoom parameter controls the projection width of the image in the horizontal direction, and the vertical zoom parameter controls the projection height of the image in the vertical direction.

[0061] As mentioned above, the projection parameters include the projection matrix P of the virtual camera. The function of the projection matrix P is to convert the three-dimensional spatial coordinates in the virtual camera coordinate system into two-dimensional screen clipping spatial coordinates.

[0062]

[0063] Where P is the projection matrix, Sx is the horizontal zoom parameter, Sy is the vertical zoom parameter, OffsetX is the horizontal offset term, OffsetY is the vertical offset term, A and B are the depth conversion parameters, and -1 is the perspective division marker.

[0064] The offset term in the projection parameters is used to offset the viewfinder window of the object being viewed in order to change the content being viewed. The parameters used to offset the viewfinder window in the projection matrix P mentioned above are the horizontal offset term OffsetX and the vertical offset term OffsetY.

[0065] Maintaining the same framing range for the main and secondary screens means that the virtual scene content displayed on each screen will not be enlarged or reduced. Specifically, the horizontal zoom parameter Sx controls the horizontal projection width, and the vertical zoom parameter Sy controls the vertical projection height, thus allowing the virtual scene content to be enlarged or reduced horizontally and vertically, respectively.

[0066] In this embodiment of the application, when it is required to adjust only the offset item in the projection parameters and ensure that the framing range of the main screen and the secondary screen is not changed, it is necessary to keep the horizontal zoom parameter and the vertical zoom parameter in the first projection parameter and the second projection parameter unchanged, and apply the first offset parameter to the first offset item in the first projection parameter, namely the horizontal offset item OffsetX and / or the vertical offset item OffsetY, and apply the second offset parameter to the second offset item in the second projection parameter of the corresponding second framing object, namely the horizontal offset item OffsetX and / or the vertical offset item OffsetY.

[0067] Step 240: Display the main screen image in the main screen display area, and crop or hide the portion of the main screen image that is outside the main screen display area. Display each secondary screen image in its corresponding secondary screen display area, and for each secondary screen image, crop or hide the portion of the secondary screen image that is outside its corresponding secondary screen display area, to obtain a split-screen image composed of the main screen image and at least one secondary screen image at the corresponding dividing position.

[0068] In this embodiment of the application, the view content of the first view object's view window, i.e., the part of the main screen image located outside the main screen display area, is cropped or not displayed, and the view content of the second view object's view window, i.e., the part of the secondary screen image located outside the secondary screen display area, is cropped or not displayed.

[0069] In other words, after shifting the viewfinder window of the first subject, a portion of the content within that viewfinder will be outside the main screen display area. This portion of the content will not be displayed on the main screen, so the corresponding portion of the main screen image needs to be cropped or not displayed. Similarly, after shifting the viewfinder window of the second subject, a portion of the content within that viewfinder will be outside the secondary screen display area. This portion of the content will not be displayed on the secondary screen, so the corresponding portion of the secondary screen image needs to be cropped or not displayed.

[0070] Below, we will explain the specific implementation methods for cropping or not displaying the main screen and secondary screen images in several cases where the relative positional relationship between the main screen display area and the secondary screen display area is different.

[0071] In one possible implementation, when the main screen display area is located to the left of the secondary screen display area, the viewfinder window of the first viewfinder is shifted to the left using a first offset parameter, and the portion of the left side of the main screen image that extends beyond the main screen display area is cropped or not displayed. The viewfinder window of the second viewfinder is shifted to the right using a second offset parameter, and the portion of the right side of the secondary screen image that extends beyond the secondary screen display area is cropped or not displayed.

[0072] In this embodiment, in a horizontal split-screen scenario where the main screen display area is located to the left of the secondary screen display area, the positions of the viewfinder windows of the two viewfinder objects are adjusted by offset parameters. The first offset parameter controls the viewfinder window corresponding to the first viewfinder object to shift to the left as a whole, discarding the image content in the main screen image that exceeds the left boundary of the main screen display area. Then, the second offset parameter controls the viewfinder window of the second viewfinder object to shift to the right as a whole, discarding the image content in the secondary screen image that exceeds the right boundary of the secondary screen display area. This aligns the edges of the cropped images of the main screen and the secondary screen, completing the horizontal split-screen splicing display.

[0073] For example, such as Figure 5 As shown, the viewfinder 1 of the first viewfinder and the viewfinder 2 of the second viewfinder are displayed in a split-screen format. The split-screen display effect is that the left half of the screen (i.e., the main screen display area) displays the left half of the viewfinder 1, and the right half of the screen (i.e., the secondary screen display area) displays the right half of the viewfinder 2.

[0074] Below, in conjunction with Figure 6 right Figure 5 The method for achieving the split-screen display effect shown is explained.

[0075] like Figure 5As shown, in the split-screen display, the left half of the screen (i.e., the main screen display area) displays the left half of viewfinder 1. To achieve this... Figure 5 The left half of the screen (i.e., the main display area) shows the left half of the viewfinder 1. Therefore, the first offset parameter in the first offset parameter of the first viewfinder object needs to be shifted to the left, as follows: Figure 6 As shown, until the right edge of the viewfinder window of the first viewfinder object reaches halfway into the triangle, the right side of the viewfinder window of the first viewfinder object after offsetting will be the left half of the triangle. To achieve this... Figure 5 The right half of the screen (i.e., the secondary display area) shows the right half of viewfinder 2. Therefore, the second offset parameter in the second offset parameter of the second viewfinder object needs to be shifted to the right, as follows: Figure 6 As shown, until the left boundary of the viewfinder window of the second viewfinder reaches half of the triangle, the left viewfinder content within the offset viewfinder window becomes the right half of the triangle. Then, the first offset parameter is applied to the first offset term in the first projection parameter of the first viewfinder, causing the first viewfinder to output the main screen image after the viewfinder window offset. And, the second offset parameter is applied to the second offset term in the second projection parameter of the corresponding second viewfinder, causing the corresponding second viewfinder to output the secondary screen image after the viewfinder window offset. The placement positions of the main screen image and the secondary screen image in the screen's normalized coordinate space are set to anchor point (0.5, 0) for splicing, and the display area size of both the main screen and the secondary screen display areas is (0.5, 1). The content of the main screen image that exceeds the left boundary of the main screen display area, i.e., the content of area 1, is discarded, and the remaining main screen image is displayed in the main screen display area. And, the content of the secondary screen image that exceeds the right boundary of the secondary screen display area, i.e., the content of area 2, is discarded, and the remaining secondary screen image is displayed in the secondary screen display area, thus obtaining the image shown below. Figure 6 The split-screen display effect shown.

[0076] In one possible implementation, when the main screen display area is located to the right of the secondary screen display area, the viewfinder window of the first viewfinder is shifted to the right using a first offset parameter, and the portion of the right side of the main screen image that extends beyond the main screen display area is cropped or not displayed. The viewfinder window of the second viewfinder is shifted to the left using a second offset parameter, and the portion of the left side of the secondary screen image that extends beyond the secondary screen display area is cropped or not displayed.

[0077] In this embodiment, in a horizontal split-screen scenario where the main screen display area is located to the right of the secondary screen display area, the positions of the viewfinder windows of the two viewfinder objects are adjusted by offset parameters. The first offset parameter controls the viewfinder window of the first viewfinder object to shift to the right, discarding the image content in the main screen that exceeds the right boundary of the main screen display area. Then, the second offset parameter controls the viewfinder window of the second viewfinder object to shift to the left, discarding the image content in the secondary screen that exceeds the left boundary of the secondary screen display area. This aligns the edges of the cropped images of the main screen and the secondary screen, completing the horizontal split-screen splicing display.

[0078] In one possible implementation, when the main screen display area is located above the secondary screen display area, a first offset parameter is used to shift the viewfinder window of the first viewfinder upwards, and the portion of the upper part of the main screen image that extends beyond the main screen display area is cropped or not displayed. A second offset parameter is used to shift the viewfinder window of the second viewfinder downwards, and the portion of the lower part of the secondary screen image that extends beyond the secondary screen display area is cropped or not displayed.

[0079] In this embodiment, when the main screen display area is located above the secondary screen display area, the viewfinder window corresponding to the first view object is shifted upwards by the first offset parameter, discarding the image content in the main screen that exceeds the upper boundary of the main screen display area. At the same time, the viewfinder window corresponding to the second view object is shifted downwards by the second offset parameter, discarding the image content in the secondary screen that exceeds the lower boundary of the secondary screen display area. After each cropping, the lower edge of the main screen and the upper edge of the secondary screen can be precisely aligned, achieving seamless display of the split-screen images.

[0080] In one possible implementation, when the main screen display area is located below the secondary screen display area, a first offset parameter is used to shift the viewfinder window of the first viewfinder downwards, and the portion of the lower part of the main screen image that extends beyond the main screen display area is cropped or not displayed. A second offset parameter is used to shift the viewfinder window of the second viewfinder upwards, and the portion of the upper part of the secondary screen image that extends beyond the secondary screen display area is cropped or not displayed.

[0081] In this embodiment, when the main screen display area is located below the secondary screen display area, the viewfinder window corresponding to the first view object is shifted downwards by the first offset parameter, discarding the image content in the main screen that exceeds the lower boundary of the main screen display area. At the same time, the viewfinder window corresponding to the second view object is shifted upwards by the second offset parameter, discarding the image content in the secondary screen that exceeds the upper boundary of the secondary screen display area. After each cropping, the upper edge of the main screen and the lower edge of the secondary screen can be precisely aligned, achieving seamless display of the split-screen images.

[0082] In one possible implementation, when the main display area and the secondary display area are arranged in a picture-in-picture layout, one of the main display area and the secondary display area is designated as an embedded display area, and the other as an outer display area. Based on the position of the embedded display area within the outer display area, an offset parameter for the framing object corresponding to the embedded display area is determined, and the framing window corresponding to the embedded display area is shifted to the framing range corresponding to the embedded display area. The portion of the image corresponding to the embedded display area that is outside the embedded display area is cropped or not displayed, and the portion of the image corresponding to the outer display area that covers the embedded display area is also cropped or not displayed.

[0083] In this embodiment, the main screen display area and the secondary screen display area constitute a picture-in-picture display layout. One of the two display areas is designated as the outer display area, and the other is designated as the embedded small-sized display area. The offset parameters are calculated based on the placement position of the embedded display area within the outer display area. The viewfinder window of the corresponding view object in the embedded display area is adjusted to fit the viewfinder range of the embedded display area. At the same time, cropping processing is performed on the inner and outer images respectively. Content of the embedded image that exceeds the embedded display area is cropped or not displayed, and content of the outer image that is obscured or not displayed by the embedded display area is cropped or not displayed. Finally, a picture-in-picture split-screen display effect with the inner image embedded in the outer image is achieved.

[0084] For example, taking a normalized coordinate range of [-1, 1] for the entire viewfinder area, the main screen is set as the outer display area, and the secondary screen is an embedded display area in the lower right corner, resembling a picture-in-picture. The horizontal and vertical ranges of the embedded display area are [0.4, 1]. First, the horizontal and vertical offset parameters corresponding to the viewfinder object of the secondary screen are calculated based on the position of the embedded display area in the lower right corner of the outer screen. The secondary screen viewfinder window is then offset to match the viewfinder range of the embedded display area. During rendering, excess secondary screen images with a horizontal range less than 0.4 and a vertical range less than 0.4 are cropped. At the same time, the image content in the main screen image that is covered by the embedded secondary screen with a horizontal range of 0.4 to 1 and a vertical range of 0.4 to 1 is also cropped. Finally, a picture-in-picture display effect is formed in which a small secondary screen image is embedded in the lower right corner of the outer main screen image.

[0085] In the split-screen display method provided in this application embodiment, a first framing object for generating the main screen and a second framing object for generating the secondary screen are first obtained respectively. Based on the positional relationship between the main screen and the secondary screen's relatively complete framing area, corresponding offset parameters are determined. The horizontal and vertical zoom parameters are fixed throughout the process, with only the offset parameter modified. This ensures that the original framing range of the virtual scene is not scaled or stretched, preserving the scene's original proportions and avoiding distortion. Simultaneously, adjusting the offset parameters is sufficient to shift the framing window; the computational logic is simple, eliminating the need for scaling-related calculations, effectively reducing the computational load of the rendering pipeline and lowering device performance consumption. After configuring the offset parameters, the first and second framing objects output the main screen and secondary screen images respectively after window offset. Content exceeding the display area of ​​each image is then uniformly cropped, and finally, the images are stitched together at the boundary to form a split-screen image. This ensures that the main screen and secondary screen retain only the effective image within their own display area, eliminating image overlap and excess image overflow, resulting in a neat and clean edge without any cluttered ghosting.

[0086] Figure 7 A flowchart illustrating a method for displaying a split-screen view according to an exemplary embodiment of this application is shown. This method is executed by a terminal, server, computer system, or client. The method includes the following steps.

[0087] Step 310: Obtain a first viewfinder for generating the main screen and at least one second viewfinder for generating the secondary screen.

[0088] Step 320: Based on the positional relationship between the main screen display area and the secondary screen display area relative to the complete framing area, determine the first offset parameter corresponding to the first framing object and the second offset parameter corresponding to each secondary screen display area.

[0089] Step 330: When adjusting only the offset item in the projection parameters without changing the framing range of the main screen and the secondary screen, when applying the first offset parameter to the first offset item in the first projection parameters and applying the second offset parameter to the second offset item in the second projection parameters of the corresponding second framing object, keep the horizontal zoom parameter and vertical zoom parameter in the first projection parameters and the second projection parameters unchanged.

[0090] Among them, the horizontal zoom parameter controls the projection width of the image in the horizontal direction, and the vertical zoom parameter controls the projection height of the image in the vertical direction.

[0091] Step 340: With the main screen display area and each sub-screen display area arranged horizontally, the first horizontal boundary of the viewfinder window of the first viewfinder object is kept at the left boundary of the complete viewfinder area according to the first offset parameter, and the second horizontal boundary of the viewfinder window of the second viewfinder object is kept at the right boundary of the complete viewfinder area according to the second offset parameter, so that the corresponding first viewfinder object outputs the main screen image after the viewfinder window offset, and the corresponding second viewfinder object outputs the sub-screen image after the viewfinder window offset.

[0092] In this embodiment of the application, in a scenario where the main screen and multiple secondary screens are arranged horizontally from left to right, the left horizontal boundary of the first framing object's framing window is fixedly aligned with the leftmost boundary of the complete framing area by setting a first offset parameter, and the right horizontal boundary of the second framing object's framing window is fixedly aligned with the rightmost boundary of the complete framing area by setting a second offset parameter, thereby ensuring that there are no gaps or cropped edges on the left and right sides of the overall split-screen image.

[0093] For example, the horizontal range of the normalized coordinate space of the complete framing area is [-1,1]. The main screen display area is located on the far left. The left boundary of the framing window of the first framing object is permanently fixed at -1 by the first offset parameter. Multiple sub-screens are arranged sequentially on the right side of the main screen. The rightmost sub-screen is fixed at the right boundary of its framing window at 1 by the second offset parameter. No matter how the width of each sub-screen is adjusted, the entire set of horizontal sub-screen images always fills the space between the complete horizontal framing areas, with no missing parts on the left and right sides.

[0094] For example, such as Figure 8 As shown, with the main screen and secondary screen display areas arranged horizontally from left to right, the left boundary of the viewfinder window for the first subject is locked, and the right boundary is moved to the left. After offset, as shown... Figure 8 The viewfinder of the first framing object shows only the left half-triangle, and the main screen generated from the first framing object is also a left half-triangle. Locking the right boundary of the viewfinder of the second framing object and moving the left boundary to the right, the offset is as follows... Figure 8 The viewfinder window of the second viewfinder shows only the right half of a triangle, and the main screen generated by the second viewfinder also displays the right half of the triangle. The final split-screen display seamlessly stitches the left half of the triangle captured by the first viewfinder with the right half of the triangle captured by the second viewfinder.

[0095] Step 350: With the main screen display area and each sub-screen display area arranged vertically, the first vertical boundary of the viewfinder window of the first viewfinder object is kept at the upper boundary of the complete viewfinder area according to the first offset parameter, and the second vertical boundary of the viewfinder window of the second viewfinder object is kept at the lower boundary of the complete viewfinder area according to the second offset parameter, so that the corresponding first viewfinder object outputs the main screen image after the viewfinder window offset, and the corresponding second viewfinder object outputs the sub-screen image after the viewfinder window offset.

[0096] In this embodiment of the application, in a vertical split-screen scenario where the main screen and multiple sub-screens are arranged vertically from top to bottom, the upper vertical boundary of the first framing object's framing window is constrained to always fit the top boundary of the complete framing area by setting a first offset parameter, and the lower vertical boundary of the second framing object's framing window corresponding to the outermost sub-screen is fixedly aligned with the bottom boundary of the complete framing area by setting a second offset parameter. This ensures that the upper and lower ends of the entire vertical split-screen image are firmly fitted with the complete framing range, and there will be no missing or blank images at the upper and lower edges.

[0097] For example, the vertical range of the normalized coordinate space of the complete framing area is [-1,1]. The main screen display area is located at the top. By setting the first offset parameter, the upper boundary of the framing window of the first framing object is permanently locked at -1, which represents the top of the screen. Multiple sub-screens are arranged in sequence below the main screen. The sub-screen at the bottom is fixed at the lower boundary of its framing window at 1, which represents the bottom of the screen, through the second offset parameter. Even if the vertical height ratio of the main screen and each sub-screen is dynamically adjusted, the entire vertical split screen image still completely fills the vertical framing area, and there is no loss of scenery at the top or bottom.

[0098] For example, such as Figure 9 As shown, with the main screen and secondary screen display areas arranged vertically from top to bottom, the upper boundary of the viewfinder window for the first subject is locked, and the lower boundary is moved upwards. After the offset, it is as follows: Figure 9 The viewfinder window of the first framing object shows only the upper half of a triangle, and the main screen generated from the first framing object subsequently displays the upper half of a triangle. Locking the lower boundary of the viewfinder window of the second framing object and moving the upper boundary downwards, after the offset, results in... Figure 9 The viewfinder of the second viewfinder shows only the lower half of a triangle, and the main screen generated by the second viewfinder also displays the lower half of the triangle. The final split-screen display seamlessly stitches the upper half of the triangle captured by the first viewfinder with the lower half of the triangle captured by the second viewfinder.

[0099] Step 360: Display the main screen image in the main screen display area, and display each secondary screen image in its corresponding secondary screen display area, to obtain a split-screen image composed of the main screen image and at least one secondary screen image at the corresponding dividing position.

[0100] The split-screen display method provided in this application embodiment, for horizontally arranged multi-screen layouts, uses offset parameters to lock the left boundary of the first view object's viewport window as the left boundary of the complete view area, and locks the right boundary of the second view object's viewport window as the right boundary of the complete view area. For vertically arranged multi-screen layouts, it locks the upper boundary of the first view object's viewport window as the upper boundary of the complete view area, and locks the lower boundary of the second view object's viewport window as the lower boundary of the complete view area, ensuring that the overall outer boundary of the horizontal / vertical split screen always fits the complete view area. Thus, before rendering the main screen and secondary screen images, by locking one boundary of the viewport window, the effective visible area of ​​the viewport captured by the first view object and each of the second view objects in the main screen and each of the secondary screen display areas can be precisely defined. This ensures that only the first view object... The rendering process effectively eliminates the computational redundancy and performance loss caused by full rendering followed by post-processing cropping. Furthermore, it avoids situations where there is blank space at the top and bottom, left and right, or scene edges are unnecessarily cropped or lost. Moreover, this application relies solely on offset parameters to complete adaptation and boundary constraints, without modifying camera positions or adding complex correction calculations, significantly reducing the computational overhead of the rendering pipeline. It also ensures adaptability to various scenarios, including multi-screen horizontal and vertical stacked layouts, dynamic dividing lines, and gameplay switching.

[0101] Figure 10 A flowchart illustrating a method for displaying a split-screen view according to an exemplary embodiment of this application is shown. This method is executed by a terminal, server, computer system, or client. The method includes the following steps.

[0102] Step 410: Obtain a first viewfinder for generating the main screen and at least one second viewfinder for generating the secondary screen.

[0103] Step 420: While adjusting the offset item in the projection parameters and the framing range of the main screen and the secondary screen, adjust the zoom parameter in the first projection parameters and the horizontal or vertical zoom parameter in the second projection parameters.

[0104] Step 430: Based on the adjusted horizontal or vertical zoom parameters, redetermine the horizontal or vertical offset item in the first offset parameter, and redetermine the horizontal or vertical offset item in the second offset parameter based on the adjusted horizontal zoom parameters, so that the corresponding first viewfinder outputs the main screen image after being offset by the viewfinder window, and the corresponding second viewfinder outputs the secondary screen image after being offset by the viewfinder window.

[0105] Steps 320 and 330 will be explained below.

[0106] In one possible implementation, when adjusting the offset term in the projection parameters and the framing range of the main screen and the secondary screen simultaneously, the split-screen display method provided in this application embodiment further includes at least one of the following: Scenario 1: When adjusting the horizontal framing range of the main screen image according to the width of the main screen display area, adjust the horizontal zoom parameter Sx in the first projection parameter according to the horizontal size of the main screen display area relative to the complete framing area, and redetermine the horizontal offset term OffsetX in the first offset parameter according to the adjusted horizontal zoom parameter Sx, so that the framing window of the first framing object after adjustment of the horizontal zoom parameter Sx and the horizontal offset term OffsetX corresponds to the main screen display area in the horizontal direction.

[0107] In this embodiment, the horizontal zoom parameter Sx in the first projection parameter is first adjusted according to the horizontal screen ratio of the main screen display area within the complete framing area. Then, the corresponding horizontal offset term OffsetX is recalculated in combination with the updated horizontal zoom parameter Sx. After the adjusted horizontal zoom parameter Sx and the horizontal offset term OffsetX are applied synchronously to the first framing object, the horizontal range of its framing window can accurately match the main screen display area.

[0108] For example, the complete viewfinder area is horizontally divided into the main screen display area and the secondary screen display area, respectively. The horizontal normalized range of the complete viewfinder area is [-1, 1], and the total width is 2. When the horizontal proportion of the main screen is 60%, the horizontal zoom parameter Sx is 0.6. Then, the offset value is calculated as -0.4 using the formula OffsetX=Sx-1. Sx=0.6 and OffsetX=-0.4 are filled into the projection matrix of the first viewfinder object. At this time, the left boundary of the viewfinder window of the first viewfinder object is fixed at the leftmost end of the complete viewfinder area at -1, and the right boundary shrinks to 0.2. The horizontal viewfinder range of the viewfinder window of the first viewfinder object corresponds exactly to the 60% width of the main screen display area.

[0109] Scenario 2: When adjusting the horizontal framing range of the secondary screen based on the width of the secondary screen display area, adjust the horizontal zoom parameter Sx in the second projection parameters according to the horizontal size of the secondary screen display area relative to the complete framing area, and redetermine the horizontal offset term OffsetX in the second offset parameters based on the adjusted horizontal zoom parameter Sx, so that the framing window of the second framing object after adjustment of the horizontal zoom parameter Sx and the horizontal offset term OffsetX corresponds to the secondary screen display area in the horizontal direction.

[0110] In this embodiment, the horizontal zoom parameter Sx in the second projection parameter is first adjusted according to the horizontal screen ratio of the secondary screen display area within the complete framing area. Then, the corresponding horizontal offset term OffsetX is recalculated in combination with the updated horizontal zoom parameter Sx. After the adjusted horizontal zoom parameter Sx and the horizontal offset term OffsetX are applied synchronously to the second framing object, the horizontal range of its framing window can accurately match the secondary screen display area.

[0111] For example, the complete viewfinder area is divided horizontally, with the left and right sides being the main screen display area and the secondary screen display area, respectively. The horizontal normalized range of the complete viewfinder area is [-1, 1], and the total width is 2. When the horizontal proportion of the secondary screen is 40%, the horizontal zoom parameter Sx is set to 0.4. Then, the offset value is calculated as -0.6 using the formula OffsetX=Sx-1. Sx=0.4 and OffsetX=-0.6 are filled into the projection matrix of the second viewfinder object. At this time, the right boundary of the viewfinder window of the second viewfinder object is fixed at the rightmost end 1 of the complete viewfinder area, and the left boundary shrinks to 0.2. The horizontal viewfinder range of the viewfinder window of the second viewfinder object corresponds exactly to the 40% width of the secondary screen display area.

[0112] Scenario 3: When adjusting the vertical framing range of the main screen image according to the height of the main screen display area, adjust the vertical zoom parameter Sy in the first projection parameter according to the vertical dimension of the main screen display area relative to the complete framing area, and redetermine the vertical offset term OffsetY in the first offset parameter according to the adjusted vertical zoom parameter Sy, so that the framing window of the first framing object after the adjustment of the vertical zoom parameter Sy and the vertical offset term OffsetY corresponds to the main screen display area in the vertical direction.

[0113] In this embodiment, the vertical zoom parameter Sy of the first projection parameter is first adjusted according to the vertical screen ratio of the main screen display area to the complete framing area. Then, the vertical offset term OffsetY is calculated based on the adjusted vertical zoom parameter Sy. The vertical zoom parameter Sy and the vertical offset term OffsetY are applied together to the projection parameter of the first framing object, so that the vertical range of the framing window of the first framing object matches the main screen display area.

[0114] For example, the complete viewfinder area is divided vertically, with the upper and lower parts being the main screen display area and the secondary screen display area, respectively. The vertical normalized interval of the complete viewfinder area is [-1, 1], and the total vertical span is 2. If the main screen occupies 70% of the height of the complete viewfinder, the vertical zoom parameter Sy is set to 0.7. Combined with the boundary constraints, the vertical offset term OffsetY is calculated to be -0.3. The vertical zoom parameter Sy=0.7 and the vertical offset term OffsetY=-0.3 are filled into the projection matrix of the first viewfinder object. The upper boundary of the viewfinder window of the first viewfinder object is fixed at the bottom of the complete viewfinder area at -1, and the lower boundary is shrunk to 0.4. The vertical viewfinder range corresponds exactly to the 70% height of the main screen display area.

[0115] Case 4: When adjusting the vertical framing range of the secondary screen based on the height of the secondary screen display area, adjust the vertical zoom parameter Sy in the second projection parameters according to the vertical dimension of the secondary screen display area relative to the complete framing area, and redetermine the vertical offset term OffsetY in the second offset parameters based on the adjusted vertical zoom parameter Sy, so that the framing window of the second framing object after adjustment of the vertical zoom parameter Sy and the vertical offset term OffsetY corresponds to the secondary screen display area in the vertical direction.

[0116] In this embodiment, the vertical zoom parameter Sy of the second projection parameter is first adjusted according to the vertical screen ratio of the secondary screen display area to the complete framing area. Then, the vertical offset term OffsetY is calculated based on the adjusted vertical zoom parameter Sy. The vertical zoom parameter Sy and the vertical offset term OffsetY are applied together to the projection parameter of the second framing object, so that the vertical range of the framing window of the second framing object matches the secondary screen display area.

[0117] For example, the complete viewfinder area is divided vertically into the main screen display area and the secondary screen display area, respectively. The vertical normalized interval of the complete viewfinder area is [-1, 1], and the total vertical span is 2. If the secondary screen occupies 30% of the height of the complete viewfinder, the vertical zoom parameter Sy is set to 0.3. Combined with the boundary constraints, the vertical offset term OffsetY is calculated to be -0.7. The vertical zoom parameter Sy=0.3 and the vertical offset term OffsetY=-0.7 are filled into the projection matrix of the second viewfinder object. The lower boundary of the viewfinder window of the second viewfinder object is fixed at the top of the complete viewfinder area at 1, and the lower boundary is shrunk to 0.4. The vertical viewfinder range corresponds exactly to the secondary screen display area with a height of 30%.

[0118] Scenario 5: When the width and height of the main display area and / or the secondary display area both change, adjust the horizontal zoom parameter Sx and the vertical zoom parameter Sy in the corresponding projection parameters according to the horizontal and vertical dimensions of the changed display area relative to the complete viewfinder area, and redetermine the horizontal offset term OffsetX and the vertical offset term OffsetY in the corresponding offset parameters, so that the viewfinder window after the adjustment of the horizontal zoom parameter Sx, the vertical zoom parameter Sy, the horizontal offset term OffsetX, and the vertical offset term OffsetY corresponds to the changed split-screen display area.

[0119] In this embodiment, based on the horizontal and vertical proportions of the changed display area relative to the complete framing area, the horizontal zoom parameter Sx and vertical zoom parameter Sy of the projection parameters of the corresponding framing object are simultaneously modified. Then, based on the updated horizontal zoom parameter Sx and vertical zoom parameter Sy, the matching horizontal offset term OffsetX and vertical offset term OffsetY are recalculated respectively. The updated four parameters are applied together to the projection matrix of the corresponding framing object, so that the horizontal and vertical ranges of the framing window of the framing object can accurately match the split-screen display area after the size update.

[0120] For example, if the width and height of the main screen display area change, based on the horizontal and vertical proportions of the changed main screen display area relative to the complete view area, the horizontal zoom parameter Sx and vertical zoom parameter Sy of the first projection parameters corresponding to the first view object are modified simultaneously. Then, based on the updated horizontal zoom parameter Sx and vertical zoom parameter Sy, the matching horizontal offset term OffsetX and vertical offset term OffsetY are recalculated respectively. The updated four parameters are then applied together to the projection matrix corresponding to the first view object, so that the horizontal and vertical ranges of the view window of the first view object can accurately match the main screen display area after the size update.

[0121] For example, the normalized interval of the complete framing area has a horizontal range of [-1,1] and a vertical range of [-1,1]. The initial horizontal and vertical proportions of the main screen are 0.6 and 0.7, respectively, corresponding to Sx=0.6, OffsetX=-0.4, Sy=0.7, and OffsetY=-0.3. If the main screen size is adjusted to have a horizontal and vertical proportion of 0.5 and 0.5, respectively, then Sx=0.5 is reset and OffsetX=-0.5, Sy=0.5 and OffsetY=-0.5 are calculated. The updated four parameters are applied together to the projection matrix corresponding to the first framing object. After the update, the framing range of the first framing window of the first framing object is the horizontal interval [-1,0] and the vertical interval [-1,0].

[0122] Step 440: Display the main screen image in the main screen display area, and display each sub-screen image in its corresponding sub-screen display area, to obtain a split-screen image composed of the main screen image and at least one sub-screen image at the corresponding dividing position.

[0123] The split-screen display method provided in this application first obtains a first framing object for generating the main screen and a second framing object for generating the secondary screen. When it is necessary to simultaneously adjust the projection offset and the framing range, the horizontal or vertical zoom parameters corresponding to the first and second projection parameters are simultaneously modified. Then, the adapted horizontal and vertical offsets are recalculated based on the updated zoom parameters. Finally, the processed main screen and secondary screen images are output to their respective display areas and stitched together to form a split-screen image. In other words, by coordinating the adjustment of zoom parameters with offsets, the framing range of each framing window can be freely scaled to adapt to different sizes of main and secondary screen areas. At the same time, the offset parameters can be simultaneously corrected to offset the boundary offset deviation caused by scaling, ensuring that the main screen and secondary screen images are accurately aligned at the dividing position without any blank space, overlap, or image misalignment. The zoom and offset linkage correction mode is compatible with two types of split-screen adaptation needs: offset only and zoom plus offset. It has a wider range of scene adaptation. At the same time, it relies on parameter linkage calculation to uniformly constrain the viewfinder window boundary, fully preserving the compositional integrity of the split-screen image. The final synthesized split-screen image has a smooth transition and visual coherence. There is no need to add additional boundary correction logic. While flexibly adapting to various dynamic split-screen sizes and layouts, it reduces the image debugging cost of split-screen rendering and improves the overall display effect of split-screen image synthesis.

[0124] Figure 11 A flowchart illustrating a method for displaying a split-screen image according to an exemplary embodiment of this application is shown. This method is performed by a terminal, server, computer, or client. After step S150, the method further includes the following steps.

[0125] Step 510: In response to the area size adjustment event, change the width or height of the main screen display area and / or the secondary screen display area, and redetermine the first offset parameter and / or the second offset parameter based on the changed display area.

[0126] In this embodiment, when a size adjustment event of the main screen and secondary screen display areas is detected, the horizontal width and vertical height of the display areas of either the main screen or the secondary screen are updated. Then, based on the adjusted sizes of each display area, the first offset parameter and the second offset parameter are recalculated and updated to ensure that the viewfinder cropping range matches the new split-screen size. This allows the main screen and secondary screen to adjust their sizes independently, with the offset parameters dynamically adapting to the display area sizes of the main screen and secondary screen, thus supporting various split-screen ratio switching needs.

[0127] For example, in a scenario where the main screen and secondary screen are horizontally split, the initial main screen occupies 60% horizontally and the secondary screen occupies 40%, corresponding to a set of fixed offset parameters. When a window scaling event is triggered, the main screen width is adjusted to 50% horizontally, and the secondary screen width is simultaneously changed to 50%. The required horizontal offset parameters for the main screen and secondary screen are recalculated based on the new area proportions, and the original parameters are replaced. The cropping range of the viewfinder is simultaneously adapted to the new equally divided screen layout.

[0128] Step 520: During the movement of the boundary position or the change of gameplay state, update the size of the main screen display area and the secondary screen display area frame by frame, and update the first offset parameter and the second offset parameter frame by frame. The area size adjustment events include boundary position movement events or gameplay state change events.

[0129] In this embodiment, the events of moving the boundary between the main screen and the secondary screen and the events of changing the gameplay state are both area size adjustment events. During the dynamic process of dragging and shifting the boundary position and switching the gameplay state, the display area size of the main screen and the secondary screen is refreshed frame by frame, and the first offset parameter and the second offset parameter are recalculated frame by frame in real time, so that the cropping range of the two screens can be synchronously adapted to the dynamically changing area boundary in real time.

[0130] For example, in a horizontal split-screen game interface, when players drag the middle dividing line to change the ratio of the main screen and the secondary screen, or release skills to trigger special split-screen gameplay, the width values ​​of the main screen and the secondary screen display area are updated in real time every frame, and the horizontal offset parameters of the main screen and the secondary screen are refreshed synchronously. During the sliding of the dividing line, the connection boundary of the split screen will not be offset or broken. When switching between vertical split-screen story performances, the area height and vertical offset parameters are also updated frame by frame to ensure smooth and continuous dynamic transition.

[0131] The split-screen display method provided in this application embodiment first classifies the movement of the dividing line and the change of gameplay status into area size adjustment events. When such events are triggered, the width and height of the main screen and the secondary screen can be changed synchronously and the matching offset parameters can be recalculated. Since the dividing line dragging and gameplay switching are continuous dynamic processes, the processing method of updating the area size and offset parameters frame by frame can make the split-screen cropping boundary calibrated in real time with the changes in the screen layout. This ensures that there will be no misalignment, discontinuity, or jump in the screen during the dynamic transition phase, and ensures smooth visual switching between split screens.

[0132] Figure 12 This illustration shows a structural block diagram of a split-screen display device provided in an exemplary embodiment of this application. The device 1200 includes: The acquisition module 1201 is used to acquire a first framing object for generating the main screen image and at least one second framing object for generating the secondary screen image; The determining module 1202 is used to determine the first offset parameter corresponding to the first framing object and the second offset parameter corresponding to each of the secondary screen display areas based on the positional relationship between the main screen display area and the secondary screen display area relative to the complete framing area. The first offset module 1203 is used to apply the first offset parameter to the first offset item in the first projection parameter of the first framing object, so that the first framing object outputs the main screen image after being offset by the framing window. The second offset module 1204 is used to apply the second offset parameter corresponding to each of the sub-screen display areas to the second offset item in the second projection parameter of the corresponding second framing object, so that the corresponding second framing object outputs the sub-screen image after being offset by the framing window. Display module 1205 is used to display the main screen image in the main screen display area and display each of the sub-screen images in the corresponding sub-screen display area, so as to obtain a split-screen image composed of the main screen image and at least one of the sub-screen images at the corresponding dividing position.

[0133] In one possible implementation, the display module 1205 is specifically used for: The portion of the main screen image located outside the main screen display area is cropped or not displayed. For each of the sub-screen images, the portion of the sub-screen image located outside the corresponding sub-screen display area is cropped or not displayed.

[0134] In one possible implementation, the display module 1205 is specifically used for: The cropping or concealment of portions of the main screen image located outside the main screen display area; and the cropping or concealment of portions of the secondary screen image located outside the corresponding secondary screen display area, include one or more of the following: When the main screen display area is located to the left of the secondary screen display area, the first offset parameter is used to shift the viewfinder window of the first view object to the left, and the portion of the left side of the main screen image that extends beyond the main screen display area is cropped or not displayed; the second offset parameter is used to shift the viewfinder window of the second view object to the right, and the portion of the right side of the secondary screen image that extends beyond the secondary screen display area is cropped or not displayed. When the main screen display area is located to the right of the secondary screen display area, the first offset parameter is used to shift the viewfinder window of the first view object to the right, and the part of the right side of the main screen image that extends beyond the main screen display area is cropped or not displayed; the second offset parameter is used to shift the viewfinder window of the second view object to the left, and the part of the left side of the secondary screen image that extends beyond the secondary screen display area is cropped or not displayed. When the main screen display area is located above the secondary screen display area, the first offset parameter is used to shift the viewfinder window of the first view object upwards, and the portion of the upper part of the main screen image that extends beyond the main screen display area is cropped or not displayed; the second offset parameter is used to shift the viewfinder window of the second view object downwards, and the portion of the lower part of the secondary screen image that extends beyond the secondary screen display area is cropped or not displayed. When the main screen display area is located below the secondary screen display area, the first offset parameter causes the viewfinder window of the first view object to shift downward, and the lower part of the main screen image that extends beyond the main screen display area is cropped or not displayed; the second offset parameter causes the viewfinder window of the second view object to shift upward, and the upper part of the secondary screen image that extends beyond the secondary screen display area is cropped or not displayed. When the main display area and the secondary display area are arranged in a picture-in-picture layout, one of the main display area and the secondary display area is designated as an embedded display area, and the other is designated as an outer display area. Based on the position of the embedded display area in the outer display area, the offset parameter of the framing object corresponding to the embedded display area is determined, and the framing window corresponding to the embedded display area is shifted to the framing range corresponding to the embedded display area. The portion of the image corresponding to the embedded display area that is outside the embedded display area is cropped or not displayed, and the portion of the image corresponding to the outer display area that covers the embedded display area is also cropped or not displayed.

[0135] In one possible implementation, the device further includes a third offset module, which is specifically used for: When only the offset item in the projection parameters is adjusted without changing the framing range of the main screen and the secondary screen, when the first offset parameter is applied to the first offset item in the first projection parameters and the second offset parameter is applied to the second offset item in the second projection parameters of the corresponding second framing object, the horizontal zoom parameter and the vertical zoom parameter in the first projection parameters and the second projection parameters remain unchanged. The horizontal zoom parameter controls the projection width of the image in the horizontal direction, and the vertical zoom parameter controls the projection height of the image in the vertical direction.

[0136] In one possible implementation, both the first offset term and the second offset term include a lateral offset term and / or a longitudinal offset term; When adjusting the offset item in the projection parameters and the framing range of the main screen and the secondary screen simultaneously, the third offset module is also used for at least one of the following: When adjusting the horizontal framing range of the main screen image according to the width of the main screen display area, the horizontal zoom parameter in the first projection parameter is adjusted according to the horizontal size of the main screen display area relative to the complete framing area, and the horizontal offset item in the first offset parameter is re-determined according to the adjusted horizontal zoom parameter and the horizontal offset item, so that the framing window of the first framing object after the horizontal zoom parameter adjustment and the horizontal offset item adjustment corresponds to the main screen display area in the horizontal direction. When adjusting the horizontal framing range of the sub-screen image according to the width of the sub-screen display area, the horizontal zoom parameter in the second projection parameter is adjusted according to the horizontal size of the sub-screen display area relative to the complete framing area, and the horizontal offset term in the second offset parameter is re-determined according to the adjusted horizontal zoom parameter, so that the framing window of the second framing object after the horizontal zoom parameter adjustment and the horizontal offset term adjustment corresponds to the sub-screen display area in the horizontal direction. When the vertical framing range of the main screen is adjusted according to the height of the main screen display area, the vertical zoom parameter in the first projection parameter is adjusted according to the vertical dimension of the main screen display area relative to the complete framing area, and the vertical offset term in the first offset parameter is re-determined according to the adjusted vertical zoom parameter, so that the framing window of the first framing object after the vertical zoom parameter adjustment and the vertical offset term adjustment corresponds to the main screen display area in the vertical direction. When the vertical framing range of the sub-screen image is adjusted according to the height of the sub-screen display area, the vertical zoom parameter in the second projection parameter is adjusted according to the vertical dimension of the sub-screen display area relative to the complete framing area, and the vertical offset term in the second offset parameter is re-determined according to the adjusted vertical zoom parameter, so that the framing window of the second framing object after the vertical zoom parameter adjustment and the vertical offset term adjustment corresponds to the sub-screen display area in the vertical direction. When the width and height of the main screen display area and / or the secondary screen display area both change, the horizontal zoom parameter and vertical zoom parameter in the corresponding projection parameters are adjusted according to the horizontal and vertical dimensions of the changed display area relative to the complete framing area, and the horizontal offset term and vertical offset term in the corresponding offset parameters are re-determined so that the framing window after adjustment of the horizontal zoom parameter, vertical zoom parameter, horizontal offset term and vertical offset term corresponds to the changed split-screen display area.

[0137] In one possible implementation, the third offset module is further configured to: When the main screen display area and each of the secondary screen display areas are arranged horizontally, the first horizontal boundary of the viewfinder window of the first viewfinder object is kept at the left boundary position of the complete viewfinder area according to the first offset parameter, and the second horizontal boundary of the viewfinder window of the second viewfinder object is kept at the right boundary position of the complete viewfinder area according to the second offset parameter. When the main screen display area and each of the secondary screen display areas are arranged vertically, the first vertical boundary of the framing window of the first framing object is kept at the upper boundary position of the complete framing area according to the first offset parameter, and the second vertical boundary of the framing window of the second framing object is kept at the lower boundary position of the complete framing area according to the second offset parameter.

[0138] In one possible implementation, the first view object is located in a first virtual world, and the second view object is located in a second virtual world; the first virtual world and the second virtual world have independent scene data or coordinate systems, and the first offset parameter and the second offset parameter cause the main screen and the secondary screen to be displayed continuously according to the screen edge coordinates at the dividing position.

[0139] Figure 13 This illustration shows a structural block diagram of a computer device 1300 provided in an exemplary embodiment of this application. The computer device 1300 may be a portable mobile terminal, such as one or more smartphones or tablets. The computer device 1300 may also be referred to as a user device, portable terminal, or other names. Typically, the computer device 1300 includes a processor 1301 and a memory 1302.

[0140] Processor 1301 may include one or more processing cores, such as one or more of a quad-core processor or an octa-core processor. Processor 1301 may be implemented using at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), or PLA (Programmable Logic Array). Processor 1301 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1301 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the screen.

[0141] The memory 1302 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1302 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices.

[0142] In some embodiments, the non-transitory computer-readable storage medium in memory 1302 stores at least one instruction, which is executed by processor 1301 to implement the split-screen display method provided in this embodiment. In some embodiments, computer device 1300 may also optionally include: peripheral device interface 1303 and at least one peripheral device. Processor 1301, memory 1302 and peripheral device interface 1303 can be connected via a bus or signal line. Each peripheral device can be connected to peripheral device interface 1303 via a bus, signal line or circuit board. Specifically, the peripheral device includes at least one of: radio frequency circuit 1304, touch display screen 1305, camera assembly 1306, audio circuit 1307 and power supply 1308.

[0143] Radio frequency (RF) circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. RF circuit 1304 communicates with communication networks and other communication devices through electromagnetic signals.

[0144] The touch display screen 1305 is used to display a user interface (UI). This UI may include graphics, text, icons, video, and any combination thereof. The touch display screen 1305 also has the ability to acquire touch signals on or above its surface.

[0145] The camera assembly 1306 is used to capture images or videos. Optionally, the camera assembly 1306 includes a front-facing camera and a rear-facing camera.

[0146] Audio circuit 1307 is used to provide an audio interface between the user and computer device 1300.

[0147] Power supply 1308 is used to supply power to the various components in computer device 1300.

[0148] In some embodiments, the computer device 1300 further includes one or more sensors 1309. The one or more sensors 1309 include, but are not limited to, an accelerometer 1310, a gyroscope 1311, a pressure sensor 1312, an optical sensor 1313, and a proximity sensor 1314.

[0149] Those skilled in the art will understand that the above structure does not constitute a limitation on the computer device 1300, and may include more or fewer components than shown, or combine certain components, or employ different component arrangements.

[0150] This application also provides a computer-readable storage medium storing at least one computer program, which is loaded and executed by a processor to display the split-screen screen provided in the above-described method embodiments.

[0151] This application also provides a computer program product, which includes at least one computer program stored in a computer-readable storage medium; the at least one computer program is read from and executed by the processor of a computer device from the computer-readable storage medium, causing the computer device to perform the display of the split-screen screen provided in the above-described method embodiments.

[0152] It should be understood that "multiple" as used herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the step numbers described herein are merely illustrative of one possible execution order. In some other embodiments, the steps may not be executed in numerical order, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.

[0153] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as one or more read-only memories, disks, or optical discs.

[0154] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for displaying split-screen images, characterized in that, The method includes: Obtain a first viewfinder object for generating the main screen image and at least one second viewfinder object for generating the secondary screen image; Based on the positional relationship between the main screen display area and the secondary screen display area relative to the complete framing area, the first offset parameter corresponding to the first framing object and the second offset parameter corresponding to each of the secondary screen display areas are determined respectively. The first offset parameter is applied to the first offset item in the first projection parameter of the first framing object, so that the first framing object outputs the main screen image after being offset by the framing window. For each of the sub-screen display areas, the second offset parameter corresponding to the sub-screen display area is applied to the second offset item in the second projection parameter of the corresponding second view object, so that the corresponding second view object outputs the sub-screen image after being offset by the view window; The main screen image is displayed in the main screen display area, and each of the sub-screen images is displayed in its corresponding sub-screen display area, resulting in a split-screen image composed of the main screen image and at least one of the sub-screen images at corresponding boundary positions.

2. The method according to claim 1, characterized in that, The step of displaying the main screen image in the main screen display area and displaying each of the secondary screen images in the corresponding secondary screen display area includes: The portion of the main screen image located outside the main screen display area is cropped or not displayed. For each of the sub-screen images, the portion of the sub-screen image located outside the corresponding sub-screen display area is cropped or not displayed.

3. The method according to claim 2, characterized in that, The cropping or concealment of portions of the main screen image located outside the main screen display area; and the cropping or concealment of portions of the secondary screen image located outside the corresponding secondary screen display area, include one or more of the following: When the main screen display area is located to the left of the secondary screen display area, the first offset parameter is used to shift the viewfinder window of the first view object to the left, and the portion of the left side of the main screen image that extends beyond the main screen display area is cropped or not displayed; the second offset parameter is used to shift the viewfinder window of the second view object to the right, and the portion of the right side of the secondary screen image that extends beyond the secondary screen display area is cropped or not displayed. When the main screen display area is located to the right of the secondary screen display area, the first offset parameter is used to shift the viewfinder window of the first view object to the right, and the part of the right side of the main screen image that extends beyond the main screen display area is cropped or not displayed; the second offset parameter is used to shift the viewfinder window of the second view object to the left, and the part of the left side of the secondary screen image that extends beyond the secondary screen display area is cropped or not displayed. When the main screen display area is located above the secondary screen display area, the first offset parameter is used to shift the viewfinder window of the first view object upwards, and the portion of the upper part of the main screen image that extends beyond the main screen display area is cropped or not displayed; the second offset parameter is used to shift the viewfinder window of the second view object downwards, and the portion of the lower part of the secondary screen image that extends beyond the secondary screen display area is cropped or not displayed. When the main screen display area is located below the secondary screen display area, the first offset parameter causes the viewfinder window of the first view object to shift downward, and the lower part of the main screen image that extends beyond the main screen display area is cropped or not displayed; the second offset parameter causes the viewfinder window of the second view object to shift upward, and the upper part of the secondary screen image that extends beyond the secondary screen display area is cropped or not displayed. When the main display area and the secondary display area are arranged in a picture-in-picture layout, one of the main display area and the secondary display area is designated as an embedded display area, and the other is designated as an outer display area. Based on the position of the embedded display area in the outer display area, the offset parameter of the framing object corresponding to the embedded display area is determined, and the framing window corresponding to the embedded display area is shifted to the framing range corresponding to the embedded display area. The portion of the image corresponding to the embedded display area that is outside the embedded display area is cropped or not displayed, and the portion of the image corresponding to the outer display area that covers the embedded display area is also cropped or not displayed.

4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: When only the offset item in the projection parameters is adjusted without changing the framing range of the main screen and the secondary screen, when the first offset parameter is applied to the first offset item in the first projection parameters and the second offset parameter is applied to the second offset item in the second projection parameters of the corresponding second framing object, the horizontal zoom parameter and the vertical zoom parameter in the first projection parameters and the second projection parameters remain unchanged. The horizontal zoom parameter controls the projection width of the image in the horizontal direction, and the vertical zoom parameter controls the projection height of the image in the vertical direction.

5. The method according to any one of claims 1 to 3, characterized in that, Both the first offset term and the second offset term include a horizontal offset term and / or a vertical offset term; When simultaneously adjusting the offset term in the projection parameters and the framing range of the main screen and the secondary screen, the method further includes at least one of the following: When the horizontal framing range of the main screen is adjusted according to the width of the main screen display area, the horizontal zoom parameter in the first projection parameter is adjusted according to the horizontal size of the main screen display area relative to the complete framing area, and the horizontal offset item in the first offset parameter is re-determined according to the adjusted horizontal zoom parameter, so that the framing window of the first framing object after the horizontal zoom parameter adjustment and the horizontal offset item adjustment corresponds to the main screen display area in the horizontal direction. When adjusting the horizontal framing range of the sub-screen image according to the width of the sub-screen display area, the horizontal zoom parameter in the second projection parameter is adjusted according to the horizontal size of the sub-screen display area relative to the complete framing area, and the horizontal offset term in the second offset parameter is re-determined according to the adjusted horizontal zoom parameter, so that the framing window of the second framing object after the horizontal zoom parameter adjustment and the horizontal offset term adjustment corresponds to the sub-screen display area in the horizontal direction. When the vertical framing range of the main screen is adjusted according to the height of the main screen display area, the vertical zoom parameter in the first projection parameter is adjusted according to the vertical dimension of the main screen display area relative to the complete framing area, and the vertical offset term in the first offset parameter is re-determined according to the adjusted vertical zoom parameter, so that the framing window of the first framing object after the vertical zoom parameter adjustment and the vertical offset term adjustment corresponds to the main screen display area in the vertical direction. When the vertical framing range of the sub-screen image is adjusted according to the height of the sub-screen display area, the vertical zoom parameter in the second projection parameter is adjusted according to the vertical dimension of the sub-screen display area relative to the complete framing area, and the vertical offset term in the second offset parameter is re-determined according to the adjusted vertical zoom parameter, so that the framing window of the second framing object after the vertical zoom parameter adjustment and the vertical offset term adjustment corresponds to the sub-screen display area in the vertical direction. When the width and height of the main screen display area and / or the secondary screen display area both change, the horizontal zoom parameter and vertical zoom parameter in the corresponding projection parameters are adjusted according to the horizontal and vertical dimensions of the changed display area relative to the complete framing area, and the horizontal offset term and vertical offset term in the corresponding offset parameters are re-determined so that the framing window after adjustment of the horizontal zoom parameter, vertical zoom parameter, horizontal offset term and vertical offset term corresponds to the changed split-screen display area.

6. The method according to any one of claims 1 to 3, characterized in that, When the main screen display area and each of the secondary screen display areas are arranged horizontally, the first horizontal boundary of the viewfinder window of the first viewfinder object is kept at the left boundary position of the complete viewfinder area according to the first offset parameter, and the second horizontal boundary of the viewfinder window of the second viewfinder object is kept at the right boundary position of the complete viewfinder area according to the second offset parameter. When the main screen display area and each of the secondary screen display areas are arranged vertically, the first vertical boundary of the framing window of the first framing object is kept at the upper boundary position of the complete framing area according to the first offset parameter, and the second vertical boundary of the framing window of the second framing object is kept at the lower boundary position of the complete framing area according to the second offset parameter.

7. The method according to any one of claims 1 to 3, characterized in that, The first viewfinder is located in a first virtual world, and the second viewfinder is located in a second virtual world; the first virtual world and the second virtual world have independent scene data or coordinate systems, and the first offset parameter and the second offset parameter make the main screen and the secondary screen continuously connected according to the screen edge coordinates at the dividing position.

8. A display device for split-screen images, characterized in that, The device includes: The acquisition module is used to acquire a first framing object for generating the main screen image and at least one second framing object for generating the secondary screen image. The determining module is used to determine the first offset parameter corresponding to the first framing object and the second offset parameter corresponding to each of the secondary screen display areas based on the positional relationship between the main screen display area and the secondary screen display area relative to the complete framing area. The first offset module is used to apply the first offset parameter to the first offset item in the first projection parameter of the first framing object, so that the first framing object outputs the main screen image after being offset by the framing window. The second offset module is used to apply the second offset parameter corresponding to each of the sub-screen display areas to the second offset item in the second projection parameter of the corresponding second framing object, so that the corresponding second framing object outputs the sub-screen image after being offset by the framing window. The display module is used to display the main screen image in the main screen display area and display each of the sub-screen images in the corresponding sub-screen display area, so as to obtain a split-screen image composed of the main screen image and at least one of the sub-screen images at the corresponding dividing position.

9. An electronic device, characterized in that, The electronic device includes: Processor; and The memory is used to store data processing programs. After the electronic device is powered on and the processor runs the programs, it executes the method for displaying split-screen images as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The system contains a data processing program that is run by a processor to perform the method for displaying split-screen images as described in any one of claims 1-7.