CN108762864A - A kind of virtual reality applications control method, device and electronic equipment - Google Patents

A kind of virtual reality applications control method, device and electronic equipment Download PDF

Info

Publication number
CN108762864A
CN108762864A CN201810414839.8A CN201810414839A CN108762864A CN 108762864 A CN108762864 A CN 108762864A CN 201810414839 A CN201810414839 A CN 201810414839A CN 108762864 A CN108762864 A CN 108762864A
Authority
CN
China
Prior art keywords
cursor
half screen
screen
game
common application
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
CN201810414839.8A
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.)
Orient Vision Technology (beijing) Co Ltd
Original Assignee
Orient Vision Technology (beijing) 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 Orient Vision Technology (beijing) Co Ltd filed Critical Orient Vision Technology (beijing) Co Ltd
Priority to CN201810414839.8A priority Critical patent/CN108762864A/en
Publication of CN108762864A publication Critical patent/CN108762864A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

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 embodiment of the invention discloses a kind of virtual reality applications control method, device and electronic equipment, the method includes:The UI for the common application for needing to be converted to VR applications is subjected to split screen processing, the prefabricated component for including three cursors in left, center, right of pre-production is loaded respectively, left and right cursor is identical in left half screen, relative position relation of the relative position relation with intermediate cursor in common application UI of right half screen, left cursor and right cursor while the target location for being moved to left half screen and right half screen are controlled according to move, when receiving event triggering command, the position coordinates for obtaining intermediate cursor trigger logical place with the current event of determination;Manipulation event is triggered based on event triggering logical place.By using above-mentioned technical proposal, realize without changing the original UI manipulations logic of common application, you can the logic manipulation for realizing VR game corresponding to common game reduces transplanting cost when common game to be converted to VR game.

Description

A kind of virtual reality applications control method, device and electronic equipment
Technical field
The present embodiments relate to technical field of virtual reality more particularly to a kind of virtual reality applications control method, dresses It sets and electronic equipment.
Background technology
With fashionable, a large amount of VR of the emergence and Cardboard of VR (Virtual Reality, virtual reality) technology Equipment emerges, such as VR all-in-one machines.VR all-in-one machines are integrated with CPU (Central Processing Unite, central processing Unit), GPU (Graphics Processing Unite, graphics processing unit) and display screen, mobile phone need not be inserted into;Have A little VR all-in-one machines are also integrated with gyroscope, and by left and right, two have the display image of parallax to make one to obtain the sense of reality.
But since the popularity rate of VR integrated machine equipments is low, user volume is few, the special VR game developed in VR all-in-one machines at The developer of this height, VR all-in-one machine proprietary games is naturally also few, causes the scarcity of VR game.Therefore, present most of VR Android game is converted into VR and plays and be transplanted on VR all-in-one machines by the selection of all-in-one machine producer.The VR all-in-one machines of mainstream at present It is to manipulate the UI (User Interface, user interface) of VR game by accessing handle, therefore, plays by Android It is converted into needing to change original UI manipulations logic of playing when VR plays and is transplanted on VR all-in-one machines, be grasped by handle with realizing The UI for controlling VR game causes transplanting cost very high, and efficiency is low.
Invention content
To solve Related Technical Issues, a kind of virtual reality applications control method of offer of the embodiment of the present invention, device and electricity Sub- equipment may be implemented to manipulate logic without changing the original UI of common application by the method, you can manipulation common application The UI of corresponding VR applications reduces transplanting cost when common application to be converted to VR applications, improves transplanting efficiency.
To achieve the above object, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, an embodiment of the present invention provides a kind of virtual reality applications control method, the method includes:
The graphical user interface UI for the common application for needing to be converted to Virtual Reality application is subjected to split screen processing, so that The UI of the common application is respectively displayed on the left half screen of VR display screens and right half screen;
The prefabricated component for including three cursors in left, center, right of pre-production is loaded respectively, and includes on the left side by left cursor Half screen, right cursor are shown in the right half screen, wherein the left and right cursor is in the opposite position of the left half screen, the right half screen It sets relationship and intermediate cursor is identical in the relative position relation of common application display interface, so as to work as left cursor and right cursor When being simultaneously displaced the target location to left half screen and right half screen, intermediate cursor is in display interface corresponding with common application UI Target location;
Cursor move is received, and the movement simultaneously of the left cursor and the right cursor is controlled according to the move To the target location of left half screen and right half screen;
When receiving event triggering command, obtain intermediate cursor common application display interface position coordinates, with true Event before settled triggers logical place;
Manipulation event is triggered based on current event triggering logical place.
Further, it would be desirable to which the graphical user interface UI for being converted to the common application of Virtual Reality application carries out split screen Processing, so that the UI of the common application is respectively displayed on the left half screen of VR display screens and right half screen, including:
Images of left and right eyes video camera is respectively created based on the power function encapsulated in application engine, wherein the seat of left-eye camera It is designated as (- 0.5*eyeWidth, 0,0), the coordinate of right-eye camera is (0.5*eyeWidth, 0,0), and eyeWidth indicates pupil Away from the viewport of left-eye camera is the left half screen of VR display screens, and the viewport of right-eye camera is the right half screen of VR display screens;
The images of left and right eyes video camera is run, so that the common application is respectively displayed on left half screen and the right side of VR display screens Half screen.
Further, pre-production includes the prefabricated component of three cursors in left, center, right, including:
The prefabricated component that function pre-production includes three cursors in left, center, right is made based on the cursor encapsulated in application engine, And the initial position co-ordinates that intermediate cursor is arranged are (x0, y0), the initial position co-ordinates of left cursor are (x0-0.25W, y0), right The initial position co-ordinates of cursor are (x0+0.25W, y0);
Wherein, W is the width under VR display screen transverse screen modes.
Further, pre-production includes the prefabricated component of three cursors in left, center, right, further includes:
The width and height that intermediate cursor is arranged are 0mm.Further, the current position coordinates of intermediate cursor are obtained, with true Event before settled triggers logical place, including:
Function, which is obtained, based on the cursor encapsulated in application engine obtains the current position coordinates of intermediate cursor.
Further, the current position coordinates of intermediate cursor are obtained, logical place, packet are triggered with the current event of determination It includes:
Function, which is obtained, based on the cursor that is encapsulated in application engine obtains left cursor or the current position coordinates of right cursor;
It is calculated in conjunction with the relative position relation or right cursor of left cursor and left half screen and the relative position relation of right half screen The current position coordinates of intermediate cursor.
Second aspect, an embodiment of the present invention provides a kind of virtual reality applications control device, described device includes:
Split screen module is carried out for that will need to be converted to the graphical user interface UI of common application of Virtual Reality application Split screen processing, so that the UI of the common application is respectively displayed on the left half screen of VR display screens and right half screen;
Load-on module, the prefabricated component for including three cursors in left, center, right for loading pre-production respectively, and by left light Mark is shown in the left half screen, and right cursor is shown in the right half screen, wherein the left and right cursor is in the left half screen, described The relative position relation of right half screen and intermediate cursor are identical in the relative position relation of common application display interface, so as to work as When left cursor and right cursor are simultaneously displaced the target location to left half screen and right half screen, intermediate cursor is in and common application UI The target location of corresponding display interface;
Receiving module controls the left cursor and described for receiving cursor move, and according to the move Right cursor is moved to the target location of left half screen and right half screen simultaneously;
Acquisition module, for when receiving event triggering command, obtaining intermediate cursor in common application display interface Position coordinates trigger logical place with the current event of determination;
Trigger module, for triggering manipulation event based on current event triggering logical place.
The third aspect an embodiment of the present invention provides a kind of electronic equipment, including first memory, first processor and is deposited The computer program that can be run on a memory and on first processor is stored up, the first processor executes the computer journey The virtual reality applications control method as described in above-mentioned first aspect is realized when sequence.
Fourth aspect, an embodiment of the present invention provides a kind of storage medium including computer executable instructions, the meters Calculation machine executable instruction realizes that the virtual reality applications as described in above-mentioned first aspect are manipulated when being executed by computer processor Method.
A kind of virtual reality applications control method provided in an embodiment of the present invention is converted to the general of VR applications by that will need The UI of logical application carries out split screen processing, so that the UI of the common application is respectively displayed on the left half screen and right half of VR display screens Screen obtains the visual effect of virtual reality thereby using family, is only completed by the way that the UI of common application is carried out split screen merely The conversion that common application is applied to VR;By loading the prefabricated component for including three cursors in left, center, right of pre-production respectively, and Include in the left half screen by left cursor, right cursor is shown in the right half screen, to realize by accessing handle or its other party Formula controls cursor movement to position the target location of VR applications UI, by limiting the left and right cursor in the left half screen, institute Relative position relation and the intermediate cursor for stating right half screen are identical in the relative position relation of common application display interface, so that When left cursor and right cursor are simultaneously displaced the target location to left half screen and right half screen, intermediate cursor is in and common application The target location of the corresponding display interfaces of UI, when receiving event triggering command, by obtaining intermediate cursor in common application The position coordinates of display interface determine current event triggering logical place, and based on current event triggering logical place triggering Manipulation event is not necessarily to change the original UI manipulations logic of common application, you can the corresponding VR of manipulation common application to realize The UI of application reduces transplanting cost when common application to be converted to VR applications, improves transplanting efficiency.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, institute in being described below to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention Example without creative efforts, can also be implemented for those of ordinary skill in the art according to the present invention The content of example and these attached drawings obtain other attached drawings.
Fig. 1 is a kind of virtual reality applications control method flow diagram that the embodiment of the present invention one provides;
Fig. 2 is a kind of display schematic diagram of the left and right viewport of video camera that provides of the embodiment of the present invention one on VR display screens;
Fig. 3 is a kind of split screen display available schematic diagram for VR game UI that the embodiment of the present invention one provides;
Fig. 4 is the split screen display available schematic diagram for another VR game UI that the embodiment of the present invention one provides;
Fig. 5 is a kind of virtual reality applications control method flow diagram provided by Embodiment 2 of the present invention;
Fig. 6 is a kind of relation schematic diagram of three cursors in left, center, right provided by Embodiment 2 of the present invention;
Fig. 7 is a kind of virtual reality applications control device structural schematic diagram that the embodiment of the present invention three provides;
Fig. 8 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention four provides.
Specific implementation mode
For make present invention solves the technical problem that, the technical solution that uses and the technique effect that reaches it is clearer, below The technical solution of the embodiment of the present invention will be described in further detail in conjunction with attached drawing, it is clear that described embodiment is only It is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those skilled in the art exist The every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of virtual reality applications control method flow diagram that the embodiment of the present invention one provides.The present embodiment Disclosed virtual reality applications control method can be executed by virtual reality applications control device, and wherein the device can be by software And/or hardware realization.Wherein, the application can specifically include film or game etc., and the present embodiment is with the application It is specifically described for Android game.Android game is normally operated in the terminal of android system, such as hand Machine, personal digital assistant etc..And the terminal of existing android system is typically touch display screen, user is this kind of in experience It is typically to be interacted by touch display screen and the UI of game when Android plays.With the emergence of VR technologies, needing will very More Android game are converted to VR game, and user needs to use special VR equipment, such as VR all-in-one machines when experiencing VR game Or Cardboard etc., therefore user can not be interacted by touch display screen and the VR UI to play again, mainstream is at present UI with VR game by way of accessing game paddle is interacted, and the VR game for accessing game paddle needs to change originally The manipulation logic of Android game, therefore cause to be converted to Android game into transplanting cost when VR plays.It is asked for this Topic, the present embodiment propose a kind of manipulation logic without changing original Android game can be realized through game paddle or The method that other modes manipulate VR game.Shown in Fig. 1, this method may include steps of:
110, the graphical user interface UI for the common game for needing to be converted to Virtual Reality game is subjected to split screen processing, So that the UI of the common game is respectively displayed on the left half screen of VR display screens and right half screen.
Wherein, the common game can be specifically Android game.Split screen is carried out by the UI that Android plays Processing, makes the UI that Android plays be respectively displayed on the left half screen of VR display screens and right half screen, and by left and right, two have parallax Image makes user obtain a kind of sense of reality of virtual reality, Android game is converted to VR game to realize, in this turn Split screen only has been carried out in face of the display UI of Android game in display layer during changing, has not been related to original behaviour in Android game Control the change of logic.
Illustratively, it would be desirable to which the graphical user interface UI for being converted to the common game of Virtual Reality game carries out split screen Processing, so that the UI of the common game is respectively displayed on the left half screen of VR display screens and right half screen, including:
The common game project for being converted to VR game will be needed to be loaded into game engine;Such as it needs to be converted to the general of VR game Logical game is that the person's of bearing cool run is played, and is loaded into game engine-Unity3D, then by setting up the operations such as virtual camera, Split screen processing is done to the UI of common game, it is specific as follows:
Images of left and right eyes video camera is respectively created based on the power function encapsulated in game engine;
The images of left and right eyes video camera is run, so that the UI of the common game is respectively displayed on the left half screen of VR display screens With right half screen.
It, specifically can be by under GameObject catalogues in game engine in the exploitation scene of Android game Camera creates images of left and right eyes video camera, and the coordinate position that images of left and right eyes video camera need to be only inputted during establishment can be completed It automatically creates.In the present embodiment, in order to make user obtain the visual effect of preferable virtual reality, it is preferred that setting left eye The coordinate of video camera is (- 0.5*eyeWidth, 0,0), and the coordinate of right-eye camera is (0.5*eyeWidth, 0,0), EyeWidth indicates interpupillary distance, and the viewport of left-eye camera is the left half screen of VR display screens, and the viewport of right-eye camera is that VR is shown The right half screen of screen, specifically may refer to display schematic diagram of the left and right viewport of video camera shown in Fig. 2 on VR display screens, this reality The VR display screens in example are applied by taking mobile phone display screen as an example, the VR equipment used can be the Cardboard for needing to be inserted into mobile phone.
120, the prefabricated component for including three cursors in left, center, right of pre-production is loaded respectively, and includes in institute by left cursor Left half screen is stated, right cursor is shown in the right half screen, wherein phase of the left and right cursor in the left half screen, the right half screen It is identical in the relative position relation of common game display interface to position relationship and intermediate cursor, so as to work as left cursor and the right side When cursor is simultaneously displaced the target location to left half screen and right half screen, intermediate cursor is in display corresponding with common game UI The target location at interface.
Wherein, the making of cursor prefabricated component can be completed by the correlation function function encapsulated in game engine, Only the initial position of each cursor and the identification information of each cursor need to be set during calling correlation function function, respectively Position coordinates of the identification information of cursor for subsequently assisting obtaining each cursor.
After cursor prefabricated component is loaded, cursor directly displays on the screen, due to being arranged when making cursor prefabricated component The size of intermediate cursor is 0, therefore intermediate cursor does not appear on screen, only shows left cursor in left half screen, is shown in right half screen Right cursor.Respectively left half screen, right half screen show the purpose of left and right cursor be in order to by access game paddle or other set Standby realize positions the target location on VR game UI.For details, reference can be made to points of Fig. 3 and a kind of VR game UI shown in Fig. 4 Shield display schematic diagram, wherein left cursor 101 left half screen 100 relative position with right cursor 201 in the opposite of right half screen 200 Position and intermediate cursor 301 are identical in the relative position of common game display interface 300, and work as left cursor 101 and right cursor 201 when being simultaneously displaced target location (such as target location 102 and 202 in Fig. 4) to left half screen 100 and right half screen 200, Intermediate cursor 301 is in the target location (target location 302 in such as Fig. 4) of display interface corresponding with common game UI 300, That is, when left and right cursor is mobile by control, intermediate cursor is also mobile simultaneously, the relative position relation of three cursors in left, center, right Remain constant.Since intermediate cursor exactly follows on the original UI of common game left and right cursor to move together or 2D There is no the logical places in change or 2D levels for the position of the UI of level, UI acquisition manipulation event, therefore, common game The logical place that original UI obtains manipulation event does not need to change, by the position coordinates for obtaining intermediate cursor in real time The logical place that can determine manipulation event is realized and is manipulated to the logic that VR plays, that is, realize to a left side to trigger manipulation event The logic of half screen and right half screen manipulates.
It should be noted that intermediate cursor 301 and common game display interface 300 in Fig. 3 and Fig. 4 and not appearing in On VR display screens, only by the original UI programs of common game in running background, user simultaneously can't see.
130, cursor move is received, and the left cursor and the right cursor are controlled simultaneously according to the move It is moved to the target location of left half screen and right half screen.
It is triggered by game paddle specifically, the cursor move can be user, when system receives cursor When move, then the corresponding action of triggering controls the movement simultaneously of the left cursor and the right cursor, until move disappears The movement for stopping left cursor and right cursor when mistake makes left cursor and right cursor while being moved to user's phase of left half screen and right half screen The target location of prestige.The manipulation logic of game is not related to for the movement of cursor.
140, when receiving event triggering command, obtain intermediate cursor common game display interface position coordinates, Logical place is triggered with the current event of determination.
Wherein, the event triggering command can specifically refer to " determination " or " OK " instruction triggered by game paddle, The event of triggering such as can be specifically " game starts ", " game over " or game in personage's " firing shells " move Make.Since intermediate cursor follows in the original UI of common game always, left and right cursor moves together and the left and right cursor exists The relative position relation beginning of the left half screen, the relative position relation of the right half screen and intermediate cursor in the original UI of common game Last phase is same, and therefore, left and right cursor wants the logic event triggered with intermediate cursor in the original UI of common game in target location The logic event that the logical place being presently in is triggered is identical, it is thereby achieved that without changing the original logic of common game The logic manipulation played to corresponding VR can be realized in position.
150, manipulation event is triggered based on current event triggering logical place.
Virtual reality applications control method provided in this embodiment, by limit the left and right cursor the left half screen, The relative position relation of the right half screen and intermediate cursor are identical in the relative position relation of common game display interface, real Showed when left cursor and right cursor are simultaneously displaced the target location to left half screen and right half screen, intermediate cursor be in it is common The target location of the corresponding display interfaces of game UI is not necessarily to change the original UI manipulations logic of common game, i.e., to realize The logic manipulation that VR game corresponding to common game can be achieved, reduces being migrated to when common game is converted to VR game This, improves transplanting efficiency.
Embodiment two
Fig. 5 is a kind of virtual reality applications control method flow diagram provided by Embodiment 2 of the present invention, the present embodiment Continue to be specifically described so that the application is Android game as an example, on the basis of the above embodiments, the present embodiment is to system The operation made cursor prefabricated component and obtain the position coordinates of intermediate cursor is embodied.It is described shown in Fig. 5 Method includes:
510, the graphical user interface UI for the common game for needing to be converted to Virtual Reality game is subjected to split screen processing, So that the UI of the common game is respectively displayed on the left half screen of VR display screens and right half screen.
520, the prefabricated component for including three cursors in left, center, right of pre-production is loaded respectively, and includes in institute by left cursor Left half screen is stated, right cursor is shown in the right half screen, wherein phase of the left and right cursor in the left half screen, the right half screen It is identical in the relative position relation of common application display interface to position relationship and intermediate cursor, so as to work as left cursor and the right side When cursor is simultaneously displaced the target location to left half screen and right half screen, intermediate cursor is in display corresponding with common application UI The target location at interface.
Illustratively, pre-production includes the prefabricated component of three cursors in left, center, right, including:
The prefabricated component that function pre-production includes three cursors in left, center, right is made based on the cursor encapsulated in game engine, In the application scenarios of Android game, it can be specifically the Image functions under UGUI catalogues that the cursor, which makes function, When calling the function, the initial position co-ordinates for inputting each cursor are needed, the initial position of intermediate cursor is set according to industry experience Coordinate is (x0, y0), and the initial position co-ordinates of left cursor are (x0-0.25W, 0), and the initial position co-ordinates of right cursor are (x0+ 0.25W, 0), wherein W is the width under VR display screen transverse screen modes, and x0 indicates that abscissa be 0, y0 expression ordinates is 0, i.e., in Between cursor initial position be VR display screens center, the initial position of left cursor is the center of VR display screen left-halfs, right The initial position of cursor is the center of VR display screen right half parts.The relative position of three cursors in left, center, right remains not Become, wherein intermediate cursor is the father node of two cursors in left and right, and the relational graph of three cursors in left, center, right is as shown in Figure 6.Simultaneously The width and height that intermediate cursor is arranged are 0mm, in order to intermediate cursor are hidden, to prevent causing vision to interfere user.It is excellent Choosing, the width and height that left cursor can be arranged are 32mm;The width and height that right cursor is arranged are 32mm, are shown under the numerical value Cursor size is more conform with user's expectation, can obtain preferable visual effect;Certainly can also be other is not 0 numerical value, As long as left cursor and right cursor can be shown on a display screen.
530, cursor move is received, and the left cursor and the right cursor are controlled simultaneously according to the move It is moved to the target location of left half screen and right half screen.
540, when receiving event triggering command, function is obtained based on the cursor encapsulated in game engine and obtains intermediate light Current position coordinates are marked, logical place is triggered with the current event of determination.
In the application scenarios of Android game, it can be specifically in game engine that the cursor, which obtains function, Getposition functions.Each cursor has the identification information or title of oneself, leads to when calling getposition functions It crosses and inputs the identification information of specific cursor and can obtain the position coordinates of corresponding cursor.
Due to having constant relative position relation between intermediate cursor and left/right cursor, acquisition can also be passed through Either then the current position coordinates of right cursor close left cursor according to the relative position of left cursor or right cursor and intermediate cursor The current position coordinates of intermediate cursor are calculated in system.
Specifically, the current position coordinates of cursor include among obtaining:Letter is obtained based on the cursor encapsulated in game engine Number obtains left cursor or the current position coordinates of right cursor;
It is calculated in conjunction with the relative position relation or right cursor of left cursor and left half screen and the relative position relation of right half screen The current position coordinates of intermediate cursor.
550, manipulation event is triggered based on current event triggering logical place.
Virtual reality applications control method provided in this embodiment is realized without changing the original UI manipulations of common game Logic, you can the logic manipulation for realizing VR corresponding to common game game reduces when common game is converted to VR game Transplanting cost, improve transplanting efficiency.
Embodiment three
Fig. 7 is a kind of structural schematic diagram for virtual reality applications control device that the embodiment of the present invention three provides.Referring to Fig. 7 Shown, described device includes:Split screen module 710, load-on module 720, receiving module 730, acquisition module 740 and trigger module 750;
Wherein, split screen module 710, Graphical User circle of the common application for that will need to be converted to Virtual Reality application Face UI carries out split screen processing, so that the UI of the common application is respectively displayed on the left half screen of VR display screens and right half screen;Load Module 720, the prefabricated component for including three cursors in left, center, right for loading pre-production respectively, and include in institute by left cursor Left half screen is stated, right cursor is shown in the right half screen, wherein phase of the left and right cursor in the left half screen, the right half screen It is identical in the relative position relation of common application display interface to position relationship and intermediate cursor, so as to work as left cursor and the right side When cursor is simultaneously displaced the target location to left half screen and right half screen, intermediate cursor is in display corresponding with common application UI The target location at interface;Receiving module 730 controls the left side for receiving cursor move, and according to the move Cursor and the right cursor are moved to the target location of left half screen and right half screen simultaneously;Acquisition module 740 receives thing for working as When part triggering command, intermediate cursor is obtained in the position coordinates of common application display interface, is patrolled with the event triggering that determination is current Collect position;Trigger module 750, for triggering manipulation event based on current event triggering logical place.
Virtual reality applications control device provided in this embodiment, by limit the left and right cursor the left half screen, The relative position relation of the right half screen and intermediate cursor are identical in the relative position relation of common game display interface, real Showed when left cursor and right cursor are simultaneously displaced the target location to left half screen and right half screen, intermediate cursor be in it is common The target location of the corresponding display interfaces of game UI is not necessarily to change the original UI manipulations logic of common game, i.e., to realize The logic manipulation that VR game corresponding to common game can be achieved, reduces being migrated to when common game is converted to VR game This, improves transplanting efficiency.
Example IV
Fig. 8 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention four provides.As shown in figure 8, the electronics is set It is standby to include:It first processor 670, first memory 671 and is stored on first memory 671 and can be in first processor 670 The computer program of upper operation;Wherein, the quantity of first processor 670 can be one or more, at one first in Fig. 8 For reason device 670;First processor 670 is realized virtual existing as described in above-described embodiment one when executing the computer program It is real to apply control method.As shown in figure 8, the electronic equipment can also include the first input unit 672 and the first output device 673.First processor 670, first memory 671, the first input unit 672 and the first output device 673 can pass through bus Or other modes connect, in Fig. 8 for being connected by bus.
First memory 671 is used as a kind of computer readable storage medium, can be used for storing software program, computer can be held Line program and module, if reality-virtualizing game control device/module in the embodiment of the present invention is (for example, virtual reality applications are grasped Control split screen module 710 and the load-on module 720 etc. in device).First processor 670 is stored in first memory by operation Software program, instruction in 671 and module, to execute various function application and the data processing of electronic equipment, i.e., in fact Existing above-mentioned virtual reality applications control method.
First memory 671 can include mainly storing program area and storage data field, wherein storing program area can store behaviour Make the application program needed for system, at least one function;Storage data field can be stored uses created data according to terminal Deng.In addition, first memory 671 may include high-speed random access memory, can also include nonvolatile memory, such as At least one disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, it first deposits Reservoir 671 can further comprise that the memory remotely located relative to first processor 670, these remote memories can pass through Network connection is to electronic equipment/storage medium.The example of above-mentioned network includes but not limited to internet, intranet, local Net, mobile radio communication and combinations thereof.
First input unit 672 can be used for receiving the number or character information of input, and generate the use with electronic equipment Family is arranged and the related key signals input of function control.First output device 673 may include that display screen etc. shows equipment.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium including computer executable instructions, and the computer can be held When being executed by computer processor for executing a kind of virtual reality applications control method, this method includes for row instruction:
The graphical user interface UI for the common application for needing to be converted to Virtual Reality application is subjected to split screen processing, so that The UI of the common application is respectively displayed on the left half screen of VR display screens and right half screen;
The prefabricated component for including three cursors in left, center, right of pre-production is loaded respectively, and includes on the left side by left cursor Half screen, right cursor are shown in the right half screen, wherein the left and right cursor is in the opposite position of the left half screen, the right half screen It sets relationship and intermediate cursor is identical in the relative position relation of common application display interface, so as to work as left cursor and right cursor When being simultaneously displaced the target location to left half screen and right half screen, intermediate cursor is in display interface corresponding with common application UI Target location;
Cursor move is received, and the movement simultaneously of the left cursor and the right cursor is controlled according to the move To the target location of left half screen and right half screen;
When receiving event triggering command, obtain intermediate cursor common application display interface position coordinates, with true Event before settled triggers logical place;
Manipulation event is triggered based on current event triggering logical place.
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present invention is provided, computer The method operation that executable instruction is not limited to the described above, can also be performed the virtual reality that any embodiment of the present invention is provided Using manipulation relevant operation.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases Good embodiment.Based on this understanding, technical scheme of the present invention substantially in other words contributes to the prior art Part can be expressed in the form of software products, which can be stored in computer readable storage medium In, such as the floppy disk of computer, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, storage medium or the network equipment etc.) executes described in each embodiment of the present invention.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (9)

1. a kind of virtual reality applications control method, which is characterized in that including:
The graphical user interface UI for the common application for needing to be converted to Virtual Reality application is subjected to split screen processing, so that described The UI of common application is respectively displayed on the left half screen of VR display screens and right half screen;
The prefabricated component for including three cursors in left, center, right of pre-production is loaded respectively, and includes described left half by left cursor Screen, right cursor are shown in the right half screen, wherein relative position of the left and right cursor in the left half screen, the right half screen Relationship and intermediate cursor are identical in the relative position relation of common application display interface, so as to work as left cursor and right cursor quilt When being moved to the target location of left half screen and right half screen simultaneously, intermediate cursor is in display interface corresponding with common application UI Target location;
Cursor move is received, and the left cursor and the right cursor are controlled according to the move and are moved to a left side simultaneously The target location of half screen and right half screen;
When receiving event triggering command, intermediate cursor is obtained in the position coordinates of common application display interface, is worked as with determination Preceding event triggers logical place;
Manipulation event is triggered based on current event triggering logical place.
2. according to the method described in claim 1, it is characterized in that, the common application that will need to be converted to Virtual Reality application Graphical user interface UI carry out split screen processing so that the UI of the common application be respectively displayed on the left half screens of VR display screens with Right half screen, including:
Images of left and right eyes video camera is respectively created based on the power function encapsulated in application engine, wherein the coordinate of left-eye camera is The coordinate of (- 0.5*eyeWidth, 0,0), right-eye camera are (0.5*eyeWidth, 0,0), and eyeWidth indicates interpupillary distance, left The viewport of eye camera is the left half screen of VR display screens, and the viewport of right-eye camera is the right half screen of VR display screens;
The images of left and right eyes video camera is run, so that the UI of the common application is respectively displayed on left half screen and the right side of VR display screens Half screen.
3. method according to claim 1 or 2, which is characterized in that pre-production includes the pre- of the cursor of left, center, right three Product, including:
Function pre-production is made based on the cursor encapsulated in application engine and includes the prefabricated component of three cursors in left, center, right, and is set The initial position co-ordinates for setting intermediate cursor are (x0, y0), and the initial position co-ordinates of left cursor are (x0-0.25W, y0), right cursor Initial position co-ordinates be (x0+0.25W, y0);
Wherein, W is the width under VR display screen transverse screen modes.
4. method according to claim 1 or 2, which is characterized in that pre-production includes the pre- of the cursor of left, center, right three Product further includes:
The width and height that intermediate cursor is arranged are 0mm.
5. according to claim 1-4 any one of them methods, which is characterized in that the current position coordinates of intermediate cursor are obtained, Logical place is triggered with the current event of determination, including:
Function, which is obtained, based on the cursor encapsulated in application engine obtains the current position coordinates of intermediate cursor.
6. according to claim 1-4 any one of them methods, which is characterized in that the current position coordinates of intermediate cursor are obtained, Logical place is triggered with the current event of determination, including:
Function, which is obtained, based on the cursor that is encapsulated in application engine obtains left cursor or the current position coordinates of right cursor;
It is calculated in conjunction with the relative position relation or the relative position relation of right cursor and right half screen of left cursor and left half screen intermediate The current position coordinates of cursor.
7. a kind of virtual reality applications control device, which is characterized in that described device includes:
Split screen module carries out split screen for that will need to be converted to the graphical user interface UI of common application of Virtual Reality application Processing, so that the UI of the common application is respectively displayed on the left half screen of VR display screens and right half screen;
Load-on module, the prefabricated component for including three cursors in left, center, right for loading pre-production respectively, and left cursor is shown Show that, in the left half screen, right cursor is shown in the right half screen, wherein the left and right cursor is in the left half screen, described right half The relative position relation of screen and intermediate cursor are identical in the relative position relation of common application display interface, so as to work as left light When mark and right cursor are simultaneously displaced the target location to left half screen and right half screen, intermediate cursor is in corresponding with common application UI Display interface target location;
Receiving module controls the left cursor and the right light for receiving cursor move, and according to the move Mark while the target location for being moved to left half screen and right half screen;
Acquisition module, for when receiving event triggering command, obtaining intermediate cursor in the position of common application display interface Coordinate triggers logical place with the current event of determination;
Trigger module, for triggering manipulation event based on current event triggering logical place.
8. a kind of electronic equipment, including first memory, first processor and storage are on a memory and can be in first processor The computer program of upper operation, which is characterized in that realized when the first processor executes the computer program as right is wanted Seek the virtual reality applications control method described in any one of 1-6.
9. a kind of storage medium including computer executable instructions, the computer executable instructions are by computer processor The virtual reality applications control method as described in any one of claim 1-6 is realized when execution.
CN201810414839.8A 2018-05-03 2018-05-03 A kind of virtual reality applications control method, device and electronic equipment Pending CN108762864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810414839.8A CN108762864A (en) 2018-05-03 2018-05-03 A kind of virtual reality applications control method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810414839.8A CN108762864A (en) 2018-05-03 2018-05-03 A kind of virtual reality applications control method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN108762864A true CN108762864A (en) 2018-11-06

Family

ID=64008940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810414839.8A Pending CN108762864A (en) 2018-05-03 2018-05-03 A kind of virtual reality applications control method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108762864A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900754A (en) * 2021-10-09 2022-01-07 深圳技德智能科技研究院有限公司 Desktop sharing method and device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040001734A1 (en) * 2002-02-07 2004-01-01 Burrell James W. Virtual keyboard and control means
CN106126021A (en) * 2016-06-21 2016-11-16 上海乐相科技有限公司 A kind of interface display method and device
CN106126145A (en) * 2016-06-29 2016-11-16 联想(北京)有限公司 A kind of display packing and electronic equipment
CN106201207A (en) * 2016-07-13 2016-12-07 上海乐相科技有限公司 A kind of virtual reality exchange method and device
US20170068416A1 (en) * 2015-09-08 2017-03-09 Chian Chiu Li Systems And Methods for Gesture Input
CN106843637A (en) * 2016-12-22 2017-06-13 深圳众思科技有限公司 Split screen method, the user interface of terminal and terminal
CN107092097A (en) * 2017-06-22 2017-08-25 京东方科技集团股份有限公司 Bore hole 3D display methods, device and terminal device
CN107132914A (en) * 2017-04-10 2017-09-05 青岛海信移动通信技术股份有限公司 Method and terminal for the VR terminal split-screen displays shown
CN107977083A (en) * 2017-12-20 2018-05-01 北京小米移动软件有限公司 Operation based on VR systems performs method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040001734A1 (en) * 2002-02-07 2004-01-01 Burrell James W. Virtual keyboard and control means
US20170068416A1 (en) * 2015-09-08 2017-03-09 Chian Chiu Li Systems And Methods for Gesture Input
CN106126021A (en) * 2016-06-21 2016-11-16 上海乐相科技有限公司 A kind of interface display method and device
CN106126145A (en) * 2016-06-29 2016-11-16 联想(北京)有限公司 A kind of display packing and electronic equipment
CN106201207A (en) * 2016-07-13 2016-12-07 上海乐相科技有限公司 A kind of virtual reality exchange method and device
CN106843637A (en) * 2016-12-22 2017-06-13 深圳众思科技有限公司 Split screen method, the user interface of terminal and terminal
CN107132914A (en) * 2017-04-10 2017-09-05 青岛海信移动通信技术股份有限公司 Method and terminal for the VR terminal split-screen displays shown
CN107092097A (en) * 2017-06-22 2017-08-25 京东方科技集团股份有限公司 Bore hole 3D display methods, device and terminal device
CN107977083A (en) * 2017-12-20 2018-05-01 北京小米移动软件有限公司 Operation based on VR systems performs method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MINGCHAOSUN: ""Cardboard虚拟现实开发初步(四)"", 《HTTPS://BLOG.CSDN.NET/SUNMC1204953974/ARTICLE/DETAILS/50385206》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900754A (en) * 2021-10-09 2022-01-07 深圳技德智能科技研究院有限公司 Desktop sharing method and device, computer equipment and storage medium
CN113900754B (en) * 2021-10-09 2023-10-31 深圳技德智能科技研究院有限公司 Shared desktop method, shared desktop device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2021258994A1 (en) Method and apparatus for displaying virtual scene, and device and storage medium
CN107219916B (en) Multi-platform based experience generation
CN110147231B (en) Combined special effect generation method and device and storage medium
US9550124B2 (en) Projection of an interactive environment
US9305403B2 (en) Creation of a playable scene with an authoring system
CN114797097A (en) Method, computer readable medium and system for gaming
US20120032877A1 (en) Motion Driven Gestures For Customization In Augmented Reality Applications
US20120304126A1 (en) Three-dimensional gesture controlled avatar configuration interface
CN107122099A (en) Method, device, storage medium, processor and the terminal at association user interface
KR20190034215A (en) Digital Multimedia Platform
JP6647867B2 (en) Method, system and computer readable storage medium for generating animated motion sequences
CN105589747B (en) The control method and system that application program is opened more
WO2017092430A1 (en) Method and device for realizing user interface control based on virtual reality application
CN106873886A (en) A kind of control method of stereoscopic display, device and electronic equipment
CN108762864A (en) A kind of virtual reality applications control method, device and electronic equipment
CN112221123B (en) Virtual object switching method and device, computer equipment and storage medium
CN116109737A (en) Animation generation method, animation generation device, computer equipment and computer readable storage medium
CN111617486A (en) Game level editing method and editor
CN106484397A (en) The generation method of user interface controls and its device in a kind of 3d space
US20180018077A1 (en) Non-transitory storage medium encoded with computer readable information processing program allowing change to order of arrangement preferred by user with simplified scheme, information processing apparatus, method of controlling information processing apparatus, and information processing system
KR102533209B1 (en) Method and system for creating dynamic extended reality content
WO2024037166A1 (en) Interface processing method and apparatus, storage medium, and electronic device
CN118259894A (en) Method, device and equipment for searching programmed building blocks and computer readable storage medium
CN118656067A (en) Operation method, device, equipment, medium and product of visual programming interface
CN114100123A (en) Game scene presenting method, device, equipment and medium in shooting game

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
AD01 Patent right deemed abandoned

Effective date of abandoning: 20221101

AD01 Patent right deemed abandoned