CN112230775A - Popup window processing method and device and computer readable storage medium - Google Patents

Popup window processing method and device and computer readable storage medium Download PDF

Info

Publication number
CN112230775A
CN112230775A CN202011135510.1A CN202011135510A CN112230775A CN 112230775 A CN112230775 A CN 112230775A CN 202011135510 A CN202011135510 A CN 202011135510A CN 112230775 A CN112230775 A CN 112230775A
Authority
CN
China
Prior art keywords
popup
page
window
pop
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011135510.1A
Other languages
Chinese (zh)
Inventor
王明
姜滨
迟小羽
吕廷昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weifang Goertek Electronics Co Ltd
Original Assignee
Weifang Goertek Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weifang Goertek Electronics Co Ltd filed Critical Weifang Goertek Electronics Co Ltd
Priority to CN202011135510.1A priority Critical patent/CN112230775A/en
Priority to PCT/CN2020/136637 priority patent/WO2022082971A1/en
Publication of CN112230775A publication Critical patent/CN112230775A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a popup window processing method, which comprises the following steps: detecting a system popup window when the current terminal application mode is determined to be the VR display mode; rendering the popup window page of the system popup window to a preset off-screen buffer area; performing secondary rendering of left and right half screens on the popup page of the off-screen buffer area; and pushing the popup window page after the secondary rendering to the left half screen and the right half screen of the display screen for displaying. The invention also discloses a device and a computer readable storage medium. After the VR equipment enters a VR scene and the occurrence of the default popup frame of the system is detected, the popup frame image of the system is captured through the off-screen buffer added in the system display flow, the system popup frame image is rendered on the left half screen and the right half screen of the VR screen in a split-screen mode, the position of a popup window rendered in the split-screen mode is adjusted by considering IPD factors, the phenomenon that the content of the popup frame can not generate double images is ensured to be observed by a user, and the visual experience of the user is improved.

Description

Popup window processing method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of head-mounted display, in particular to a popup window processing method and device and a computer readable storage medium.
Background
In recent years, with the popularization of VR (Virtual Reality technology), especially because VR all-in-one machines are light and convenient to carry, more and more manufacturers have released VR all-in-one machine products, most VR all-in-one machines on the market adopt Android platforms at present, and the default display mode of an Android system is a normal 2D display mode for mobile phones and the like. After the all-in-one machine enters a VR scene, applications displayed on a screen are displayed in a split screen mode, a user can normally enjoy VR applications through the lens, when the system is abnormal and the like, the system can automatically pop up a default prompt box, the prompt box usually floats to the top of the scene, the user cannot normally see the content of the prompt box through the binocular lens, and user experience is seriously influenced.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a popup window processing method, a popup window processing device and a computer readable storage medium, and aims to solve the technical problem that a user cannot normally see the content of a prompt box through a binocular lens.
In order to achieve the above object, the present invention provides a pop-up window processing method, which includes the following steps:
determining that the current terminal runs VR application, and acquiring a system popup;
saving the popup page of the system popup to a preset off-screen buffer area;
rendering the popup page of the off-screen buffer area and displaying the rendered popup page through the display screen of the current terminal.
Optionally, the rendering the pop-up page in the off-screen buffer area and displaying the rendered pop-up page through the display screen of the current terminal includes:
rendering the popup page of the off-screen buffer area for the first time, and displaying the rendered popup page to one of areas corresponding to the left eye or the right eye of a user on the display screen;
and rendering the pop-up window page of the off-screen buffer zone for the second time, and displaying the rendered pop-up window page to the other one of the areas corresponding to the left eye or the right eye of the user on the display screen.
Optionally, the rendering the pop-up page in the off-screen buffer area and displaying the rendered pop-up page through the display screen of the current terminal includes:
rendering the popup page of the off-screen buffer area to obtain a rendered popup page;
and simultaneously displaying the rendered popup window page to an area corresponding to the left eye of the user and an area corresponding to the right eye of the user on the display screen.
Optionally, the determining that the current terminal runs the VR application and obtains a system popup includes:
determining that the current terminal runs VR application;
and acquiring the target system popup from a system popup set comprising a plurality of system popup.
Optionally, the pop-up window processing method further includes:
acquiring pupil distance parameters of a display screen, and respectively confirming a left central point and a right central point on the display screen according to the pupil distance parameters, wherein the left central point corresponds to the central point of a left lens, and the right central point corresponds to the central point of a right lens;
the displaying the rendered popup window page through the display screen of the current terminal comprises the following steps:
and displaying the rendered popup window page by taking the left central point and the right central point as centers respectively.
Optionally, before displaying the rendered pop-up window page with the left central point and the right central point as centers, the method further includes:
determining that the left center point overlaps a projection of a center point of the left lens in a direction perpendicular to a user's face and that the right center point overlaps a projection of a center point of the right lens in a direction perpendicular to a user's face.
Optionally, the step of acquiring a system pop-up window includes:
confirming whether the layer name displayed in the name attribute list of the current terminal system is registered or not;
and if the layer name is not registered, confirming that the window of the layer name is a system popup.
Optionally, the step of saving the pop-up page of the system pop-up window to a preset off-screen buffer area includes:
acquiring popup data of the system popup, and rendering the popup data into a popup page;
and storing the rendered popup window page to a preset off-screen buffer area.
In addition, to achieve the above object, the present invention provides a pop-up window processing apparatus including: a memory, a processor, said memory having stored thereon a computer program capable of being invoked by the processor, said computer program, when executed by the processor, implementing the steps of the popup processing method as described above.
The present invention also provides a computer-readable storage medium having a popup processing program stored thereon, which when executed by a processor implements the steps of the popup processing method as described above.
The popup processing method provided by the embodiment of the invention comprises the steps of determining that a current terminal runs VR application, and acquiring a system popup; saving the popup page of the system popup to a preset off-screen buffer area; rendering the popup page away from the screen buffer area and displaying the rendered popup page through a display screen of the current terminal. The method applied by the invention can detect the occurrence of the default popup frame of the system after the user enters the VR scene, and capture the image of the system popup frame by adding the off-screen buffer in the display flow of the system, render the image of the system popup frame on the left half screen and the right half screen of the screen respectively, and adjust the position of the popup window by taking account of IPD and other factors, thereby ensuring that the user can normally see the content of the prompt box through the binocular lens and improving the visual experience of the user.
Drawings
FIG. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a pop-up window processing method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a pop-up window processing method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a pop-up window processing method according to a third embodiment of the present invention
FIG. 5 is a schematic diagram of a pop-up window page displayed in a split screen manner;
fig. 6 is a schematic diagram illustrating abnormal display of a prompt box.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: determining that the current terminal runs VR application, and acquiring a system popup; saving the popup page of the system popup to a preset off-screen buffer area; rendering the popup page of the off-screen buffer area and displaying the rendered popup page through the display screen of the current terminal.
Because in the existing VR display technology, applications displayed on a screen are basically displayed in a split screen manner, a user can normally watch VR applications through a lens, but when the system is abnormal and the like, the system can automatically pop up a default prompt box, and the prompt box floats on the top of a scene and cannot be automatically displayed in a split screen manner, so that the user cannot normally see the content of the prompt box through a binocular lens (as shown in fig. 6, fig. 6 is a schematic diagram of abnormal display of the prompt box), and user experience is seriously affected.
The invention provides a solution, after a VR device enters a VR scene, the occurrence of a system default popup frame can be detected, the system popup frame image is captured by adding an off-screen buffer in the system display flow, the system popup frame image is displayed through the left half screen and the right half screen of a screen, the position of a popup window is adjusted by taking account of IPD and other factors, the user can be ensured to observe the popup frame content and the ghost phenomenon does not occur, and the visual experience of the user is improved.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a mobile or non-mobile terminal device connected with VR equipment, such as a PC, a smart phone, a tablet computer and a portable computer.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a popup processing program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the popup handler stored in the memory 1005 and perform the following operations:
determining that the current terminal runs VR application, and acquiring a system popup;
saving the popup page of the system popup to a preset off-screen buffer area;
rendering the popup page of the off-screen buffer area and displaying the rendered popup page through the display screen of the current terminal.
Further, the processor 1001 may call a popup handler stored in the memory 1005, and also perform the following operations:
rendering the popup page of the off-screen buffer area for the first time, and displaying the rendered popup page to one of areas corresponding to the left eye or the right eye of a user on the display screen;
and rendering the pop-up window page of the off-screen buffer zone for the second time, and displaying the rendered pop-up window page to the other one of the areas corresponding to the left eye or the right eye of the user on the display screen.
Further, the processor 1001 may call a popup handler stored in the memory 1005, and also perform the following operations:
rendering the popup page of the off-screen buffer area to obtain a rendered popup page;
and simultaneously displaying the rendered popup window page to an area corresponding to the left eye of the user and an area corresponding to the right eye of the user on the display screen.
Further, the processor 1001 may call a popup handler stored in the memory 1005, and also perform the following operations:
determining that the current terminal runs VR application;
and acquiring the target system popup from a system popup set comprising a plurality of system popup.
Further, the processor 1001 may call a popup handler stored in the memory 1005, and also perform the following operations:
acquiring pupil distance parameters of a display screen, and respectively confirming a left central point and a right central point on the display screen according to the pupil distance parameters, wherein the left central point corresponds to the central point of a left lens, and the right central point corresponds to the central point of a right lens;
and displaying the rendered popup window page by taking the left central point and the right central point as centers respectively.
Further, the processor 1001 may call a popup handler stored in the memory 1005, and also perform the following operations:
determining that the left center point overlaps a projection of a center point of the left lens in a direction perpendicular to a user's face and that the right center point overlaps a projection of a center point of the right lens in a direction perpendicular to a user's face.
Further, the processor 1001 may call a popup handler stored in the memory 1005, and also perform the following operations:
confirming whether the layer name displayed in the name attribute list of the current terminal system is registered or not;
and if the layer name is not registered, confirming that the window of the layer name is a system popup.
Further, the processor 1001 may call a popup handler stored in the memory 1005, and also perform the following operations:
acquiring popup data of the system popup, and rendering the popup data into a popup page;
and storing the rendered popup window page to a preset off-screen buffer area.
Referring to fig. 2, fig. 2 is a schematic flowchart of a pop-up window processing method according to a first embodiment of the present invention, where the pop-up window processing method includes:
step S10, determining that the current terminal runs VR application, and acquiring a system popup;
and according to the current terminal application, detecting the popup window of the current terminal system when the application mode of the current terminal system is determined to be the VR display mode. When the current terminal is applied, a plurality of application modes are provided, the VR display mode is only one operation mode of the current terminal system, therefore, when the application mode of the current terminal system is determined to be the VR display mode, the system popup of the current terminal operation system is detected, the system popup is defined as an information prompt box of the terminal system based on the current operation application, and the detection operation can be carried out through screening of the layer name when the current system popup is detected in consideration of the special display condition of the VR display mode. Reading a name attribute list of a current terminal based on the operation condition of a current terminal system, wherein the name attribute list is defined as an application name list of a current operation application when the system application operates, the name attribute list comprises a series of application-based parameter information such as application name, type, attribute and the like, and under a general condition, the application name displayed in the application name list is defined as a page name with an application page at present, or all application information based on the current terminal system operation is displayed in the name attribute list. Therefore, the determining that the current terminal runs the VR application and the system popup is obtained includes:
determining that the current terminal runs VR application;
and acquiring the target system popup from a system popup set comprising a plurality of system popup.
When detecting a system popup of a current terminal system, confirming the content of a name attribute list of the current terminal system to determine a corresponding system popup according to the name attribute list, wherein in system application, the system popup is defined as a layer (popup layer plug-in), and has a corresponding layer name according to different types of the layer, and the system popup is popped up based on the system operation requirement, so that the operation special body of the system popup is not registered in a system registry, when detecting the system popup, confirming whether the name attribute list contains an unregistered layer name, and when confirming that the name attribute list contains the unregistered layer name, confirming that the current terminal system has the system popup. After a terminal system is started, traversing a name attribute list of a current terminal system, confirming whether an application name, namely a layer name, of a registered VR application is in the name attribute list, determining that a system application mode of the terminal is a VR display mode when the name attribute list is confirmed to have the registered VR application name, defining the registered VR application as a terminal application program which is installed with the current terminal system and has an operation authority, and obtaining the VR application by mainly confirming whether the VR application is registered or not when the VR application is confirmed to have the operation authority. Namely, the step of acquiring the system pop-up window comprises the following steps:
confirming whether the layer name displayed in the name attribute list of the current terminal system is registered or not;
and if the layer name is not registered, confirming that the window of the layer name is a system popup.
Because the possibility that the system popup occurs is very high when the terminal system runs, but the system popup under all conditions needs to be detected, the scheme only limits that the terminal system needs to detect the system popup when the terminal system runs in the VR display mode, and therefore the current terminal system operation needs to be determined as the VR display mode before detecting the system popup. The method comprises the steps of confirming a system application mode of a current terminal in the operation of the current terminal system, and in practical application, according to the terminal system installed by equipment parameters of the terminal, relating to various operation requirements of a user, wherein the terminal system comprises one or more application modes. And detecting whether the name attribute list of the current terminal system contains the unregistered layer name or not when the system application mode of the terminal system is determined to be the VR display mode. As shown above, when the operation mode of the current terminal system is confirmed, the operation mode of the terminal system may also be determined by checking the name attribute list VR application.
Reading a name attribute list of a current terminal based on the operation condition of a current terminal system, wherein the name attribute list is defined as an application name list of a current operation application when the system application operates, the name attribute list comprises a series of application-based parameter information such as application name, type, attribute and the like, and under a general condition, the application name displayed in the application name list is defined as a page name with an application page at present, or all application information based on the current terminal system operation is displayed in the name attribute list. Therefore, when detecting a system popup of a current terminal system, determining the content of the name attribute list of the current terminal system to determine a corresponding system popup according to the name attribute list, in a system application, defining the system popup as a layer (popup layer plug-in), and having a corresponding layer name according to different types of the layer, and the system popup is popped up based on the system operation requirement, so that the operation special body of the system popup is not registered in a system registry, when detecting the system popup, determining whether the name attribute list includes an unregistered layer name, and when determining that the name attribute list includes the unregistered layer name, determining that the current terminal system has the system popup. Therefore, after the terminal system is started, traversing a name attribute list of the current terminal system, determining whether the name attribute list has a layer name which is an application name of a registered VR application, and determining that a system application mode of the terminal is a VR display mode when the name attribute list has the registered VR application name, where the registered VR application is defined as a terminal application program which is installed with the current terminal system and has an operation right, and when the VR application is determined to have the operation right, determining whether the VR application is registered is mainly performed.
Step S20, storing the popup page of the system popup into a preset off-screen buffer area;
according to the currently detected system pop-up window, in a terminal system, the default display flows of the pop-up window pages are all that, through system service (a part of Android multimedia, which is used as service in Android implementation, the default display flows are used for providing a system-wide surface component function, namely, combining and outputting 2D and 3D surfaces of various application programs), and then outputting the combined layer to a terminal screen for display. When the system popup is rendered to a preset off-screen buffer area, rendering operation needs to be carried out based on page data of the system popup, namely, the step of storing the popup page of the system popup to the preset off-screen buffer area comprises the following steps:
acquiring popup data of the system popup, and rendering the popup data into a popup page;
and storing the rendered popup window page to a preset off-screen buffer area.
When the system popup is confirmed, popup data based on the system popup is acquired, the popup data is defined as data capable of achieving rendering requirements and comprises contents such as graphic parameters, structural parameters and data information, the acquired popup data is subjected to rendering operation to render the popup data into a popup page, the rendering operation is a popup rendering function based on terminal system application, and the rendered popup page is stored to a preset off-screen buffer area after the popup data is rendered. In addition, the acquisition of the popup data of the system popup needs to be carried out on the basis of the page data corresponding to the current name attribute list, or the popup data based on the system popup is filtered in the name attribute list. According to the existing application name in the current name attribute list, confirming the layer name of the system popup according to the currently detected system popup, filtering/screening the system page based on the layer name, namely grabbing the popup page corresponding to the layer name on the current terminal system page, in the embodiment, defining the grabbed popup page corresponding to the layer name as data, namely the popup page in a data form, and rendering the grabbed popup page to a preset popup buffer area, wherein the rendering process of the popup page is further from a data-based self-materialization operation process of the page, the popup page is rendered and stored to the preset popup buffer area, and the popup page can be related based on the specific function setting of the preset popup buffer area, and the popup page data of the system popup can be grabbed and stored to the preset popup buffer area, rendering operation of the popup page is carried out in the preset off-screen buffer area; or after the popup page is filtered, directly rendering the popup page, and storing the rendered system popup into a preset off-screen buffer area.
And step S30, rendering the popup page of the off-screen buffer area and displaying the rendered popup page through the display screen of the current terminal.
According to the pop-up window page rendered to the screen-off buffer area at present, the pop-up window page is subjected to secondary rendering operation, when the detected system pop-up window is rendered to the preset screen-off buffer area, the pop-up window page of the system pop-up window is obtained, the image texture of the pop-up window page is confirmed, the corresponding pop-up window page is obtained after the image texture is respectively rendered on the left half screen and the right half screen of the current display screen in a rendering mode, further, the display condition of the display screen is considered, and when the pop-up window page based on the image texture is rendered, the pupil distance parameter of the display screen is also required to be considered so as to avoid the ghost phenomenon when a user looks over. According to the popup page which is rendered to the off-screen buffer area at present, performing secondary rendering operation on the popup page so as to be displayed on the current VR display page, namely the popup processing method further comprises the following steps:
acquiring pupil distance parameters of a display screen, and respectively confirming a left central point and a right central point on the display screen according to the pupil distance parameters, wherein the left central point corresponds to the central point of a left lens, and the right central point corresponds to the central point of a right lens;
the displaying the rendered popup window page through the display screen of the current terminal comprises the following steps:
and displaying the rendered popup window page by taking the left central point and the right central point as centers respectively.
When the detected system popup is rendered to a preset off-screen buffer area, obtaining a popup page of the system popup, confirming image textures of the popup page, respectively drawing the image textures on the left and right half screens of a current display screen in a drawing mode to obtain corresponding popup pages, and when the popup page is drawn, in order to avoid displaying a ghost image phenomenon, drawing operation is required to be carried out based on central points of the left and right half screens of the current display screen, which relates to the viewing experience of a VR display screen, wherein the popup pages displayed on the left and right half screens of the display screen are related to the pupil distance parameter of the current display screen, so that the pupil distance parameter of the current display screen is obtained, and the central point of the current display screen is respectively determined according to the pupil distance parameter, on the basis that the display screen has the left and right half screens, the central point also comprises a left central point and a right central point, namely the left central point is the lens central point of the left display screen, and the right central point is the lens central point of the right screen of the display screen, so that the popup window page is displayed by respectively taking the lens central points as centers according to the confirmed lens central points. Furthermore, considering the display condition of the display screen, when drawing the pop-up window page based on the image texture, the pupil distance parameter of the display screen needs to be considered to avoid the ghost phenomenon when the user views the pop-up window page, that is, before the pop-up window page to be rendered is displayed respectively with the left central point and the right central point as the center, the method further includes:
determining that the left center point overlaps a projection of a center point of the left lens in a direction perpendicular to a user's face and that the right center point overlaps a projection of a center point of the right lens in a direction perpendicular to a user's face.
According to the VR display mode of the current system terminal, the condition that the center point of the left half screen and the center point of the lens of the current display screen are overlapped with the projection of the center point of the lens in the direction perpendicular to the face of the user is confirmed, namely whether the center point is overlapped with the center point of the lens is confirmed, and therefore the phenomenon of double images when the pop-up window page is displayed is avoided when the user checks the view angle. Therefore, the overlapping state of the lens center point and the display screen center point needs to be confirmed based on the current pupil distance parameter. Different users may have different pupil distance parameters when using VR glasses, and based on the condition, the pupil distance parameters of the display screen are obtained, and a lens central point is determined based on the pupil distance parameters, the lens central point is a lens central position point which does not affect the linear propagation of light, and the pop-up window page is drawn by taking the lens central point as the center of a circle. According to the currently drawn popup page, the popup page is drawn on the left and right sides of the display screen respectively, so that the number of the drawn popup pages is two, and the popup pages can be displayed on the left and right display screens of the VR respectively and are convenient for a user to view. The viewing effect can be seen in fig. 5, and fig. 5 is a schematic view of a pop-up window page displayed in a split screen mode.
In this embodiment, after the VR device enters a VR scene, the occurrence of a default popup frame of the system can be detected, the system popup frame image is captured by adding an off-screen buffer in the system display process, the system popup frame image is rendered on the left half screen and the right half screen of the screen in a split-screen manner, the position of a popup window is adjusted by considering factors such as IPD (internet protocol digital) and the like, so that the user can be ensured to observe the content of the popup frame without the ghost phenomenon, and the visual experience of the user is improved.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the pop-up window processing method according to the present invention, and based on the first embodiment illustrated in fig. 2, the rendering the pop-up window page in the off-screen buffer and displaying the rendered pop-up window page through the display screen of the current terminal includes:
step S31, rendering the popup page of the off-screen buffer area for the first time, and displaying the rendered popup page to one of areas corresponding to the left eye or the right eye of a user on the display screen;
and step S32, rendering the popup page of the off-screen buffer area for the second time, and displaying the rendered popup page to the other area corresponding to the left eye or the right eye of the user on the display screen.
In this embodiment, according to the application of current pop-up window page, when the pop-up window page of leaving the screen buffer zone is rendered and the pop-up window page after rendering is displayed, its display mode may include that one or two are displayed simultaneously, in the display application of current display screen, the display screen includes two half screens about including, according to the display application setting of current display screen, right when the pop-up window page of leaving the screen buffer zone is rendered and is shown at half screens about the display screen, through carrying out the secondary rendering to the pop-up window page of leaving the screen buffer zone to show the pop-up window page after rendering in proper order and be in half screens about the display screen. When the rendered popup page is displayed on a display screen, the display mode is substantially a secondary rendering operation mode, the currently displayed display screen is confirmed according to the current display sequence of the left half screen and the right half screen, the popup page away from the screen buffer area is rendered, the rendered popup page is displayed on the confirmed display screen, and further the popup page rendering operation is consistent with the current system popup rendering operation.
Referring to fig. 4, fig. 4 is a flowchart illustrating a pop-up window processing method according to a third embodiment of the present invention, and based on the first and second embodiments illustrated in fig. 2 and 3, the rendering a pop-up window page in an off-screen buffer and displaying the rendered pop-up window page through a display screen of the current terminal includes:
step S33, rendering the popup page of the off-screen buffer area to obtain a rendered popup page;
and step S34, displaying the rendered popup page to an area corresponding to the left eye of the user and an area corresponding to the right eye of the user on the display screen at the same time.
In this embodiment, after rendering the system popup to the off-screen buffer area according to the currently screened popup page of the terminal system, performing secondary rendering on the popup page rendered to the off-screen buffer area to obtain the popup page displayed on the display screen, and directly displaying the rendered popup page on the display screen, where a display area of the popup page is defined as an area corresponding to a left eye of a user and an area corresponding to a right eye of the user of left and right half screens of the display screen, and specifically, the popup page of the off-screen buffer area is rendered with a center point of the rendering area as a center of a circle during rendering, and the rendered popup page is displayed in a corresponding area viewed by human eyes of the display screen.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a pop-up window processing program is stored on the computer-readable storage medium, and when executed by a processor, the pop-up window processing program implements the following operations:
determining that the current terminal runs VR application, and acquiring a system popup;
saving the popup page of the system popup to a preset off-screen buffer area;
rendering the popup page of the off-screen buffer area and displaying the rendered popup page through the display screen of the current terminal.
Further, the popup processing program when executed by the processor further implements the following operations:
rendering the popup page of the off-screen buffer area for the first time, and displaying the rendered popup page to one of areas corresponding to the left eye or the right eye of a user on the display screen;
and rendering the pop-up window page of the off-screen buffer zone for the second time, and displaying the rendered pop-up window page to the other one of the areas corresponding to the left eye or the right eye of the user on the display screen.
Further, the popup processing program when executed by the processor further implements the following operations:
rendering the popup page of the off-screen buffer area to obtain a rendered popup page;
and simultaneously displaying the rendered popup window page to an area corresponding to the left eye of the user and an area corresponding to the right eye of the user on the display screen.
Further, the popup processing program when executed by the processor further implements the following operations:
determining that the current terminal runs VR application;
and acquiring the target system popup from a system popup set comprising a plurality of system popup.
Further, the popup processing program when executed by the processor further implements the following operations:
acquiring pupil distance parameters of a display screen, and respectively confirming a left central point and a right central point on the display screen according to the pupil distance parameters, wherein the left central point corresponds to the central point of a left lens, and the right central point corresponds to the central point of a right lens;
the displaying the rendered popup window page through the display screen of the current terminal comprises the following steps:
and displaying the rendered popup window page by taking the left central point and the right central point as centers respectively.
Further, the popup processing program when executed by the processor further implements the following operations:
determining that the left center point overlaps a projection of a center point of the left lens in a direction perpendicular to a user's face and that the right center point overlaps a projection of a center point of the right lens in a direction perpendicular to a user's face.
Further, the popup processing program when executed by the processor further implements the following operations:
confirming whether the layer name displayed in the name attribute list of the current terminal system is registered or not;
and if the layer name is not registered, confirming that the window of the layer name is a system popup.
Further, the popup processing program when executed by the processor further implements the following operations:
acquiring popup data of the system popup, and rendering the popup data into a popup page;
and storing the rendered popup window page to a preset off-screen buffer area.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A pop-up window processing method is characterized by comprising the following steps:
determining that the current terminal runs VR application, and acquiring a system popup;
saving the popup page of the system popup to a preset off-screen buffer area;
rendering the popup page of the off-screen buffer area and displaying the rendered popup page through the display screen of the current terminal.
2. The popup processing method of claim 1, wherein the rendering the popup page in the off-screen buffer and displaying the rendered popup page through the display screen of the current terminal comprises:
rendering the popup page of the off-screen buffer area for the first time, and displaying the rendered popup page to one of areas corresponding to the left eye or the right eye of a user on the display screen;
and rendering the pop-up window page of the off-screen buffer zone for the second time, and displaying the rendered pop-up window page to the other one of the areas corresponding to the left eye or the right eye of the user on the display screen.
3. The popup processing method of claim 1, wherein the rendering the popup page in the off-screen buffer and displaying the rendered popup page through the display screen of the current terminal comprises:
rendering the popup page of the off-screen buffer area to obtain a rendered popup page;
and simultaneously displaying the rendered popup window page to an area corresponding to the left eye of the user and an area corresponding to the right eye of the user on the display screen.
4. The popup window processing method of claim 1, wherein the determining that the current terminal runs the VR application and obtains a system popup window comprises:
determining that the current terminal runs VR application;
and acquiring the target system popup from a system popup set comprising a plurality of system popup.
5. The pop-up processing method of claim 1, further comprising:
acquiring pupil distance parameters of a display screen, and respectively confirming a left central point and a right central point on the display screen according to the pupil distance parameters, wherein the left central point corresponds to the central point of a left lens, and the right central point corresponds to the central point of a right lens;
the displaying the rendered popup window page through the display screen of the current terminal comprises the following steps:
and displaying the rendered popup window page by taking the left central point and the right central point as centers respectively.
6. The pop-up window processing method of claim 5, wherein before displaying the rendered pop-up window page centered on the left center point and the right center point, respectively, further comprising:
determining that the left center point overlaps a projection of a center point of the left lens in a direction perpendicular to a user's face and that the right center point overlaps a projection of a center point of the right lens in a direction perpendicular to a user's face.
7. The pop-up window processing method of claim 1, wherein the step of obtaining a system pop-up window comprises:
confirming whether the layer name displayed in the name attribute list of the current terminal system is registered or not;
and if the layer name is not registered, confirming that the window of the layer name is a system popup.
8. The pop-up window processing method of claim 1, wherein the step of saving the pop-up window page of the system pop-up window to a preset off-screen buffer comprises:
acquiring popup data of the system popup, and rendering the popup data into a popup page;
and storing the rendered popup window page to a preset off-screen buffer area.
9. A pop-up window processing apparatus, characterized by comprising: memory, a processor and a pop-up processing program stored on the memory and executable on the processor, the pop-up processing program when executed by the processor implementing the steps of the pop-up processing method according to any one of claims 1 to 8.
10. A computer-readable storage medium, comprising a popup processing program stored on the computer-readable storage medium, the popup processing program when executed implementing the steps of the popup processing method of any of claims 1 to 8.
CN202011135510.1A 2020-10-21 2020-10-21 Popup window processing method and device and computer readable storage medium Pending CN112230775A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011135510.1A CN112230775A (en) 2020-10-21 2020-10-21 Popup window processing method and device and computer readable storage medium
PCT/CN2020/136637 WO2022082971A1 (en) 2020-10-21 2020-12-16 Pop-up window processing method and apparatus, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011135510.1A CN112230775A (en) 2020-10-21 2020-10-21 Popup window processing method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112230775A true CN112230775A (en) 2021-01-15

Family

ID=74110248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011135510.1A Pending CN112230775A (en) 2020-10-21 2020-10-21 Popup window processing method and device and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN112230775A (en)
WO (1) WO2022082971A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110050687A1 (en) * 2008-04-04 2011-03-03 Denis Vladimirovich Alyshev Presentation of Objects in Stereoscopic 3D Displays
CN105447898A (en) * 2015-12-31 2016-03-30 北京小鸟看看科技有限公司 Method and device for displaying 2D application interface in virtual real device
CN106209797A (en) * 2016-06-29 2016-12-07 乐视控股(北京)有限公司 A kind of method and device of split screen display available reminder message
CN109375370A (en) * 2018-10-10 2019-02-22 京东方科技集团股份有限公司 A kind of adjusting method of near-eye display device, device, equipment and storage medium
CN111736933A (en) * 2020-05-07 2020-10-02 北京城市网邻信息技术有限公司 Popup window display method and device and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883556B (en) * 2015-05-25 2017-08-29 深圳市虚拟现实科技有限公司 3 D displaying method and augmented reality glasses based on augmented reality
CN106339084A (en) * 2016-08-21 2017-01-18 乐视控股(北京)有限公司 Control method and system for virtual reality equipment
CN106859956B (en) * 2017-01-13 2019-11-26 北京安云世纪科技有限公司 A kind of human acupoint identification massage method, device and AR equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110050687A1 (en) * 2008-04-04 2011-03-03 Denis Vladimirovich Alyshev Presentation of Objects in Stereoscopic 3D Displays
CN105447898A (en) * 2015-12-31 2016-03-30 北京小鸟看看科技有限公司 Method and device for displaying 2D application interface in virtual real device
CN106209797A (en) * 2016-06-29 2016-12-07 乐视控股(北京)有限公司 A kind of method and device of split screen display available reminder message
CN109375370A (en) * 2018-10-10 2019-02-22 京东方科技集团股份有限公司 A kind of adjusting method of near-eye display device, device, equipment and storage medium
CN111736933A (en) * 2020-05-07 2020-10-02 北京城市网邻信息技术有限公司 Popup window display method and device and readable storage medium

Also Published As

Publication number Publication date
WO2022082971A1 (en) 2022-04-28

Similar Documents

Publication Publication Date Title
CN109120984B (en) Barrage display method and device, terminal and server
CN109064390B (en) Image processing method, image processing device and mobile terminal
CN109829981B (en) Three-dimensional scene presentation method, device, equipment and storage medium
CN113126937B (en) Display terminal adjusting method and display terminal
US10810801B2 (en) Method of displaying at least one virtual object in mixed reality, and an associated terminal and system
WO2016192325A1 (en) Method and device for processing logo on video file
US20170104893A1 (en) System and method of pixel manipulation and screen display disruption
CN110796664B (en) Image processing method, device, electronic equipment and computer readable storage medium
WO2017084325A1 (en) Information sharing method, terminal, and storage medium
CN110795056B (en) Method, device, terminal and storage medium for adjusting display parameters
US11615215B2 (en) Image display method and terminal
US10701301B2 (en) Video playing method and device
CN106569700B (en) Screenshot method and screenshot device
EP3822757A1 (en) Method and apparatus for setting background of ui control
EP2755164A2 (en) Display apparatus and control method for adjusting the eyes of a photographed user
CN106843794B (en) Split screen display method and system based on android
JP2015114798A (en) Information processor, information processing method, and program
WO2016008343A1 (en) Content sharing methods and apparatuses
CN106970467B (en) Information display method and head-mounted display equipment
CN112351093A (en) Screenshot image sharing method, device and equipment and computer readable storage medium
CN109271123B (en) Picture display method and picture display device
CN111125433A (en) Popup window management method and device, electronic equipment and readable storage medium
CN113286196B (en) Vehicle-mounted video playing system and video split-screen display method and device
CN112230775A (en) Popup window processing method and device and computer readable storage medium
CN113965795B (en) Method and device for interactive display of anchor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210115

RJ01 Rejection of invention patent application after publication