Disclosure of Invention
The invention aims to provide an application display control method, an application display control device and an application display control terminal, which solve the problem that in the prior art, terminals with relatively limited interaction capacity relative to PC terminals such as mobile terminals are difficult to realize VR display of application virtual reality on the terminals.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
in a first aspect, an embodiment of the present invention provides an application display control method, including:
receiving a Virtual Reality (VR) mode start indication of the application;
acquiring a pre-configured parameter configuration file of the application display mode VR according to the VR mode starting instruction, wherein the parameter configuration file of the display mode VR comprises display mode VR parameters;
and performing VR display of the application according to the display mode VR parameters.
Optionally:
the display mode VR's parameter profile is associated with an application name;
the obtaining of the pre-configured VR parameter configuration file of the application display mode specifically includes:
acquiring a pre-configured parameter configuration file of the application display mode VR according to the name of the application;
or
The display mode VR parameter configuration file is associated with an application name and an application version number; the obtaining of the pre-configured VR parameter configuration file of the application display mode specifically includes:
acquiring a pre-configured parameter configuration file with the application display mode VR according to the application name and the application version number;
or
The parameter configuration file of the display mode VR is associated with an application name, an application version number and a display equipment identifier;
the obtaining of the pre-configured VR parameter configuration file of the application display mode specifically includes:
and acquiring a pre-configured parameter configuration file with the application display mode VR according to the application name, the application version number and the display equipment identifier of the terminal.
Optionally, the obtaining a pre-configured parameter configuration file for VR of the application display mode includes:
acquiring a parameter configuration file which is configured in advance and stored in a remote server and is used for VR of the application display mode from the remote server;
or
And locally acquiring a pre-stored parameter configuration file of the VR application display mode from the terminal.
Optionally, the obtaining of the pre-configured parameter configuration file for the application display mode VR specifically includes:
judging whether the VR parameter configuration file of the application display mode is updated or not;
if yes, acquiring the updated VR parameter configuration file of the application display mode from a remote server;
and if not, acquiring the original VR parameter configuration file of the application display mode, which is locally stored in the terminal.
Optionally, the display mode VR parameters include at least one of:
the method comprises the following steps of interchanging indication of a left disparity map and a right disparity map, generating a distance between a left camera and a right camera when the left disparity map and the right disparity map are generated, generating a distance between the left camera and the right camera to a zero disparity plane when the left disparity map and the right disparity map are generated, generating a distance between the left camera and the right camera to a cutting plane which does not generate disparity, and generating a maximum angle of an application scene horizontal visual angle along with horizontal steering of a user and a maximum angle of an application scene.
Optionally, the method further comprises:
receiving a stereoscopic mode starting indication of the application;
acquiring a pre-configured parameter configuration file for application display mode three-dimensional transformation according to the three-dimensional mode starting instruction, wherein the parameter configuration file for display mode three-dimensional transformation comprises display mode three-dimensional parameters;
and performing stereoscopic display of the application according to the stereoscopic parameters of the display mode.
Optionally, the display mode stereoscopic parameter includes at least one of the following parameters:
the left and right disparity map interchange indication, the distance between the left and right cameras when the left and right disparity maps are generated, the distance from the left and right cameras to a zero disparity plane when the left and right disparity maps are generated, and the distance from the left and right cameras to a cutting plane which does not generate disparity.
In a second aspect, an embodiment of the present invention further provides an applied display control apparatus, including:
a VR mode starting indication receiving unit, configured to receive a virtual reality VR mode starting indication of the application;
a VR parameter configuration file obtaining unit, configured to obtain a pre-configured VR parameter configuration file in the application display mode according to the VR mode starting instruction, where the VR parameter configuration file in the display mode includes VR parameters in the display mode;
and the VR display unit is used for performing VR display of the application according to the display mode VR parameters.
Optionally:
the display mode VR's parameter profile is associated with an application name;
the VR parameter configuration file obtaining unit is specifically configured to:
acquiring a pre-configured parameter configuration file of the application display mode VR according to the name of the application;
or
The display mode VR parameter configuration file is associated with an application name and an application version number; the VR parameter configuration file obtaining unit is specifically configured to:
acquiring a pre-configured parameter configuration file with the application display mode VR according to the application name and the application version number;
or
The parameter configuration file of the display mode VR is associated with an application name, an application version number and a display equipment identifier;
the VR parameter configuration file obtaining unit is specifically configured to:
and acquiring a pre-configured parameter configuration file with the application display mode VR according to the application name, the application version number and the display equipment identifier of the terminal.
Optionally, the VR parameter configuration file obtaining unit includes:
a server VR parameter configuration file acquisition module, configured to acquire a pre-configured and stored parameter configuration file of the application display mode VR from a remote server;
or
And the local VR parameter configuration file acquisition module is used for locally acquiring the pre-stored parameter configuration file of the application display mode VR from the terminal.
Optionally, the VR parameter configuration file obtaining unit includes:
the VR parameter configuration file acquisition and judgment module is used for judging whether the VR parameter configuration file of the application display mode is updated or not;
the VR parameter configuration file acquisition and judgment module is used for judging whether the VR parameter configuration file of the application display mode is updated or not;
a VR parameter configuration file acquisition module for:
when the VR parameter configuration file acquisition and judgment module judges that the VR parameter configuration file of the application display mode is updated, acquiring the updated VR parameter configuration file of the application display mode from a remote server;
and when the VR parameter configuration file acquisition and judgment module judges that the VR parameter configuration file of the application display mode is not updated, acquiring the original VR parameter configuration file of the application display mode, which is locally stored in the terminal.
Optionally, the display mode VR parameters include at least one of:
the method comprises the following steps of interchanging indication of a left disparity map and a right disparity map, generating a distance between a left camera and a right camera when the left disparity map and the right disparity map are generated, generating a distance between the left camera and the right camera to a zero disparity plane when the left disparity map and the right disparity map are generated, generating a distance between the left camera and the right camera to a cutting plane which does not generate disparity, and generating a maximum angle of an application scene horizontal visual angle along with horizontal steering of a user and a maximum angle of an application scene.
Optionally, the apparatus further comprises:
a stereoscopic mode starting indication receiving unit, configured to receive a stereoscopic mode starting indication of the application;
the stereoscopic parameter configuration file acquisition unit is used for acquiring a preconfigured stereoscopic parameter configuration file of the application display mode according to the stereoscopic mode starting instruction, wherein the stereoscopic parameter configuration file of the display mode comprises a stereoscopic parameter of the display mode;
and the stereoscopic display unit is used for performing stereoscopic display of the application according to the stereoscopic parameters of the display mode.
Optionally, the display mode stereoscopic parameter includes at least one of the following parameters:
the left and right disparity map interchange indication, the distance between the left and right cameras when the left and right disparity maps are generated, the distance from the left and right cameras to a zero disparity plane when the left and right disparity maps are generated, and the distance from the left and right cameras to a cutting plane which does not generate disparity.
In a third aspect, an embodiment of the present invention further provides a terminal, including:
a central processing unit, configured to receive a virtual reality VR mode start instruction of the application; acquiring a pre-configured parameter configuration file of the application display mode VR according to the VR mode starting instruction, wherein the parameter configuration file of the display mode VR comprises display mode VR parameters;
and the display screen is used for performing VR display of the application according to the display mode VR parameters.
The invention has the beneficial effects that: according to the embodiment of the invention, the parameters of the VR in the display mode are configured in advance, and when the VR display of the application is needed, only the parameters are needed to be obtained and utilized to perform the VR display, so that the virtual reality VR display of the application by calling the parameter configuration file of the VR in the display mode configured in advance is realized for the terminal with limited processing capacity, such as a mobile phone and a tablet personal computer, of the mobile terminal, the terminal only needs to obtain the parameter configuration file, and the VR parameters in the display mode can be determined and configured in advance by professional personnel, so that the display picture is more real, the immersion of a user is improved, and the power consumption needed by the virtual reality VR display of the terminal is greatly reduced.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
To facilitate an understanding of the embodiments of the invention, some terms referred to in all embodiments of the invention are explained before beginning to describe the various embodiments of the invention.
In all embodiments of the present invention, the terminal includes a portable mobile electronic device with a virtual reality effect, such as a PDA, a desktop computer, a tablet computer, an MP4, a smart phone, an electronic book, and the like, wherein the user interface display of the terminal may be in a normal 2D display mode, a virtual reality mode, or a stereo mode. Of course, the terminal can also be extended to large equipment with virtual reality effect. That is, the terminal according to the embodiment of the present invention may be any display device capable of installing an application program and having a VR display function. The virtual reality effect may be that the terminal starts a software program with a virtual reality display effect, such as APP, or may be implemented by combining software and hardware.
The application referred to in the embodiments of the present invention may be a game application or the like.
Fig. 1 is a flowchart of a display control method for an application according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
and S11, receiving a Virtual Reality (VR) mode starting instruction of the application.
In order to enhance the experience of the application, the scene in the application is often required to be subjected to virtual reality VR augmented display, and after the virtual reality VR mode starting instruction of the application is received, the game loads a driver for calling the virtual reality VR into the game for display.
For example, specifically, the terminal where the application is located may provide an interactive interface, where the interactive interface displays an application icon and provides launch options related to the application, such as a normal launch option, a VR mode launch option, and a stereo mode launch option, and when the user selects one of the options for a certain application, it is equivalent to receiving a launch instruction, for example, the user selects the VR mode launch option, and the terminal receives the VR mode launch instruction.
S12, according to the VR mode starting instruction, obtaining a pre-configured parameter configuration file of the application display mode VR, wherein the parameter configuration file of the display mode VR contains display mode VR parameters.
The parameter configuration file for display mode VR may be pre-stored on a remote server or locally at the terminal, and in this step, the parameter configuration file for display mode VR may be obtained from the server or locally at the terminal.
For example, a professional debugs and determines various display mode VR parameters in advance, generates a display mode VR parameter configuration file according to the determined parameters, and places the file on a server, and in this step, the parameter configuration file may be pulled down from the server.
It is understood that if the user starts the application in the VR mode for the first time, the parameter configuration file may be obtained from the server and stored locally at the terminal, and when the user starts the application again after starting the application in the VR mode for the first time, since the parameter configuration file for displaying the display mode VR stored when the user starts the application in the VR mode is already stored locally at the terminal, the parameter configuration file may be directly obtained locally at the terminal.
As an optimization, when the user starts the application again after first starting the application in the VR mode, in this step, it may be determined whether the application display mode VR parameter configuration file is updated, for example, the application display mode VR parameter configuration file is communicated with the server, and an update flag of the display mode VR parameter configuration file is obtained, where the update flag is used to indicate whether the parameter configuration file is updated, and may be a flag, such as 1 for updating, 0 for not updating, or a version number, and the terminal may determine whether the parameter configuration file is updated by comparing the version number of the display mode VR parameter configuration file obtained from the server with the version number of the locally stored display mode VR parameter configuration file; if yes, updating, and acquiring the updated VR parameter configuration file of the application display mode from a remote server; if not, namely updating is not carried out, acquiring the VR parameter configuration file of the original application display mode stored locally in the terminal.
The parameter configuration file of the display mode VR may be associated with an application name, that is, the parameter configuration file may be in one-to-one correspondence with the application name, that is, each application corresponds to one parameter configuration file, that is, the parameter configuration file of the display mode VR is stored in association with the application name, and the parameter configuration file associated with the application name may be found by using the application name as an index.
As an improvement, the parameter configuration file for display mode VR may also be associated with an application name and an application version number, that is, the parameter configuration file may be in one-to-one correspondence with the application name and the application version number, that is, each version of each application corresponds to a respective parameter configuration file, that is, the parameter configuration file for display mode VR is stored in association with the application name and the application version number, and the parameter configuration file associated with the application name and the application version number may be found by using the application name and the application version number as an index. In this way, in this step, the parameter configuration file of the VR application display mode, which is configured in advance and stored in the remote server, may be obtained from the remote server according to the name of the application and the version number of the application. Similarly, a pre-stored parameter configuration file for VR of the application display mode may be locally obtained from the terminal according to the name of the application and the version number of the application. The parameter configuration file is configured for each version of one application, so that the VR display effect can be effectively guaranteed no matter which version of the application is operated by a user.
Or, as an improvement, since the performances of different brands and models of terminals are different, VR display parameters required by the same application of the same version on different terminals are different, so as to ensure the VR display effect of the application, for a certain version of an application, and for terminals of different brands and models, the VR parameters of the application of the version can be determined in advance and a parameter configuration file can be generated, that is, the parameter configuration file of display mode VR is associated with the application name, the application version number and the display device identifier, and the display device identifier is used for indicating the brand model of the terminal, that is, the parameter configuration file associated with the application name and the application version number can be found by using the application name, the application version number and the display device identifier as indexes. Then, in this step, a pre-configured and stored parameter configuration file of the VR application display mode in the remote server may be obtained from the remote server according to the name of the application, the version number of the application, and the display device identifier of the terminal. Similarly, a pre-stored parameter configuration file of the VR application display mode may be locally obtained from the terminal according to the name of the application, the version number of the application, and the display device identifier of the terminal. In consideration of different performances of the terminals, the parameter configuration file is configured for each version of one application in different terminals, so that no matter which type of terminal is used by a user, which version of the application runs on the terminal, the VR display effect of an application scene can be effectively guaranteed.
In this step, the same application name, the same application version number and the model of the terminal display device correspond to a unique piece of display mode VR parameter configuration file, so that the search efficiency of the display mode VR parameter configuration file of the application can be improved by a large-range and small-range search method such as the application name, the application version number and the model of the terminal display device, and different versions of different applications of different terminals correspond to different parameter configuration files, so that the VR effect of the applications in different use scenes can be effectively ensured, and the user experience is improved. For example: sending the android mobile phone serial number 205618563975486 of the 2.0 version of the botnet, the android mobile phone serial number 205618563975486 corresponding to the botnet is searched first, then the corresponding game name and version are searched in the configuration file corresponding to the serial number, and after the search is successful, the android mobile phone with the serial number 205618563975486 loads the display mode VR parameters corresponding to the mobile phone into the running program of the 2.0 version of the botnet, so that the game has the display effect of display mode VR.
In this step, the parameter configuration file for display mode VR is a parameter configuration file generated by debugging display mode VR parameters of an application and according to a name of the application and a version number of the application, or a parameter configuration file generated according to a name of the application, a version number of the application, and a display device identifier. Because the interactive capability of terminals such as mobile phones and tablets is quite limited compared with that of PC terminals, a display mode VR parameter configuration file for offline debugging application is required, and the method specifically comprises the following steps: the method comprises the steps that a PC terminal is externally connected to terminals such as a mobile phone and a tablet, adjustment and determination of display mode VR parameters corresponding to applications are carried out for each application needing to be adjusted by means of powerful processing and interaction capacity of a computer, then corresponding display mode VR parameter configuration files are generated according to the names of the applications and the version numbers of the applications or the names of the applications, the version numbers of the applications and display equipment identifiers and stored in a remote server, and it can be understood that different versions of different applications need to be respectively debugged, determined and generated and parameter configuration files. When the parameter configuration file needs to correspond to terminals of different brands and models, the parameter configuration file needs to be debugged respectively for different terminals and needs to be debugged respectively for different versions of applications. The personnel debugging the VR parameters of the application display mode are generally professionals in the field, and the VR program parameters of the application display mode are debugged and the VR effect of the application picture display mode is simultaneously watched, so that the VR effect of the application picture display mode can meet the reasonable and comfortable experience of users.
In this step, a professional in the art may debug and store the display mode VR parameter configuration file for the new application, or debug and store the display mode VR parameter configuration file after the application version is updated for the existing application, at this time, the debugged display mode VR parameter configuration file covers the original display mode VR parameter configuration file, and sets the update identifier to prompt the terminal, thereby flexibly implementing the increase, decrease, change and deletion of the display mode VR parameter configuration file.
Specifically, the display mode VR parameters include at least one of the following parameters:
the method comprises the following steps of interchanging indication of a left disparity map and a right disparity map, generating a distance between a left camera and a right camera when the left disparity map and the right disparity map are generated, generating a distance between the left camera and the right camera to a zero disparity plane when the left disparity map and the right disparity map are generated, generating a distance between the left camera and the right camera to a cutting plane which does not generate disparity, and generating a maximum angle of an application scene horizontal visual angle along with horizontal steering of a user and a maximum angle of an application scene.
And S13, performing VR display of the application according to the display mode VR parameters.
In this step, after the terminal acquires the display mode VR parameter configuration file from the remote server or acquires the display mode VR parameter configuration file locally from the terminal, the terminal loads the display mode VR parameters or the display mode VR parameters into the application running program to perform VR display of the application.
According to the embodiment of the invention, the parameters of the VR in the display mode are configured in advance, and when the VR display of the application is needed, only the parameters are needed to be obtained and utilized to perform the VR display, so that the virtual reality VR display of the application by calling the parameter configuration file of the VR in the display mode configured in advance is realized for the terminal with limited processing capacity, such as a mobile phone and a tablet personal computer, of the mobile terminal, the terminal only needs to obtain the parameter configuration file, and the VR parameters in the display mode can be determined and configured in advance by professional personnel, so that the display picture is more real, the immersion of a user is improved, and the power consumption needed by the virtual reality VR display of the terminal is greatly reduced.
Optionally, when the application display mode VR is implemented, the application can be displayed stereoscopically. Fig. 2 is a flowchart of an applied display control method for stereoscopic display according to an embodiment of the present invention, where the method includes the following steps:
s21, receiving a stereoscopic mode starting instruction of the application;
s22, acquiring a pre-configured stereoscopic parameter configuration file of the application display mode according to the stereoscopic mode starting instruction, wherein the stereoscopic parameter configuration file of the display mode comprises stereoscopic parameters of the display mode;
and S23, performing stereoscopic display of the application according to the display mode stereoscopic parameters.
Specifically, the display mode stereoscopic parameter may include at least one of the following parameters:
the left and right disparity map interchange indication, the distance between the left and right cameras when the left and right disparity maps are generated, the distance from the left and right cameras to a zero disparity plane when the left and right disparity maps are generated, and the distance from the left and right cameras to a cutting plane which does not generate disparity.
How to perform the stereoscopic display on the application in steps S21-S23 is similar to how to perform the virtual reality VR display on the application in steps S11-S13, please refer to the description in steps S11-S13, which is not described herein again.
According to the display control method of the application provided by the embodiment of the invention, on one hand, the application can perform virtual reality VR display of the application by acquiring the parameter configuration file of VR display mode. On the other hand, the application can be displayed stereoscopically, in the process, the virtual reality VR or stereoscopic display of the application by calling the preset display mode VR or stereoscopic parameter configuration file on the terminal such as a mobile phone and a tablet is realized, so that the picture is more real, the immersion feeling of a user is improved, and the power consumption required by the terminal for virtual reality VR or stereoscopic display is greatly reduced.
Fig. 3 and fig. 4 are schematic diagrams of virtual reality VR parameters of an applied display control method according to an embodiment of the present invention. The display mode VR parameters may include at least one of: the display mode comprises a left-right disparity map interchange instruction, a distance between left and right cameras when a left-right disparity map is generated, a distance between the left and right cameras when the left-right disparity map is generated and a zero disparity plane when the left-right disparity map is generated, a distance between the left and right cameras when the left-right disparity map is generated and a cropping plane which does not generate disparity, a maximum angle of horizontal turning of an application scene along with a user and a maximum angle of vertical turning of the application scene along with the user, wherein the left-right disparity map interchange instruction, the distance between the left and right cameras when the left-right disparity map is generated and the zero disparity plane, and the distance between the left and right.
As shown in fig. 3, L denotes a left camera, R denotes a right camera, and x denotes a left-right disparity map interchange indication; y represents the distance between the left and right cameras when the left and right disparity maps are generated, so as to control the magnitude of the disparity; z represents the distance from the left and right cameras to the zero parallax plane when the left and right parallax maps are generated so as to control the distance of the zero parallax plane; w represents the distance from the left and right cameras to the cropping plane that does not produce parallax, for controlling the UI in the application scene to not produce parallax to fit the touch screen operation.
In practical implementation, a professional in the art may first perform debugging and determination of the three-dimensional parameters, define and debug the three-dimensional parameters in the program by observing the three-dimensional display effect of the application image, and finally store the three-dimensional parameters. After the three-dimensional parameter debugging is completed, debugging of display mode VR parameters is required on the basis of the three-dimensional parameters, in VR display, as shown in FIG. 4, an outer square area is an actual application scene area, an inner square area is an application scene picture area seen by a user on a screen, and pxl represents a maximum angle of a horizontal visual angle of an application scene which rotates left along with the horizontal direction of the user; pxr denotes the maximum angle by which the horizontal perspective of the application scene turns to the right with the user's level; pyt denotes the maximum angle at which the vertical viewing angle of the application scene rotates vertically upwards with the user; pyb denotes the maximum angle at which the vertical viewing angle of the application scene rotates vertically downwards with the user; the professional in the field records the maximum deflection angle of the application picture in the horizontal and vertical directions by rotating the direction of the viewer, and finally, the adjusted three-dimensional parameters and virtual reality VR parameters are used as configuration parameters suitable for the application and stored in a server for a subsequent terminal to call. The rotation direction of the viewer is always opposite to that of the virtual reality application picture, for example, the viewer rotates horizontally to the left, the picture deflects horizontally to the right, and vice versa; if the viewer rotates vertically upward, the picture is deflected vertically downward, and vice versa. The minimum px may be taken at pxr and pxl as the maximum angle at which the application scene horizontal perspective turns horizontally with the user, and the minimum py may be taken at pyr and pyl as the maximum angle at which the application scene vertical perspective turns vertically with the user.
For example, for game application B, the display mode VR parameters may have the following structure:
the display mode three-dimensional parameters can be as follows:
wherein, x is 1, which means that the left and right disparity maps are interchanged, and the identifiers of other values except for x being 1 are not interchanged.
Fig. 5 is a schematic diagram of a display mode VR apparatus of an applied display control apparatus according to an embodiment of the present invention. As shown in fig. 5, the apparatus includes:
a VR mode starting indication receiving unit 51, configured to receive a virtual reality VR mode starting indication of the application;
a VR parameter configuration file obtaining unit 52, configured to obtain a pre-configured VR parameter configuration file in the application display mode according to the VR mode starting instruction, where the VR parameter configuration file in the display mode includes VR parameters in the display mode;
and a VR display unit 53, configured to perform VR display of the application according to the display mode VR parameter.
Optionally, in one embodiment of the invention:
the display mode VR's parameter profile is associated with an application name;
the VR parameter configuration file obtaining unit 52 is specifically configured to:
and acquiring a pre-configured parameter configuration file of the VR of the application display mode according to the name of the application.
Optionally, in one embodiment of the invention:
the display mode VR parameter configuration file is associated with an application name and an application version number;
the VR parameter configuration file obtaining unit 52 is specifically configured to: and acquiring a pre-configured parameter configuration file with the application display mode VR according to the application name and the application version number.
Optionally, in one embodiment of the invention:
the parameter configuration file of the display mode VR is associated with an application name, an application version number and a display equipment identifier;
the VR parameter configuration file obtaining unit 52 is specifically configured to: and acquiring a pre-configured parameter configuration file with the application display mode VR according to the application name, the application version number and the display equipment identifier of the terminal.
Optionally, the VR parameter configuration file obtaining unit 52 includes:
a server VR parameter configuration file acquisition module, configured to acquire a pre-configured and stored parameter configuration file of the application display mode VR from a remote server; or,
and the local VR parameter configuration file acquisition module is used for locally acquiring the pre-stored parameter configuration file of the application display mode VR from the terminal.
Optionally, the VR parameter configuration file obtaining unit 52 includes:
the VR parameter configuration file acquisition and judgment module is used for judging whether the VR parameter configuration file of the application display mode is updated or not;
a VR parameter configuration file acquisition module for:
when the VR parameter configuration file acquisition and judgment module judges that the VR parameter configuration file of the application display mode is updated, acquiring the updated VR parameter configuration file of the application display mode from a remote server;
and when the VR parameter configuration file acquisition and judgment module judges that the VR parameter configuration file of the application display mode is not updated, acquiring the original VR parameter configuration file of the application display mode, which is locally stored in the terminal.
In the present apparatus, the display mode VR parameters include at least one of:
the method comprises the following steps of interchanging indication of a left disparity map and a right disparity map, generating a distance between a left camera and a right camera when the left disparity map and the right disparity map are generated, generating a distance between the left camera and the right camera to a zero disparity plane when the left disparity map and the right disparity map are generated, generating a distance between the left camera and the right camera to a cutting plane which does not generate disparity, and generating a maximum angle of an application scene horizontal visual angle along with horizontal steering of a user and a maximum angle of an application scene.
Fig. 6 is a schematic diagram of a display mode stereoscopic device using a display control device according to an embodiment of the present invention. As shown in fig. 6, the apparatus includes:
a stereoscopic mode start instruction receiving unit 61, configured to receive a stereoscopic mode start instruction of the application;
a stereoscopic parameter configuration file obtaining unit 62, configured to obtain a preconfigured stereoscopic parameter configuration file of the application display mode according to the stereoscopic mode starting instruction, where the stereoscopic parameter configuration file of the display mode includes a stereoscopic parameter of the display mode;
and a stereoscopic display unit 63, configured to perform stereoscopic display of the application according to the display mode stereoscopic parameter.
In the present apparatus, the stereoscopic parameter includes the display mode stereoscopic parameter includes at least one of the following parameters:
the left and right disparity map interchange indication, the distance between the left and right cameras when the left and right disparity maps are generated, the distance from the left and right cameras to a zero disparity plane when the left and right disparity maps are generated, and the distance from the left and right cameras to a cutting plane which does not generate disparity.
Since the embodiment of the apparatus of the present invention and the embodiment of the method of the present invention are based on the same inventive concept, the technical content described in the embodiment of the method is also applicable to the embodiment of the apparatus of the present invention, and will not be described herein again.
The embodiment of the invention provides an application display control device, a terminal carries out VR or three-dimensional parameter debugging in a display mode on line and generates a parameter configuration file according to an application name, an application version number and a display device identifier, when the virtual reality VR display mode of the application needs to be started, the terminal can directly call the virtual reality VR parameter configuration file, and if the virtual reality VR parameter configuration file does not exist, the terminal can directly call the three-dimensional parameter configuration file, so that games on terminals such as a mobile phone, a flat panel and the like can realize VR or three-dimensional display of virtual reality, an application picture is more real, the immersion sense of a user is improved, and power consumption required by debugging of the terminal is greatly reduced.
Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention, as shown in fig. 7, the terminal includes:
a central processor 71, configured to receive a virtual reality VR mode start instruction of the application; acquiring a pre-configured parameter configuration file of the application display mode VR according to the VR mode starting instruction, wherein the parameter configuration file of the display mode VR comprises display mode VR parameters;
and the display screen 72 is used for performing VR display of the application according to the display mode VR parameters.
The central processing unit is a control center of the terminal, connects various parts of the whole electronic device by using various interfaces and lines, and executes various functions of the electronic device and/or processes data by operating or executing software programs and/or modules stored in the storage unit and calling data stored in the storage unit. The central processing unit may be composed of an integrated circuit, or may be composed of a plurality of connected integrated chips with the same or different functions. That is, the processor may be a combination of a GPU, a digital signal processor, and a control chip in the communication unit.
Fig. 8 is a schematic view of an application scenario flow of a terminal according to an embodiment of the present invention, as shown in fig. 8, the terminal issues a command to start a game in a stereoscopic display manner, and sends fields such as a device model field, a game name and a version number to a server, for example: sending an IOS mobile phone serial number 865264157626124, requesting a stereoscopic and virtual reality parameter configuration file matched with an IOS mobile phone serial number 865264157626124 from a server by a terminal, checking whether the access to the server is successful, if the access to the server is unsuccessful, checking whether an available stereoscopic and virtual reality parameter configuration file exists locally, if not, running the game in a common 2D mode, if the available stereoscopic and virtual reality parameter configuration file exists locally, checking whether a client side is required to set a virtual reality enabling mode, if not, running the game only in a stereoscopic mode of the locally available stereoscopic parameter configuration file, and if so, running the game in a virtual reality mode of the locally available virtual reality parameter configuration file; if the access to the server is successful, whether the three-dimensional and virtual reality parameter configuration file is updated or not needs to be checked, if the update is available, a new three-dimensional and virtual reality parameter configuration file is downloaded from the server and replaces a local existing configuration file, whether a virtual reality mode is set to be started or not needs to be checked, if the update is not available, the game is operated only in the three-dimensional mode of the updated three-dimensional parameter configuration file, and if the update is available, the game is operated in the virtual reality mode of the updated virtual reality parameter configuration file.
In this embodiment, the stereoscopic and virtual display parameter configuration files are integrated, and when a user issues a stereoscopic display mode to start a game and does not turn on a virtual reality control switch, the stereoscopic and VR integrated configuration files are acquired to perform stereoscopic display. And when a user issues a three-dimensional display mode to start a game and starts a virtual reality control switch, acquiring a three-dimensional and VR integrated configuration file to perform VR display.
In the embodiment of the invention, when the three-dimensional game needs to be started, the terminal can directly call the three-dimensional and virtual reality parameter configuration file, the system has certain compatibility and can be compatible with the game which is three-dimensional, a virtual reality control switch is additionally arranged at the client, whether a virtual reality starting mode is set at the client or not needs to be checked, and the switching of the game running mode is flexibly realized.
The embodiment of the invention realizes the VR display of the application by calling the pre-configured VR parameter configuration file of the display mode on the terminals such as a mobile phone and a tablet, so that the picture is more real, the immersion feeling of a user is improved, and the power consumption required by the terminal for carrying out VR display debugging of the virtual reality is greatly reduced.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. The computer software may be stored in a computer readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.