A method and device for controlling particle motion in a vehicle-mounted VR scene

By obtaining vehicle driving status data and controlling the movement direction and speed of particles in the vehicle VR scene to be consistent with the driving status of the vehicle, the problem of dizziness caused by random movement of particles in vehicle VR is solved and the user experience is improved.

CN117632339BActive Publication Date: 2024-09-27CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311616381.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2024-09-27
Estimated Expiration
2043-11-28

AI Technical Summary

Technical Problem

In vehicle-mounted VR applications, the random movement of particles may cause dizziness and affect the user experience.

Method used

By obtaining the driving status data of the vehicle, it is determined that the moving direction of the particles is opposite to the driving speed, and the movement amount of the particles is calculated based on the driving speed and heading angle, and the movement trajectory of the particles is controlled to be consistent with the driving direction and speed of the vehicle to ensure the movement trajectory of the particles. Matches the user's sense of touch.

Benefits of technology

It effectively avoids the dizziness problem when users use in-vehicle VR equipment while the vehicle is driving, and improves the consistency of user experience and body sensation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117632339B
    Figure CN117632339B
Patent Text Reader

Abstract

The present application relates to the field of vehicle-mounted VR technology, and provides a method and device for controlling the movement of particles in a vehicle-mounted VR scene. The method comprises: obtaining the driving state data of the vehicle, the driving state data including the driving speed and heading angle of the vehicle; determining the opposite direction of the driving speed, and determining any direction within a preset angle range centered on the opposite direction as the moving direction of particles in the vehicle-mounted virtual reality VR scene; determining the movement amount of particles in the vehicle-mounted VR scene after each preset time according to the driving speed and heading angle; and controlling the particles in the vehicle-mounted VR scene to move in the moving direction and movement amount according to the moving direction and movement amount of the particles. The present application solves the technical problem that users are prone to dizziness when using vehicle-mounted VR.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle-mounted VR technology, and in particular to a method and device for controlling the motion of particles in a vehicle-mounted VR scene. Background Art

[0002] In-car virtual reality (VR) is a new application scenario for VR products in cars. When using meditation, fragrance and other applications in in-car VR applications, granular particles representing fragrance and star particles in the Milky Way will appear in the picture. These particles will move along a certain trajectory in the VR picture, making the picture more beautiful and vivid.

[0003] However, after the user wears the VR device, the random movement of particles during the driving of the vehicle may change the user's sense of self, causing the user to feel dizzy. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a method and device for controlling the motion of particles in an in-vehicle VR scene to solve the problem of users being prone to dizziness during in-vehicle VR in the prior art.

[0005] In a first aspect of an embodiment of the present application, a particle generation and movement method for a vehicle-mounted VR screen is provided, comprising:

[0006] Acquire the driving state data of the vehicle, the driving state data including the driving speed and heading angle of the vehicle;

[0007] Determine the opposite direction of the driving speed, and determine any direction within a preset angle range centered on the opposite direction as the moving direction of particles in the in-vehicle virtual reality VR scene;

[0008] According to the driving speed and heading angle, determine the movement amount of particles in the vehicle-mounted VR scene after a preset time;

[0009] According to the moving direction and amount of the particles, the particles in the vehicle-mounted VR scene are controlled to move in the moving direction and amount.

[0010] A second aspect of an embodiment of the present application provides a device for controlling the motion of particles in a vehicle-mounted VR scene, including:

[0011] A data collection module is used to obtain the driving state data of the vehicle, the driving state data including the driving speed and heading angle of the vehicle;

[0012] A direction determination module, used to determine the opposite direction of the driving speed, and determine any direction within a preset angle range centered on the opposite direction as the moving direction of particles in the in-vehicle virtual reality VR scene;

[0013] The rate calculation module is used to determine the movement amount of particles in the vehicle-mounted VR scene after a preset time according to the driving speed and heading angle;

[0014] The motion control module is used to control the particles in the vehicle-mounted VR scene to move in a direction and amount according to the moving direction and amount of the particles.

[0015] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0016] According to a fourth aspect of an embodiment of the present application, a readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0017] The beneficial effects of the embodiments of the present application include at least:

[0018] By acquiring the driving status data of the vehicle, the driving status data includes the driving speed and heading angle of the vehicle; determining the opposite direction of the driving speed, and determining any direction within a preset angle range centered on the opposite direction as the moving direction of particles in the on-board virtual reality VR scene; determining the movement amount of particles in the on-board VR scene every preset time according to the driving speed and heading angle; controlling the particles in the on-board VR scene to move in the moving direction and movement amount according to the moving direction and movement amount of the particles; making the particles in the on-board VR scene no longer move randomly, but the moving direction tends to be consistent with the opposite direction of the driving speed, and the movement amount is also related to the driving speed, so that the movement of the particles can be determined according to the driving direction and speed of the vehicle, thereby realizing that the movement trajectory of the particles is related to the driving direction and driving speed of the vehicle, and then making the movement trajectory of the particles correspond to the user's body sensation, improving the user experience, and avoiding the problem of dizziness that the user is prone to when using the on-board VR device during the driving of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 is a schematic diagram of the system structure of an embodiment of the present application;

[0021] Figure 2It is a flow chart of a method for controlling the motion of particles in a vehicle-mounted VR scene provided by an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of particles provided in an embodiment of the present application in a three-dimensional coordinate system;

[0023] Figure 4 It is a structural schematic diagram of a particle motion control device in a vehicle-mounted VR scene provided by an embodiment of the present application;

[0024] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0026] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0027] In addition, it should be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "includes..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0028] The motion control method and device of particles in a vehicle-mounted VR scene according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0029] Figure 11 is a schematic diagram of the system structure of an embodiment of the present application. Specifically, the system structure may include a gyroscope 11 and a speed sensor 12, an adapter middleware 13 of the vehicle system, and a VR device 14. The gyroscope 11 can regularly collect and detect the heading angle of the current vehicle; the speed sensor 12 can regularly collect and detect the driving speed of the current vehicle; the adapter middleware 13 of the vehicle system can continuously process the acquired vehicle heading angle and speed, and connect to the VR device 14 wirelessly; the VR device can display the movement trajectory of particles and display various information to the user. The gyroscope 11 collects the heading angle of the vehicle, and the speed sensor 12 collects the speed of the vehicle. After the collection is completed, the current heading angle and driving speed of the vehicle can be sent to the adapter middleware 13 of the vehicle system through the controller area network (CAN) signal. The adapter middleware processes and converts the data, and then sends the processed driving speed and heading angle to the VR device via Bluetooth or wireless network. After receiving the data, the VR device can determine the moving direction and amount of the particles based on this, and then control the movement of the particles in the VR scene based on the moving direction and amount of the particles, and display it on the screen for users to watch.

[0030] Figure 2 1 is a flow chart of a method for controlling the motion of particles in a vehicle-mounted VR scene provided by an embodiment of the present application. The method can be executed by a VR device or a vehicle. Figure 2 As shown, the motion control method of particles in the vehicle-mounted VR scene includes:

[0031] Step 201, obtaining driving state data of a vehicle, where the driving state data includes the driving speed and heading angle of the vehicle.

[0032] Specifically, the vehicle's speed can be obtained and detected by a speed sensor installed on the vehicle, and the vehicle's heading angle can be obtained and detected by a gyroscope installed on the vehicle. The heading angle can be the angle between the current vehicle's speed direction and the North Pole. The vehicle position can be set as the origin, the north horizontal longitude line as 0°, and the upward right-hand rule is applied to define the rotation direction, and the angle range is set to 0° to 359.99°. The heading angle can be controlled by controlling the front wheel angle (steering wheel).

[0033] By obtaining the vehicle's speed and heading angle, data support is provided for the subsequent determination of particle movement.

[0034] Step 202, determine the opposite direction of the driving speed, and determine any direction within a preset angle range centered on the opposite direction as the moving direction of the particles in the vehicle-mounted VR scene.

[0035] Specifically, the preset angle range may be less than 45 degrees, and certainly may also be less than 50 degrees.

[0036] In the real scene during vehicle driving, the direction of wind felt by the user is opposite to the direction of vehicle driving, and the direction of movement of real objects in the air is also opposite to the direction of vehicle driving. Therefore, by setting the movement direction of particles in the vehicle-mounted VR scene to any direction within a preset angle range, and the preset angle range is centered on the opposite direction of the driving speed, that is, the opposite direction of the driving speed is used as the average line, this makes the movement direction of ions tend to be consistent with the opposite direction of the vehicle's driving direction, so that the movement direction of particles seen by the user in the VR scene is consistent with the user's physical sensation, thereby avoiding the problem of dizziness caused by the movement direction of particles seen by the user in the VR scene being inconsistent with the user's physical sensation.

[0037] For example, as an example, the movement direction of particles in the in-vehicle VR scene is 30° opposite to the driving speed, that is, the movement direction of particles can be 30 degrees to the left or right of the opposite direction of the driving speed, which makes the user's body sensation consistent with the direction of particle movement seen in the VR scene.

[0038] It should be noted that the preset angle range can be set by the vehicle by default, or can be customized by the user according to his or her own feelings, and is not specifically limited here.

[0039] In this way, by setting the movement direction of particles in the in-vehicle VR scene to any direction within a preset angle range, and the preset angle range is centered on the opposite direction of the driving speed, the user's movement sensation is ensured to be consistent with the trend in the opposite direction of the vehicle's driving direction, making the user's experience when using VR equipment more realistic, and avoiding the conflict between the user's physical sensation and the scene seen by the eyes, thereby avoiding dizziness.

[0040] Step 203, determining the movement amount of particles in the vehicle-mounted VR scene after a preset time according to the driving speed and the heading angle.

[0041] Specifically, the movement amount of the particles can be decomposed according to the three-dimensional coordinate system, and the driving speed can be decomposed according to the heading angle, so that the relationship between the driving speed and the movement amount of the particles in the vehicle-mounted VR scene can be obtained.

[0042] By determining the amount of movement of particles in the vehicle-mounted VR scene after a preset period of time based on the driving speed and heading angle, the speed of particle movement in the vehicle-mounted VR scene is matched with the current vehicle speed, ensuring that the particle movement rate and vehicle speed change synchronously. At the same time, it further improves the experience when using VR equipment and makes the user's physical sensation more consistent with the actual state.

[0043] Step 204, according to the moving direction and moving amount of the particles, the particles in the vehicle-mounted VR scene are controlled to move in the moving direction and moving amount.

[0044] By controlling the movement of particles in the in-vehicle VR scene according to the direction and amount of movement of the particles, the movement of the particles is associated with the driving trajectory of the vehicle, so that the movement trajectory of the particles is synchronized with the user's physical sensation.

[0045] According to the technical solution provided in the embodiment of the present application, by acquiring the driving status data of the vehicle, the driving status data includes the driving speed and heading angle of the vehicle; determining the opposite direction of the driving speed, and determining any direction within the preset angle range centered on the opposite direction as the moving direction of the particles in the vehicle-mounted VR scene; determining the movement amount of the particles in the vehicle-mounted VR scene after each preset time according to the driving speed and the heading angle; and controlling the particles in the vehicle-mounted VR scene to move in the moving direction and the moving amount according to the moving direction and the moving amount of the particles; so that the particles in the vehicle-mounted VR scene no longer move randomly, but move accordingly according to the current driving status of the vehicle, but the moving direction tends to be consistent with the opposite direction of the driving speed, and the moving amount is also related to the driving speed, so that the movement of the particles can be determined according to the driving direction and speed of the vehicle, thereby realizing that the movement trajectory of the particles is related to the driving direction and the driving speed of the vehicle, and then the movement trajectory of the particles corresponds to the user's body sensation, thereby improving the user experience and avoiding the problem of dizziness that the user is prone to when using the vehicle-mounted VR device during vehicle driving.

[0046] In some embodiments, obtaining driving status data of a vehicle includes:

[0047] Determine the refresh frequency of the image displayed in the vehicle-mounted VR scene; determine the particle generation cycle according to the refresh frequency; obtain the driving status data at every integer multiple of the particle generation cycle.

[0048] Specifically, the refresh frequency of the image displayed in the in-vehicle VR scene can be determined by the display screen on the in-vehicle VR device, and its value can be 50Hz, 60Hz, 70Hz, etc.

[0049] The system can be refreshed by the frequency and according to the formula Determine the period of the image frame, where f represents the refresh rate, T represents the period of the image frame, and the generation period of the particle can be the period length of at least one frame. For example, as an example, if the refresh rate of the image displayed by the current vehicle-mounted VR device is 50Hz, then the period of the current frame can be calculated to be 20ms, and the generation period of the particle is selected to be the period length of one frame, that is, the generation period of the particle is 20ms.

[0050] The integer multiple time of the generation cycle can be set according to demand, for example, the integer multiple time can be 1 time or 2 time, that is, the acquisition cycle for acquiring the driving status data can be 20ms, 40ms, etc.

[0051] By utilizing the refresh frequency of the current displayed image to determine the generation cycle of particles, and then to determine the acquisition cycle of the vehicle driving status data, it is ensured that the current data acquisition cycle is associated with the generation cycle of particles, so that the movement of particles can be changed according to the change of the vehicle driving status in the first time, making the movement of particles more consistent with the vehicle driving status, and improving the accuracy of particle movement.

[0052] In some embodiments, determining the movement amount of particles in the vehicle-mounted VR scene after a preset time according to the driving speed and the heading angle includes:

[0053] According to the driving speed, preset time and heading angle, the velocity components and movement correction amounts of the particles in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene are determined; wherein the X-axis, Y-axis and Z-axis are three-dimensional coordinate systems pre-established in the VR space; according to the velocity components and movement correction amounts of the particles in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene, the movement amount of the particles is determined.

[0054] Specifically, the three-dimensional coordinate system can be established according to the right-hand rule, and the Z-axis direction can be determined as the positive direction of the vehicle's current travel, or the Z-axis direction can be determined to be consistent with the user's initial visual direction. At this time, the X-axis direction is the horizontal direction and the Y-axis direction is the vertical direction.

[0055] For example, as an example, when the Z-axis direction is the positive direction of the vehicle's current travel, the velocity component in the Z-axis direction is the vehicle's travel speed. At this time, the velocity component in the X-axis direction can be calculated using the tangent value of the heading angle in the Z-axis-OX-axis plane. Similarly, the velocity component in the Y-axis direction can be calculated using the tangent value of the heading angle in the Z-axis-OY-axis plane.

[0056] In addition, specifically, when determining the movement amount of a particle according to the velocity components and movement amount correction amounts of the particle in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene, the movement component in each axis direction can be calculated according to the velocity components and movement amount correction amounts in each axis direction, and then the movement component in each axis direction is geometrically calculated to obtain the overall movement amount of the particle. The calculation formula for the movement component in each axis direction is qt+c, where q represents the velocity component in each axis direction, c represents the movement amount correction amount in the corresponding axis direction, and t represents the preset time.

[0057] By decomposing the driving speed into three pairwise perpendicular speed components in the three-dimensional coordinate system according to the heading angle, and corresponding them to the in-vehicle VR scene, the movement speed of the particles is positively correlated with the driving speed of the vehicle, and the movement of the particles is determined by the rate component and the movement correction amount, making the calculation process of the particle movement more accurate and simple, and improving the calculation speed of the particle trajectory.

[0058] In some embodiments, according to the driving speed, the preset time and the heading angle, the velocity components and the movement correction amounts of the particles in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene are determined, including:

[0059] The velocity components and movement corrections of the particles in the X-axis, Y-axis, and Z-axis directions in the vehicle-mounted VR scene are calculated using the following formula:

[0060]

[0061] Among them, a represents the velocity component of the particle in the X-axis direction in the vehicle-mounted VR scene, b represents the movement correction of the particle in the X-axis direction in the vehicle-mounted VR scene, c represents the velocity component of the particle in the Y-axis direction in the vehicle-mounted VR scene, d represents the movement correction of the particle in the Y-axis direction in the vehicle-mounted VR scene, e represents the velocity component of the particle in the Z-axis direction in the vehicle-mounted VR scene, and f represents the movement correction of the particle in the Z-axis direction in the vehicle-mounted VR scene; t represents the preset time; is the speed change; Indicates the proportional coefficient between the driving speed and the viewing speed in the X-axis direction in the vehicle-mounted VR scene. Indicates the proportionality coefficient between the driving speed and the sight rate in the Y-axis direction. Indicates the proportionality coefficient between the driving speed and the sight rate in the Z-axis direction; represents the component of the horizontal angle after vector decomposition of the heading angle, It represents the component of the vertical angle after vector decomposition of the heading angle.

[0062] Specifically, , , It can be expressed as the offset rate in the X, Y, and Z axis directions in the VR view distance. The specific principle is that, taking the X axis as an example, according to the velocity component in the X axis direction and the movement correction amount, the movement distance of the particle in the X axis direction after the preset time has passed can be obtained. , because there will be a certain error in the conversion between the real scene and the VR viewing distance, it is necessary to make some corrections, that is, the movement correction amount, and finally get the current X-axis movement amount as Therefore, the displacement rate in the X-axis direction within the preset time is , in getting After the value of a and b is obtained, the values ​​of a and b can be divided according to a preset ratio. For example, assuming that the preset ratio can be 9:1, The value of is 10, then the value of a is 9, and the value of b is 1; similarly, the offset rate in the Y-axis and Z-axis directions can be obtained as , .

[0063] also, , , It can be expressed as the speed components on the X-axis, Y-axis, and Z-axis obtained by decomposing the vehicle's speed in reality through the heading angle, where the heading angle can be vector-decomposed into horizontal angle and vertical angle to obtain and .

[0064] It is the proportional coefficient between the vehicle's speed and the particle rate in the VR viewing distance, which associates the rates in reality with those in VR. Its calculation method can be derived for the design application scenario, based on the user's viewing position and direction, and certain algorithm rules are added. In general, the proportional coefficient can be a preset value, and of course it can also be dynamically valued, but numerical calibration is required.

[0065] In addition, it should be noted that when the vehicle driving state is corresponded to the particle motion state through this formula, individual differences can also be added to each particle, that is, a small amount of randomness is added after the correspondence to ensure that the motion trajectories of the particles are not exactly the same.

[0066] In this way, this embodiment calculates the velocity components and movement correction amounts of the particles in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene, respectively, and can link the actual vehicle driving state with the movement rate of the particles, so that the two can correspond to each other in terms of numerical values, thereby ensuring the synchronization of the vehicle speed and the particle movement rate and avoiding the user's visual stiffness and mechanical feeling.

[0067] In some embodiments, after determining the movement amount of the particle according to the velocity components and movement amount correction amounts of the particle in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene, the method further includes:

[0068] Determine the gravity acceleration and air resistance values ​​in the vehicle-mounted VR scene; update the movement of particles in the Y-axis direction according to the gravity acceleration; and update the movement of particles in the Z-axis direction according to the air resistance value.

[0069] Specifically, the gravity acceleration component can be added during the particle motion process, wherein the calculation formula of the gravity acceleration in the vehicle-mounted VR scene can be , where g is the acceleration of gravity in the area where the vehicle is located, and the value can be 9.8, 9.9, 10.0, etc., h is the gravity parameter proportionally converted from the real scene to the VR scene, which can be the weight of the car or the average weight of the human body, and Gy represents the acceleration of gravity in the vehicle-mounted VR scene.

[0070] When the particle's movement in the Y-axis direction is updated according to the gravitational acceleration, the updated movement in the Y-axis direction can be +Gy.

[0071] In addition, air resistance can be added to the particle motion process. The air resistance can be calculated as Gz Calculated, where p is a preset value related to air resistance, which can be measured by the pre-installed sensor on the vehicle and then converted to VR viewing distance, and Gz represents the air resistance value in the vehicle-mounted VR scene. When the movement of the particle in the Z-axis direction is updated according to the air resistance value, the updated movement in the Z-axis direction is +Gz.

[0072] In addition, it should be noted that during the movement of particles, the particles can be detected to determine whether the particles will collide. When it is detected that there is a collision between particles during the movement of particles, the trajectory of the particles after the collision can be corrected by the law of conservation of momentum, and the collision can be set as an elastic collision or an inelastic collision; when it is detected that there is a tendency for particles to collide during the movement of particles, the movement amount of the particles with a collision tendency can be increased or decreased by a preset value, which can be 0.5 unit value or 1 unit value.

[0073] By adding gravity and air resistance components to the calculation results, the factors that affect the vehicle's driving state in the real environment are added to the particle motion state, making the particle movement more realistic and more in line with the actual vehicle's driving process, improving the consistency between the particle motion state and the vehicle's driving state, and allowing users to use particle motion as a reflection of the vehicle's own motion state, providing a reference for user perception and reducing the occurrence of dizziness when users use in-vehicle VR devices.

[0074] In some embodiments, before determining the movement amount of particles in the vehicle-mounted VR scene according to the driving speed and the heading angle, the method further includes:

[0075] Controls the generation of an initial particle at the default position in the pre-established three-dimensional coordinate system in the VR space; with the position of the initial particle as the center, N particles are generated at a preset interval, where the positions of the N particles are , i, j, k are the VR viewing distance space unit values ​​of the normal distribution corresponding to the random values, and N is greater than or equal to 1.

[0076] Specifically, Figure 3 As shown, the default position can be on the coordinate axis, at the origin, or at any position, and this embodiment does not make any specific limitation.

[0077] In addition, the present embodiment can use the initial particle as the center of the circle, and continuously generate N new particles around the center of the circle. The preset time can be 20ms, 40ms, 60ms, etc. The number of particles generated each time N is a fixed value, which can be 10, 20, 30, etc. It can be the system default number or it can be defined by the user. In addition, the present embodiment can plan a preset area in the coordinate system. When the particle movement slides out of the preset area, it will gradually disappear, or disappear immediately. It can also continuously collide in the preset area, and when the number of collisions reaches a certain value, it will gradually disappear. i, j, k are the VR visual distance space unit values ​​of the normal distribution corresponding to the random values. In order to meet the normal user experience, they can be limited to between 10-100, and can also be changed according to the application scenario.

[0078] By establishing a three-dimensional coordinate system and determining the particle movement area in the coordinate system, the movement trajectory of the particles in each period is made roughly the same as the movement trajectory of the particles in the previous period, which ensures the fluidity and consistency of the particles and prevents the movement area of ​​the particles from suddenly changing drastically, ensuring that the particle movement conforms to the user's basic cognition. At the same time, the movement trajectories of the particles are different, ensuring that each particle has a certain difference, avoiding visual stiffness and increasing the interest of particle movement.

[0079] In some embodiments, after determining the movement amount of particles in the vehicle-mounted VR scene according to the driving speed and the heading angle, the method further includes:

[0080] According to the current position, moving direction and moving amount of the particle, the target position of the particle after the preset time is determined by the following formula:

[0081]

[0082] in, Indicates the current position of the particle on the X-axis. Indicates the position of the particle on the X-axis after a preset time in the moving direction. Indicates the current position of the particle on the Y axis. Indicates the position of the particle on the Y axis after a preset time in the moving direction. Indicates the current position of the particle on the Z axis. Indicates the corresponding position of the particle on the Z axis after a preset time in the moving direction; represents the preset time; the X-axis, Y-axis and Z-axis are the three-dimensional coordinate systems pre-established in the VR space; a, c and e represent the velocity components of the particle in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene, respectively; b, d and f represent the movement correction amounts of the particle in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene, respectively.

[0083] Specifically, It can be expressed by the formula Calculated, It can be expressed by the formula Calculated, It can be expressed by the formula For example, assuming , ,but for , for , for , that is, the coordinates are ,So , , , that is, the coordinates of the current particle are .

[0084] The current position of the particle is calculated through the above formula, so that the position of each particle is accurately located, ensuring that the particle can move normally. At the same time, each particle is determined based on the previous position, so that when the vehicle's motion state changes, the particle's motion trajectory can also change quickly, ensuring the consistency of the particle and vehicle's motion state.

[0085] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0086] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0087] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0088] Figure 4 Schematic diagram of a particle motion control device in a vehicle-mounted VR scene provided by an embodiment of the present application. Figure 4 As shown, the device comprises:

[0089] The data collection module 401 is used to obtain the driving state data of the vehicle, and the driving state data includes the driving speed and heading angle of the vehicle;

[0090] The direction determination module 402 is used to determine the opposite direction of the driving speed, and determine any direction within a preset angle range centered on the opposite direction as the moving direction of the particles in the in-vehicle virtual reality VR scene;

[0091] The rate calculation module 403 is used to determine the movement amount of particles in the vehicle-mounted VR scene after a preset time according to the driving speed and the heading angle;

[0092] The motion control module 404 is used to control the particles in the vehicle-mounted VR scene to move in the direction and amount of movement according to the moving direction and amount of movement of the particles.

[0093] In some embodiments, the data collection module 401 is further configured to:

[0094] Determine the refresh frequency of the image displayed in the vehicle-mounted VR scene; determine the particle generation cycle according to the refresh frequency; obtain the driving status data at every integer multiple of the particle generation cycle.

[0095] In some embodiments, the rate calculation module 403 is further configured to:

[0096] According to the driving speed, preset time and heading angle, the velocity components and movement correction amounts of the particles in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene are determined; wherein the X-axis, Y-axis and Z-axis are three-dimensional coordinate systems pre-established in the VR space; according to the velocity components and movement correction amounts of the particles in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene, the movement amount of the particles is determined.

[0097] In some embodiments, the rate calculation module 403 is further configured to:

[0098] The velocity components and movement corrections of the particles in the X-axis, Y-axis, and Z-axis directions in the vehicle-mounted VR scene are calculated using the following formula:

[0099]

[0100] Among them, a represents the velocity component of the particle in the X-axis direction in the vehicle-mounted VR scene, b represents the movement correction of the particle in the X-axis direction in the vehicle-mounted VR scene, c represents the velocity component of the particle in the Y-axis direction in the vehicle-mounted VR scene, d represents the movement correction of the particle in the Y-axis direction in the vehicle-mounted VR scene, e represents the velocity component of the particle in the Z-axis direction in the vehicle-mounted VR scene, and f represents the movement correction of the particle in the Z-axis direction in the vehicle-mounted VR scene; Indicates the preset time; is the speed change; Indicates the proportional coefficient between the driving speed and the viewing speed in the X-axis direction in the vehicle-mounted VR scene. Indicates the proportionality coefficient between the driving speed and the sight rate in the Y-axis direction. Indicates the proportionality factor between the driving speed and the sight rate in the Z-axis direction.

[0101] In some embodiments, the motion control module 404 is further configured to:

[0102] Determine the gravity acceleration and air resistance values ​​in the vehicle-mounted VR scene; update the movement of particles in the Y-axis direction according to the gravity acceleration; and update the movement of particles in the Z-axis direction according to the air resistance value.

[0103] In some embodiments, the rate calculation module 403 is further configured to:

[0104] Controls the generation of an initial particle at the default position in the pre-established three-dimensional coordinate system in the VR space; with the position of the initial particle as the center, N particles are generated at a preset interval, where the positions of the N particles are , i, j, k are the VR viewing distance space unit values ​​of the normal distribution corresponding to the random values, and N is greater than or equal to 1.

[0105] In some embodiments, the rate calculation module 403 is further configured to:

[0106] According to the current position, moving direction and moving amount of the particle, the target position of the particle after the preset time is determined by the following formula:

[0107]

[0108] in, Indicates the current position of the particle on the X-axis. Indicates the position of the particle on the X-axis after a preset time in the moving direction. Indicates the current position of the particle on the Y axis. Indicates the position of the particle on the Y axis after a preset time in the moving direction. Indicates the current position of the particle on the Z axis. It represents the position of the particle on the Z axis after the preset time in the moving direction; t represents the preset time; the X-axis, Y-axis and Z-axis are the three-dimensional coordinate systems pre-established in the VR space; a, c and e represent the velocity components of the particle in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene, respectively; b, d and f represent the movement correction of the particle in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene, respectively.

[0109] It should be noted that the device provided in this embodiment can implement all the method steps executed by the above method and can achieve the same technical effect, which will not be repeated here.

[0110] Figure 5 Schematic diagram of an electronic device 5 provided in an embodiment of the present application. Figure 5 As shown, the electronic device 5 of this embodiment includes: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501. When the processor 501 executes the computer program 503, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 501 executes the computer program 503, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0111] The electronic device 5 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 The electronic device 5 is merely an example and does not limit the electronic device 5 , and may include more or less components than those shown in the figure, or different components.

[0112] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0113] The memory 502 may be an internal storage unit of the electronic device 5, for example, a hard disk or memory of the electronic device 5. The memory 502 may also be an external storage device of the electronic device 5, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. The memory 502 may also include both an internal storage unit of the electronic device 5 and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the electronic device.

[0114] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0115] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. The readable storage medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0116] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for controlling the motion of particles in a vehicle-mounted VR scene, characterized in that: include: Acquiring driving state data of the vehicle, wherein the driving state data includes a driving speed and a heading angle of the vehicle; Determine the opposite direction of the driving speed, and determine any direction within a preset angle range centered on the opposite direction as the moving direction of particles in the in-vehicle virtual reality VR scene; Determine, according to the driving speed and the heading angle, the movement amount of particles in the vehicle-mounted VR scene after a preset time; According to the moving direction and the moving amount of the particles, the particles in the vehicle-mounted VR scene are controlled to move in the moving direction and with the moving amount.

2. The method for controlling the motion of particles in a vehicle-mounted VR scene according to claim 1, characterized in that: The obtaining of the driving status data of the vehicle includes: Determining a refresh frequency of an image displayed in the vehicle-mounted VR scene; Determining a generation period of the particles according to the refresh frequency; The driving state data is obtained at intervals of an integral multiple of the generation period of the particles.

3. The method for controlling the motion of particles in a vehicle-mounted VR scene according to claim 1, characterized in that: The step of determining the movement amount of particles in the vehicle-mounted VR scene after a preset time according to the driving speed and the heading angle includes: According to the driving speed, the preset time and the heading angle, the velocity components and movement correction amounts of the particles in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene are determined; wherein the X-axis, Y-axis and Z-axis are three-dimensional coordinate systems pre-established in the VR space, the Z-axis direction is the positive direction of the vehicle's current driving or the user's initial visual direction, the X-axis direction is the horizontal direction, and the Y-axis direction is the vertical direction; The movement amount of the particle is determined according to the velocity components and movement amount correction amounts of the particle in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene respectively.

4. The method for controlling the motion of particles in a vehicle-mounted VR scene according to claim 3, characterized in that: The determining, according to the driving speed, the preset time and the heading angle, the velocity components and movement correction amounts of the particles in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene respectively, comprises: The velocity components and movement corrections of the particles in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene are calculated by the following formula: Wherein, a represents the velocity component of the particle in the X-axis direction in the vehicle-mounted VR scene, b represents the movement amount correction of the particle in the X-axis direction in the vehicle-mounted VR scene, c represents the velocity component of the particle in the Y-axis direction in the vehicle-mounted VR scene, d represents the movement amount correction of the particle in the Y-axis direction in the vehicle-mounted VR scene, e represents the velocity component of the particle in the Z-axis direction in the vehicle-mounted VR scene, and f represents the movement amount correction of the particle in the Z-axis direction in the vehicle-mounted VR scene; t represents the preset time; is the speed change; represents the proportionality coefficient between the driving speed and the viewing speed in the X-axis direction in the vehicle-mounted VR scene, represents the proportionality coefficient between the driving speed and the sight rate in the Y-axis direction, A proportionality coefficient representing the driving speed and the sight rate in the Z-axis direction; represents the component of the horizontal angle after vector decomposition of the heading angle in the three-dimensional coordinate system, It represents the component of the vertical angle after vector decomposition of the heading angle in the three-dimensional coordinate system.

5. The method for controlling the motion of particles in a vehicle-mounted VR scene according to claim 3, characterized in that: After determining the movement amount of the particle according to the velocity components and movement amount correction amounts of the particle in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene, the method further includes: Determine gravity acceleration and air resistance values ​​in the vehicle-mounted VR scene; According to the gravitational acceleration, the movement amount of the particle in the Y-axis direction is updated; The movement amount of the particle in the Z-axis direction is updated according to the air resistance value.

6. The method for controlling the motion of particles in a vehicle-mounted VR scene according to claim 1, characterized in that: Before determining the movement amount of particles in the vehicle-mounted VR scene according to the driving speed and the heading angle, the method further includes: Control the generation of an initial particle at the default position in the pre-established three-dimensional coordinate system in the VR space; Taking the position of the initial particle as the center, N particles are generated at preset time intervals, where N is greater than or equal to 1.

7. The method for controlling the motion of particles in a vehicle-mounted VR scene according to claim 1, characterized in that: After determining the movement amount of particles in the vehicle-mounted VR scene according to the driving speed and the heading angle, the method further includes: According to the current position of the particle, the moving direction and the moving amount, the target position of the particle after a preset time is determined by the following formula: in, Indicates the current position of the particle on the X-axis. represents the position of the particle on the X-axis after the preset time has passed in the moving direction, Indicates the current position of the particle on the Y axis. represents the corresponding position of the particle on the Y axis after the preset time has passed in the moving direction, Indicates the current position of the particle on the Z axis. Indicates the corresponding position of the particle on the Z axis after the preset time has passed in the moving direction; represents the preset time; the X-axis, Y-axis and Z-axis are three-dimensional coordinate systems pre-established in the VR space, the Z-axis direction is the positive direction of the vehicle's current travel or the user's initial visual direction, the X-axis direction is the horizontal direction, and the Y-axis direction is the vertical direction; a, c and e respectively represent the velocity components of the particle in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene, and b, d and f respectively represent the movement correction amounts of the particle in the X-axis, Y-axis and Z-axis directions in the vehicle-mounted VR scene.

8. A particle motion control device in a vehicle-mounted VR scene, characterized in that: include: A data collection module, used to obtain driving state data of the vehicle, wherein the driving state data includes the driving speed and heading angle of the vehicle; A direction determination module, used to determine the opposite direction of the driving speed, and determine any direction within a preset angle range centered on the opposite direction as the moving direction of particles in the vehicle-mounted VR scene; A rate calculation module, used to determine the movement amount of particles in the vehicle-mounted VR scene after a preset time according to the driving speed and the heading angle; The motion control module is used to control the particles in the vehicle-mounted VR scene to move in the moving direction and the moving amount according to the moving direction and the moving amount of the particles.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.