Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The embodiment of the invention provides an operation method and device for VR (virtual reality) simulated driving, a VR helmet and a storage medium, which can greatly reduce the dizziness generated when a user turns in VR simulated driving.
Referring to fig. 1, a first embodiment of an operating method for VR simulated driving according to an embodiment of the present invention includes:
101. acquiring a steering operation command in a VR simulation driving process;
VR simulated driving refers to the behavior of a user wearing various types of VR equipment (e.g., VR helmets) to drive in a virtual environment. The steering operation command is used for controlling a corresponding driving model to steer in the simulated driving process, and the steering operation command can be sent in various modes, such as rotating a VR helmet or operating a VR handle.
102. Adjusting the visual angle of a VR display interface according to the steering operation command, and keeping the orientation of a vehicle model simulating driving in the VR display interface unchanged in the visual angle adjusting process;
after a steering operation command in the VR simulation driving process is acquired, the visual angle of a VR display interface is adjusted according to the steering operation command, and the orientation of a vehicle model simulating driving in the VR display interface is kept unchanged in the visual angle adjusting process. The vehicle model refers to a virtual vehicle used by a user during virtual driving, and can be various types of vehicle models, such as cars, trucks, vans, forklifts, excavators, ships, airplanes, or submarines. After a steering operation command in a VR simulated driving process is acquired, the visual angle of a VR display interface is adjusted according to the steering operation command, and the adjustment range of the visual angle is determined according to the steering operation command, for example, when a VR helmet is rotated by 90 degrees, the adjustment range of the visual angle can also be 90 degrees. The orientation of the vehicle model is kept unchanged during the viewing angle adjustment, for example, for an automobile model, the direction of the vehicle head is kept unchanged during the viewing angle adjustment.
103. And when a preset triggering condition is met, switching the orientation of the vehicle model to a direction corresponding to the current visual angle of the VR display interface.
In the process of adjusting the visual angle, if a preset trigger condition is met, the orientation of the vehicle model is switched to the direction corresponding to the current visual angle of the VR display interface. The trigger condition is used to trigger the switching of the orientation of the vehicle model, and may be various different types of conditions.
Further, the meeting of the preset trigger condition may include:
acquiring a signal input by a designated key on a VR control handle;
or
And detecting that the visual angle of the VR display interface is kept unchanged within a preset time length.
The designated key on the VR control handle can be any key on the VR control handle, and after a user determines a desired visual angle in the visual angle adjusting process of the VR display interface, the user can press the designated key on the VR control handle, so that the triggering condition is met, and the orientation of the vehicle model is switched to the direction corresponding to the current visual angle (namely, the desired visual angle) of the VR display interface. Furthermore, in order to bring better operation experience to the user, a virtual model which is the same as or similar to the actual VR handle can be constructed in the VR display interface, and the virtual key corresponding to the specified key on the virtual model is highlighted in a certain way to prompt the user which key on the VR handle should be operated.
Another way to determine whether the preset trigger condition is met may be to detect whether the viewing angle of the VR display interface remains unchanged within a preset time duration, and if the viewing angle of the VR display interface remains unchanged within a preset time duration (for example, 10 seconds), it may be considered that the user has selected the current viewing angle, and it is determined that the trigger condition is met.
Further, the switching the orientation of the vehicle model to the direction corresponding to the current perspective of the VR display interface may include:
(1) and switching the orientation of the vehicle model to the direction corresponding to the current visual angle of the VR display interface on a preset motion track at a specified speed.
(2) Directly switching the orientation of the vehicle model from an initial orientation to a direction corresponding to a current perspective of the VR display interface.
As for the mode (1), the preset movement trajectory may be an arc-shaped trajectory, and the orientation of the vehicle model is switched to the direction corresponding to the current viewing angle of the VR display interface on the movement trajectory at the specified rotation speed, so that the user will see a dynamic orientation transition process.
With regard to the method (2), the direction of the vehicle model is directly switched from the initial direction to the direction corresponding to the current view angle of the VR display interface, that is, the direction switching action of the vehicle model is completed instantaneously.
The difference between the method (1) and the method (2) is that the former can see the dynamic orientation transition process, while the latter can only see the result of the orientation transition. The advantage of the mode (2) is that time can be saved; the advantage of the mode (1) is mainly embodied in a multi-user interactive scene, other users can completely observe the steering process of the vehicle model when seeing the steering of the vehicle model, the singular phenomenon that a certain object changes the steering instantly in a visual angle is avoided, and the reality degree of experience is ensured.
Research shows that the simulated driving does not cause great dizziness when moving forwards or backwards without steering, but generates great dizziness when steering is started (in a non-empty scene). The fundamental reason for generating the vertigo feeling is that the background visual angle and the orientation of the vehicle model are changed simultaneously during steering, but the embodiment of the invention keeps the orientation of the vehicle model simulating driving in the VR display interface unchanged in the visual angle adjusting process, and changes the orientation of the vehicle model after the visual angle adjustment is finished, thereby avoiding changing the background visual angle and the orientation of the vehicle model simultaneously and effectively reducing the vertigo feeling.
In the embodiment of the invention, a steering operation command in the VR simulation driving process is obtained; adjusting the visual angle of a VR display interface according to the steering operation command, and keeping the orientation of a vehicle model simulating driving in the VR display interface unchanged in the visual angle adjusting process; and when a preset triggering condition is met, switching the orientation of the vehicle model to a direction corresponding to the current visual angle of the VR display interface. In the VR driving and steering process, the orientation of the vehicle model for driving simulation is kept unchanged during visual angle adjustment, and the orientation of the vehicle model for driving simulation is switched to the direction corresponding to the current visual angle only when a preset trigger condition is met, so that the visual angle and the orientation of the vehicle model are prevented from being adjusted simultaneously during driving simulation, and the vertigo caused by a user is greatly reduced.
Referring to fig. 2, a second embodiment of an operating method for VR simulated driving according to the embodiment of the present invention includes:
201. acquiring a steering operation command in a VR simulation driving process;
step 201 is the same as step 101, and specific reference may be made to the related description of step 101.
202. Generating a pointing sign in the VR display interface according to the steering operation command;
the pointing indicator points in a rotational direction of a viewing angle of the VR display interface or a direction of the vehicle model relative to a position at which the viewing angle of the VR display interface is located. The pointing sign can be a pointing arrow with any shape, structure, color, size and transparency or other icons capable of indicating directions, and after a steering operation command in the VR simulated driving process is acquired, the pointing direction of the pointing sign is determined according to the steering operation command. For example, when a right turn steering operation command is detected, an arrow pointing to the right (corresponding to the turning direction of the angle of view of the VR display interface) or an arrow pointing to the left (corresponding to the orientation of the vehicle model facing the angle of view of the VR display interface) is generated at a specified position of the VR display interface (e.g., the middle of the angle of view). Obviously, the pointing sign generated in the VR display interface during steering can effectively indicate the rotation direction of the current visual angle, reference information is provided for a user, and the practicability is further improved.
Optionally, a pointing arrow pointing to the current viewing angle at a moment may be generated on the VR display interface, so that the user can quickly locate the current viewing angle, and user experience is further improved.
203. Adjusting the visual angle of a VR display interface according to the steering operation command, and keeping the orientation of a vehicle model simulating driving in the VR display interface unchanged in the visual angle adjusting process;
step 203 is the same as step 102, and the related description of step 102 can be specifically referred to.
204. And when a preset triggering condition is met, switching the orientation of the vehicle model to a direction corresponding to the current visual angle of the VR display interface.
Step 204 is the same as step 103, and specific reference may be made to the description related to step 103.
In the embodiment of the invention, a steering operation command in the VR simulation driving process is obtained; generating a pointing sign in the VR display interface according to the steering operation command; adjusting the visual angle of a VR display interface according to the steering operation command, and keeping the orientation of a vehicle model simulating driving in the VR display interface unchanged in the visual angle adjusting process; and when a preset triggering condition is met, switching the orientation of the vehicle model to a direction corresponding to the current visual angle of the VR display interface. In the VR driving and steering process, the orientation of the vehicle model for driving simulation is kept unchanged during visual angle adjustment, and the orientation of the vehicle model for driving simulation is switched to the direction corresponding to the current visual angle only when a preset trigger condition is met, so that the visual angle and the orientation of the vehicle model are prevented from being adjusted simultaneously during driving simulation, and the vertigo caused by a user is greatly reduced. In addition, a pointing sign is generated in the VR display interface according to the steering operation command, so that a user can be prompted to steer in which direction at present, and the practicability is further improved.
Referring to fig. 3, a third embodiment of an operating method for VR simulated driving according to the embodiment of the present invention includes:
301. acquiring a steering operation command in a VR simulation driving process;
step 301 is the same as step 101, and specific reference may be made to the description related to step 101.
302. Adjusting the visual angle of a VR display interface according to the steering operation command, and keeping the orientation of a vehicle model simulating driving in the VR display interface unchanged in the visual angle adjusting process;
step 302 is the same as step 102, and the related description of step 102 can be referred to specifically.
303. Determining a view angle rotation angle of the VR display interface, the view angle rotation angle being a rotation angle of a current view of the VR display interface relative to a current orientation of the vehicle model;
in the process of adjusting the visual angle, determining the visual angle rotation angle of the VR display interface, wherein the visual angle rotation angle is the rotation angle of the current visual angle of the VR display interface relative to the current orientation of the vehicle model. The angle of rotation of the viewing angle is a real-time variable whose value changes in accordance with the change in the current viewing angle. For two different situations of left turning and right turning, a sign can be added in front of the angle value for distinguishing, or characters of left or right are directly added in front of the angle value for distinguishing. For example, before adjusting the viewing angle, the value of the viewing angle rotation angle is 0, when the viewing angle is adjusted by 90 degrees in a certain direction, the viewing angle rotation angle is determined to be 90, then when the viewing angle is adjusted by 150 degrees in the opposite direction, the viewing angle rotation angle is determined to be-60, and so on.
Further, a direction flag generated according to the steering operation command in the embodiment shown in fig. 2 may be added to this embodiment. By combining the pointing sign and the angle of rotation of the viewing angle, the user can intuitively and clearly know the angle of the current viewing angle adjusted in which direction.
304. Displaying the visual angle rotation angle in a designated area of the VR display interface;
and after the visual angle rotation angle of the VR display interface is determined, displaying the visual angle rotation angle in a specified area of the VR display interface. The designated area can be any area of the VR display interface, such as a reasonable area in the upper left corner, the middle upper part or the upper right corner of the interface. The angle of rotation of the viewing angle may be any color, size, font, shape, and dynamic effect when displayed, and is not limited herein.
305. And when a preset triggering condition is met, switching the orientation of the vehicle model to a direction corresponding to the current visual angle of the VR display interface.
Step 205 is the same as step 103, and specific reference may be made to the description related to step 103.
In the embodiment of the invention, a steering operation command in the VR simulation driving process is obtained; adjusting the visual angle of a VR display interface according to the steering operation command, and keeping the orientation of a vehicle model simulating driving in the VR display interface unchanged in the visual angle adjusting process; determining a visual angle rotation angle of the VR display interface, wherein the visual angle rotation angle is a rotation angle of a current visual angle of the VR display interface relative to an initial visual angle before visual angle adjustment; displaying the visual angle rotation angle in a designated area of the VR display interface; and when a preset triggering condition is met, switching the orientation of the vehicle model to a direction corresponding to the current visual angle of the VR display interface. In the VR driving and steering process, the orientation of the vehicle model for driving simulation is kept unchanged during visual angle adjustment, and the orientation of the vehicle model for driving simulation is switched to the direction corresponding to the current visual angle only when a preset trigger condition is met, so that the visual angle and the orientation of the vehicle model are prevented from being adjusted simultaneously during driving simulation, and the vertigo caused by a user is greatly reduced. Furthermore, the visual angle rotating angle of the VR display interface is determined in the visual angle adjusting process and displayed on the VR display interface, so that a user can know the current rotating angle, and the user experience is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The above mainly describes an operation method of VR simulated driving, and an operation device of VR simulated driving will be described in detail below.
Referring to fig. 4, an embodiment of an operating device for VR simulated driving according to an embodiment of the present invention includes:
a steering command acquisition module 401, configured to acquire a steering operation command in a VR simulated driving process;
a view angle adjusting module 402, configured to adjust a view angle of a VR display interface according to the steering operation command, and keep an orientation of a vehicle model simulating driving in the VR display interface unchanged during a view angle adjusting process;
a model orientation switching module 403, configured to switch an orientation of the vehicle model to a direction corresponding to the current viewing angle of the VR display interface when a preset trigger condition is met.
Further, the operating device for VR simulated driving may further include:
a direction indicator generating module 404, configured to generate a direction indicator in the VR display interface according to the steering operation command, where the direction indicator points to a rotation direction of a viewing angle of the VR display interface or a direction of the vehicle model relative to a position of the viewing angle of the VR display interface.
Further, the operating device for VR simulated driving may further include:
a rotation angle determining module 405, configured to determine a viewing angle rotation angle of the VR display interface, where the viewing angle rotation angle is a rotation angle of a current viewing angle of the VR display interface relative to an initial viewing angle before viewing angle adjustment;
a rotation angle display module 406, configured to display the viewing angle rotation angle in a designated area of the VR display interface.
Embodiments of the present invention further provide a VR headset, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the steps of any one of the operation methods for VR simulated driving as shown in fig. 1 to 3.
An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of any one of the VR simulated driving operation methods shown in fig. 1 to 3.
Fig. 5 is a schematic diagram of a VR headset according to an embodiment of the present invention. As shown in fig. 5, the VR headset 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The processor 50, when executing the computer program 52, implements the steps in the embodiments of the operating method for VR simulated driving described above, such as the steps 101 to 103 shown in fig. 1. Alternatively, the processor 50, when executing the computer program 52, implements the functions of each module/unit in the above-mentioned device embodiments, for example, the functions of the modules 401 to 403 shown in fig. 4.
The computer program 52 may be divided into one or more modules/units, which are stored in the memory 51 and executed by the processor 50 to accomplish the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 52 in the VR headset 5.
Those skilled in the art will appreciate that fig. 5 is merely an example of the VR headset 5, and does not constitute a limitation of the VR headset 5, and may include more or less components than shown, or combine certain components, or different components, e.g., the VR headset 5 may also include input-output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the VR headset 5, such as a hard disk or a memory of the VR headset 5. The memory 51 may also be an external storage device of the VR headset 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the VR headset 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the VR headset 5. The memory 51 is used to store the computer program and other programs and data required by the VR headset. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. 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.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.