Display method, electronic equipment and storage medium
By displaying a target animation that maps the motion of a vehicle in real time on an electronic device, the problem of motion sickness caused by the inconsistency between visual and vestibular system perception is solved, and the motion sickness is effectively alleviated.
Patent Information
- Application Number
- CN202410875328.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-29
- Publication Date
- 2024-10-29
AI Technical Summary
Motion sickness occurs when a user experiences dizziness due to a visual conflict caused by a discrepancy between the visual perception and the vestibular system's perception of motion while traveling. Existing technologies are unable to effectively alleviate this condition.
By displaying a target animation that maps the motion state of a vehicle in real time on an electronic device, and adjusting the animation parameters using sensor data, the motion information perceived by the user's eyes is made consistent with the motion information perceived by the vestibular system, thus reducing visual conflict.
It effectively alleviates motion sickness symptoms by providing visual feedback that is consistent with the vestibular system through targeted animation, thereby reducing the conflict between the visual and vestibular systems' perception of motion states.
Smart Images

Figure CN118860244A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a display method, an electronic device and a storage medium. Background Art
[0002] Motion sickness is a common physiological phenomenon in daily life. Due to different means of transportation, motion sickness can be divided into car sickness, seasickness, airsickness (aviation sickness) and space sickness, etc. Motion sickness is a disease caused by any form of acceleration and deceleration (such as bumps, swaying and rotation) produced by vehicles such as cars, trains, ships and airplanes during driving, which stimulates the vestibular system of the human body.
[0003] For example, when a user browses the screen of an electronic device in a vehicle, motion sickness is very likely to occur. Therefore, how to alleviate the user's motion sickness has become an urgent problem to be solved. Summary of the invention
[0004] The present application provides a display method, an electronic device and a storage medium, through which the user's motion sickness can be alleviated to varying degrees.
[0005] In a first aspect, the present application provides a display method applied to an electronic device, the method comprising: acquiring sensor data of the electronic device; determining a motion state of the electronic device based on the sensor data; adjusting animation parameters of preset animation elements based on the motion state to generate a target animation; displaying the target animation on a display interface of the electronic device, the target animation being used to map the motion state of the electronic device in real time.
[0006] Optionally, when the electronic device is located in a vehicle, the motion state of the electronic device is consistent with the motion state of the vehicle, so the target animation can also be used to map the motion state of the vehicle in real time.
[0007] In this implementation, different motion states of electronic devices can be mapped in real time through different target animations, so that the motion state of the target animation in the display interface seen by the user's eyes is consistent with the motion state actually felt by his vestibular system, that is, the motion information felt by the user's eyes is consistent with the motion information felt by the vestibular system, thereby reducing the conflict between the user's vision and the vestibular system's perception, thereby alleviating the user's motion sickness.
[0008] In combination with the first aspect, in certain implementations of the first aspect, the electronic device includes a hardware sensor, the sensor data includes acceleration data and angular velocity data collected based on the hardware sensor, and determining the motion state of the electronic device based on the sensor data includes: determining angle information of the electronic device based on the acceleration data and the angular velocity data; and determining the motion state of the electronic device based on the angle information.
[0009] In this implementation, the acceleration data and angular velocity data collected by the hardware sensor can accurately determine the motion state of the electronic device, making it easy to adjust the animation parameters of the preset animation elements in real time according to the motion state, thereby generating a target animation that can accurately map the motion state.
[0010] In combination with the first aspect, in certain implementations of the first aspect, the electronic device also includes a virtual sensor, the angle information includes the angular velocity of three axes, the Euler angle and the three-axis linear acceleration, and the angle information of the electronic device is determined according to the acceleration data and the angular velocity data, including: determining the angular velocity of the three axes corresponding to the electronic device according to the angular velocity data; processing the acceleration data and the angular velocity data through the virtual sensor to obtain the Euler angle and the three-axis linear acceleration corresponding to the electronic device.
[0011] In this implementation, the use of virtual sensors to process sensor data can improve the accuracy of angle information, thereby improving the accuracy of the motion state of the electronic device.
[0012] In combination with the first aspect, in certain implementations of the first aspect, the virtual sensor includes a rotation vector sensor and a linear acceleration sensor, and the acceleration data and the angular velocity data are processed by the virtual sensor to obtain the Euler angles and three-axis linear accelerations corresponding to the electronic device, including: processing the angular velocity data by the rotation vector sensor to obtain the Euler angles; processing the acceleration data and the Euler angles by the linear acceleration sensor to obtain the three-axis linear acceleration.
[0013] In this implementation, the sensor data is processed using a rotation vector sensor and a linear acceleration sensor, which can improve the accuracy of the angle information and further improve the accuracy of the motion state of the electronic device.
[0014] In combination with the first aspect, in certain implementations of the first aspect, the angular velocity data is processed by a rotation vector sensor to obtain the Euler angle, including: determining a first rotation matrix by the rotation vector sensor and the angular velocity data; and determining the Euler angle according to the first rotation matrix.
[0015] In combination with the first aspect, in certain implementations of the first aspect, acceleration data and Euler angles are processed by a linear acceleration sensor to obtain three-axis linear acceleration, including: constructing a second rotation matrix based on the Euler angles; and converting the acceleration data by the second rotation matrix to obtain three-axis linear acceleration.
[0016] In combination with the first aspect, in certain implementations of the first aspect, the Euler angle includes a pitch angle, the three-axis linear acceleration includes an X-axis linear acceleration, and the animation parameters of a preset animation element are adjusted according to the motion state to generate a target animation, including: detecting that the pitch angle is less than an initial pitch angle, and / or the X-axis linear acceleration is greater than a first acceleration threshold; controlling the preset animation element to move along a first preset direction to generate a first animation.
[0017] In combination with the first aspect, in certain implementations of the first aspect, the animation parameters of the preset animation element are adjusted according to the motion state to generate a target animation, including: detecting that the pitch angle is not less than the initial pitch angle, and / or the X-axis linear acceleration is less than a first acceleration threshold; controlling the preset animation element to move along a second preset direction to generate a second animation, and the second preset direction is opposite to the first preset direction.
[0018] In conjunction with the first aspect, in certain implementations of the first aspect, the preset animation element includes a first animation element, the first animation element includes a first track and a second track, the preset area includes a left preset area and a right preset area, the first track is displayed in the left preset area, and the second track is displayed in the right preset area. The left preset area and the right preset area are symmetrical in the display interface.
[0019] In combination with the first aspect, in certain implementations of the first aspect, the Euler angle includes a roll angle, and the animation parameters of the preset animation element are adjusted according to the motion state to generate a target animation, including: detecting that the roll angle is greater than the initial roll angle, and / or the X-axis linear acceleration is greater than a first acceleration threshold; controlling the first track to move along a first preset direction and the second track to move along a second preset direction, and at the same time controlling the first track and the second track to rotate counterclockwise around the Z axis by an angle corresponding to the roll angle, to generate a third animation.
[0020] In combination with the first aspect, in certain implementations of the first aspect, the animation parameters of the preset animation elements are adjusted according to the motion state to generate a target animation, including: detecting that the roll angle is not greater than the initial roll angle, and / or the X-axis linear acceleration is less than a first acceleration threshold; controlling the first track to move along the second preset direction and the second track to move along the first preset direction, and at the same time controlling the first track and the second track to rotate clockwise around the Z axis by an angle corresponding to the roll angle, to generate a fourth animation.
[0021] In combination with the first aspect, in certain implementations of the first aspect, the three-axis linear acceleration includes the Y-axis linear acceleration, and the animation parameters of the preset animation element are adjusted according to the motion state to generate the target animation, including: detecting that the Y-axis linear acceleration is greater than the second acceleration threshold; adjusting the display size of the preset animation element from the first display size to the second display size, the first display size being smaller than the second display size, and generating a fifth animation.
[0022] In combination with the first aspect, in certain implementations of the first aspect, the animation parameters of the preset animation element are adjusted according to the motion state to generate a target animation, including: detecting that the Y-axis linear acceleration is less than a second acceleration threshold; adjusting the display size of the preset animation element from a third display size to a fourth display size, the third display size being larger than the fourth display size, to generate a sixth animation.
[0023] In combination with the first aspect, in certain implementations of the first aspect, the Euler angle includes a yaw angle, and the animation parameters of a preset animation element are adjusted according to the motion state to generate a target animation, including: detecting that the yaw angle is reduced compared to the initial yaw angle; adjusting the display size of the first track from the fifth display size to the sixth display size, and adjusting the display size of the second track from the fifth display size to the seventh display size, to generate a seventh animation; the fifth display size is smaller than the sixth display size, and the fifth display size is larger than the seventh display size.
[0024] In combination with the first aspect, in certain implementations of the first aspect, the animation parameters of the preset animation elements are adjusted according to the motion state to generate a target animation, including: detecting that the yaw angle increases compared to the initial yaw angle; adjusting the display size of the first track from the fifth display size to the seventh display size, and adjusting the display size of the second track from the fifth display size to the sixth display size, to generate an eighth animation.
[0025] In combination with the first aspect, in some implementations of the first aspect, the preset animation element further includes a second animation element, and the second animation element moves or remains stationary in the first animation element.
[0026] In combination with the first aspect, in certain implementations of the first aspect, the animation parameters of the preset animation elements are adjusted according to the motion state to generate a target animation, including: detecting that the yaw angle is reduced compared to the initial yaw angle; controlling the second animation element to move along a third preset direction in the first track, passing the right end of the first track, and moving to the left starting end of the second track to generate a ninth animation.
[0027] In combination with the first aspect, in certain implementations of the first aspect, after generating the ninth animation, the display method also includes: detecting that the yaw angle continues to decrease; continuing to control the second animation element to move from the left starting end of the second track along a third preset direction, passing the right end of the second track, and moving to the left starting end of the first track to generate the tenth animation.
[0028] In combination with the first aspect, in certain implementations of the first aspect, the animation parameters of the preset animation elements are adjusted according to the motion state to generate a target animation, including: detecting that the yaw angle increases compared to the initial yaw angle; controlling the second animation element to move along a fourth preset direction in the second track, passing the left end of the second track, and moving to the right starting end of the first track to generate an eleventh animation.
[0029] In combination with the first aspect, in certain implementations of the first aspect, after generating the eleventh animation, the display method also includes: detecting that the yaw angle continues to increase; continuing to control the second animation element to move from the right starting end of the first track along a fourth preset direction, passing the left end of the first track, and moving to the right starting end of the second track to generate the twelfth animation.
[0030] In combination with the first aspect, in certain implementations of the first aspect, the animation parameters of the preset animation element are adjusted according to the motion state to generate the target animation, including: detecting that the linear acceleration of the X-axis is equal to the first acceleration threshold, and / or the linear acceleration of the Y-axis is equal to the second acceleration threshold; controlling the preset animation element to be stationary to generate a thirteenth animation.
[0031] In combination with the first aspect, in some implementations of the first aspect, the display method further includes: adjusting the transparency of the preset animation element according to the sensor data.
[0032] In a second aspect, the present application provides an electronic device, comprising: one or more processors; one or more memories; a module with multiple applications installed; the memory stores one or more programs, and when one or more programs are executed by the processor, the electronic device executes the method in the above-mentioned first aspect and any possible implementation thereof.
[0033] In a third aspect, the present application provides a chip, including a processor. The processor is used to read and execute a computer program stored in a memory to perform the method in the first aspect and any possible implementation thereof.
[0034] Optionally, the chip also includes a memory, and the memory is connected to the processor via a circuit or wire.
[0035] Optionally, the chip also includes a communication interface.
[0036] In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the processor executes the method in the first aspect and any possible implementation thereof.
[0037] In a fifth aspect, the present application provides a computer program product, which includes: a computer program code, which, when executed on an electronic device, enables the electronic device to execute the method in the first aspect and any possible implementation thereof.
[0038] The technical effects obtained by the above-mentioned second, third, fourth and fifth aspects are similar to the technical effects obtained by the corresponding technical means in the above-mentioned first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1A and Figure 1B A schematic diagram of a vestibular system shown in an embodiment of the present application.
[0040] Figure 1C A schematic diagram of an application scenario of the display method shown in an embodiment of the present application;
[0041] Figure 2A and Figure 2B A schematic diagram of a display interface of an electronic device shown in an embodiment of the present application;
[0042] Figure 2C A schematic diagram of a smart recommendation card provided in an embodiment of the present application;
[0043] Figure 2D and Figure 2E A schematic diagram of quickly opening the slow blur mode provided in an embodiment of the present application;
[0044] Figures 2F to 2H A schematic diagram of another method of quickly starting the slow blur mode provided in an embodiment of the present application;
[0045] Figure 3A A target animation design diagram shown in an embodiment of the present application;
[0046] FIG. 3B to FIG. 3L A schematic diagram of various target animations shown in an embodiment of the present application;
[0047] Figure 4A A schematic diagram of a preset area shown in an embodiment of the present application;
[0048] Figure 4B A schematic diagram of a target animation display method shown in an embodiment of the present application;
[0049] Figure 4C This is another schematic diagram of a preset area shown in an embodiment of the present application;
[0050] Figure 4D A schematic diagram of another target animation display method shown in an embodiment of the present application;
[0051] Figure 4E and Figure 4F A schematic diagram of another target animation display method shown in an embodiment of the present application;
[0052] Figure 4G A schematic diagram of another target animation display method shown in an embodiment of the present application;
[0053] Figure 4HA schematic diagram of another target animation display method shown in an embodiment of the present application;
[0054] Figure 5A A schematic diagram of an animation effect shown in an embodiment of the present application;
[0055] Figure 5B This is another schematic diagram of animation effects shown in an embodiment of the present application;
[0056] FIG. 5C to FIG. 5E A schematic diagram of an uphill animation effect shown in an embodiment of the present application;
[0057] FIG. 5F to FIG. 5H A schematic diagram of a downhill animation effect shown in an embodiment of the present application;
[0058] FIG. 5I to FIG. 5K This is another schematic diagram of an uphill animation effect shown in an embodiment of the present application;
[0059] Figure 5L to Figure 5N This is another schematic diagram of downhill animation effect shown in an embodiment of the present application;
[0060] Fig. 6A and Figure 6B A schematic diagram of an animation effect tilting to the left shown in an embodiment of the present application;
[0061] Figure 6C and Fig.6D A schematic diagram of an animation effect tilting to the right shown in an embodiment of the present application;
[0062] Fig. 6E This is another schematic diagram of animation effects shown in an embodiment of the present application;
[0063] Fig. 7A and Figure 7B A schematic diagram of an accelerated animation effect shown in an embodiment of the present application;
[0064] FIG. 7C to FIG. 7E This is another schematic diagram of an accelerated animation effect shown in an embodiment of the present application;
[0065] Figure 7F and Figure 7G A schematic diagram of a deceleration animation effect shown in an embodiment of the present application;
[0066] Figure 7H A schematic diagram of another accelerated animation effect shown in an embodiment of the present application;
[0067] Fig.7I A schematic diagram of another deceleration animation effect shown in an embodiment of the present application;
[0068] Figure 7JA schematic diagram of another visual style of a target animation shown in an embodiment of the present application;
[0069] Fig. 8A , Figure 8B , Figure 8C , Fig.8D , Fig. 8E A schematic diagram of a left turn and left tilt animation effect shown in an embodiment of the present application;
[0070] Figure 8F , Figure 8G , Figure 8H , Figure 8I , Figure 8J A schematic diagram of a right turn and right tilt animation effect shown in an embodiment of the present application;
[0071] Figure 8K , Figure 8L , Figure 8M , Figure 8N , Fig.8O This is another schematic diagram of a left turn animation effect shown in an embodiment of the present application;
[0072] Figure 8P , Figure 8Q , Figure 8R , Figure 8S , Figure 8T This is another schematic diagram of a right turn animation effect shown in an embodiment of the present application;
[0073] Figure 8U and Figure 8V A schematic diagram of a visual style shown in an embodiment of the present application;
[0074] Fig.9A and Fig. 9B A schematic diagram of an animation effect principle shown in an embodiment of the present application;
[0075] Fig. 9C and Fig.9D This is another schematic diagram of the principle of animation effects shown in an embodiment of the present application;
[0076] Fig.9E A schematic diagram of rotation around an axis shown in an embodiment of the present application;
[0077] Fig.9F A schematic diagram of another animation effect principle shown in an embodiment of the present application;
[0078] Figure 9G A schematic diagram of another animation effect principle shown in an embodiment of the present application;
[0079] Figure 9H and Fig.9I A schematic diagram of another animation effect principle shown in an embodiment of the present application;
[0080] Figure 9J A schematic diagram of a loop animation principle shown in an embodiment of the present application;
[0081] Figure 9K This is another schematic diagram of the principle of a cyclic animation shown in an embodiment of the present application;
[0082] Figure 9L A function schematic diagram shown in an embodiment of the present application;
[0083] Figure 9M A schematic diagram of a transparency change process provided in an embodiment of the present application;
[0084] Figure 9N An overall flow chart provided for the embodiments of the present application;
[0085] FIG. 10A to FIG. 10D Schematic diagrams of some application scenarios of target animation provided in embodiments of the present application;
[0086] Fig.11A and Fig. 11B A schematic diagram of a parameter adjustment interface provided in an embodiment of the present application;
[0087] FIG. 12A to FIG. 12E An exemplary flow chart of various display methods provided in embodiments of the present application;
[0088] Fig.13 A schematic diagram of the software structure of an electronic device shown in an embodiment of the present application;
[0089] Fig.14 This is a schematic diagram of the hardware structure of an electronic device shown as an exemplary embodiment of the present application;
[0090] Fig.15 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0091] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0092] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0093] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.
[0094] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0095] In order to better understand the embodiments of the present application, some terms involved in the embodiments of the present application are first explained below to facilitate understanding by those skilled in the art.
[0096] 1. Window
[0097] A window is an area of visual view displayed on the screen / display interface of an electronic device. In the Android system, a Window has a unique object (surface), and the Window draws its own content (content) on the surface. Each Window has a unique view hierarchy tree (Viewhierarchy) attached to it, and the views (View) in the View hierarchy share the surface of the Window. The special view (SurfaceView) has its own dedicated surface so that the application can draw content directly in it.
[0098] In an embodiment of the present application, the target animation is drawn on the SurfaceView, and then the service responsible for synthesizing the screen display content (Surface Flinger) renders them onto the screen of the electronic device according to the order (Z-order) of each surface on the Z axis.
[0099] 2. Preset Area
[0100] The preset area refers to an area predefined in the screen / display interface for displaying the target animation.
[0101] It should be understood that the preset area may be an edge of the screen or an area that is easily accessible to the user's line of sight, that is, the area is not the area where the content is mainly displayed, but the user can easily notice it when browsing the screen.
[0102] 3. Sprite
[0103] In computer graphics, "Sprite" is usually translated as "elf", which refers to a two-dimensional image or animation, which is usually used to construct characters, objects or interface elements in games. In the embodiment of the present application, Sprite is used to construct animations that simulate different driving / motion states of a vehicle.
[0104] 4. Inertial Measurement Unit (IMU)
[0105] An IMU is a device used to measure and report an object's specific force, angular velocity, and in some cases, the orientation of an object around a magnetic field. An IMU can typically include multiple sensors, such as accelerometers, gyroscopes, etc.
[0106] Among them, the accelerometer is used to measure linear acceleration, and the gyroscope sensor is used to measure angular velocity or rotation rate.
[0107] 5. Application Programming Interface (API)
[0108] An API is a set of predefined functions or protocols used to build software and applications.
[0109] 6. Accelerometer (ACC)
[0110] ACC is a sensor used to measure acceleration, also known as an accelerometer. It can detect and measure the acceleration changes of electronic devices along three axes (such as X-axis, Y-axis, and Z-axis) in space.
[0111] 7. Gyroscope (GYRO)
[0112] GYRO is a sensor used to measure angular velocity or rotation rate, also known as a gyroscope sensor. It can detect the rotation rate of an electronic device around three axes (such as X-axis, Y-axis, and Z-axis) in space, or detect the angular velocity of an electronic device.
[0113] 8. Quaternion
[0114] Quaternions are used to represent and calculate rotations in three-dimensional space.
[0115] 9. Attitude angle
[0116] The attitude angle is a set of angles used to describe the direction and position of the electronic device relative to a reference coordinate system. The attitude angles used in the embodiments of the present application may include the Yaw angle, the Pitch angle, and the Roll angle.
[0117] The Yaw angle is the rotation angle around the vertical axis (Z axis), which determines the forward direction of the object; the Pitch angle is the rotation angle around the horizontal axis (X axis), which describes the up and down tilt of the object; the Roll angle is the rotation angle around the longitudinal axis (Y axis), which describes the left and right tilt or roll state of the object. Fig.9E .
[0118] 10. Euler Angles
[0119] Euler angles are a specific representation of attitude angles, which use three angles to describe the rotation of an electronic device in three-dimensional space. A combination of Euler angles can be used to describe any direction of an electronic device relative to a fixed coordinate system. Euler angles consist of three angles, usually expressed as yaw (β or ψ), pitch (α), and roll (γ or φ). In the embodiments of the present application, attitude angles are represented by Euler angles.
[0120] The above is a brief introduction to the terms involved in the embodiments of the present application, which will not be repeated below.
[0121] When the movement perceived by the human eye does not match the movement perceived by the vestibular system in the human ear, it will cause confusion in the brain, which will cause a series of physiological reactions, including dizziness, nausea, vomiting, sweating, fainting, loss of appetite, increased salivation, and imbalance, which is medically known as motion sickness. Due to different means of transportation, motion sickness can be divided into car sickness, seasickness, airsickness (aviation sickness), and space sickness, etc.
[0122] For example, when a vehicle starts, accelerates, decelerates, or brakes, the vestibular organs in the inner ear sense the vehicle's motion relative to the ground, but the eyes see that objects inside the vehicle are not moving (for example, when a user browses an electronic screen in a vehicle, the eyes see that the images or text displayed on the electronic screen do not move). In other words, the user's vision is inconsistent with the motion perceived by the vestibular system, causing confusion in the brain and dizziness.
[0123] For ease of understanding, the principles of motion sickness are described in conjunction with the accompanying drawings in the embodiments of this application. Figure 1A and Figure 1B , Figure 1A and Figure 1B A schematic diagram of a vestibular system shown in an embodiment of the present application.
[0124] like Figure 1A As shown in the figure, our vestibular system mainly includes the saccule, utricle and semicircular canals (including the anterior semicircular canal, posterior semicircular canal and horizontal semicircular canal). Among them, the saccule and utricle are mainly responsible for detecting linear acceleration, for example, the saccule can detect vertical movement, the utricle can detect horizontal movement, and the semicircular canals are mainly responsible for detecting rotational acceleration.
[0125] like Figure 1B As shown in the figure, the semicircular canals are filled with endolymph. Endolymph flows in the semicircular canals and works with the otolith organs to help us sense the position and movement of the head, thereby maintaining the balance of the body. For example, when the user's head suddenly rotates, the endolymph will flow in the opposite direction due to inertia, and then squeeze the hair cells inside the vestibule. The hair cells are stimulated and transmit nerve signals to the brain, which judges the rotation speed and direction of the head and understands the body's balance state at the moment.
[0126] When a user is riding in a vehicle, the brain receives two different signals from the eyes and the vestibular system at the same time. The eyes feed back to the brain that the vehicle is stable, while the vestibular system feeds back to the brain that the body has lost balance. Since the brain receives two completely different pieces of information at the same time, it cannot judge whether the information is true or false, so the brain mistakenly thinks that this is an illusion caused by neurotoxins. For self-protection, the brain will induce nausea, vomiting and other reactions to clear the neurotoxins, which will cause motion sickness symptoms. Especially when the user is browsing the phone and the vehicle is accelerating or decelerating, going up and down hills, bumping left and right, turning left and right, etc., the user's motion sickness symptoms will be more severe.
[0127] In view of this, the present application provides a display method, which collects motion parameters (also called sensor data) through electronic devices, and generates target animations based on the motion parameters, and the target animations can map different driving / motion states of the vehicle in real time. It can be understood that the six motion directions (i.e., front and back, up and down, left and right, pitch, roll, deflection), high-frequency and low-frequency motion information, and horizontal motion information felt by the user in the vehicle are mapped to the target animation through the electronic device. Since the user's eyes are basically consistent with the electronic device, when the user watches the target animation, the motion information felt by his eyes is consistent with the motion information felt by the vestibular system, that is, the motion state of the target animation in the display interface seen by the user's eyes is consistent with the motion state of the vehicle relative to the ground felt by his vestibular system. It can thus reduce the conflict between the user's vision and the motion state perceived by the vestibular system, that is, the target animation can provide the user with visual feedback that is consistent with the vestibular system, thereby alleviating the user's motion sickness.
[0128] The display method provided by the present application can be applied to various scenes of transportation, and the transportation may include cars, trains, motor vehicles, trams, high-speed railways, subways, suspended trains, ships, airplanes, spacecraft, etc. It is worth noting that the driving mode of the transportation is not limited in the embodiments of the present application, for example, it can be an automatic driving mode or a manual driving mode.
[0129] For another example, the display method provided in the present application can also be applied to entertainment scenes, such as scenes based on amusement equipment, virtual reality (VR) equipment, and augmented reality (AR) equipment.
[0130] In the embodiment of the present application, a scenario in which a user browses the screen of an electronic device while a vehicle is driving is taken as an example for description.
[0131] The vehicle may be any type of vehicle that carries people and / or objects and is powered by internal combustion engines, electric motors, hybrid power, batteries, solar energy, etc., and includes but is not limited to automobiles, buses, cars, trucks, buses, tricycles, trams, RVs, golf carts, trains, EMU trains, high-speed EMU passenger trains, entertainment vehicles, playground equipment, construction equipment, etc. The specific type of the vehicle is not limited in the embodiments of the present application.
[0132] In the embodiments of the present application, the electronic device may be a mobile phone, a smart screen, a tablet computer, a wearable device (such as a smart watch, smart glasses, a smart bracelet, a smart ring, a headset, etc.), an augmented reality (AR) / virtual reality (VR) device, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a handheld or laptop device, a media player, a smart projector, a smart TV, a desktop computer, an in-vehicle infotainment system, etc. The embodiments of the present application do not limit the specific type of the electronic device. It is worth noting that the electronic device in the embodiments of the present application may be a combination of any one or more of the above devices.
[0133] It is understandable that for portable electronic devices, such as mobile phones, tablet computers, wearable devices (such as smart watches, smart glasses, smart bracelets, smart rings, headphones, etc.), augmented reality (AR) / virtual reality (VR) devices, laptops, handheld or laptop devices, etc., users can carry such devices with them so that when the user is riding in a vehicle, they can browse the content displayed on the screen through these portable electronic devices.
[0134] Optionally, for electronic devices that are not easy to carry, such as smart projectors, smart TVs, desktop computers, etc., such devices can be installed in vehicles in advance, such as in RVs and golf carts. When users are riding in the vehicle, they can browse the content displayed on the screen through these electronic devices installed in the vehicle.
[0135] Optionally, when the electronic device is an in-vehicle infotainment system, the in-vehicle infotainment system can be pre-installed in any type of vehicle. When a user is riding in a vehicle, the user can browse the content displayed on the display screen of the in-vehicle infotainment system. The display screen of the in-vehicle infotainment system may include but is not limited to a central control screen, a co-pilot screen, a rear seat screen, an instrument, and a head-up display.
[0136] See also Figure 1C , Figure 1C FIG. 1 is a schematic diagram of an application scenario of the display method shown in the embodiment of the present application. Figure 1C As shown, the user is riding in the vehicle 100, and while the vehicle 100 is traveling, the user browses the content displayed on the screen of the electronic device 200. Figure 1C In the illustrated scenario, the user browses the content displayed on the screen by holding the electronic device 200. In a possible implementation, the electronic device 200 may also be fixed on the vehicle 100, for example, a mobile phone may be fixed on a bracket in the vehicle for the user to use.
[0137] When the vehicle 100 accelerates and decelerates, goes up and down hills, bumps left and right, turns left and right, etc., the vestibular organ in the inner ear of the user's ear senses the movement of the vehicle 100 relative to the ground, while the eyes see that the image displayed by the electronic device 200 does not move, resulting in inconsistency between the user's vision and the movement perceived by the vestibular system, causing confusion in the brain and dizziness.
[0138] Based on this, the present application provides a display method to alleviate the user's motion sickness. Figure 2A and Figure 2B , Figure 2A and Figure 2BThis is a schematic diagram of an electronic device display interface shown in an embodiment of the present application. Figure 1C The scenario shown is that the vehicle 100 is in a driving state (or a moving state), and the user is browsing the content displayed on the screen of the electronic device 200 while riding in the vehicle 100. In a possible implementation, when the motion sickness relief function / mode (or an anti-motion sickness function / mode) of the electronic device 200 is not turned on, no matter which driving state the vehicle 100 is detected to be in, the display interface of the electronic device 200 displays a normal page, such as Figure 2A Page 201 shown. It should be understood that Figure 2A The content in the page 201 shown is only for illustrative purposes. In actual application scenarios, there is no limitation on the content in the displayed page.
[0139] In another possible implementation, when the motion sickness relief function / mode (or anti-motion sickness function / mode) of the electronic device 200 is turned on and it is detected that the vehicle 100 is in a driving state (such as accelerating and decelerating, going up and down hills, bumping left and right, turning left and right, etc.), the display interface of the electronic device 200 superimposes or suspends the target animation 202 on the basis of the display page 201.
[0140] The target animation 202 is used to simulate the motion state of the vehicle 100 and present it to the user, that is, the target animation 202 can dynamically simulate the motion characteristics of the vehicle 100 in a driving state (such as acceleration and deceleration, uphill and downhill, left and right bumps, left and right turns, etc.), and provide real-time feedback to the user, that is, the real-time simulated target animation 202 is always consistent with the real-time motion state of the vehicle 100. When the user holds the electronic device 200, or the electronic device 200 is fixed in the vehicle 100, the user's eyes watch the target animation 202 displayed on the display interface, and the motion state of the target animation 202 perceived by the user's vision is consistent with the motion state of the vehicle 100 relative to the ground as sensed by the vestibular organs of the inner ear. This can reduce the conflict between the user's vision and the motion state perceived by the vestibular system, thereby alleviating the user's motion sickness. It should be understood that Figure 2B The target animation 202 shown is only for exemplary purposes and does not limit the visual style of the target animation 202 in an actual scene.
[0141] The motion sickness relief function / mode may be turned on based on a first operation. The first operation may include at least one of a click operation, a slide operation, a voice operation, a gesture operation, a long press operation, facial recognition, eye movement recognition, head tracking, etc., for turning on the motion sickness relief function switch.
[0142] Optionally, in a possible implementation, the motion sickness relief function / mode can be implemented by a developed application (such as a motion sickness relief application), then turning on the motion sickness relief function / mode based on the first operation is equivalent to starting the application based on the first operation. In one example, the first operation can be a click operation, such as displaying an icon of a motion sickness relief application on a display interface, the user clicks the icon, and the electronic device starts the motion sickness relief application in response to the user's click operation on the icon. In another example, the first operation can also be a voice operation, such as a user waking up the motion sickness relief application through voice, and the electronic device responds to the user's language wake-up operation to start the motion sickness relief application, and so on.
[0143] It should be understood that the present application does not limit the deployment method of the application (such as the anti-dizziness application). For example, the application can be designed as a utility tool, daily application, etc. built into the system of the electronic device, or the application can be designed as a third-party software for users to download and install independently.
[0144] Optionally, an embodiment of the present application also provides a method for turning on an anti-sickness function / mode, the method comprising: when it is detected that a condition for a pop-up window is met, a pop-up window is popped up on the display interface of the electronic device, and the pop-up window is used to prompt / ask the user whether to turn on the anti-sickness function / mode. The pop-up window can also be used to prompt the user that the anti-sickness function / mode has been turned on, or that the anti-sickness function / mode has been turned off.
[0145] In one example, the pop-up window may include a smart recommendation card, and in response to an operation of turning on the anti-sickness function / mode on the smart recommendation card, the electronic device turns on the anti-sickness function / mode, such as the electronic device starts a sickness mitigation application. Alternatively, in response to an operation of refusing to turn on the anti-sickness function / mode on the smart recommendation card, the electronic device does not turn on the anti-sickness function / mode, such as the electronic device does not start a sickness mitigation application.
[0146] Optionally, there is no limit on the number of times a pop-up window is displayed on the interface, and it can be one or more times. It should be understood that when a pop-up window is displayed multiple times, there is no limit on the time interval between two adjacent pop-up windows.
[0147] Optionally, after the user performs an opening or rejection operation on the smart recommendation card, the electronic device may close the smart recommendation card, that is, the smart recommendation card is not displayed on the display interface.
[0148] The conditions for recommending a card may include detecting that the user has entered any one of a car mode, a ship mode, a plane mode, etc.
[0149] See also Figure 2C , Figure 2C A schematic diagram of a smart recommendation card provided in an embodiment of the present application. Figure 2CAs shown, the display interface displays a pop-up smart recommendation card, which includes prompt information "Detected that you have entered the riding mode" and "Do you want to turn on the motion sickness relief display mode", and also includes a control for turning on the motion sickness relief function, such as the control "Yes", and a control for refusing to turn on the motion sickness relief function, such as the control "No". The user can choose "Yes" or "No" according to their needs, and the electronic device responds to the user's operation and turns on the motion sickness relief function / mode, or refuses to turn on the motion sickness relief function / mode.
[0150] For example, a user clicks the "yes" control in the smart recommendation card, and the electronic device responds to the user's click operation on the "yes" control and starts the slow blur application, and can also display the following information: Figure 2B The interface shown.
[0151] Optionally, in a possible implementation, the condition for the pop-up window to pop up may also include, after detecting that the user has entered any one of the modes of riding mode, boat mode, and airplane mode, detecting whether the hand-held angle (such as the Pitch angle and the Roll angle) corresponding to the electronic device has been maintained within a preset angle range for a preset time. For example, the user holds the electronic device, the screen mode can be a landscape mode or a portrait mode, and it is detected that the Pitch angle corresponding to the electronic device is within a first preset angle range, the Roll angle corresponding to the electronic device is within a second preset angle range, and this hand-held angle is maintained for a preset time, and it is determined that the electronic device meets the condition for the pop-up window to pop up.
[0152] The first preset angle range, the second preset angle range and the preset duration can be set and adjusted according to the actual scene, and there is no limitation on this. For example, the first preset angle range corresponding to the pitch angle can be -20° to 90°, the second preset angle range corresponding to the roll angle can be -20° to 20°, and the preset duration can be 5S, 8S, 10S, etc.
[0153] Optionally, when the electronic device supports a front autofocus function (such as a front itof function, a front AO camera), the conditions for popping up the pop-up window may also include, after detecting that the user has entered any of the modes such as the car mode, the boat mode, the plane mode, etc., detecting whether the user has gazed at the preset area for a preset gaze time. If the user gazes at the preset area for a preset gaze time, a pop-up window will pop up automatically. Among them, the preset area may include an eye tracking area on the screen, and the preset gaze time can be set and adjusted according to the actual scene, and there is no limitation on this. For example, the preset gaze time can be 3 seconds, 5 seconds, 8 seconds, 1 minute, 2 minutes, 5 minutes, etc.
[0154] This pop-up window method simplifies the operation of enabling the anti-sickness function / mode, improves efficiency, and enhances user experience.
[0155] Optionally, in a possible implementation, an embodiment of the present application also provides a method for turning on the anti-sickness function / mode, the method comprising: in response to a sliding down operation on the top of the display interface, displaying a control center interface (such as the interface corresponding to the status bar) in the display interface; displaying an anti-sickness mode icon in the control center interface of the electronic device, and a user can quickly turn on the anti-sickness function / mode by clicking the anti-sickness mode icon.
[0156] See also Figure 2D and Figure 2E , Figure 2D and Figure 2E This is a schematic diagram of a quick start slow blur mode provided by an embodiment of the present application. Figure 2D As shown, the user can slide down at the top of the screen (such as the top right side), such as a single-finger slide down operation, and the electronic device responds to the user's single-finger slide down operation and opens the interface corresponding to the status bar, refer to Figure 2E The interface shown in the status bar. The anti-sickness mode icon can be displayed in the interface corresponding to the status bar. When the user clicks the anti-sickness mode icon, the electronic device responds to the user's operation of clicking the anti-sickness mode icon and quickly turns on the anti-sickness function / mode. After turning on the anti-sickness function / mode, the electronic device can display the following Figure 2B The interface shown.
[0157] In this implementation, the operation of turning on the anti-sickness function / mode is simplified, which improves efficiency and enhances user experience.
[0158] Optionally, in a possible implementation, the present application embodiment further provides a method for enabling the anti-sickness function / mode, see Figures 2F to 2H , Figures 2F to 2H A schematic diagram of another method for quickly opening the slow blur mode provided by an embodiment of the present application. For example, a user opens the "settings" function in an electronic device, and the electronic device displays a settings interface, such as Figure 2F The settings interface shown. The settings interface may include options such as notification and status bar, smart assistant, auxiliary function, etc. The user selects the "auxiliary function" option by clicking, and the electronic device responds to the user's click operation and displays the auxiliary function interface, such as Figure 2G The accessibility interface shown in the figure can include the anti-smoothing mode option and the switch corresponding to the anti-smoothing mode, which is used to turn on or off the anti-smoothing function / mode. Figure 2G When the corresponding slow blur mode shown is switched on, the electronic device displays the following Figure 2H After turning on the anti-sickness function / mode, the electronic device can display the following interface: Figure 2B The interface shown.
[0159] Optionally, in a possible implementation, the embodiment of the present application further provides a prompt method, the method comprising: when it is detected that the anti-motion sickness function / mode is turned on for the first time, a prompt interface is displayed on the display interface. For example, the prompt interface may include "user instructions" content (such as the principle of motion sickness, how to use the motion sickness relief application, etc.), functional value content, implementation principle content, target animation effect display content, etc. In this implementation, when the anti-motion sickness function / mode is turned on for the first time, the prompt interface is used to remind the user to read the principle that the target animation in the motion sickness relief application can relieve motion sickness, so that the user can understand and use the motion sickness relief application more quickly, thereby better relieving motion sickness.
[0160] It is worth noting that the target animation 202 presented in the present application can be adaptively rendered according to the content displayed by the page 201. For example, the electronic device 200 can adjust the color of the target animation 202 according to the color of the page 201, so that the color of the target animation 202 is coordinated with or contrasted with the color of the page 201, which is conducive to the user to perceive the target animation 202 in different scenes and watch the target animation 202. For another example, the electronic device 200 can adjust the opacity of the target animation 202 so that the target animation 202 does not block the content displayed by the page 201, etc. As a result, the integration between the target animation and the content displayed on the display interface can be improved, the sense of intrusion brought by the target animation to the content displayed on the display interface is reduced, the feedback effect of the target animation is improved, and the user experience is improved.
[0161] In another possible implementation, when the motion sickness relief function / mode (or anti-motion sickness function / mode) of the electronic device 200 is turned on, if it is detected that the vehicle 100 is in an ignition-off state, a stopped state, a constant-speed driving state, a steady-speed driving state, etc., in order to improve the user's browsing experience, the target animation 202 is not displayed on the display interface of the electronic device 200. In this scenario, the display interface of the electronic device 200 displays a normal page, such as Figure 2A Page 201 is shown.
[0162] Among them, not displaying the target animation 202 can be achieved by hiding the target animation 202, turning off the target animation 202, adjusting the transparency of the target animation 202, adjusting the stacking order of the target animation 202, adjusting the priority of the target animation 202, setting the target animation 202 invisible, etc.
[0163] The composition of the target animation provided by the present application is first introduced below with reference to the accompanying drawings.
[0164] The target animation in this application is designed based on the principle of motion sickness, or based on the perception principle of the vestibular system, which integrates the motion information of the anterior semicircular canal, posterior semicircular canal, utricle, saccule and horizontal semicircular canal. Figure 3A , Figure 3A This is a target animation design diagram shown in the embodiment of the present application. Figure 3A As shown, the motion information detected by the anterior semicircular canal and the posterior semicircular canal in the user's vestibular system, the motion information detected by the utricle and the saccule, and the motion information detected by the horizontal semicircular canal are mapped to the target animation.
[0165] The target animations provided in this application have various visual styles to suit different simulation needs and target audiences.
[0166] Exemplarily, the target animation is used to simulate different driving / motion states of the vehicle, and the visual style of the target animation may include water ripple style, ocean wave style, particle motion style, line style, board (such as roller skating, skateboard, etc.) motion style, character motion style, track style, two-dimensional animation style, three-dimensional (3Dimensions) animation style, etc. For example, water ripples, ocean waves, particles, lines, roller skating, skateboards, tracks, etc. are used to simulate the motion trajectory of the vehicle in different driving / motion states. In the embodiment of the present application, the user can select target animations of different styles according to his or her preferences. Accordingly, the electronic device displays target animations of different styles on the display interface according to different user selections.
[0167] For ease of understanding, the embodiment of the present application takes the visual style of the target animation as a track style as an example for explanation. The track style target animation includes at least one animation element, such as Sprite. Among them, the animation element refers to a two-dimensional image displayed on the display screen / display interface of the electronic device. Therefore, the animation element can also be referred to as a display image, a moving image, a two-dimensional image, etc. in this application. Please refer to FIG. 3B to FIG. 3L , FIG. 3B to FIG. 3L Schematic diagram of various target animations shown in an embodiment of the present application.
[0168] In one possible implementation, Figure 3BAs shown, the animation element 301 (or referred to as display image 301) may include a track element 3011 and a movable element 3012. In this example, the track element 3011 may refer to a track-style image displayed on the display screen / display interface of the electronic device, and the movable element 3012 may refer to a movable image displayed on the display screen / display interface of the electronic device. The track element 3011 is located at the lower layer of the movable element 3012, and correspondingly, the movable element 3012 is located at the upper layer of the track element 3011, and the movable element 3012 can move freely in any direction within the track formed by the track element 3011. Generally, the size of the movable element 3012 is smaller than the size of the track element 3011, so that when the movable element 3012 moves in the track element 3011, it can more clearly feedback the motion characteristics of the vehicle under different driving / motion states. It should be understood that in the embodiment of the present application, the electronic device can adaptively adjust the display size of the track element 3011 and / or the movable element 3012, and the user can also adjust the display size of the track element 3011 and / or the movable element 3012 according to his or her own preferences, thereby generating more different target animations and presenting more different animation effects.
[0169] It is worth mentioning that Figure 3B The visual style of the track element 3011 shown is a runway track style, which is only shown as an example and does not limit the visual style of the track element 3011 in the actual scene. For example, the visual style of the track element 3011 can also be a rectangular style, a circular style, a wavy line style, an irregular style, etc.
[0170] Similarly, Figure 3B The visual style of the movable element 3012 shown is a ball style, which does not limit the visual style of the movable element 3012 in the actual scene. For example, the visual style of the movable element 3012 can also be a geometric style (such as a rectangular style, an elliptical style, a star style, etc.), an animal style, a human style, a cartoon style, a plant style, a special-shaped style, etc.
[0171] Optionally, the visual style of the track element and the movable element can be customized. For example, the user sets a picture or a custom graphic, and the picture or the custom graphic is used as the visual style of the track element and / or the movable element.
[0172] Optionally, the visual styles of the track elements and movable elements can be changed in real time according to the current weather, season, environment, road conditions, path, etc. For example, the visual style of the movable element can also be a water drop style, a daylight (sun) style, a snowflake style, a leaf style, a bubble style, a stone style, etc.
[0173] In another possible implementation, Figure 3C As shown, the animation element 301 may only include the track element 3013. Figure 3C The visual style of the track element 3013 shown is a runway track style, which is only shown as an example and does not limit the visual style of the track element 3013 in the actual scene. In this implementation, since the movable elements are reduced, the target animation composed of this type of animation elements has low complexity, making the target animation easier to maintain, and at the same time, it also saves the memory resources of the electronic device and reduces the power consumption of the electronic device.
[0174] In another possible implementation, the animation element may include only movable elements. In this implementation, since the track element is reduced, the target animation formed based on this type of animation element has low complexity, making the target animation easier to maintain, and at the same time, it also saves memory resources of the electronic device and reduces the power consumption of the electronic device.
[0175] Combined with the above Figure 3B and Figure 3C An animation element that constitutes the target animation is described below. Figures 3D to 3F Describes the target animation based on multiple animation elements.
[0176] In an embodiment of the present application, the target animation may include one or more animation elements. When the target animation includes multiple animation elements, several animation elements are arranged in a preset arrangement to obtain an element group. One or more element groups are constructed based on this method, and the target animation is constructed according to at least one element group. Among them, the preset arrangement method may include linear arrangement (such as horizontal linear arrangement, vertical linear arrangement, etc.), group arrangement, aligned arrangement, parallel arrangement, staggered arrangement, column arrangement, matrix arrangement, stacked arrangement, dynamic arrangement, modular arrangement, etc.
[0177] In one example, if Figure 3D As shown, the target animation 302 may include a track group 3021 and a track group 3022. The track group 3021 is obtained by vertically arranging five animation elements by the electronic device, and the same is true for the track group 3022. It can be understood that Figure 3D The number of animation elements constituting the track group shown is only an example. The number of animation elements constituting the track group in an actual scene may be greater than Figure 3D The number of animation elements shown may be more or less. In this implementation, since each track group includes movable elements, the animation simulated using the movable elements is more flexible and coordinated, and can more realistically show the motion characteristics of the vehicle in different driving / motion states, thereby enhancing the user's visual experience.
[0178] In another example, Figure 3E As shown, target animation 302 may include track group 3023 and track group 3024. Figure 3D The difference between the target animations shown is that Figure 3E Each animation element in the track group 3024 on the right side shown does not include a movable element.
[0179] In another example, Figure 3F As shown, target animation 302 may include track group 3025 and track group 3026. Figure 3D The difference between the target animations shown is that Figure 3F Each animation element in the track group 3025 on the left side shown does not include a movable element.
[0180] In another example, Figure 3G As shown, target animation 302 may include track group 3027 and track group 3028. Figure 3D The difference between the target animations shown is that Figure 3G Each of the animation elements in track group 3027 and track group 3028 are shown to include no movable elements.
[0181] In another example, Figure 3H As shown, target animation 302 may include track group 3029 and track group 3030. Figure 3D The difference between the target animations shown is that Figure 3H Each animation element in the track group 3029 and the track group 3030 shown includes only movable elements. It should be understood that the target animation 302 may also include only the track group 3029 or the track group 3030, and the position of the track group 3029 and / or the track group 3030 on the display interface is not limited.
[0182] In another example, the movable elements in the target animation may be evenly distributed in a preset area of the electronic device, such as Fig. 3I shown.
[0183] In yet another example, the movable elements in the target animation may be evenly distributed in a preset area of the electronic device with different display sizes and different display quantities, such as Figure 3J Compared to Fig. 3I The target animation shown is Figure 3J The target animation shown has two columns of movable elements on each side, and they appear at different sizes.
[0184] In another example, the movable elements in the target animation may be distributed in a preset area of the electronic device with different display colors and / or different transparencies, such as Figure 3K Compared to Fig. 3I The target animation shown is Figure 3KIn the target animation shown, there are two columns of movable elements on each side, and they display different colors and / or opacity. Figure 3L In the target animation shown, there are three columns of movable elements on each side, and the display color and / or transparency of the movable elements in each column are different. It is worth noting that the target animation can also be displayed on only one side, which is not shown in the figure.
[0185] It should be understood that the above FIG. 3B to FIG. 3L The display methods of the various target animations shown are only exemplary. In actual application, a variety of different display methods can be generated according to any combination of the number, arrangement, display color, display size, display area (display position), transparency, visual style, movement method, movement speed, movement effect (such as fade-in and fade-out effect, loop fade-in and fade-out effect, scrolling effect, tailing effect, etc.) of animation elements.
[0186] In the above-mentioned implementation methods, either the track elements or the movable elements are reduced, thereby reducing the overall complexity of the target animation and making the target animation easier to maintain. At the same time, it also saves the memory resources of the electronic device and reduces the power consumption of the electronic device.
[0187] The following describes the display method of the target animation in the display interface of the electronic device in conjunction with the accompanying drawings.
[0188] In the embodiment of the present application, a scenario in which the target animation includes two track groups and the animation elements in each track group include movable elements is taken as an example for description.
[0189] In one example, the user uses the vertical screen mode of the electronic device (such as a mobile phone), that is, the layout of the screen / display interface of the electronic device (such as a mobile phone) is vertical, and the two track groups of the target animation can be respectively distributed in the preset areas of the electronic device. Figure 4A , Figure 4A FIG. 1 is a schematic diagram of a preset area shown in an embodiment of the present application. Figure 4A As shown, the preset area may include a left preset area 401 and / or a right preset area 402. The right preset area 402 refers to a rectangular touch area extending from the right edge of the screen to the left, and the left preset area 401 refers to a rectangular touch area extending from the left edge of the screen to the right.
[0190] See also Figure 4B , Figure 4B FIG. 1 is a schematic diagram of a target animation display method shown in an embodiment of the present application. Figure 4B As shown, when the electronic device (such as a mobile phone) is in portrait mode, the two track groups of the target animation are respectively distributed in the left preset area and the right preset area.
[0191] In another example, the user uses the horizontal screen mode of the electronic device (such as a mobile phone), that is, the layout of the screen / display interface of the electronic device (such as a mobile phone) is horizontal, and the two track groups of the target animation can still be distributed in the preset area of the electronic device. Unlike the vertical screen mode, the preset area in the horizontal screen mode has changed. Please refer to Figure 4C , Figure 4C FIG. 2 is another schematic diagram of a preset area shown in an embodiment of the present application. Figure 4C As shown, the preset area may include a first preset area 403 and / or a second preset area 404 .
[0192] See also Figure 4D , Figure 4D FIG. 1 is a schematic diagram of another target animation display method according to an embodiment of the present application. Figure 4D As shown, when the electronic device (such as a mobile phone) is in the horizontal screen mode, the two track groups of the target animation are respectively distributed in the first preset area 403 and the second preset area 404.
[0193] In another example, the user uses the split-screen mode of an electronic device (such as a mobile phone), that is, the display interface of the electronic device (such as a mobile phone) is divided into two or more independent display areas, each of which can independently run different applications or display different content. In this application scenario, the target animation can be displayed in any independent display area. Figure 4E and Figure 4F , Figure 4E and Figure 4F FIG. 1 is a schematic diagram of another target animation display method shown in an embodiment of the present application. Figure 4E As shown, the display interface of the electronic device (such as a mobile phone) is divided into a display area 405 and a display area 406. Among them, the display area 406 is used to display a normal page (such as the content corresponding to the application, the system interface, etc.), and the display area 405 is used to independently display the target animation, or to display the target animation in a suspended manner, or to display the target animation in an overlaid manner.
[0194] Exemplarily, independently displaying the target animation means that only the target animation is displayed in the display area 405, and no other pages are displayed. Superimposing the display of the target animation means that in addition to displaying the target animation, other pages can also be displayed in the display area 405. Among them, other pages may include color backgrounds (using a single color or a gradient color as the background), image backgrounds (using any image as the background), texture backgrounds (using texture patterns as the background), normal pages (such as the content corresponding to the application, the system interface, etc.), dynamic backgrounds, etc. Floating the display of the target animation means that the target animation is displayed in a suspended manner above other pages displayed in the display area 405. It can be understood that the window corresponding to the target animation provided in the present application is a floating window, which can be displayed in a suspended manner above other pages without blocking or interfering with the normal use of other pages.
[0195] like Figure 4F As shown, the display interface of the electronic device (such as a mobile phone) is divided into a display area 407 and a display area 408. Figure 4E The difference is, Figure 4F The target animation in the display area below the display interface is displayed, that is, displayed in the display area 408. It should be understood that in actual application scenarios, the user can choose to display the target animation in different display areas according to his or her preferences. Accordingly, the electronic device displays the target animation in different display areas according to different choices of the user.
[0196] In another example, the electronic device used by the user is a foldable screen device. When the foldable screen device is in the folded state, the screen may be divided into two independent display areas, each of which can independently run different applications or display different content. In this application scenario, the target animation can be displayed in any independent display area. Figure 4G , Figure 4G FIG. 1 is a schematic diagram of another target animation display method shown in an embodiment of the present application. Figure 4G As shown, the screen of the electronic device is divided into display area 409 and display area 410. Among them, display area 409 is used to independently display the target animation, or to suspend and display the target animation, or to superimpose and display the target animation, and display area 410 is used to display a normal page (such as the content corresponding to the application, the system interface, etc.). Optionally, in a possible implementation, display area 410 can also be used to independently display the target animation, or to suspend and display the target animation, or to superimpose and display the target animation, and accordingly, display area 409 can also be used to display a normal page (such as the content corresponding to the application, the system interface, etc.).
[0197] When the foldable screen device is in the unfolded state, the entire screen can be used as a continuous display area, and the two track groups of the target animation can be distributed in the preset area of the electronic device. Figure 4H , Figure 4H FIG. 1 is a schematic diagram of another target animation display method shown in an embodiment of the present application. Figure 4H As shown, the two track groups of the target animation are respectively distributed in the left preset area 411 and the right preset area 412 .
[0198] It is worth noting that the display mode of the target animation in the display interface of the electronic device can be flexibly adjusted, and is subject to the display mode in the actual application scenario, and is not limited to this.
[0199] The display method of the target animation in the display interface of the electronic device is introduced above in conjunction with the accompanying drawings. The animation effect of the vehicle simulated by the target animation in different driving / movement states is described below in conjunction with the accompanying drawings.
[0200] Animation effect 1. Target animation simulates the animation effect of a vehicle in a stable driving / moving state.
[0201] A stable driving / movement state means that the vehicle can maintain a stable speed and direction during driving / movement, without sudden acceleration, deceleration, turning, uphill and downhill, bumps, etc. In a stable driving / movement state, the vehicle's operation is smooth and continuous.
[0202] For example, when it is detected that the vehicle is in a stable driving / moving state (such as an engine-off state, a stopped state, a temporary parking state, etc.), the control target animation is located in a preset area of the electronic device display interface. The preset area can be any area in the display interface. For example, the preset area can include the left and right areas of the display interface (such as Figure 4A The left preset area 401 and the right preset area 402 shown in FIG. Figure 4C The first preset area 403 and the second preset area 404 shown in FIG. Figure 4H The left preset area 411 and the right preset area 412 shown, etc.), the upper area of the display interface (such as the upper one-third area of the display interface, or the top status bar area, etc.), the lower area of the display interface (such as the lower one-third area of the display interface, or the bottom status bar area, etc.), the central area of the display interface (the area excluding the upper area and the lower area), or a combination of any multiple areas.
[0203] In the embodiment of the present application, the target animation is located in the preset area of the electronic device as an example for description. Figure 5A , Figure 5A This is a schematic diagram of an animation effect shown in an embodiment of the present application. Figure 5AAs shown, the target animation 501 includes two track groups, namely track group 5011 and track group 5012, and the animation elements in each track group include movable elements. When it is detected that the vehicle is in a stable driving / moving state, the track group 5011 of the control target animation 501 is located in the middle position of the left preset area, and the control track group 5012 is located in the middle position of the right preset area.
[0204] See also Figure 5B , Figure 5B This is another schematic diagram of animation effects shown in an embodiment of the present application. Figure 5B The target animation shown is the same as Figure 5A The difference between the target animations shown is that the animation elements in track group 5013 and track group 5014 do not include movable elements.
[0205] It should be understood that Figure 5A and Figure 5B The visual style of the target animation, the number of animation elements, the color of the animation elements, the arrangement of the animation elements, and the position of the target animation shown are all shown for example only and do not limit the target animation in an actual application scenario.
[0206] It is worth noting that in this embodiment and subsequent embodiments, in order to better display the animation effect of the target animation, the normal page displayed on the display interface of the electronic device (such as the content corresponding to the application, the system interface, etc.) is replaced with a black background. In actual application scenarios, the target animation can be displayed independently in the display interface, or suspended on the normal page, or superimposed on the normal page. Users can choose different display modes according to their preferences. Accordingly, the electronic device displays the target animation in different display modes according to different user choices.
[0207] Optionally, in a possible implementation, the electronic device can adaptively adjust the display size of the target animation. Exemplarily, the electronic device can adaptively adjust the display size of the target animation according to the type of electronic device currently used, screen mode (such as landscape mode, portrait mode, split screen mode, folding screen mode, etc.), screen size / display interface size, etc. For example, the electronic device is a mobile phone, the screen mode is portrait mode, the screen resolution of the mobile phone is 1400×640, the size of the track in the track element is adjusted to 66×30, and the diameter of the ball in the movable element is adjusted to 25. This is only an exemplary description and is not limited to this.
[0208] Optionally, in a possible implementation, since each user has different visual sensitivities, for some users, the greater the feedback degree of the target animation, the more obvious the visual impact, and the better the effect of alleviating motion sickness. For example, in some scenes, the greater the movement amplitude of the vehicle, the greater the deformation amplitude of the target animation, and the greater the feedback degree presented. For other users, the smaller the feedback degree of the target animation, the more comfortable the visual experience, and the better the effect of alleviating motion sickness.
[0209] Optionally, in the display method provided in the embodiment of the present application, the user can also adjust the size of any one or more elements in the target animation according to his or her own preferences. Accordingly, the electronic device responds to the user's size adjustment operation and displays the target animation with the adjusted size.
[0210] Optionally, in a possible implementation, when it is detected that the vehicle is in an ignition-off state or a stopped state, the target animation may also be controlled to be located at the first position of the display interface of the electronic device.
[0211] Optionally, in a possible implementation, when it is detected that the vehicle acceleration is small, the target animation can also be controlled to be located at the first position of the electronic device display interface. Among them, the situation of small acceleration means that the acceleration is less than the first acceleration threshold, or the acceleration is within the first acceleration range. It should be understood that the first acceleration threshold and the first acceleration range can be set and adjusted according to actual conditions, and there is no limitation on this. For example, the first acceleration threshold can be 0.3 meters per second squared, 0.5 meters per second squared, etc., and the first acceleration range can be 0.1 to 0.3 meters per second squared, 0.1 to 0.5 meters per second squared, etc.
[0212] Optionally, in a possible implementation, when it is detected that the vehicle is continuously in a stable driving / moving state, or an ignition-off state, or a stopped state, or a scene with low acceleration, the electronic device can adaptively adjust the transparency of the target animation. Among them, continuously in means within a first preset duration. It should be understood that the first preset duration can be set and adjusted according to actual conditions, and there is no limitation on this. For example, the first preset duration can be 300 milliseconds, 500 milliseconds, 1 second, 2 seconds, 1 minute, 2 minutes, 5 minutes, etc.
[0213] For example, when it is detected that the vehicle is continuously in a stable driving / moving state, the electronic device can automatically turn on the transparency enhancement mode. The transparency enhancement mode is used to increase the transparency of the target animation, making the target animation gradually transparent, and finally completely transparent and invisible to the user.
[0214] Accordingly, when it is detected that the vehicle is no longer in a stable driving / moving state, or in an off state, or in a stopped state, or in a low acceleration state, the electronic device can automatically turn on the reduced transparency mode. Among them, the reduced transparency mode is used to reduce the transparency of the target animation, so that the target animation gradually materializes and is visible to the user. It should be understood that even if the transparency of the target animation is reduced, the target animation will not completely block the normal page displayed on the display interface, that is, it will not affect the normal display of the normal page, and the user can still see the content of the normal page clearly.
[0215] Exemplarily, the electronic device can adjust the transparency of the target animation based on the RGBA (Red, Green, Blue, Alpha) color space model. For example, the transparency of the target animation is adjusted by adjusting the alpha channel of the target animation. In the RGBA color space model, R is red, G is green, B is blue, and A is transparency (Alpha).
[0216] Optionally, whether the transparency of the target animation is increased or decreased, the change in the transparency of the target animation can be a smooth and gradual transition process. For example, when the transparency of the target animation is increased, the target animation gradually changes from an opaque state to a transparent state, showing a gradual disappearance effect; for another example, when the transparency of the target animation is decreased, the target animation gradually changes from a transparent state to an opaque state, showing a gradual appearance effect. This transition method enhances the visual effect, makes the target animation look more natural, and improves the user experience.
[0217] Optionally, in a possible implementation, when it is detected that the vehicle is continuously in a stable driving / moving state, or in an ignition-off state, or in a stopped state, or in a scenario with low acceleration, the electronic device can also make the target animation invisible to the user by hiding the target animation, turning off the target animation, adjusting the stacking order of the target animation, setting the target animation invisible, adjusting the priority of the target animation, minimizing the target animation, etc. In this implementation, when the vehicle is in these states, the user's degree of motion sickness is relatively low, and the target animation is not visible to the user at this time, which completely avoids the intrusion of the target animation into the normal page and improves the user's browsing experience.
[0218] Optionally, in a possible implementation, the electronic device may also determine how to adjust the transparency of the target animation based on parameters such as the offset of the animation element and / or the horizontal angular velocity corresponding to the animation element, as described in subsequent embodiments for details.
[0219] Optionally, in a possible implementation, since each user has different visual sensitivities, for some users, the target animation has high transparency, which reduces the sense of intrusion into the normal page, and the user's visual experience is more comfortable, thereby alleviating motion sickness better. For other users, the target animation has low transparency, which provides a stronger visual impact on the user, thereby alleviating motion sickness better. Therefore, in the display method provided in the embodiment of the present application, the user can also adjust the transparency of the target animation according to his or her preferences. Accordingly, the electronic device responds to the user's operation of adjusting the transparency, and displays the target animation with the adjusted transparency.
[0220] It is worth noting that, whether the electronic device adaptively adjusts the transparency of the target animation or the user adjusts the transparency of the target animation, the transparency of any one or more elements in the target animation can be adjusted.
[0221] Animation effect 2. The target animation simulates the animation effect of the vehicle driving / moving up and down slopes and up and down bumps.
[0222] In one possible implementation scenario, the uphill and downhill driving / movement state refers to the vehicle moving forward along a road with a certain slope during the driving / movement process. In another possible implementation scenario, the uphill and downhill driving / movement state also refers to the vehicle moving backward along a road with a certain slope during the driving / movement process. The up and down bumps of the vehicle may be random or regular depending on the road conditions. For example, when a vehicle passes over a speed bump, the bumping motion is regular.
[0223] In the embodiment of the present application, the up and down slope movement / vertical movement of the element group (such as the track group) in the target animation in the display interface is used to represent (or map) the uphill and downhill movement of the vehicle in the real world.
[0224] For example, when the vehicle is moving uphill, the track group of the target animation in the display interface moves downward. For example, if the first pixel value is moved for each unit angle (such as 1°) of the slope change, the target animation in this scenario can simulate the effect of the vehicle moving uphill.
[0225] For another example, when the vehicle is moving downhill, the track group of the target animation in the display interface moves upward. For example, if the second pixel value is moved for each unit angle (such as 1°) of the slope change, the target animation in this scenario can simulate the effect of the vehicle moving downhill.
[0226] It should be understood that the first pixel value and the second pixel value can be set and adjusted according to actual conditions, and the first pixel value and the second pixel value can be the same or different, and there is no limitation on this. For example, the first pixel value can be 20, 40, 60, 80, etc., and the second pixel value can also be 20, 40, 60, 80, etc.
[0227] Optionally, in a possible implementation, a lower boundary threshold for downward movement and an upper boundary threshold for upward movement are pre-set for the track group. Among them, the lower boundary threshold is the limit of the lowest position that the track group can reach when moving downward in the display interface, and the upper boundary threshold is the limit of the highest position that the track group can reach when moving upward in the display interface. It should be understood that the lower boundary threshold and the upper boundary threshold can be set and adjusted according to the screen size / display interface size of the electronic device. In this implementation, a boundary threshold is set for the track group to ensure that the track group moves within a certain range, effectively preventing the track group from moving beyond the visible range of the screen / display interface, ensuring that the user can always see the movement of the track group in the target animation, improving the user's visual experience, and better alleviating the user's motion sickness symptoms.
[0228] Optionally, in a possible implementation, the lower boundary threshold and the upper boundary threshold may also be set and adjusted according to the screen size / display interface size of the electronic device and the length of the track group, so as to ensure that the track group does not completely move beyond the visible range of the screen / display interface. That is, in some possible implementation scenarios, the track group may move beyond a portion of the screen / display interface, but not completely beyond the visible range of the screen / display interface. In this implementation, the track group is allowed to move beyond a portion of the screen / display interface, giving the user a sense of dynamic expansion, helping the user to better focus on the target animation, thereby better alleviating the user's motion sickness symptoms.
[0229] Optionally, in a possible implementation, the initial position of the track group in the target animation is pre-set. The initial position is used to display the track group at the initial position when the target animation is first displayed on the display interface. The initial position can be set and adjusted according to actual conditions, and there is no limitation on this. For example, the initial position may include the center area of the screen / display interface, the center area corresponding to the preset area of the electronic device (such as Figure 4B In this implementation, when the track group in the target animation is first displayed, it is located in the middle of the screen / display interface, which can ensure that when the track group moves up or down, it will not directly exceed the visible range of the screen / display interface, ensuring that the user can always see the movement of the track group in the target animation, thereby improving the user's visual experience and better alleviating the user's motion sickness symptoms.
[0230] See also FIG. 5C to FIG. 5E , FIG. 5C to FIG. 5E This is a schematic diagram of an uphill animation effect shown in an embodiment of the present application. Figure 5C As shown, the two track groups of the target animation are located at the initial position, for example, the two track groups of the target animation are located in the central area corresponding to the preset area of the electronic device. Figure 5D and Figure 5E As shown, when it is detected that the vehicle is moving uphill, the track group of the target animation in the display interface gradually moves downward.
[0231] See also FIG. 5F to FIG. 5H , FIG. 5F to FIG. 5H This is a schematic diagram of a downhill animation effect shown in an embodiment of the present application. Fig. 5F As shown, the two track groups of the target animation are located at the initial position, for example, the two track groups of the target animation are located in the central area corresponding to the preset area of the electronic device. Figure 5G and Fig. 5F As shown, when it is detected that the vehicle is moving downhill, the track group of the target animation in the display interface gradually moves upward.
[0232] It can be simply understood that the electronic equipment in the vehicle (such as a mobile phone) is initially placed on a horizontal plane at a certain tilt angle, and a small ball is placed in the mobile phone. When the vehicle moves, the mobile phone also moves, and the small ball moves with the movement of the mobile phone. Then, when the vehicle is moving uphill, the front end of the vehicle is raised relative to the ground, and the front end of the mobile phone will also tilt upward, and accordingly, the small ball will move downward. When the vehicle is moving downhill, the front end of the vehicle is lowered relative to the ground, and the front end of the mobile phone will also tilt downward, and accordingly, the small ball will move upward. It should be understood that the small ball is only used as an example here to illustrate the principle of the target animation simulating the uphill and downhill movement of the vehicle, and the actual style of the target animation is not limited in the actual application scenario.
[0233] For example, in a possible implementation, the electronic device can adaptively adjust the display size of each animation element in the target animation, as well as the spacing between the animation elements. For example, the electronic device can adaptively adjust the display size of each track (such as widening and / or lengthening the track), the display size of each ball, the spacing between tracks, the spacing between track groups, etc.
[0234] For example, in another possible implementation, the user can also adjust the display size of each track, the display size of each ball, the spacing between tracks, the spacing between track groups, etc. according to their own preferences. In these two implementations, the target animation can show a variety of visual effects to meet the different visual needs of users.
[0235] See also FIG. 5I to FIG. 5K , FIG. 5I to FIG. 5K FIG. 1 is another schematic diagram of an uphill animation effect shown in an embodiment of the present application. Fig.5I As shown, the two track groups of the target animation are located at the initial position, for example, the two track groups of the target animation are located in the central area corresponding to the preset area of the electronic device. Figure 5C The difference between the target animations shown is that Fig.5I The distance between each track of the target animation shown is relatively large, and none of the animation elements in the target animation includes movable elements (such as movable elements in the form of small balls). Figure 5J and Figure 5K As shown, when it is detected that the vehicle is moving uphill, the track group of the target animation in the display interface gradually moves downward.
[0236] See also Figure 5L to Figure 5N , Figure 5L to Figure 5N FIG. 1 is another schematic diagram of a downhill animation effect shown in an embodiment of the present application. Figure 5L As shown in , the two track groups of the target animation are at the initial position. Figure 5M and Figure 5N As shown, when it is detected that the vehicle is moving downhill, the track group of the target animation in the display interface gradually moves upward.
[0237] Whether the user holds the electronic device or the electronic device is fixed in the vehicle, when the user uses the electronic device in the vehicle, the user will subconsciously keep the electronic device relatively still with the user's eyes, so that the motion state of the vehicle is basically consistent with the motion state of the electronic device, and the motion state of the electronic device is basically consistent with the motion state of the user's body. In other words, the motion state of the user's body and the electronic device are similar. In this solution, the motion state of the electronic device is mapped out through the target animation, which is equivalent to mapping the motion state of the vehicle through the target animation, and the user's eyes are basically consistent with the electronic device. When the user watches the target animation, the motion information felt by his eyes is consistent with the motion information felt by the vestibular system, that is, the motion state of the target animation in the display interface seen by the user's eyes is consistent with the motion state of the vehicle relative to the ground felt by his vestibular system. This can reduce the conflict between the user's vision and the motion state perceived by the vestibular system, that is, the target animation can provide the user with visual feedback that is coordinated with the vestibular system, thereby alleviating the user's motion sickness.
[0238] Animation effect 3. The target animation simulates the animation effect of the vehicle when it is driving / moving in a tilted state or bumpy state.
[0239] Left and right tilt refers to the left and right tilt of the vehicle body relative to the horizon. It can also refer to the left and right swaying of the hull caused by waves when riding on a boat. The corresponding change in the Roll angle in the attitude angle is mapped to the animation effect presented in the target animation as one side of the track group moving upward and the other side of the track group moving downward. At the same time, the track group will also rotate to feedback the corresponding tilt angle. The inclination angle of the track groups on both sides can form a visual guide for the tilt degree of the current vehicle / ship / fuselage relative to the horizon.
[0240] Bumping can refer to the bumpy motion of a vehicle when it is driving on an uneven road, or the rolling motion of an airplane due to airflow changes. In addition to the change in the roll angle, the bumping also reflects the change in the horizontal X-axis acceleration. The change in the horizontal X-axis acceleration is mapped to an animation effect in the target animation, where one track group moves upward and the other track group moves downward.
[0241] Optionally, the change in horizontal X-axis acceleration is mapped to another animation effect presented in the target animation, such as Figure 8M and Figure 8T The track length is shown in the figure. The animation principle can be simply understood as the track is like a spring in a spring system. When accelerating to the right, the object is thrown to the left, so the length of the left side is compressed and the length of the right side is stretched; when accelerating to the left, the object is thrown to the right, so the length of the right side is compressed and the length of the left side is stretched.
[0242] See also Fig. 6A and Figure 6B , Fig. 6A and Figure 6B This is a schematic diagram of an animation effect of tilting to the left shown in an embodiment of the present application. Fig. 6A As shown, compared to Figure 5C The two track groups of the target animation shown, Fig. 6A The two track groups of the target animation shown move in opposite directions. When the vehicle tilts to the left, the left track group moves upward and the right track group moves downward, presenting an animation effect in which the left track group is high and the right track group is low.
[0243] When the degree of vehicle tilt is different, the track group in the target animation will also feedback the corresponding tilt angle, that is, the tilt angle of the track group is consistent with the tilt angle of the electronic device / car body relative to the horizon. Exemplarily, the greater the degree of vehicle tilt, the greater the angle of the track group tilt in the target animation, and the smaller the degree of vehicle tilt, the smaller the angle of the track group tilt in the target animation. Optionally, the user can adjust the sensitivity of the target animation according to their preferences, thereby adjusting the feedback degree of the animation effect of the target animation in the scene.
[0244] In a possible implementation scenario, the vehicle tilts more and more to the left, and the angle of the track group tilting to the left in the target animation also increases. Fig. 6A and Figure 6B As shown, Figure 6B The angle of inclination of the tracks in the track group shown is greater than Fig. 6A The angle of inclination of the track in the track group shown. It should be understood that the degree of inclination of the vehicle to the left is getting smaller and smaller, and the angle of inclination of the track to the left in the target animation is also getting smaller and smaller.
[0245] See also Figure 6C and Fig.6D , Figure 6C and Fig.6D This is a schematic diagram of an animation effect tilting to the right shown in an embodiment of the present application. Figure 6C As shown, compared to Figure 5C The two track groups of the target animation shown, Figure 6C The two track groups of the target animation shown move in opposite directions. When the vehicle tilts to the right, the left track group moves downward and the right track group moves upward, presenting an animation effect in which the left track group is low and the right track group is high.
[0246] In a possible implementation scenario, the vehicle tilts more and more to the right, and the angle of the track group tilting to the right in the target animation also increases. Figure 6C and Fig.6D As shown, Fig.6D The angle of inclination of the tracks in the track group shown is greater than Figure 6C The angle of inclination of the track in the track group shown. It should be understood that the degree of inclination of the vehicle to the right is getting smaller and smaller, and the angle of inclination of the track to the right in the target animation is also getting smaller and smaller.
[0247] FIG. 6A to FIG. 6D In the corresponding embodiment, the corresponding animation effects when the vehicle tilts to the left and tilts to the right are displayed separately. The following is a coherent display of the corresponding animation effects when the vehicle tilts to the left and tilts to the right in conjunction with the accompanying drawings.
[0248] See also Fig. 6E , Fig. 6E FIG. 1 is another schematic diagram of an animation effect shown in an embodiment of the present application. Fig. 6E The 7 pictures shown show, in turn, the animation effects corresponding to the vehicle going from a stable state, gradually tilting to the right, gradually increasing the degree of tilting to the right, gradually decreasing the degree of tilting to the right, then the animation effects corresponding to the vehicle's stable state, gradually tilting to the left, and gradually increasing the degree of tilting to the left.
[0249] It should be understood that FIG. 6A to FIG. 6E In the corresponding embodiments, the visual styles of the target animations are shown for exemplary purposes only and do not limit the visual styles of the target animations in actual application scenarios.
[0250] In this implementation, the vehicle's left and right tilting driving / movement state and left and right bumping driving / movement state are mapped out through target animation. When the user watches the target animation, the motion information perceived by the user's eyes is consistent with the motion information perceived by the vestibular system, that is, the motion state of the target animation in the display interface seen by the user's eyes is consistent with the motion state of the vehicle relative to the ground perceived by the vestibular system. This can alleviate the conflict between the user's vision and the motion state perceived by the vestibular system, that is, the target animation can provide the user with visual feedback that is coordinated with the vestibular system, thereby alleviating the user's motion sickness. It is worth noting that since the motion in this scene is a low-frequency motion, the animation effect presented in this scene is particularly effective in alleviating motion sickness for boat users (such as scenes where the boat hull is swaying slowly).
[0251] Animation effect 4. Target animation simulates the animation effect of the vehicle under acceleration / deceleration driving / movement state.
[0252] Acceleration / deceleration driving / movement state refers to the process in which the vehicle undergoes acceleration (i.e., increase in vehicle speed) or deceleration (i.e., decrease in vehicle speed) during driving. For example, when the driver steps on the accelerator pedal, the engine outputs more power, which is transmitted to the wheels through the power system, increasing the vehicle speed. For another example, when the driver releases the accelerator pedal or steps on the brake pedal, the vehicle speed decreases.
[0253] This application uses the principle of camera movement animation when simulating the animation effect of a vehicle in acceleration and deceleration driving / movement state through target animation. It can be generally understood that an electronic device (such as a mobile phone) is placed in a three-dimensional (3Dimensions) scene, and the user's eyes are equivalent to the camera looking at the screen / display interface of the electronic device. When accelerating, the electronic device (such as a mobile phone) moves toward the eyes, which is equivalent to the camera moving toward the screen / display interface, mapped to the perspective effect of the target animation, and presented as an increase in the track group. When decelerating, the electronic device (such as a mobile phone) moves away from the eyes, which is equivalent to the camera moving away from the screen / display interface, mapped to the perspective effect of the target animation, and presented as a decrease in the track group.
[0254] See also Fig. 7A and Figure 7B , Fig. 7A and Figure 7B FIG. 1 is a schematic diagram of an accelerated animation effect shown in an embodiment of the present application. Fig. 7A As shown, when the vehicle is detected to be in a stable driving / moving state, the two track groups of the target animation are located in the central area corresponding to the preset area of the electronic device. Figure 7BAs shown, when the vehicle is detected to be accelerating, the display size of the track group of the target animation in the display interface increases. Specifically, when the vehicle is detected to be accelerating, the size of the track in the track element and the diameter of the small ball in the movable element increase rapidly, giving the user a visual feeling of attacking the human eye. At the same time, the motion trajectory of the track group conforms to the single-point perspective, which enhances the dynamic sense and sense of depth of the target animation, makes it easier for users to watch the target animation, and helps to keep the motion information perceived by the user's eyes consistent with the motion information perceived by the vestibular system, thereby better alleviating the user's motion sickness symptoms.
[0255] Optionally, in a possible implementation, a first size threshold for increasing the display size is pre-set for the track group. The first size threshold is the maximum size that the display size of the track group can reach when it increases. It should be understood that the first size threshold can be set and adjusted according to the screen size / display interface size of the electronic device. In this implementation, a first size threshold is set for the track group to ensure that the display size of the track group increases within a certain range, effectively preventing the display size of the track group from exceeding the visible range of the screen / display interface after increasing, thereby improving the user's visual experience and better alleviating the user's motion sickness symptoms.
[0256] Optionally, in a possible implementation, when the display size of the track group is increased, it may also exceed the visible range of the screen / display interface. FIG. 7C to FIG. 7E , FIG. 7C to FIG. 7E This is a schematic diagram of another accelerated animation effect shown in an embodiment of the present application. FIG. 7C to FIG. 7E The accelerated animation effect shown is similar to Fig. 7A and Figure 7B The difference in the accelerated animation effect shown is that Fig. 7E When the display size of the track group shown is increased, it exceeds the visible range of the screen / display interface, and the track and ball in the track group currently displayed on the screen / display interface may be incomplete. In this implementation, the display size of the track group is increased beyond the visible range of the screen / display interface, achieving a visual breakthrough, bringing a novel and strong visual experience to the user, improving the depth sense of the visual animation, enhancing the perception of three-dimensional space, making it easier for the user to watch the target animation, and helping to keep the motion information felt by the user's eyes consistent with the motion information felt by the vestibular system, thereby better alleviating the user's motion sickness symptoms.
[0257] See also Figure 7F and Figure 7G , Figure 7F and Figure 7G A schematic diagram of a deceleration animation effect shown in an embodiment of the present application. Figure 7F and Figure 7G The deceleration animation effect shown is the same as Fig. 7A and Figure 7BThe difference between the accelerated animation effects shown in Figure 7G As shown, when the vehicle is detected to be decelerating, the display size of the track group of the target animation in the display interface is reduced. Specifically, when the vehicle is detected to be decelerating, the size of the track in the track element and the diameter of the ball in the movable element decrease rapidly, giving the user a visual feeling of being away from the eye attack. At the same time, the motion trajectory of the track group presents an effect of converging from the surroundings to the center, which enhances the dynamic sense and sense of depth of the target animation, makes it easier for users to watch the target animation, and helps to keep the motion information perceived by the user's eyes consistent with the motion information perceived by the vestibular system, thereby better alleviating the user's motion sickness symptoms.
[0258] Optionally, in a possible implementation, a second size threshold for reducing the display size is pre-set for the track group. The second size threshold is the minimum size that the display size of the track group can reach when it is reduced. It should be understood that the second size threshold can be set and adjusted according to the screen size / display interface size of the electronic device. In this implementation, a second size threshold is set for the track group to ensure that the display size of the track group is reduced within a certain range, effectively preventing the display size of the track group from being reduced without limit, resulting in incomplete or illegible display of the target animation, ensuring a good display effect of the target animation, and improving the user's visual experience.
[0259] Optionally, in a possible implementation, the user can also adjust the first size threshold and the second size threshold corresponding to the target animation according to his or her preferences. Accordingly, the electronic device responds to the user's operation of adjusting the first size threshold and the second size threshold, and displays the target animation with the adjusted first size threshold and the second size threshold. The user customizes the size of the track group to increase or decrease according to his or her visual preferences and usage habits, thereby enhancing the personalized experience. Moreover, the vision conditions of different users may be different, and the method of customizing the display size can improve the usability of the target animation. In addition, the performance of electronic devices of different users may be different, and the method of customizing the display size can make the effect of the target animation smoother.
[0260] See also Figure 7H , Figure 7H This is a schematic diagram of another accelerated animation effect shown in an embodiment of the present application. Figure 7H The accelerated animation effect shown is similar to FIG. 7C to FIG. 7E The difference in the accelerated animation effect shown is that Figure 7H The distance between each track of the target animation shown is relatively large, and none of the animation elements in the target animation includes movable elements (such as movable elements in the form of small balls). Figure 7HAs shown, when the vehicle is detected to be accelerating, the display size of the track group of the target animation in the display interface increases. Specifically, when the vehicle is detected to be accelerating, the size of the track in the track element increases rapidly, and the spacing between each track also increases rapidly.
[0261] See also Fig.7I , Fig.7I This is a schematic diagram of another deceleration animation effect shown in an embodiment of the present application. Fig.7I The deceleration animation effect shown is similar to FIG. 7F to FIG. 7G The difference in the deceleration animation effect shown is that Fig.7I The distance between each track of the target animation shown is relatively large, and none of the animation elements in the target animation includes movable elements (such as movable elements in the form of small balls). Fig.7I As shown, when the vehicle is detected to be decelerating, the display size of the track group of the target animation in the display interface is reduced. Specifically, when the vehicle is detected to be accelerating, the size of the track in the track element is rapidly reduced, and the spacing between each track is also rapidly reduced.
[0262] Compared with the target animation including movable elements, the above two target animations without movable elements have simpler visual performance, reduce the overall complexity of the target animation, and make the target animation easier to maintain. At the same time, it also saves the memory resources of the electronic device and reduces the power consumption of the electronic device.
[0263] Optionally, in a possible implementation, the electronic device can adaptively adjust the speed at which the track group display size increases or decreases, which can optimize resource usage and improve the performance of the electronic device. Optionally, in another possible implementation, the user can also adjust the speed at which the track group display size increases or decreases according to his or her preferences, which can enhance the user's personalized experience.
[0264] Optional, see Figure 7J , Figure 7J FIG. 1 is a schematic diagram of another visual style of a target animation shown in an embodiment of the present application. Figure 7J As shown, the visual style of the track can be a rectangular style, with multiple rectangles arranged vertically and linearly, and multiple rectangles are filled with multiple different colors (such as multiple gradient colors). When the vehicle is accelerating, the multiple opaque rectangles are controlled to change in a first order in sequence, presenting a rolling animation effect; when the vehicle is stationary, the multiple rectangles are filled with the same color, presenting a stationary animation effect; when the vehicle is decelerating, the multiple opaque rectangles are controlled to change in a second order in sequence, presenting a rolling animation effect. The first order is opposite to the second order.
[0265] Optionally, in a possible implementation, when the target animation simulates the animation effect of the vehicle in the acceleration / deceleration driving / movement state, it can also be achieved by Fig. 3I The ball shown in the figure is presented in a loop with a gradual in-and-out motion.
[0266] In this implementation, the feedback of the target animation is enhanced. Even if the user views the target animation through peripheral vision, the motion information felt by the user's eyes can be kept consistent with the motion information felt by the vestibular system, which is conducive to better alleviating the user's motion sickness symptoms.
[0267] Animation Effect 5. The target animation simulates the animation effect of the vehicle when it is turning left and leaning left while driving / moving, and the animation effect of the vehicle when it is turning right and leaning right while driving / moving.
[0268] It should be understood that the animation effect of the vehicle when turning left and driving / moving in a left-leaning state is a coupling effect, and the same is true for the animation effect of the vehicle when turning right and driving / moving in a right-leaning state.
[0269] See also Fig. 8A , Figure 8B , Figure 8C , Fig.8D , Fig. 8E , Fig. 8A , Figure 8B , Figure 8C , Fig.8D , Fig. 8E This is a schematic diagram of a left turn and left tilt animation effect shown in an embodiment of the present application. Fig. 8A As shown, the target animation includes two track groups. The animation elements in the left track group include track elements and movable elements (such as a ball), and the animation elements in the right track group include track elements but do not include movable elements (such as a ball). It should be understood that Fig. 8A The visual style of the target animation shown is only shown for example. In actual application scenarios, the number of animation elements in each track group can be less or more, and the number of movable elements (such as balls) in the two track groups can also be more. For example, the animation elements in the left track can include multiple movable elements (such as balls), and the animation elements in the right track can also include one or more movable elements (such as balls).
[0270] When the vehicle turns left, Figure 8B As shown, the balls in the tracks of the left track group (hereinafter referred to as the balls in the left track) gradually move to the right along the inclination angle of the left track.
[0271] like Figure 8CAs shown in FIG. 1 , the ball in the left track gradually moves to the right along the inclination angle of the left track to the track in the right track group. It should be understood that the process of the ball moving is a smooth and continuous process, such as Figure 8C The movement process shown, part of the ball is shown in the left track, and the other part is shown in the right track.
[0272] It is worth noting that the number of animation elements in the left and right track groups is corresponding, that is, the number of tracks in the left track group corresponds to the number of tracks in the right track group. Therefore, when the ball moves from the left track to the right track, it also moves in the corresponding track. For example, the ball in the first track in the left track group gradually moves to the right into the first track in the right track group along the inclination angle of the first track in the left track group; the ball in the second track in the left track group gradually moves to the right into the second track in the right track group along the inclination angle of the second track in the left track group...
[0273] like Fig.8D As shown in the figure, the ball in the left track has completely moved into the track of the right track group. After that, the ball continues to move to the right along the inclination angle of the track in the right track group until it moves out of the right track. After moving out of the right track, it gradually moves from the left side of the left track into the left track. Fig. 8E As shown in , part of the ball is displayed in the left track, and the other part is displayed in the right track. After that, the ball in the right track is completely moved to the track in the left track group, as shown in Fig. 8A As shown, and based on this, a cyclic / reciprocating motion is performed.
[0274] In this implementation, the vehicle's motion state of turning left can be intuitively mapped through the inclination angle of the track and the circular / reciprocating motion of the movable elements, which helps to keep the motion information perceived by the user's eyes consistent with the motion information perceived by the vestibular system, thereby better alleviating the user's motion sickness symptoms.
[0275] For example, when the vehicle turns right, the user sees the scene outside the vehicle moving to the left, and the scene is mapped to the target animation. Specifically, when the vehicle turns right, the ball in the movable element moves to the left, enters the track in the left track group, moves out of the track in the left track group, and then enters the track in the right track group, and performs a circular / reciprocating motion based on this.
[0276] See also Figure 8F , Figure 8G , Figure 8H , Figure 8I , Figure 8J , Figure 8F , Figure 8G , Figure 8H , Figure 8I , Figure 8J This is a schematic diagram of a right turn and right tilt animation effect shown in an embodiment of the present application. Figure 8F As shown, the target animation includes two track groups. The animation elements in the track group on the right include track elements and movable elements (such as a ball), and the animation elements in the track group on the left include track elements but do not include movable elements (such as a ball). It should be understood that Figure 8F The visual style of the target animation shown is only shown for example. In actual application scenarios, the number of animation elements in each track group can be less or more, and the number of movable elements (such as balls) in the two track groups can also be more. For example, the animation elements in the track on the right can include multiple movable elements (such as balls), and the animation elements in the track on the left can also include one or more movable elements (such as balls).
[0277] When the vehicle turns right, Figure 8G As shown, the small balls in the tracks of the right track group (hereinafter referred to as the small balls in the right track) gradually move to the left along the inclination angle of the right track.
[0278] like Figure 8H As shown in FIG. 1 , the ball in the right track gradually moves to the left along the inclination angle of the right track to the track in the left track group. It should be understood that the process of the ball moving is a smooth and continuous process, such as Figure 8H The movement process shown, part of the ball is shown in the right track, and the other part is shown in the left track.
[0279] like Figure 8I As shown in the figure, the ball in the right track has completely moved into the track of the left track group. After that, the ball continues to move to the left along the angle of inclination of the track in the left track group until it moves out of the left track. After moving out of the left track, it gradually moves from the right side of the right track into the right track. Figure 8J As shown in , part of the ball is displayed in the right track, and the other part is displayed in the left track. After that, the ball in the left track is completely moved to the track in the right track group, as shown in Figure 8F As shown, and based on this, a cyclic / reciprocating motion is performed.
[0280] In this implementation, the vehicle's motion state of turning right can be intuitively mapped through the inclination angle of the track and the circular / reciprocating motion of the movable elements, which helps to keep the motion information perceived by the user's eyes consistent with the motion information perceived by the vestibular system, thereby better alleviating the user's motion sickness symptoms.
[0281] Optionally, in another possible implementation, the present application utilizes target animation to simulate the animation effect of a vehicle when it is turning left or right, mainly through the circular / reciprocating motion of movable elements and the display size change of track elements.
[0282] Exemplarily, when the vehicle turns left, the user sees the scene outside the vehicle moving to the right, and the scene is mapped to the target animation. Specifically, when the vehicle turns left, the ball in the movable element moves to the right, enters the track in the right track group, then moves out of the track in the right track group, and then enters the track in the left track group, and performs a circular / reciprocating motion based on this. And in the process of the circular / reciprocating motion of the ball, the display size of the track in the left track group widens and / or lengthens, and the display size of the track in the right track group narrows and / or shortens. Since turning is usually accompanied by a change in horizontal acceleration due to the centrifugal force, the animation corresponding to the change in horizontal acceleration in the embodiment of the present application (such as superimposing the track length expansion animation) can be superimposed on the animation corresponding to the turn.
[0283] Animation Effect 6. The target animation simulates the animation effect of the vehicle when it is turning left or right.
[0284] The left and right turning driving / movement state refers to the turning action of the vehicle during driving, that is, the vehicle changes its direction of travel along a certain path and turns left or right. It should be understood that when the vehicle is in a state of turning left at a constant speed, the left and right track groups in the target animation present an animation effect of the right side being higher and the left side being lower; when the vehicle is in a state of turning right at a constant speed, the left and right track groups in the target animation present an animation effect of the left side being higher and the right side being lower.
[0285] Optionally, in a possible implementation, the present application utilizes target animation to simulate the animation effect of a vehicle when it is turning left or right and driving / moving, mainly through the circular / reciprocating motion of movable elements.
[0286] For example, when the vehicle turns left, the user sees the scene outside the vehicle moving to the right, and the scene is mapped to the target animation. Specifically, when the vehicle turns left, the ball in the movable element moves to the right, enters the track in the right track group, moves out of the track in the right track group, and then enters the track in the left track group, and performs a circular / reciprocating motion based on this.
[0287] See also Figure 8K , Figure 8L , Figure 8M , Figure 8N , Fig.8O , Figure 8K , Figure 8L , Figure 8M , Figure 8N , Fig.8O FIG. 1 is another schematic diagram of a left turn animation effect shown in an embodiment of the present application. Figure 8K As shown, the target animation includes two track groups. The animation elements in the left track group include track elements and movable elements (such as a ball), and the animation elements in the right track group include track elements but do not include movable elements (such as a ball). It should be understood that Figure 8K The visual style of the target animation shown is only shown for example. In actual application scenarios, the number of animation elements in each track group can be less or more, and the number of movable elements (such as balls) in the two track groups can also be more. For example, the animation elements in the left track can include multiple movable elements (such as balls), and the animation elements in the right track can also include one or more movable elements (such as balls).
[0288] When the vehicle turns left, the electronic device can adaptively adjust the display size of the track, such as Figure 8K As shown, the length of the track in the left track group is longer than the length of the track in the right track group. It should be understood that the animation effect corresponding to the change in the display size of the track is also the animation effect corresponding to the change in horizontal acceleration. Optionally, in a possible implementation, the user can also adjust the display size of the track according to his or her own preferences, which is not limited.
[0289] When the vehicle turns left, Figure 8K , Figure 8L , Figure 8M As shown in the figure, the ball in the left track gradually moves to the right along the left track. Figure 8M , Figure 8N As shown in , when the ball moves to the track in the right track group, it continues to move to the right until it moves out of the right track. After moving out of the right track, it gradually moves from the left side of the left track into the left track. Fig.8O As shown, after the ball moves to the track in the left track group, it gradually moves to the right along the left track and performs a circular / reciprocating motion based on this.
[0290] In this implementation, the motion state of the vehicle turning left can be intuitively mapped through the circular / reciprocating motion of the movable elements and the change in the display size of the track elements, which helps to keep the motion information perceived by the user's eyes consistent with the motion information perceived by the vestibular system, thereby better alleviating the user's motion sickness symptoms.
[0291] And usually the vehicle travels on a horizontal plane, and the effect corresponding to the change in horizontal acceleration is mapped out, that is, the motion state of the vehicle in a normal scene is mapped out, which can effectively alleviate the user's motion sickness symptoms in the scene and improve the application value of the target animation.
[0292] For example, when the vehicle turns right, the user sees the scene outside the vehicle moving to the left, and the scene is mapped to the target animation. Specifically, when the vehicle turns right, the ball in the movable element moves to the left, enters the track in the left track group, then moves out of the track in the left track group, and then enters the track in the right track group, and performs a circular / reciprocating motion based on this. In addition, during the circular / reciprocating motion of the ball, the display size of the track in the right track group widens and / or lengthens, and the display size of the track in the left track group narrows and / or shortens.
[0293] See also Figure 8P , Figure 8Q , Figure 8R , Figure 8S , Figure 8T , Figure 8P , Figure 8Q , Figure 8R , Figure 8S , Figure 8T FIG. 1 is another schematic diagram of a right turn animation effect shown in an embodiment of the present application. Figure 8P As shown, the target animation includes two track groups. The animation elements in the track group on the right include track elements and movable elements (such as a ball), and the animation elements in the track group on the left include track elements but do not include movable elements (such as a ball). It should be understood that Figure 8P The visual style of the target animation shown is only shown for example. In actual application scenarios, the number of animation elements in each track group can be less or more, and the number of movable elements (such as balls) in the two track groups can also be more. For example, the animation elements in the track on the right can include multiple movable elements (such as balls), and the animation elements in the track on the left can also include one or more movable elements (such as balls).
[0294] When the vehicle turns right, the electronic device can adaptively adjust the display size of the track, such as Figure 8R As shown, the length of the track in the right track group is longer than the length of the track in the left track group. Optionally, in a possible implementation, the user can also adjust the display size of the track according to his or her own preferences, which is not limited.
[0295] When the vehicle turns right, Figure 8P , Figure 8Q , Figure 8R As shown in the figure, the ball in the right track gradually moves to the left along the right track. Figure 8R , Figure 8S As shown in , after the ball moves to the track in the left track group, it continues to move to the left until it moves out of the left track. After moving out of the left track, it gradually moves from the right side of the right track into the right track. Figure 8TAs shown, after the ball moves to the track in the right track group, it gradually moves to the left along the right track and performs a circular / reciprocating motion based on this.
[0296] It is worth noting that in the above-mentioned implementations, the tracks in the track groups on both sides may have a certain inclination angle, or may remain horizontal with the screen / display interface, depending on the actual application scenario and is not limited to this.
[0297] In this implementation, the motion state of the vehicle turning right can be intuitively mapped through the circular / reciprocating motion of the movable elements and the change in the display size of the track elements, which helps to keep the motion information perceived by the user's eyes consistent with the motion information perceived by the vestibular system, thereby better alleviating the user's motion sickness symptoms.
[0298] Optionally, in another possible implementation, considering that some users may feel visual discomfort (such as dizziness) when the ball (one ball in each of the left and right tracks, or one ball in both of the left and right tracks) moves left and right on the screen, this application also provides a visual style of target animation to improve the visual comfort of users. Figure 8U and Figure 8V , Figure 8U and Figure 8V This is a schematic diagram of a visual style shown in an embodiment of the present application. Figure 8U and Figure 8V As shown, tracks are set above and / or below the screen, and the ball moves left and right in the tracks set above and / or below.
[0299] It is worth noting that, when the target animation provided by the present application is applied in an actual scene, it can present any one of the above-mentioned animation effects or a coupling effect of any multiple animation effects.
[0300] The animation effects of the vehicle simulated by the target animation in different driving / moving states are described above in conjunction with the accompanying drawings. The principles of the different animation effects simulated by the target animation are explained below in conjunction with the accompanying drawings.
[0301] When the user uses an electronic device in a vehicle, the motion state of the vehicle is basically consistent with the motion state of the electronic device, and the motion state of the electronic device is basically consistent with the motion state of the user body. In other words, the motion state of the user body and the electronic device are similar. In this solution, motion parameters (also called sensor data) are collected by electronic devices, and target animations are generated based on the motion parameters. The target animation can map different driving / motion states of the vehicle in real time. It can be understood that the six motion directions (i.e., front and back, up and down, left and right, pitch, roll, deflection), high-frequency and low-frequency motion information, and horizontal motion information felt by the user in the vehicle are mapped to the target animation by the electronic device. Since the user's eyes are basically consistent with the electronic device, when the user watches the target animation, the motion information felt by his eyes is consistent with the motion information felt by the vestibular system, that is, the motion state of the target animation in the display interface seen by the user's eyes is consistent with the motion state of the vehicle relative to the ground felt by his vestibular system. It can thus reduce the conflict between the motion state perceived by the user's vision and the vestibular system, that is, the target animation can provide the user with visual feedback that is consistent with the vestibular system, thereby alleviating the user's motion sickness.
[0302] In a possible implementation, the implementation principle involved in the data processing method provided in the present application can be described with reference to the following steps S101 to S105.
[0303] S101. Acquire sensor data of an electronic device.
[0304] Exemplarily, the electronic device may include a sensor and a sensor API. The sensor may include a hardware sensor and a virtual sensor, and the sensor API is an interface that allows an application to interact with the hardware sensor. In an embodiment of the present application, the application may access the sensor in the electronic device through the sensor API to obtain hard sensor data.
[0305] Exemplarily, the sensors that the electronic device needs to call to generate the target animation may include hardware sensors and virtual sensors. In the embodiment of the present application, the hardware sensor is the hardware physically present in the electronic device, and the hardware sensor may be an IMU sensor, and the IMU sensor may include ACC and GYRO.
[0306] Virtual sensors, also called software sensors or synthetic sensors, are not physically present hardware and are generated by combining and processing data from other hardware sensors. Virtual sensors can include rotation vector sensors and linear acceleration sensors.
[0307] Among them, the rotation vector sensor (Game Rate of Turn Velocity, Game ROTV) can be realized by fusing the data of ACC and GYRO through an algorithm, and can provide three-dimensional rotation vector information about the electronic device, with good high-frequency filtering capabilities and good low-frequency motion characteristics. The linear acceleration sensor (Linear Acceleration, Linear ACC) can measure the linear acceleration of the electronic device without the influence of gravity, with good low-frequency filtering capabilities and good high-frequency motion characteristics.
[0308] The sensor data in the embodiment of the present application may include data of an acceleration sensor, data of a gyroscope sensor, data of a rotation vector sensor, and data of a linear acceleration sensor. It should be understood that the sensor data may be collected by the sensors corresponding thereto.
[0309] Exemplarily, Game ROTV fuses the acceleration data and the gyroscope data, for example, using a Kalman filter, a compensation filter, a nonlinear observer, etc. to fuse the acceleration data and the gyroscope data to obtain a three-axis rotation vector. It should be understood that the rotation vector fuses the data collected by the acceleration sensor and the gyroscope sensor respectively, and this fusion method can provide more stable and accurate direction data.
[0310] For example, we identify posture changes (such as changes in pitch angle, roll angle, and yaw angle) as low-frequency motion, which has low-frequency motion characteristics, and acceleration changes as high-frequency motion, which has high-frequency motion characteristics. Then, Game ROTV can handle low-frequency motion well, and Linear ACC can handle high-frequency motion well, so that the electronic device can map the low-frequency motion and high-frequency motion felt by the user to the target animation well.
[0311] Optionally, in a possible implementation, a sampling frequency may be preset. The sampling frequency is usually measured in Hertz (Hz), which indicates the number of times sensor data is collected per second. In the present application, the sampling frequency may be dynamically adjusted according to parameters such as the type, performance, power, storage space, etc. of the electronic device to optimize the performance and resources of the electronic device.
[0312] S102: Determine the Euler angle according to the sensor data.
[0313] Exemplarily, the quaternion of the electronic device's posture is obtained through Game ROTV, and the quaternion is mathematically transformed to obtain a rotation matrix (also referred to as the first rotation matrix in this application), and the rotation matrix is converted into Euler angles. Euler angles can include Yaw angles, Pitch angles, and Roll angles.
[0314] Among them, the Pitch angle is the angle of rotation around the X-axis. It is greater than 0 when going downhill, the angle range of the Pitch angle can be -180~180, and it is 0 when horizontal; the Roll angle is the angle of rotation around the Y-axis. It is greater than 0 when tilted to the left, and the angle range of the Roll angle can be -90~90; the Yaw angle is the angle of rotation around the Z-axis. It is greater than 0 when turning right, and the angle range of the Yaw angle can be 0~360.
[0315] Quaternions are usually expressed as [b, c, d, a], where b, c, d, and a are the real and imaginary parts of the quaternion. The electronic device obtains the four components of the quaternion, that is, the components corresponding to b, c, d, and a, respectively, and adjusts the quaternion components according to the direction of the electronic device. After that, the quaternion is converted from the Android coordinate system to the conventional coordinate system, the horizontal direction of the quaternion is calculated, and then the rotation matrix is calculated based on the quaternion. The unit vectors of each axis (X-axis, Y-axis, Z-axis) are extracted from the rotation matrix, the modulus of the X-axis unit vector is calculated and the X-axis is normalized, and the Yaw angle (yaw angle), Pitch angle (pitch angle), and Roll angle (roll angle) are calculated. After obtaining the Yaw angle, Pitch angle, and Roll angle, it is equivalent to obtaining the real-time posture of the electronic device.
[0316] Optionally, in a possible implementation, the electronic device may not obtain data from the magnetic sensor, so that the Yaw angle in the Euler angle is a virtual dimension, that is, the Yaw angle is a relatively virtual measurement, while the Pitch angle and the Roll angle are consistent with the actual geographic coordinates.
[0317] Exemplarily, the four components of the quaternion can be obtained from the sensor data using a preset program code, and the components of the quaternion can be adjusted according to the posture of the electronic device. Among them, the posture (horizontal screen posture) of the electronic device can be a rotation of 90°, or a rotation of 270°, etc. The first rotation matrix is calculated based on the adjusted quaternion, and the first rotation matrix is converted into Euler angles. It is worth noting that a rotation of 90° means that the electronic device is rotated 90° to the left from the vertical direction, and a rotation of 270° means that the electronic device is rotated 90° to the right from the vertical direction.
[0318] S103, obtaining angular velocity data of three axes through a gyroscope sensor.
[0319] Exemplarily, the electronic device acquires gyroscope data collected by a gyroscope sensor. The gyroscope data collected by the gyroscope sensor includes the rotation rate of the electronic device around each axis (X axis, Y axis, Z axis), and the direction conforms to the right-hand rule. The unit of the gyroscope data is degree per second (° / s) or radian per second (rad / s).
[0320] Optionally, in a possible implementation, the original gyroscope data may contain noise and deviation. In the embodiment of the present application, the original gyroscope data may be calibrated and denoised to improve the data quality.
[0321] S104. Determine the linear acceleration on the horizontal plane through a rotation matrix according to the linear acceleration data and the Euler angle.
[0322] Exemplarily, the linear acceleration data of the electronic device is registered and obtained using Android system services (such as SensorManager). For example, an interface (such as SensorEventListener) is registered using SensorManager to receive the linear acceleration data obtained by the linear acceleration sensor. The linear acceleration data provides the linear acceleration vector of the electronic device, which removes the influence of gravity acceleration compared to the acceleration data.
[0323] Game ROTV can be used to obtain the Euler angles corresponding to the current electronic device, such as the Pitch angle and the Roll angle.
[0324] The Pitch angle and the Roll angle are used to construct a rotation matrix (also referred to as the second rotation matrix in this application), which is used to convert the linear acceleration data from the coordinate system of the electronic device to the horizontal coordinate system. That is, the actual linear acceleration of the electronic device is converted to the horizontal coordinate system through the rotation matrix. It can be understood that by applying the linear acceleration data to the rotation matrix, the acceleration data on the horizontal plane can be obtained, and the target animation is generated using the converted acceleration data. It can be generally understood that the Pitch angle and the Roll angle are angles relative to the earth coordinate system, and converting them to horizontal angles is equivalent to converting these two angles back.
[0325] In the prior art, the acquired linear acceleration is directly used for mapping. This method can only ensure the accuracy of the acceleration data when the electronic device is used vertically. When the electronic device is used in other postures, the acceleration data will be inaccurate. In this application, the linear acceleration data is converted into horizontal linear acceleration data, so that no matter what posture the user takes when using the electronic device, the form of acceleration felt by the body remains unchanged. Therefore, the target animation is generated using the converted horizontal linear acceleration data, which can make the motion information fed back by the target animation more consistent and more consistent with the motion information actually felt by the user, thereby improving the user experience.
[0326] The rotation matrix used in the above implementation is as follows:
[0327]
[0328] Among them, θ=-Pitch, α=-Roll, x, y, z respectively represent the three-axis linear acceleration of the electronic device directly obtained, and x′, y′, z′ respectively represent the three-axis linear acceleration mapped to the horizontal coordinate system.
[0329] It is worth noting that the mapping method provided in the present application is also applicable to mapping the three-axis angular velocity data obtained by the gyroscope sensor to the horizontal coordinate system, and executing other processes based on the angular velocity data of the horizontal coordinate system.
[0330] For example, the angular velocity data of the three axes are V X 、V Y 、V Z , converted to the horizontal coordinate system as follows:
[0331] Among them, θ=-Pitch, α=-Roll, V′ X , V′ Y , V′ Z Respectively represent the angular velocities of the three axes mapped to the horizontal coordinate system.
[0332] S105: Filter the linear acceleration data.
[0333] The linear acceleration of the three axes (X, Y, and Z) is represented by acc_x, acc_y, and acc_z respectively, and the unit is usually meters per second squared (m / s 2 ).
[0334] The high-frequency components and bandwidth of acceleration on the three axes are relatively high. For example, in signal processing, the acceleration signal can be decomposed into components of different frequencies. The high-frequency component refers to the part of the signal that changes rapidly and has a short period. Bandwidth refers to the frequency range that the acceleration sensor can measure. A higher bandwidth means that the acceleration sensor can capture higher frequency movements or vibrations.
[0335] Since the high-frequency components and bandwidth of the acceleration on the three axes are relatively high, the use of an acceleration sensor may capture high-frequency noise. If the acceleration data of the three axes collected by the acceleration sensor is directly used, it may cause the target animation to vibrate, affecting the user experience. In order to avoid this, in the display method provided by this application, the linear acceleration data is filtered.
[0336] Exemplarily, a filtering algorithm may be used to filter the linear acceleration data. The filtering algorithm may include sliding average filtering, Kalman filtering, low-pass filtering, exponential moving average filtering, median filtering, and other algorithms. Specifically, the design parameters of the filter, such as the type of filter, cutoff frequency, sampling time, etc., are determined, the selected filtering algorithm is implemented in the program code, and the filtering algorithm is applied to the original linear acceleration data to obtain the linear acceleration data after filtering.
[0337] The sensor data collected by the electronic device is processed and mapped into a target animation, so that the target animation can map the different driving / motion states of the vehicle in real time. Since the user's eyes are basically consistent with the electronic device, when the user watches the target animation, the motion information perceived by the eyes is consistent with the motion information perceived by the vestibular system, that is, the motion state of the target animation in the display interface seen by the user's eyes is consistent with the motion state of the vehicle relative to the ground perceived by the vestibular system. This can reduce the conflict between the user's vision and the motion state perceived by the vestibular system, that is, the target animation can provide the user with visual feedback that is coordinated with the vestibular system, thereby alleviating the user's motion sickness.
[0338] Animation principles 1. The target animation maps out the principle of ups and downslope and ups and downs animation effects.
[0339] When a user uses an electronic device in a vehicle, the motion state of the vehicle is basically the same as that of the electronic device. Therefore, when the vehicle is moving up and downhill, the pitch angle of the vehicle will change, and accordingly, the pitch angle of the electronic device will also change. Similarly, when the vehicle is experiencing up and down bumps, the acceleration of the vehicle on the Z axis will change, and accordingly, the acceleration of the electronic device on the Z axis will also change.
[0340] Uphill and downhill movement is a low-frequency movement, and the movement information displayed is low-frequency information; up and down bumping is a high-frequency movement, and the movement information displayed is high-frequency information. In the embodiment of the present application, the low-frequency information of the pitch angle change of the electronic device when going up and downhill, and the high-frequency information of the Z-axis acceleration acc_z when bumping up and down, are mapped to the vertical movement of the target animation, for example, mapped to the synchronous vertical movement of the element group (such as the track group).
[0341] For example, when it is detected that the pitch angle is less than the initial pitch angle, and / or the X-axis linear acceleration is greater than the first acceleration threshold, it is determined that the vehicle is in an uphill and / or up-bumping motion state; when it is detected that the pitch angle is not less than the initial pitch angle, and / or the X-axis linear acceleration is less than the first acceleration threshold, it is determined that the vehicle is in a downhill and / or down-bumping motion state. The first acceleration threshold can be set and adjusted according to actual conditions, for example, the first acceleration threshold can be 0, 5, 10, 15, etc., and there is no limitation on this.
[0342] Exemplarily, the low-frequency information of the pitch angle change is mapped to the target animation, and the animation effect presented is that when the vehicle moves uphill, the pitch angle decreases, and the position of the track group moves downward, or the track group moves downward synchronously; when the vehicle moves downhill, the pitch angle increases, and the position of the track group moves upward, or the track group moves upward synchronously.
[0343] Exemplarily, the high-frequency information of acc_z is mapped to the target animation, and the animation effect presented is that when acc_z is greater than 0, the acceleration is upward, and the track group position moves downward, or the track group moves downward; when acc_z is less than 0, the acceleration is downward, and the track group position moves upward, or the track group moves upward.
[0344] Optionally, the pixel value of each vertical movement of the track group can be pre-set to facilitate the track group to move up or down according to the set pixel value. For example, it is detected that the track group moves downward by a first pixel value for each unit angle change in slope (such as 1°, 2°, 3°, etc.). Among them, the first pixel value can be set to 20, 40, 60, 80, etc. For another example, it is detected that the track group moves upward by a second pixel value for each unit angle change in slope (such as 1°, 2°, 3°, etc.). Among them, the second pixel value can be set to 10, 20, 30, 40, 60, 80, etc.
[0345] See also Fig.9A and Fig. 9B , Fig.9A and Fig. 9B This is a schematic diagram of an animation effect principle shown in an embodiment of the present application. Fig.9A As shown, when the Pitch angle increases and / or acc_z is less than 0, the track groups on the left and right sides move upward; Fig. 9B As shown, when the pitch angle decreases and / or acc_z is greater than 0, the track groups on the left and right sides move downward.
[0346] Optionally, in a possible implementation, the initial position of the track group in the target animation is pre-set. The initial position is used to display the track group at the initial position when the target animation is first displayed on the display interface. The initial position can be set and adjusted according to actual conditions, and there is no limitation on this. In this example, the initial position can be the middle area of the screen / display interface, such as Figure 2B For example, when the target animation is displayed for the first time on the display interface, the Pitch angle is read as the initial Pitch angle, and when the Pitch angle is detected to be equal to the initial Pitch angle, the target animation is displayed in the middle area of the screen / display interface.
[0347] Optionally, in one possible implementation, when the target animation is first displayed at the initial position of the display interface, the initial pitch angle is recorded, and the initial angle change range is calculated based on the initial pitch angle to control the movement amplitude of the track group, that is, the maximum change angle of the initial Pitch angle from the completely horizontal or completely vertical state of the electronic device. In this way, when the track group in the target animation moves according to the angle change, the target animation will not completely move out of the screen, and the movement range can be maximized, so that the animation effect brings a better experience to the user and improves user acceptance. For example, when the difference between the current pitch angle and the initial Pitch angle is within the maximum positive and negative change angle range, the pitch linear mapping slope can be set to ±540. Fig.9A As shown, the slope of the pitch linear mapping corresponding to the two track groups is 540; Fig. 9B As shown, the slope of the pitch linear mapping corresponding to the two track groups is -540. This is only an exemplary description and is not limited to this.
[0348] It is worth noting that, according to the user's habit of using electronic devices, the initial Pitch angle is generally set within the range of -90° to 0°.
[0349] Animation Principle 2. The target animation maps the principle of the animation effect of left and right and horizontal acceleration changes.
[0350] When a user uses an electronic device in a vehicle, the motion state of the vehicle is basically the same as that of the electronic device. Then, when the vehicle tilts left or right, the roll angle of the vehicle will change, and accordingly, the roll angle of the electronic device will also change. Similarly, when the acceleration of the vehicle on the X-axis changes, the acceleration of the electronic device on the X-axis will also change.
[0351] The left-right tilting motion is a low-frequency motion, and the motion information displayed is low-frequency information; the left-right bumping motion is a high-frequency motion, and the motion information displayed is high-frequency information. In the embodiment of the present application, the low-frequency information of the roll angle change of the electronic device when tilting left-right and the high-frequency information of the X-axis acceleration acc_x when bumping left-right are mapped to the reverse vertical movement of the target animation, for example, mapped to the reverse vertical movement of the element group (such as two track groups).
[0352] For example, when it is detected that the roll angle is greater than the initial roll angle, and / or the X-axis linear acceleration is greater than the first acceleration threshold, it is determined that the vehicle is in a left tilt and / or left bump motion state; when it is detected that the roll angle is not greater than the initial roll angle, and / or the X-axis linear acceleration is less than the first acceleration threshold, it is determined that the vehicle is in a right tilt and / or right bump motion state. The initial roll angle can be set and adjusted according to actual conditions, for example, the initial roll angle can be 0 degrees, 5 degrees, 10 degrees, etc., and there is no limitation on this.
[0353] Exemplarily, the low-frequency information of the Roll angle change is mapped to the target animation, and the animation effect presented is that when the vehicle tilts to the left, the Roll angle increases, the left track group moves up, and the right track group moves down; when the vehicle tilts to the right, the Roll angle decreases, the left track group moves down, and the right track group moves up.
[0354] Exemplarily, the high-frequency information of acc_x is mapped to the target animation, and the animation effect presented is that when acc_x is greater than 0, the acceleration is to the right, the left track group moves up, and the right track group moves down; when acc_x is less than 0, the acceleration is to the left, the left track group moves down, and the right track group moves up.
[0355] Optionally, the pixel values of each asynchronous vertical movement of the two track groups can be pre-set to facilitate the two track groups to move up or down according to the set pixel values. For example, for each unit angle increase (such as 1°, 2°, 3°, etc.) of the Roll angle, the left track group moves up by a third pixel value, and the right track group moves down by a fourth pixel value. For another example, for each unit angle decrease (such as 1°, 2°, 3°, etc.) of the Roll angle, the right track group moves up by a third pixel value, and the left track group moves down by a fourth pixel value. Among them, the third pixel value and the fourth pixel value can be set to 20, 40, 60, 80, etc., without limitation.
[0356] See also Fig. 9C and Fig.9D , Fig. 9C and Fig.9D FIG. 2 is another schematic diagram of the principle of animation effect shown in the embodiment of the present application. Fig. 9CAs shown, when the vehicle tilts to the left, the Roll angle increases, the left track group moves up, and the right track group moves down; and / or when acc_x is greater than 0, the acceleration is to the right, the left track group moves up, and the right track group moves down.
[0357] like Fig.9D As shown, when the vehicle tilts to the right, the Roll angle decreases, the left track group moves down, and the right track group moves up; and / or when acc_x is less than 0, the acceleration is to the left, the left track group moves down, and the right track group moves up.
[0358] Optionally, in the embodiment of the present application, the slope of the roll linear mapping can be set to 540. Fig. 9C As shown, the slope of the roll linear mapping corresponding to the two track groups is 540; Fig.9D As shown in the figure, the slope of the roll linear mapping corresponding to the two track groups is -540. This can prevent the target animation from completely moving out of the screen, while maximizing the range of movement, so that the animation effect brings a better user experience.
[0359] Optionally, the present application also provides an animation effect of a target animation, in which the two track groups rotate around the Z axis while moving in opposite directions to the left and right, thereby achieving a left-right tilted guiding vision on the target animation. Fig.9E , Fig.9E This is a schematic diagram of an embodiment of the present application showing a rotation around an axis. Fig.9E As shown, the Z axis refers to the direction perpendicular to the screen / display interface, and the track group itself rotates inward around the Z axis.
[0360] See also Fig.9F , Fig.9F FIG. 2 is another schematic diagram of the principle of animation effect shown in the embodiment of the present application. Fig.9F As shown, when roll=45 degrees is tilted to the left, each animation element in the target animation rotates -45 degrees around its own center point.
[0361] Animation Principle 3. The target animation maps out the animation effect principle of the vehicle's acceleration and deceleration movement.
[0362] When simulating the animation effect of a vehicle in acceleration / deceleration driving / movement state through target animation, in order to simulate the real movement effect in the 3D world, the application uses the principle of camera movement animation and adds camera movement animation to the animation corresponding to the simulation acceleration / deceleration. Figure 9G , Figure 9G FIG. 2 is another schematic diagram of the principle of animation effect shown in the embodiment of the present application. Figure 9GAs shown, all UX objects can be considered to be on a plane. The perspective camera that renders the target animation is equivalent to the user's eyes. When the distance between the camera and the target animation plane is changed, the target animation will also show the effect of perspective changes in position and size.
[0363] Among them, all UX objects refer to all objects related to the User Experience (UX) in the 3D scene. These objects can be elements that users can see, interact with or perceive, such as animation elements, interface controls, icons, texts, graphics, etc.
[0364] For example, when it is detected that the Y-axis linear acceleration is greater than the second acceleration threshold, it is determined that the vehicle is in an accelerated motion state; when it is detected that the Y-axis linear acceleration is less than the second acceleration threshold, it is determined that the vehicle is in a decelerated motion state. The second acceleration threshold can be set and adjusted according to actual conditions, for example, the second acceleration threshold can be 0, 5, 10, 15, etc., and there is no limitation on this.
[0365] Optionally, in a possible implementation, the perspective camera's viewing angle range, the distance between the near plane and the far plane of the cone, the initial distance from the target animation plane and other parameters can be set according to actual conditions, so that the track group is located in a position on the screen / display interface that is visually comfortable for the user. For example, the perspective camera's viewing angle range FOV can be set to 67, the distance between the near plane and the far plane of the cone is set to 1 and 2000 respectively, and the initial distance INIT_POS from the target animation plane is set to 1000 (at this time, the track group is just located on both sides of the screen), acc_y>0 in the acceleration scene, the distance between the camera and the target animation plane is reduced, and acc_y<0 in the deceleration scene, and the distance cam_pos between the camera and the target animation plane is increased.
[0366] Optionally, in a possible implementation, in order to strengthen the visual feedback that the target animation brings to the user, vertical movement animation and near large and far small scaling animation are added to the animation corresponding to the simulated acceleration and deceleration. For example, when accelerating, the electronic device (such as a mobile phone) moves toward the eyes, which is equivalent to the camera moving toward the screen / display interface, mapped to the perspective effect of the target animation, and presented as the element group (such as two track groups) enlarged, while the element group (such as two track groups) moves downward. When decelerating, the electronic device (such as a mobile phone) moves away from the eyes, which is equivalent to the camera moving away from the screen / display interface, mapped to the perspective effect of the target animation, and presented as the element group (such as two track groups) shrinking, while the element group (such as two track groups) moves upward.
[0367] Optionally, for this scene, you can pre-set the pixel value of the track group movement under unit Y-axis acceleration (such as 30, 40, 50, 60, etc.), the scaling ratio of the track group under unit Y-axis acceleration (such as 0.1, 0.2, 0.3, etc.), and the final mapping ratio of the track group (such as upper and lower limits of 0.2 to 2, 0.1 to 1, etc.), so as to control the track group according to the set pixel value, scaling ratio and mapping ratio, thereby presenting a more realistic animation effect to the user.
[0368] See also Figure 9H and Fig.9I , Figure 9H and Fig.9I FIG. 2 is another schematic diagram of the principle of animation effect shown in the embodiment of the present application. Figure 9H As shown in , when the vehicle accelerates and acc_y>0, the track groups on the left and right sides move downward, and the track groups on the left and right sides expand. Fig.9I As shown, when the vehicle slows down and acc_y<0, the track groups on the left and right sides move upward, while the track groups on the left and right sides shrink.
[0369] Animation Principle 4. The target animation maps out the animation effect principle of the vehicle's left and right turning movement.
[0370] For example, if the yaw angle is detected to be reduced compared to the initial yaw angle, it is determined that the vehicle is in a left turn motion state; if the yaw angle is detected to be continuously reduced, it is determined that the vehicle is continuously in a left turn motion state; if the yaw angle is detected to be increased compared to the initial yaw angle, it is determined that the vehicle is in a right turn motion state; if the yaw angle is detected to be continuously increased, it is determined that the vehicle is continuously in a right turn motion state. Among them, the initial yaw angle can be set and adjusted according to actual conditions. For example, the initial yaw angle can be 0 degrees, 5 degrees, 10 degrees, etc., and there is no limitation on this.
[0371] This application uses a looping animation to simulate the animation effect of a vehicle turning left or right. Figure 9J , Figure 9J This is a schematic diagram of a loop animation principle shown in an embodiment of the present application. Figure 9J As shown in the figure, the ball is initially located at the center of the left track, and then the position of the ball is periodically mapped according to the change of the Yaw angle (heading angle), which can be understood as the ball making a circular motion in the left and right tracks. It is worth noting that the Yaw angle is the Yaw angle in the Euler angle converted based on GAME ROTV.
[0372] When the vehicle turns left, the animation effect mapped to the target animation is that the Yaw angle decreases, the ball moves from the left track to the right, and when the ball completely moves out of the left track (that is, the ball completely moves out of the right side of the left track), it enters the left side of the right track. If the Yaw angle continues to decrease, when the ball completely moves out of the right track (that is, the ball completely moves out of the right side of the right track), it enters the left side of the left track. If the Yaw angle continues to decrease, the ball performs a circular motion.
[0373] When the vehicle turns right, the animation effect mapped to the target animation is that the Yaw angle increases, the ball moves from the right track to the left, and when the ball completely moves out of the right track (that is, the ball completely moves out of the left side of the right track), it enters the right side of the left track. If the Yaw angle continues to increase, when the ball completely moves out of the left track (that is, the ball completely moves out of the left side of the left track), it enters the right side of the right track. If the Yaw angle continues to increase, the ball performs a circular motion.
[0374] See also Figure 9K , Figure 9K This is another schematic diagram of the principle of a loop animation shown in an embodiment of the present application. Figure 9K As shown, there are 3 small balls in each track, and the distance between the small balls is the track length d.
[0375] In order to enhance the user's visual experience and make the target animation more concise, different display modes are set for the three balls, so that the balls outside the track area are hidden. It should be understood that this does not limit the number of balls and the display mode of the balls in the actual application scenario. For example, the number of balls in the actual application scenario can be more than Figure 9K The number shown can be more or less, the balls outside the track area can be visible or partially hidden, the spacing between the balls can be adjusted, and so on.
[0376] For example, each track implements a looping animation. For example, three balls are numbered 2, 0, and 1 from left to right. When the looping animation is implemented, the three balls move as a whole, and the x-coordinate center is located at the center of ball 0. Figure 9K The animation effect of x at different positions is shown in Figure 2.
[0377] Optionally, for each side of the track, the circular movement of the ball in the track can be achieved by a sawtooth wave function in the present application. For example, the x and Yaw angles are made to satisfy the sawtooth wave function, and the sawtooth wave function is as follows:
[0378] x=-d(yaw / T+0.5-floor(yaw / T+0.5))+d / 2
[0379] See also Figure 9L , Figure 9LThis is a function diagram shown in an embodiment of the present application. Figure 9L As shown, d represents the spacing between the balls, T represents the mapping period, and the Yaw angle can be set and adjusted according to the actual scenario. In this example, it is designed to be 18°.
[0380] Optionally, an embodiment of the present application further provides a display method, which adjusts the transparency of the target animation according to different driving / movement states of the simulated vehicle, so that the target animation presents a gradually fading or gradually appearing animation effect.
[0381] Exemplarily, the electronic device determines the different motion states (or motion scenes) that the vehicle is currently in based on the collected sensor data, and adjusts the transparency of the animation elements based on the different motion states. For example, the transparency of the track element (such as the track) and the movable element (such as the ball) included in the animation element is adjusted to generate a fading animation or a fading animation, so that the track element (such as the track) and the movable element (such as the ball) present a fading or fading animation effect.
[0382] It is worth noting that the process of adjusting the transparency of the animation element, or the transition from fade-in animation to fade-out animation and from fade-in animation to fade-out animation, is a smooth and continuous process. This transition method enhances the visual effect, makes the target animation look more natural, and improves the user experience.
[0383] Optionally, in a possible implementation, the electronic device can adaptively adjust the animation transition time, for example, the transition time (represented by tween_time in this example) is set to 1 second, 1.5 seconds, 2 seconds, etc. Optionally, the user can also set the animation transition time according to his or her own preferences, which can enhance the user's personalized experience.
[0384] The following uses the track element as the track and the movable element as the ball as an example to illustrate the logic of adjusting transparency.
[0385] For example, for a small ball, when the electronic device detects that the vehicle is in a non-steady / uniform motion state, the opacity of the small ball is increased / increased, or the transparency of the small ball is reduced / lowered, and the small ball presents a gradually appearing animation effect; when the electronic device detects that the vehicle is in a stable / uniform motion state, the opacity of the small ball is reduced / lowered, or the transparency of the small ball is increased / increased, and the small ball presents a gradually disappearing animation effect. Among them, the non-steady / uniform motion state can include a turning motion state, an uphill and downhill motion state, a left and right bumping motion state, a left and right tilting motion state, an up and down bumping motion state, an acceleration and deceleration motion state, etc.
[0386] In this example, the vehicle is in a turning motion state. For example, the angle between the electronic device and the horizontal plane is defined as θ (0<θ<90°), and the angular velocity of the yaw angle of the electronic device is (can be obtained through the gyroscope sensor), then θ and The relationship is as follows:
[0387]
[0388] When the angular velocity of the Yaw angle is greater than the first angular velocity threshold, for example , the ball gradually appears in the animation, and the opacity transitions from the first opacity value to the second opacity value and remains constant; when the angular velocity of the Yaw angle is less than or equal to the first angular velocity threshold, for example or When the ball fades out, the animation is played, and the opacity transitions from the second opacity value to the first opacity value and remains. For example, the first opacity value can be set to 100, 110, etc., and the second opacity value can be set to 230, 255, etc. The opacity values here are only shown as examples, and the setting of opacity values in actual scenes is not limited.
[0389] Optionally, in a possible implementation, when the angular velocity of the Yaw angle is greater than or equal to the first angular velocity threshold, for example , the ball gradually appears in the animation, and the opacity transitions from the first opacity value to the second opacity value and remains constant; when the angular velocity of the Yaw angle is less than the first angular velocity threshold, for example , the ball fades out animation and the opacity transitions from the second opacity value to the first opacity value and remains there.
[0390] Exemplarily, for the track, when the electronic device detects that the vehicle is in a non-steady / uniform motion state, it increases / increases the opacity of the track, or decreases / lowers the transparency of the track, and the track presents a gradually appearing animation effect; when the electronic device detects that the vehicle is in a stable / uniform motion state, it decreases / lowers the opacity of the track, or increases / increases the transparency of the track, and the track presents a gradually disappearing animation effect.
[0391] Optionally, when the pixel value moved by the track groups on the left and right sides exceeds the first moving threshold value within the single-frame rendering time, the track fade-in animation is played, and the opacity transitions from the third opacity value to the fourth opacity value and is maintained; when the single-frame moving pixel value does not exceed the first moving threshold value, the track fade-out animation is played, and the opacity transitions from the fourth opacity value to the third opacity value and is maintained. For example, the third opacity value can be set to 100, 120, etc., and the fourth opacity value can be set to 220, 255, etc. The opacity values here are only shown as examples, and the setting of the opacity values in actual scenes is not limited.
[0392] It is understandable that the first movement threshold and the single frame rendering time can be set and adjusted according to the actual scene, and there is no limitation on this. In this example, the first movement threshold can be set to 1, 2, 3, etc., and the single frame rendering time is 33.33ms at 30Hz, 16.67ms at 60Hz, 11.11ms at 90Hz, 8.33ms at 120Hz, 6.94ms at 144Hz, 4.17ms at 240Hz, etc.
[0393] It is worth noting that in the embodiment of the present application, when the track element (such as the track) and the movable element (such as the ball) respectively meet their corresponding gradual appearance conditions or gradual disappearance conditions, their corresponding transparency can be adjusted at the same time.
[0394] In this implementation, when the vehicle is in a steady / uniform motion state, the opacity of the track elements and movable elements is reduced, thereby reducing the presence of the target animation and the intrusion of the target animation on the screen / display interface, which is conducive to users concentrating on browsing the content of the page; when the vehicle is in a non-steady / uniform motion state, the opacity of the track elements and movable elements is increased, and the feedback of the target animation is strengthened, which helps to keep the motion information perceived by the user's eyes consistent with the motion information perceived by the vestibular system, thereby better alleviating the user's motion sickness symptoms.
[0395] Optionally, in a possible implementation, it is also possible to detect whether the user is looking at the target animation, and adjust the transparency of the target animation according to the detection result, so that the target animation presents a fading or gradually appearing animation effect. For example, if it is detected that the user is looking at the target animation, the opacity of the target animation is increased / increased, and the target animation presents a gradually appearing animation effect; if it is detected that the user is not looking at the target animation, the opacity of the target animation is reduced / lowered, and the target animation presents a fading animation effect. For another example, the electronic device detects that the vehicle is in a non-steady / uniform motion state, and detects that the user is looking at the target animation, and increases / increases the opacity of the target animation, and the target animation presents a gradually appearing animation effect; the electronic device detects that the vehicle is in a non-steady / uniform motion state, and detects that the user is not looking at the target animation, and reduces / lowers the opacity of the target animation, and the target animation presents a fading animation effect. This is only an exemplary description and is not limited to this.
[0396] For easier understanding, see Figure 9M , Figure 9M A schematic diagram of the transparency change process provided in an embodiment of the present application.
[0397] like Figure 9MThe transparency animation switching logic shown is that the electronic device detects whether the movement of the track group on either side exceeds the first movement threshold. If the movement of the track group on either side exceeds the first movement threshold, it proves that the vehicle is currently in a non-steady / uniform motion state, and the electronic device can turn on the reduced transparency mode. After turning on the reduced transparency mode, the electronic device detects whether the gradual animation starts playing. If the gradual animation starts playing, this branch of the process ends. If the gradual animation does not start playing, the track elements (such as tracks) and movable elements (such as balls) are controlled to play the gradual animation, and this branch of the process ends.
[0398] If the movement of the track group on either side does not exceed the first movement threshold, continue to detect whether the horizontal angular velocity of the electronic device exceeds the first angular velocity threshold. If the horizontal angular velocity exceeds the first angular velocity threshold, it proves that the vehicle is currently in a non-steady / uniform motion state, and the electronic device can turn on the reduced transparency mode.
[0399] If the horizontal angular velocity does not exceed the first angular velocity threshold, it proves that the vehicle is currently in a stable / uniform motion state, and the electronic device can automatically turn on the transparency mode. After turning on the transparency mode, the electronic device detects whether the fade-in animation starts playing. If the fade-in animation starts playing, this branch of the process ends. If the fade-in animation does not start playing, the track element (such as the track) and the movable element (such as the ball) are controlled to play the fade-in animation, and this branch of the process ends.
[0400] See also Figure 9N , Figure 9N This is a general flow chart provided for the embodiments of the present application. Figure 9N As shown, the electronic device detects the current motion mode and determines whether to turn on the anti-motion sickness function / mode based on the current motion mode. In the embodiments of the present application, the anti-motion sickness function / mode is also referred to as the motion sickness relief function / mode, or the anti-motion sickness function / mode, etc.
[0401] Exemplarily, the electronic device acquires sensor data, extracts characteristic data such as speed, acceleration, direction change, etc. from the sensor data, and processes the characteristic data using a preset algorithm to identify the current motion mode.
[0402] The preset algorithms may include machine learning algorithms, motion pattern recognition algorithms, self-developed motion capability recognition algorithms, etc. The self-developed motion capability recognition algorithm can recognize the user's walking, running, riding, and other motion patterns.
[0403] Optionally, in a possible implementation, the electronic device may obtain the motion mode from an application, for example, obtaining the current motion mode of the electronic device from a navigation application, a taxi-hailing application, and the like.
[0404] Optionally, in a possible implementation, if the user has multiple associated devices, the current motion mode of the electronic device can also be determined by synchronizing sensor data of other associated devices. It is worth noting that the other associated devices need to be kept within a certain distance range from the electronic device.
[0405] If the current motion mode is a mode that may cause motion sickness to the user, such as a car mode, a boat mode, an airplane mode, etc., the electronic device automatically turns on the anti-motion sickness function / mode. It should be understood that the user can also choose to manually turn on the anti-motion sickness function / mode according to their current motion mode.
[0406] After turning on the anti-sickness function / mode, on the one hand, the electronic device obtains sensor data through hardware sensors and virtual sensors, and processes the sensor data based on virtual sensors, algorithms, etc. to obtain data such as Euler angles, three-axis angular velocity, and three-axis linear acceleration in the horizontal coordinate system. On the other hand, the electronic device loads the elements required for the target animation and performs operations such as parameter initialization; starts the sensor function and sets the sampling frequency of the sensor; based on data such as Euler angles, three-axis angular velocity, and three-axis linear acceleration in the horizontal coordinate system, calculates and updates the parameters corresponding to each element (such as position, color, transparency, tilt angle, display size, moving direction, moving amount, etc.), and renders the target animation based on the updated parameters.
[0407] Optionally, in this application, the frequency of rendering the target animation can be set according to the type, performance, power, storage space and other parameters of the electronic device, or the update frequency of the target animation can be set, such as setting the update interval to 1 / s rendering frame rate. In this implementation, the frequency of customizing the rendering of the target animation can ensure the smoothness of the target animation, bring a better visual experience to the user, and also help to reasonably allocate the resources of the electronic device and save the power consumption of the electronic device.
[0408] It is worth noting that the window corresponding to the target animation provided by the present application is a floating window, which can be displayed floatingly above the lower page (such as the page corresponding to the application, the system interface, etc.) without blocking or interfering with the normal use of the lower page. In other words, the target animation provided by the present application is displayed above the lower page in the form of a floating window. Since the floating window is transparent and penetrable, the user can browse the content of the lower page normally when watching the target animation, and can also penetrate the target animation and interact normally with the lower page. In this implementation, the target animation is displayed in the form of a floating window, which can alleviate the user's motion sickness while not affecting the user's browsing and interaction with the page, thereby improving the user experience.
[0409] Optionally, in a possible implementation, the display method provided by the present application further includes: generating different anti-motion sickness modes according to different motion sickness scenarios. The motion sickness scenario refers to a scenario that may cause motion sickness in the user, which may include a car scene, a subway scene, a ship scene, an airplane scene, and the like.
[0410] For example, through environmental perception and user status, it is determined that the user is in a riding scenario; according to the different driving / motion states of the vehicle, the corresponding anti-motion sickness mode is customized for the riding scenario.
[0411] Optionally, in a possible implementation, the display method provided by the present application further includes: customizing different anti-motion sickness modes for users with different needs in motion sickness scenarios. Users with different needs may include users with work needs (i.e., users who need to work in motion sickness scenarios) and users with entertainment needs (such as playing games, watching TV series, reading, painting, listening to music, etc.).
[0412] Optionally, in a possible implementation, these customized anti-motion sickness modes may also be integrated into the auxiliary functions of the electronic device, so that users can independently select different anti-motion sickness modes according to their own needs.
[0413] This personalized anti-motion sickness mode can meet the needs of various users, alleviating user motion sickness while improving the user experience.
[0414] Optionally, in a possible implementation, the display method provided by the present application further includes: the electronic device obtains the current screen mode, and adaptively switches the display mode of the target animation according to the screen mode. The screen mode may include a horizontal screen mode, a vertical screen mode, a split screen mode, a folding screen mode, etc.
[0415] The following is an example of automatically switching the animation ratio to adapt to the screen between the landscape mode and the portrait mode. Figure 4B The screen mode shown is the portrait mode. Figure 4D The screen mode shown is the horizontal screen mode. Exemplarily, during the switching process between the horizontal and vertical screen modes, the actual coordinate system of the sensor needs to be adjusted.
[0416] For example, when the portrait mode is switched to the landscape mode, the quaternion is twisted through Game ROTV to obtain a new quaternion for the electronic device; the new quaternion is processed through the aforementioned first rotation matrix to calculate the Euler angle of the electronic device in the landscape mode; based on the Euler angle in the landscape mode and the third rotation matrix, the linear acceleration of the electronic device in the horizontal coordinate system is calculated.
[0417] For example, a quaternion can be expressed as [b, c, d, a], and the torsion transformation of the quaternion is realized by the first formula or the second formula, and then the coordinate torsion transformation of the linear acceleration is performed by the third rotation matrix; the converted quaternion is then converted to Euler angles by the above formula; according to the Euler angles and the linear acceleration after the coordinate torsion transformation, horizontal projections in different directions are performed based on the above formula. Exemplarily, when the electronic device is turned 90° to the left, the torsion transformation of the quaternion is realized by the first formula, and when the electronic device is turned 90° to the right, the torsion transformation of the quaternion is realized by the second formula.
[0418] Among them, the first formula is as follows:
[0419]
[0420] The second formula is as follows:
[0421]
[0422] The third rotation matrix is as follows:
[0423]
[0424] In the third rotation matrix, the first matrix is a rotation matrix corresponding to a 90° left rotation, and the second matrix is a rotation matrix corresponding to a 90° right rotation.
[0425] In this implementation, the display mode of the target animation is adaptively switched according to the screen mode, so that the target animation responds to the change of the screen mode in a timely manner. It is highly flexible and adaptable, and can ensure that users can get the best viewing experience in any screen mode.
[0426] Optionally, in a possible implementation, considering that a user may use an electronic device in different postures, such as holding the electronic device vertically, laying the electronic device flat, etc., to ensure the continuous visibility of the target animation, the display position of the target animation may be reset when a posture change is detected. For example, when it is detected that a vertically held electronic device is changed to a laid flat electronic device, or a laid flat electronic device is changed to a vertically held electronic device, the display position of the target animation is reset to the first position (such as the middle of the screen).
[0427] Optionally, in a possible implementation, the display method provided in the present application can also automatically adjust the display position and / or display size of the target animation according to the size of the display interface.
[0428] For example, the target animation provided by the present application has wide applicability and can be applied to various types of electronic devices, such as mobile phones, smart screens, tablet computers, wearable devices (such as smart watches, smart glasses, smart bracelets, etc.), AR / VR devices, notebook computers, UMPCs, netbooks, PDAs, handheld or laptop devices, media players, smart projectors, smart TVs, desktop computers, in-vehicle infotainment systems, etc.
[0429] See also FIG. 10A to FIG. 10D , FIG. 10A to FIG. 10D Schematic diagram of some application scenarios of target animation provided in the embodiments of the present application. FIG. 10A to FIG. 10D As shown, the application scenarios of target animation on tablet, laptop, VR device, and vehicle-mounted central control screen are respectively shown. It should be understood that the description of target animation in the previous embodiments is applicable to tablet, laptop, VR device, and vehicle-mounted central control screen.
[0430] Optionally, in a possible implementation, the display method provided by the present application can also adjust the color of the target animation according to the color of the page currently displayed by the electronic device. For example, the main color tone of the display interface is extracted, and the display color of the animation element is adjusted according to the main color tone. The main color tone and the display color of the animation element can produce a contrast, so that the color of the page and the display color of the animation element produce a contrast, which is more conducive to the user to perceive the target animation and watch the target animation.
[0431] Exemplarily, the background color is extracted by color picking logic, the display color of the target animation is determined according to the background color, and the target animation is displayed in the display color. The background color is the color of the lower page of the current display area of the target animation. For example, when two track groups are displayed on both sides of the screen, the color of the lower page of the current display area of the two track groups is the background color, that is, the color of the page displayed on both sides of the screen.
[0432] Color logic refers to a series of algorithms and techniques used in an application or system to determine and obtain the color of a certain area.
[0433] Determining the display color of the target animation may be determining the display color of the track element and the movable element in the animation element. For example, the display color of the track and the ball is determined, and the display color enables the target animation to be clearly displayed on a page of any color. In an embodiment of the present application, the display color may be composed of any combination of the RGB color model, for example, the display color may include red, orange, yellow, green, cyan, blue, purple, etc.
[0434] Optionally, in a possible implementation, the display method provided by the present application may further include: personalized adjustment of animation parameters corresponding to the target animation, that is, the user may adjust the animation parameters corresponding to the target animation according to his or her own preferences. The animation parameters may include the sensitivity of the three-axis acceleration, the scaling ratio of the target animation, the position of the camera, the pitch mapping amplitude, the track color grayscale, the initial size, the color of the ball, the transparency, etc.
[0435] See also Fig.11A and Fig. 11B , Fig.11A and Fig. 11B A schematic diagram of a parameter adjustment interface provided in an embodiment of the present application. Fig.11A As shown, the target animation may also include a parameter adjustment interface, which includes an "adjust parameter" control 1101, a "reset" control 1102, a "hide" control 1103, and an animation parameter display area 1104. The animation parameter display area 1104 displays multiple animation parameters, an adjustment bar corresponding to each animation parameter, a parameter value corresponding to each animation parameter, and the like.
[0436] like Fig.11A As shown, the animation parameters may include: X-axis acceleration k_pos, Y-axis acceleration k_pos, Z-axis acceleration k_pos, Y-axis acceleration k_scale, Y-axis acceleration k_cam, Pitch mapping amplitude, track color grayscale, initial size, ball color R, ball color B, ball color G. The parameter values corresponding to each animation parameter may include: 40.0, 50.0, 40.0, 0.20, 20.0, 540.0, 0, 1.0, 217, 99, 111.
[0437] Among them, the "adjustment parameter" control 1101 is used to display the animation parameter display area 1104, so that the user can adjust the various animation parameters in the adjustment bar. For example, the user can drag the ball 11042 to the left or right in the adjustment bar 11041, or click anywhere in the adjustment bar 11041 to adjust the parameter value of the X-axis acceleration k_pos. Correspondingly, the parameter value on the right side of the adjustment bar 11041 will also change accordingly. It should be understood that the way of adjusting the animation parameters in this example does not limit the way of adjusting the animation parameters in the actual scene. For example, you can also click on the parameter value on the right to directly modify the number of the parameter value.
[0438] Optionally, controls for adjusting various animation parameters can be integrated into an adjustment control, and the animation parameters of the target animation can be adjusted with one click through the adjustment control, or the feedback degree of the target animation can be adjusted with one click. This implementation method makes it easier for users to adjust the overall animation effect of the target animation, reduces the difficulty of use, and improves the user experience.
[0439] The "reset" control 1102 is used to reset multiple animation parameters with one click, that is, to restore multiple animation parameters to initial values with one click, which is equivalent to initializing multiple animation parameters. For example, when the user clicks the "reset" control 1102, the electronic device responds to the user's operation of clicking the "reset" control 1102 and restores multiple animation parameters to initial values. The operation is simple and provides a comfortable experience for the user.
[0440] The "hide" control 1103 is used to hide the animation parameter display area 1104. For example, when the user clicks the "hide" control 1103, the electronic device hides the animation parameter display area 1104 in response to the user's operation of clicking the "hide" control 1103. Fig. 11B The interface shown is helpful for users to watch the target animation and browse the content of the page below the target animation.
[0441] Since each user has different visual sensitivities, the personalized method of adjusting animation parameters provided in the present application facilitates the user to adjust the target animation to a visual feedback intensity that suits him or her, thereby using the adjusted target animation to alleviate the user's motion sickness to a greater extent.
[0442] Optionally, in a possible implementation, the user can directly perform various functional operations on the target animation, such as click operation, drag operation, zoom operation (such as two-finger zoom operation), long press operation, etc. For example, the user clicks the target animation, and the electronic device responds to the click operation and switches the color of the target animation; the user drags the target animation, and the electronic device responds to the drag operation and moves the target animation to any position in the screen / display interface; the user performs a two-finger zoom operation on the target animation, and the electronic device responds to the two-finger zoom operation to enlarge or reduce the display size of the target animation; the user long presses the target animation, and the electronic device responds to the long press operation and adjusts the opacity of the target animation, etc. This is only an exemplary description and is not limited to this.
[0443] Optionally, in a possible implementation, the display method provided in the embodiment of the present application may further include, after detecting the use of the anti-sickness function / mode, displaying questions related to the anti-sickness function / mode on the display interface; collecting user replies, and intelligently adjusting the animation parameters of the target animation according to the user replies. The electronic device may record the animation parameters of the target animation adjusted each time, so that the user can choose according to their own needs.
[0444] For example, the initial animation parameters of the target animation are set to parameters suitable for users with mild motion sickness. After the user uses the anti-motion sickness function / mode for the first time, the user's usage experience is collected through inquiries, and the animation parameters of the target animation are intelligently adjusted based on the user's usage experience.
[0445] Optionally, in a possible implementation, the display method provided in the embodiment of the present application may further include setting the initial animation parameters of the target animation to parameters suitable for users with mild motion sickness, displaying one or more controls for adjusting the animation parameters in a preset area of the display interface (such as the top of the screen), and adjusting the animation parameters of the target animation with one key in response to a user operation on the control (such as a click operation, a slide operation, a drag operation, etc.). The visual style of the control for adjusting the animation parameters may be a capsule style, a rectangular style, etc., which is not limited thereto.
[0446] It should be understood that different controls correspond to different degrees of adjusting animation parameters, so that the adjusted target animation is suitable for users with different degrees of motion sickness.
[0447] Optionally, in a possible implementation, the embodiment of the present application further provides a mini-program, which is used to implement various functions and animation effects of the target animation in the above embodiments. Exemplarily, when the conditions for turning on the anti-sickness function / mode are met, the electronic device automatically calls up the mini-program, or the user scans the mini-program code corresponding to the mini-program to enter the mini-program. For example, in a possible implementation scenario, when the user is riding in a car, he scans the mini-program code posted in the car and enters the mini-program, so as to experience the various functions and animation effects of the above-mentioned target animation and achieve the effect of alleviating motion sickness.
[0448] Optionally, in a possible implementation, the embodiment of the present application further provides a web page, which is used to implement various functions and various animation effects related to the target animation in the above embodiments.
[0449] Optionally, in a possible implementation, the embodiment of the present application further provides a plug-in, and the plug-in is used to implement various functions and various animation effects related to the target animation in the above embodiments.
[0450] Optionally, in a possible implementation, the embodiment of the present application further provides a method for alleviating motion sickness. Based on the principle of alleviating motion sickness with visual feedback, a method for alleviating motion sickness using touch and / or hearing is designed.
[0451] For example, motion sensors based on electronic devices, built-in motion sensors of headphones (wireless headphones, wired headphones, etc.), motion sensors of in-vehicle infotainment systems, etc., use spatial audio characteristics to dynamically adjust the sound field position, simulate different motion states of the vehicle, and make the motion information felt by the user through hearing consistent with the motion information felt by the vestibular system, that is, the motion state felt by the user through hearing is consistent with the motion state of the vehicle relative to the ground felt by the vestibular system. That is, the spatial audio can provide users with auditory feedback that is coordinated with the vestibular system, thereby alleviating the user's motion sickness.
[0452] For another example, by adjusting the frequency and intensity of the vibration of a motor (such as one or more motors in an electronic device, car, ship, airplane, etc.), synchronization with the actual motion state of the vehicle is achieved, and real-time tactile feedback is provided to the user, so that the motion information felt by the user through touch is consistent with the motion information felt by the vestibular system. For example, tactile feedback motors can be integrated in multiple areas such as vehicle seats, backrests, and armrests. When the vehicle is in a non-steady / uniform motion state, comprehensive tactile feedback is provided through motor vibration, thereby ensuring that the motion information felt by the user through touch is consistent with the motion information felt by the vestibular system, thereby alleviating the user's motion sickness. Optionally, the user can adjust the intensity and mode of the tactile feedback according to their preferences to obtain the best comfort and motion sickness relief effect.
[0453] For another example, visual feedback, auditory feedback, and tactile feedback can be arbitrarily combined to alleviate the user's motion sickness.
[0454] Optionally, vestibular training can also be performed based on the display method provided in this application. As the number of training sessions increases, the user may completely say goodbye to motion sickness.
[0455] Optionally, the user's health status (such as vestibular health status) and / or athletic ability can be evaluated based on the display method provided in this application, and the user can be given advice on health and / or exercise to improve the user experience.
[0456] See also Fig. 12A , Fig. 12A An exemplary flow chart of a display method provided in an embodiment of the present application.
[0457] In some possible cases, the exemplary process involved in the electronic device displaying the target animation may refer to the following description of steps S201 to S205.
[0458] S201. Acquire sensor data of an electronic device.
[0459] Please refer to the description in the aforementioned steps S101 to S105, which will not be repeated here.
[0460] Optionally, before step S201, the method may further include: in response to a first operation, turning on the blur relief function. The first operation may include at least one of a click operation, a slide operation, a voice operation, and a gesture operation for turning on the blur relief function switch.
[0461] For example, in addition to the methods of enabling the anti-sickness function described in the above embodiments, the anti-sickness function can also be enabled by triggering the anti-sickness application through a mobile travel application. The mobile travel application may include a navigation application, a taxi application, an autonomous driving application, and the like.
[0462] For example, the electronic device is running a mobile travel application, and detects through the running mobile travel application that the user is currently in any one of the modes, such as car mode, boat mode, and plane mode. The electronic device asks the user through a notification or reminder in the mobile travel application whether the slow-motion application needs to be started. After the user confirms that the slow-motion application needs to be started, the slow-motion application is started.
[0463] S202: Determine the motion state of the electronic device according to the sensor data.
[0464] S203: Adjust the animation parameters of the preset animation elements according to the motion state to generate a target animation.
[0465] In the embodiment of the present application, the preset animation element is also referred to as an animation element. Different target animations can be used to map different motion states of the electronic device in real time. When the electronic device is in a transportation tool (such as a vehicle), the motion state of the electronic device is consistent with the motion state of the transportation tool (such as a vehicle), and different target animations can be used to map different motion states of the transportation tool (such as a vehicle) in real time.
[0466] S204: The target animation is displayed on the display interface of the electronic device.
[0467] For the above steps S202 to S204, reference may be made to the relevant descriptions in the aforementioned embodiments, which will not be repeated here.
[0468] In this implementation, different target animations can be used to map different motion states of the electronic device in real time, so that the motion information perceived by the user's eyes is consistent with the motion information perceived by the vestibular system, that is, the motion state of the target animation in the display interface seen by the user's eyes is consistent with the real motion state of the main body perceived by the vestibular system. This can reduce the conflict between the user's vision and the motion state perceived by the vestibular system, thereby alleviating the user's motion sickness.
[0469] Optionally, in a possible implementation, the embodiment of the present application further provides a display method, which may further include, after step S204, when detecting that the user enters any one of the modes, such as walking mode, cycling mode, running mode, etc., the electronic device automatically turns off the anti-sickness function / mode, such as turning off the anti-sickness application, stopping the running of the anti-sickness application, etc. This method of automatically turning off the anti-sickness function / mode can reduce resource consumption and improve the performance of the electronic device.
[0470] Optionally, in a possible implementation, the embodiment of the present application further provides a display method, which may further include, after step S204: in response to a sliding operation on the top of the display interface, displaying a control center interface (such as an interface corresponding to the status bar) in the display interface; a scotch prevention mode icon is displayed in the control center interface of the electronic device, and the user can quickly turn off the scotch prevention function / mode by clicking on the scotch prevention mode icon. In this implementation, the operation of turning off the scotch prevention function / mode is simplified, efficiency is improved, and user experience is improved.
[0471] Optionally, in a possible implementation, the embodiment of the present application further provides a display method, which may further include, after step S204, turning off the anti-smoothing function / mode in response to the user's operation of cleaning up the application program. For example, turning off the anti-smoothing application, exiting the anti-smoothing application, etc. In this implementation, the operation of turning off the anti-smoothing function / mode is simplified, the efficiency is improved, and the user experience is improved.
[0472] See also Fig. 12B , Fig. 12B An exemplary flow chart of another display method provided in an embodiment of the present application.
[0473] In some possible cases, the exemplary process involved in the electronic device displaying the target animation may refer to the following description of steps S301 to S305.
[0474] S301 , detecting whether the pitch angle is smaller than the initial pitch angle, and / or whether the X-axis linear acceleration is larger than a first acceleration threshold.
[0475] S302: When it is detected that the pitch angle is less than the initial pitch angle, and / or the X-axis linear acceleration is greater than a first acceleration threshold, it is determined that the electronic device is in an uphill and / or bumpy motion state, or in other words, it is determined that the vehicle is in an uphill and / or bumpy motion state.
[0476] S303: In the uphill and / or bumpy motion state, control the preset animation element to move along a first preset direction to generate a first animation. The first preset direction refers to a direction from bottom to top, such as Fig. 5F The target animation shown moves to Figure 5G The direction of the target animation shown can be understood as controlling the preset animation element to move vertically upward.
[0477] S304: When it is detected that the pitch angle is not less than the initial pitch angle, and / or the X-axis linear acceleration is less than the first acceleration threshold, it is determined that the electronic device is in a downhill and / or down-bumping motion state, or in other words, it is determined that the vehicle is in a downhill and / or down-bumping motion state.
[0478] S305: In the downhill and / or bumpy motion state, control the preset animation element to move along a second preset direction to generate a second animation. The second preset direction refers to a direction from top to bottom, such as Figure 5C The target animation shown moves to Figure 5D The direction of the target animation shown can be understood as controlling the preset animation element to move vertically downward.
[0479] See also Fig. 12C , Fig. 12C An exemplary flowchart of another display method provided in an embodiment of the present application.
[0480] In some possible cases, the exemplary process involved in the electronic device displaying the target animation may refer to the following description of steps S401 to S405.
[0481] S401 , detecting whether the roll angle is greater than the initial roll angle, and / or whether the X-axis linear acceleration is greater than a first acceleration threshold.
[0482] S402: When it is detected that the roll angle is greater than the initial roll angle, and / or the X-axis linear acceleration is greater than the first acceleration threshold, it is determined that the electronic device is in a left tilt and / or left bump motion state, or in other words, it is determined that the vehicle is in a left tilt and / or left bump motion state.
[0483] S403, in the left tilt and / or left bump motion state, control the first track to move along the first preset direction and the second track to move along the second preset direction, and at the same time control the first track and the second track to rotate counterclockwise around the Z axis by an angle corresponding to the roll angle, respectively, to generate a third animation.
[0484] S404: When it is detected that the roll angle is not greater than the initial roll angle, and / or the X-axis linear acceleration is less than the first acceleration threshold, it is determined that the electronic device is in a right tilt and / or right bump motion state, or in other words, it is determined that the vehicle is in a right tilt and / or right bump motion state.
[0485] S405. In the right tilt and / or right bump motion state, control the first track to move along the second preset direction and the second track to move along the first preset direction, and control the first track and the second track to rotate clockwise around the Z axis by an angle corresponding to the roll angle, respectively, to generate a fourth animation.
[0486] See also Fig.12D , Fig.12D An exemplary flowchart of another display method provided in an embodiment of the present application.
[0487] In some possible cases, the exemplary process involved in the electronic device displaying the target animation may refer to the following description of steps S501 to S505.
[0488] S501 , detecting whether the Y-axis linear acceleration is greater than or less than a second acceleration threshold.
[0489] S502: When it is detected that the Y-axis linear acceleration is greater than a second acceleration threshold, it is determined that the electronic device is in an accelerated motion state, or in other words, it is determined that the vehicle is in an accelerated motion state.
[0490] S503: In the accelerated motion state, the display size of the preset animation element is controlled to be enlarged, and / or the preset animation element is controlled to move vertically downward, and the display size of the preset animation element is controlled to be enlarged at the same time, to generate a fifth animation. Alternatively, the display size of the preset animation element is adjusted from the first display size to the second display size, and the first display size is smaller than the second display size, to generate a fifth animation. The first display size and the second display size can be set and adjusted according to actual conditions.
[0491] S504: When it is detected that the Y-axis linear acceleration is less than the second acceleration threshold, it is determined that the electronic device is in a deceleration state, or in other words, it is determined that the vehicle is in a deceleration state.
[0492] S505: In the deceleration motion state, the display size of the preset animation element is controlled to be reduced, and / or the preset animation element is controlled to move vertically upward, and the display size of the preset animation element is controlled to be reduced at the same time, to generate a sixth animation. Alternatively, the display size of the preset animation element is adjusted from the third display size to the fourth display size, and the third display size is larger than the fourth display size, to generate a sixth animation. The third display size and the fourth display size can be set and adjusted according to actual conditions.
[0493] See also Fig.12E , Fig.12E An exemplary flowchart of another display method provided in an embodiment of the present application.
[0494] In some possible cases, the exemplary process involved in the electronic device displaying the target animation may refer to the following description of steps S601 to S611.
[0495] S601: Detect that the yaw angle decreases or increases compared to the initial yaw angle.
[0496] S602: Detect that the yaw angle is smaller than the initial yaw angle, and determine that the electronic device is in a left turn state. In other words, determine that the vehicle is in a left turn state.
[0497] S603: In the left-turn motion state, the display size of the first track is controlled to increase, and the display size of the second track is controlled to decrease, to generate the seventh animation. Alternatively, the display size of the first track is adjusted from the fifth display size to the sixth display size, and the display size of the second track is adjusted from the fifth display size to the seventh display size, to generate the seventh animation. The fifth display size is smaller than the sixth display size, and the fifth display size is larger than the seventh display size.
[0498] S604: In the left-turn motion state, the second animation element is controlled to move rightward in the first track, passing the right end of the first track and entering the left start end of the second track, thereby generating a ninth animation. Alternatively, the second animation element is controlled to move along a third preset direction in the first track, passing the right end of the first track and moving to the left start end of the second track, thereby generating a ninth animation. The third preset direction refers to a direction from left to right.
[0499] In the embodiment of the present application, the second animation element is also referred to as a movable element.
[0500] S605: If it is detected that the yaw angle continues to decrease, it is determined that the electronic device is continuously in a left turn motion state.
[0501] S606: While the vehicle is still in the left-turn motion state, the second animation element is continuously controlled to move rightward from the left starting end of the second track, passing the right end of the second track, and entering the left starting end of the first track, thereby generating a tenth animation. Alternatively, the second animation element is continuously controlled to move along the third preset direction from the left starting end of the second track, passing the right end of the second track, and moving to the left starting end of the first track, thereby generating a tenth animation.
[0502] S607: Detect that the yaw angle increases compared to the initial yaw angle, and determine that the electronic device is in a right turn motion state.
[0503] S608: In the right-turn motion state, the display size of the second track is controlled to increase, and the display size of the first track is controlled to decrease, to generate an eighth animation. Alternatively, the display size of the first track is adjusted from the fifth display size to the seventh display size, and the display size of the second track is adjusted from the fifth display size to the sixth display size, to generate an eighth animation.
[0504] S609: In the right-turn motion state, control the second animation element to move leftward in the second track, pass the left end of the second track, and enter the right starting end of the first track to generate the eleventh animation. Alternatively, control the second animation element to move along the fourth preset direction in the second track, pass the left end of the second track, and move to the right starting end of the first track to generate the eleventh animation. The fourth preset direction refers to the direction from right to left.
[0505] S610: If it is detected that the yaw angle continues to increase, it is determined that the electronic device is continuously in a right turn motion state.
[0506] S611: While continuing to be in the right-turn motion state, continue to control the movable element to move leftward from the right starting end of the first track, pass the left end of the first track, and enter the right starting end of the second track to generate the twelfth animation. Alternatively, continue to control the second animation element to move along the fourth preset direction from the right starting end of the first track, pass the left end of the first track, and move to the right starting end of the second track to generate the twelfth animation.
[0507] It should be understood that the relevant contents involved in steps S301 to S305, steps S401 to S405, steps S501 to S505, and steps S601 to S611 can refer to the description of the relevant contents of the embodiments in the previous text, and will not be repeated here.
[0508] The display method provided in the embodiment of the present application is described above in conjunction with the flow chart, and the display method provided in the present application is described below in conjunction with the software structure.
[0509] See also Fig.13 , Fig.13 The software structure diagram of the electronic device shown in the embodiment of the present application. The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device.
[0510] It should be understood that the layered architecture can divide the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces.
[0511] like Fig.13 As shown, the Android system can be divided into four layers: from top to bottom, they are application layer, application framework layer, Android runtime and system library, and kernel layer. The application layer can include a series of application packages.
[0512] like Fig.13 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, slow motion application, etc.
[0513] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0514] like Fig.13 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0515] The window manager is used to manage window programs. The window manager can obtain the size of the electronic device screen / display interface, determine whether there is a status bar, control the target animation floating display, etc.
[0516] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0517] The view system includes visual controls, such as controls for displaying text, controls for displaying images, controls for displaying target animations, etc. The view system can be used to build applications. The display interface can be composed of one or more views.
[0518] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
[0519] The resource manager provides various resources for the application, such as localized strings, icons, images, layout files, animation files, and so on.
[0520] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, the terminal device vibrates, the indicator light flashes, etc.
[0521] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0522] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0523] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0524] The system library may include multiple functional modules, such as: surface manager, media library, 3D graphics processing library (such as open graphics library for embedded systems (OpenGL ES)) and 2D graphics engine (such as skia graphics library (SGL)).
[0525] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0526] The media library supports playback and recording of multiple audio formats, playback and recording of multiple video formats, and still image files. The media library can support multiple audio and video coding formats, such as: MPEG4, H.264, moving picture experts group audio layer III (MP3), advanced audio coding (AAC), adaptive multi-rate (AMR), joint photographic experts group (JPG) and portable network graphics (PNG).
[0527] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0528] A 2D graphics engine is a drawing engine for 2D drawings.
[0529] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0530] Among them, sensor driver provides the basis for electronic devices to obtain sensor data.
[0531] In an embodiment of the present application, the electronic device can use the above software system to implement the display method shown in the embodiments corresponding to the above-mentioned figures.
[0532] 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
[0533] The hardware structure of the electronic device involved in the embodiments of the present application is briefly introduced below with reference to the accompanying drawings.
[0534] See also Fig.14 , Fig.14 The figure is a schematic diagram of the hardware structure of an electronic device according to an exemplary embodiment of the present application.
[0535] like Fig.14 As shown, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, an air pressure sensor 280C, a magnetic sensor 280D, an acceleration sensor 280E, a distance sensor 280F, a proximity light sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.
[0536] It is understandable that the structure shown in the embodiment of the present application does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, the electronic device 200 may include Fig.14 The electronic device 200 may include more or fewer components than those shown, or may include Fig.14 Combinations of some of the components shown, or the electronic device 200 may include Fig.14 Subassemblies of some of the components shown. Fig.14 The components shown may be implemented in hardware, software, or a combination of software and hardware.
[0537] The processor 210 may include one or more processing units. For example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc.
[0538] The processor 210 may also be provided with a memory for storing instructions and data.
[0539] In an embodiment of the present application, the processor 210 may execute various steps in the display method. For example, the processor 210 may run the software code of the display method provided in the embodiment of the present application, thereby alleviating the user's motion sickness.
[0540] The electronic device 200 can realize the display function through the GPU, the display screen 294 and the application processor. The GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor. The GPU can also be used to perform mathematical and posture calculations for graphics rendering, etc. The processor 210 may include one or more GPUs, which can generate or change display information by executing program instructions.
[0541] In the embodiment of the present application, the ability of the electronic device 200 to display the display interface and target animation shown in the aforementioned figures depends on the display function provided by the above-mentioned GPU, display screen 294, and application processor.
[0542] In some embodiments, the electronic device 200 may include 1 or N display screens 294 , where N may be a positive integer greater than 1.
[0543] The display screen 294 in the embodiment of the present application may be a touch screen. A touch sensor 280K may be integrated in the display screen 294. The touch sensor 280K may also be referred to as a "touch panel". In other words, the display screen 294 may include a display panel and a touch panel, and the touch sensor 280K and the display screen 294 form a touch screen, also known as a "touch screen". The touch sensor 280K is used to detect touch operations acting on or near it. After the touch operation detected by the touch sensor 280K, it can be passed to the upper layer by the driver of the kernel layer (such as TP driver) to determine the type of touch event. Visual output related to the touch operation can be provided by the display screen 294. In other embodiments, the touch sensor 280K may also be arranged on the surface of the electronic device 200, which is different from the position of the display screen 294.
[0544] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200.
[0545] The internal memory 221 may be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 200 by running the instructions stored in the internal memory 221 .
[0546] In addition, the internal memory 221 may include a high-speed random access memory; the internal memory 221 may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (Universal Flash Storage, UFS), etc.
[0547] The pressure sensor 280A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. When a touch operation is applied to the display screen 294, the electronic device 200 detects the touch operation intensity according to the pressure sensor 280A. The electronic device 200 can also calculate the touch position according to the detection signal of the pressure sensor 280A. In some embodiments, different touch positions but different touch durations can correspond to different operation instructions.
[0548] The gyro sensor 280B can detect the magnitude of the angular velocity of the electronic device 200 in various directions (generally X-axis, Y-axis and Z-axis).
[0549] The acceleration sensor 280E can detect the magnitude of the acceleration of the electronic device 200 in various directions (generally X-axis, Y-axis and Z-axis).
[0550] In an embodiment of the present application, the electronic device 200 may also include a virtual sensor, a virtual sensor rotation vector sensor and a linear acceleration sensor. The virtual sensor is used to process data collected by the acceleration sensor 280E and the gyroscope sensor 280B to determine the corresponding angle information of the electronic device 200 when the vehicle is in different motion states.
[0551] Motor 191 can generate vibrations to provide real-time tactile feedback to the user.
[0552] In addition, various types of operating systems are running on the above components, such as Android system, IOS operating system, Symbian operating system, BlackBerry operating system, Linux operating system, Windows operating system, etc. This is only an exemplary description and is not limited to this. Different applications can be installed and run on these operating systems, such as any application that supports voice chat function.
[0553] The display method provided in the embodiment of the present application can be implemented in the electronic device 200 having the above hardware structure.
[0554] The above describes in detail an example of a display method provided by an embodiment of the present application. It is understandable that, in order to implement the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of the present application.
[0555] The embodiment of the present application can divide the functional modules of the electronic device according to the above method example. For example, each function can be divided into each functional module, or two or more functions can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0556] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0557] The electronic device provided in this embodiment is used to execute the above display method, and thus can achieve the same effect as the above implementation method.
[0558] In the case of an integrated unit, the electronic device may further include a processing module, a storage module and a communication module. The processing module may be used to control and manage the actions of the electronic device. The storage module may be used to support the electronic device to execute stored program codes and data, etc. The communication module may be used to support the electronic device to communicate with other devices.
[0559] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a WiFi chip, etc.
[0560] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the processor executes the display method of any of the above embodiments.
[0561] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the display method in the above-mentioned embodiment.
[0562] The present application also provides a chip. Fig.15 , Fig.15 A schematic diagram of the structure of a chip provided in an embodiment of the present application. Fig.15 The chip shown can be a general-purpose processor or a dedicated processor. The chip includes a processor 310. The processor 310 is used to execute the display method of any of the above embodiments.
[0563] Optionally, the chip further includes a transceiver 320, which is used to accept control of the processor and to support the communication device in executing the technical solution shown above.
[0564] Optional, Fig.15 The chip shown may also include: a storage medium 330 .
[0565] It should be noted that Fig.15The chip shown can be implemented using the following circuits or devices: one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits that can perform the various functions described throughout this application.
[0566] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.
[0567] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0568] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0569] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0570] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0571] If the integrated 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 technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0572] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A display method, characterized in that: Applied to electronic equipment, the method comprises: Acquiring sensor data of the electronic device; determining a motion state of the electronic device according to the sensor data; Adjusting animation parameters of preset animation elements according to the motion state to generate target animation; The target animation is displayed on a display interface of the electronic device, and the target animation is used to map the motion state of the electronic device in real time.
2. The method according to claim 1, characterized in that: The electronic device includes a hardware sensor, the sensor data includes acceleration data and angular velocity data collected by the hardware sensor, and determining the motion state of the electronic device according to the sensor data includes: Determining angle information of the electronic device according to the acceleration data and the angular velocity data; The motion state of the electronic device is determined according to the angle information.
3. The method according to claim 2, characterized in that The electronic device further includes a virtual sensor, the angle information includes three-axis angular velocity, Euler angle, and three-axis linear acceleration, and determining the angle information of the electronic device according to the acceleration data and the angular velocity data includes: Determine the angular velocities of three axes corresponding to the electronic device according to the angular velocity data; The acceleration data and the angular velocity data are processed by the virtual sensor to obtain the Euler angle and three-axis linear acceleration corresponding to the electronic device.
4. The method according to claim 3, characterized in that The virtual sensor includes a rotation vector sensor and a linear acceleration sensor, and the acceleration data and the angular velocity data are processed by the virtual sensor to obtain the Euler angle and three-axis linear acceleration corresponding to the electronic device, including: Processing the angular velocity data by the rotation vector sensor to obtain the Euler angle; The acceleration data and the Euler angles are processed by the linear acceleration sensor to obtain the three-axis linear acceleration.
5. The method according to claim 4, characterized in that The step of processing the angular velocity data by the rotation vector sensor to obtain the Euler angle includes: Determine a first rotation matrix using the rotation vector sensor and the angular velocity data; The Euler angles are determined according to the first rotation matrix.
6. The method according to claim 4 or 5, characterized in that: The step of processing the acceleration data and the Euler angles by the linear acceleration sensor to obtain the three-axis linear acceleration includes: Constructing a second rotation matrix according to the Euler angles; The acceleration data is transformed by using the second rotation matrix to obtain the three-axis linear acceleration.
7. The method according to claim 3, characterized in that The Euler angle includes a pitch angle, the three-axis linear acceleration includes an X-axis linear acceleration, and the animation parameters of the preset animation elements are adjusted according to the motion state to generate a target animation, including: Detecting that the pitch angle is smaller than an initial pitch angle, and / or the X-axis linear acceleration is greater than a first acceleration threshold; The preset animation element is controlled to move along a first preset direction to generate a first animation.
8. The method according to claim 7, characterized in that The step of adjusting the animation parameters of the preset animation elements according to the motion state to generate the target animation includes: detecting that the pitch angle is not less than the initial pitch angle, and / or the X-axis linear acceleration is less than the first acceleration threshold; The preset animation element is controlled to move along a second preset direction to generate a second animation, where the second preset direction is opposite to the first preset direction.
9. The method according to claim 2, characterized in that: The preset animation element includes a first animation element, the first animation element includes a first track and a second track, the preset area includes a left preset area and a right preset area, the first track is displayed in the left preset area, and the second track is displayed in the right preset area.
10. The method according to claim 9, characterized in that The Euler angle includes a roll angle, and the animation parameters of the preset animation elements are adjusted according to the motion state to generate a target animation, including: Detecting that the roll angle is greater than an initial roll angle, and / or the X-axis linear acceleration is greater than a first acceleration threshold; The first track is controlled to move along a first preset direction and the second track is controlled to move along a second preset direction, and the first track and the second track are controlled to rotate counterclockwise around the Z axis by an angle corresponding to the rolling angle to generate a third animation.
11. The method according to claim 9, characterized in that The step of adjusting the animation parameters of the preset animation elements according to the motion state to generate the target animation includes: Detecting that the roll angle is not greater than the initial roll angle, and / or the X-axis linear acceleration is less than the first acceleration threshold; The first track is controlled to move along the second preset direction, and the second track is controlled to move along the first preset direction. Meanwhile, the first track and the second track are controlled to rotate clockwise around the Z axis by an angle corresponding to the rolling angle, respectively, to generate a fourth animation.
12. The method according to claim 3, characterized in that The three-axis linear acceleration includes the Y-axis linear acceleration, and the animation parameters of the preset animation elements are adjusted according to the motion state to generate the target animation, including: Detecting that the Y-axis linear acceleration is greater than a second acceleration threshold; The display size of the preset animation element is adjusted from a first display size to a second display size, the first display size being smaller than the second display size, and a fifth animation is generated.
13. The method according to claim 12, characterized in that The step of adjusting the animation parameters of the preset animation elements according to the motion state to generate the target animation includes: Detecting that the Y-axis linear acceleration is less than the second acceleration threshold; The display size of the preset animation element is adjusted from a third display size to a fourth display size, the third display size being larger than the fourth display size, and a sixth animation is generated.
14. The method according to claim 9, characterized in that The Euler angle includes a yaw angle, and the animation parameters of the preset animation elements are adjusted according to the motion state to generate a target animation, including: detecting that the yaw angle decreases compared to an initial yaw angle; The display size of the first track is adjusted from the fifth display size to the sixth display size, and the display size of the second track is adjusted from the fifth display size to the seventh display size, to generate a seventh animation; The fifth display size is smaller than the sixth display size, and the fifth display size is larger than the seventh display size.
15. The method according to claim 14, characterized in that The step of adjusting the animation parameters of the preset animation elements according to the motion state to generate the target animation includes: detecting that the yaw angle increases compared to the initial yaw angle; The display size of the first track is adjusted from the fifth display size to the seventh display size, and the display size of the second track is adjusted from the fifth display size to the sixth display size, to generate an eighth animation.
16. The method according to any one of claims 9 to 15, characterized in that The preset animation element further includes a second animation element, and the second animation element moves or remains stationary in the first animation element.
17. The method according to claim 16, characterized in that The step of adjusting the animation parameters of the preset animation elements according to the motion state to generate the target animation includes: detecting that the yaw angle decreases compared to an initial yaw angle; The second animation element is controlled to move along a third preset direction in the first track, passing the right end of the first track and moving to the left starting end of the second track, so as to generate a ninth animation.
18. The method according to claim 17, characterized in that After generating the ninth animation, the method further includes: detecting that the yaw angle continues to decrease; The second animation element is continued to be controlled to move from the left starting end of the second track along the third preset direction, passing the right end of the second track, and moving to the left starting end of the first track to generate a tenth animation.
19. The method according to claim 17, characterized in that The step of adjusting the animation parameters of the preset animation elements according to the motion state to generate the target animation includes: detecting that the yaw angle increases compared to the initial yaw angle; The second animation element is controlled to move along a fourth preset direction in the second track, passing the left end of the second track and moving to the right starting end of the first track, so as to generate an eleventh animation.
20. The method according to claim 19, characterized in that After generating the eleventh animation, the method further includes: detecting that the yaw angle continues to increase; The second animation element is continued to be controlled to move from the right starting end of the first track along the fourth preset direction, passing the left end of the first track, and moving to the right starting end of the second track, to generate a twelfth animation.
21. The method according to claim 7, characterized in that The step of adjusting the animation parameters of the preset animation elements according to the motion state to generate the target animation includes: Detecting that the X-axis linear acceleration is equal to a first acceleration threshold, and / or the Y-axis linear acceleration is equal to a second acceleration threshold; The preset animation element is controlled to be still, and a thirteenth animation is generated.
22. The method according to any one of claims 2 to 21, characterized in that The method further comprises: The transparency of a preset animation element is adjusted according to the sensor data.
23. The method according to any one of claims 1 to 22, characterized in that The animation parameters also include: at least one of: visual style, display position, display quantity, zoom ratio, moving direction, moving amount, and moving speed.
24. An electronic device, characterized in that: include: one or more processors; one or more memories; The memory stores one or more programs, and when the one or more programs are executed by the processor, the electronic device executes the method according to any one of claims 1 to 23.
25. A chip, characterized in that: include: A processor, configured to call and run a computer program from a memory, so that an electronic device equipped with the chip executes a method as claimed in any one of claims 1 to 23.
26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 23.
Citation Information
Patent Citations
Image rendering method, electronic equipment and system
CN113223129A
Information processing device, display method, and display program
CN114730232A
Mobile display method, medium, program product and electronic equipment
CN116954534A
Method for displaying information in a vehicle
EP2927042A2
Vehicle-mounted information displaying device
JP2003095029A
Cited By
Display control method and device of vehicle-mounted screen, computer equipment and storage medium
CN119883171A
Frame rate adjustment method, electronic equipment and storage medium
CN122131992A
Display method, electronic equipment and storage medium
CN122131993A
Display method, electronic device, and storage medium
WO2026001412A1
Display method and electronic device
WO2026103235A1
