Search

CN-122023563-A - Method for simulating three-dimensional pointer rotation based on double elliptic deformations and vehicle

CN122023563ACN 122023563 ACN122023563 ACN 122023563ACN-122023563-A

Abstract

The application provides a method and a vehicle for simulating three-dimensional pointer rotation based on double elliptic deformation, wherein the method comprises the steps of defining a double elliptic reference system according to an instrument panel, enabling the double elliptic reference system to comprise a first inclined ellipse and a second inclined ellipse which are concentrically arranged, enabling the first inclined ellipse to be larger than the second inclined ellipse, determining the rotation angle of a pointer according to the running state of the vehicle, determining a first coordinate at which the pointer intersects the first inclined ellipse and a second coordinate at which the pointer intersects the second inclined ellipse according to the rotation angle, determining the position of the pointer according to the rotation angle and the first coordinate, determining a sector area simulating three-dimensional pointer rotation according to the first coordinate and the second coordinate, and drawing a trailing effect in the sector area. According to the application, the 3D effect is simulated only through geometric coordinate operation and 2D drawing, a complete 3D graph rendering pipeline is not needed, the development cost is greatly reduced, meanwhile, the occupation of CPU and GPU resources is reduced, and the low-power consumption and high-stability operation requirements of the vehicle-mounted embedded device are met.

Inventors

  • YU YANG

Assignees

  • 上海均胜普联智能科技有限公司

Dates

Publication Date
20260512
Application Date
20260130

Claims (10)

  1. 1. A method for simulating three-dimensional pointer rotation based on double elliptical deformation, characterized in that it is applied to a vehicle, said method comprising: defining a double-ellipse reference system according to an instrument panel, wherein the double-ellipse reference system comprises a first inclined ellipse and a second inclined ellipse which are concentrically arranged, and the first inclined ellipse is larger than the second inclined ellipse; determining the rotation angle of the pointer according to the running state of the vehicle; determining a first coordinate at which the pointer intersects the first inclined ellipse and a second coordinate at which the pointer intersects the second inclined ellipse according to the rotation angle; determining the position of the pointer according to the rotation angle and the first coordinate; And determining a sector area simulating the rotation of the three-dimensional pointer according to the first coordinate and the second coordinate, and drawing a tailing effect in the sector area.
  2. 2. The method of claim 1, wherein defining a double elliptical reference frame from a dashboard comprises: setting a first standard ellipse and a second standard ellipse which are concentrically arranged in a reference system; and (3) according to an instrument panel, the first standard ellipse and the second standard brick ellipse are subjected to recumbent to obtain the first inclined ellipse and the second inclined ellipse respectively.
  3. 3. The method of claim 2, wherein the determining, from the rotation angle, a first coordinate at which the pointer intersects the first sloped ellipse and a second coordinate at which the pointer intersects the second sloped ellipse comprises: Obtaining a standard circle according to the first standard ellipse; Rotating the pointer according to the rotation angle, enabling the needle tip of the pointer to be attached to the outline of the standard circle, and moving to obtain a first coordinate of the pointer crossing the first inclined ellipse and a third coordinate of the pointer crossing the standard circle; obtaining a linear difference value according to the first coordinate and the third coordinate; and translating the pointer according to the linear difference value to attach the needle tip of the pointer to the outline of the first inclined ellipse so as to obtain a second coordinate of the intersection of the pointer and the second inclined ellipse.
  4. 4. A method according to claim 3, wherein said determining the position of the pointer from said rotation angle and said first coordinates comprises: Setting the position of the needle tip of the pointer to the first coordinate; an angle value of the needle tip in the double elliptical reference frame is determined as the rotation angle.
  5. 5. A method according to claim 3, wherein said determining a sector of simulated three-dimensional pointer rotation from said first and second coordinates comprises: Acquiring a fourth coordinate and a fifth coordinate of the pointer crossing the first inclined ellipse and the second inclined ellipse when the pointer is at the initial position; sequentially connecting the first coordinate, the fourth coordinate, the fifth coordinate and the second coordinate to determine the sector area; The first coordinate and the fourth coordinate are connected through the edge of the first inclined ellipse, and the second coordinate and the fifth coordinate are connected through the edge of the second inclined ellipse.
  6. 6. A method according to claim 3, wherein said determining a sector of simulated three-dimensional pointer rotation from said first and second coordinates comprises: Acquiring a fourth coordinate and a fifth coordinate of the pointer crossing the first inclined ellipse and the second inclined ellipse when the pointer is at the initial position; Determining a first slope at an initial position according to the fourth coordinate and the fifth coordinate, and determining a second slope after rotation according to the first coordinate and the second coordinate; A first parallel line parallel to the X axis is arranged outside the first inclined ellipse, and a second parallel line parallel to the X axis is arranged inside the second inclined ellipse; sequentially connecting the first coordinate, the fourth coordinate, the fifth coordinate and the second coordinate to determine the sector area; The first coordinate and the fourth coordinate are connected through the first parallel line, and the second coordinate and the fifth coordinate are connected through the second parallel line.
  7. 7. The method of any of claims 1-6, wherein the drawing a tailing effect within the scalloped area comprises: clipping the sector area through Canvas to limit a display area; and displaying different static pictures or animation sequences in the display area according to the running state of the vehicle so as to realize tailing effect.
  8. 8. The method according to any one of claims 1-6, further comprising: The animation process is decomposed at a fixed frame rate through a handle mechanism, and the pointer position, the translation amount and the fan-shaped tailing state are calculated and rendered frame by frame.
  9. 9. The method of any one of claims 1-6, wherein the determining the angle of rotation of the pointer as a function of the operating state of the vehicle comprises: determining the current rotation angle of the pointer according to the running speed or the rotating speed of the vehicle; If a new running speed or rotational speed occurs, further steps may be interrupted and the angle of rotation of the pointer may be redetermined.
  10. 10. A vehicle comprising a memory storing a computer program and a processor for running the computer program in the memory to perform the method of simulating three-dimensional pointer rotation based on double elliptical deformation of any one of claims 1 to 7.

Description

Method for simulating three-dimensional pointer rotation based on double elliptic deformations and vehicle Technical Field The invention relates to the technical field of vehicles, in particular to a method for simulating three-dimensional pointer rotation based on double elliptic deformations and a vehicle. Background Along with the continuous evolution of the intelligent technology of the automobile, the functions and visual presentation forms of the vehicle-mounted instrument system are also continuously and iteratively upgraded. In the prior art, the vehicle-mounted device mostly adopts a physical instrument panel or a two-dimensional digitizer instrument panel, and a vehicle speed pointer can only complete rotation in a plane space. The visual presentation effect of the scheme is flat, the stereoscopic layering sense is lacked, dynamic visual details are difficult to enrich, the instrument interface with the real stereoscopic sense is realized by combining 3D modeling with a real-time rendering technology in part of the technical schemes, but the scheme needs to introduce a complete 3D graphics rendering pipeline, so that the problems of high development cost and severe requirements on professional graphics knowledge storage of researchers are solved, and high CPU and GPU resource loads are generated at the same time, so that the hardware resource constraint of a vehicle-mounted embedded system is difficult to adapt. Disclosure of Invention The invention solves the problems that the existing vehicle-mounted entity instrument panel is visually flat, the development cost of 3D rendering is high, and the hardware consumption is large. In order to solve the above problems, the present invention provides a method for simulating three-dimensional pointer rotation based on double elliptical deformation, which is applied to a vehicle, and the method comprises: defining a double-ellipse reference system according to an instrument panel, wherein the double-ellipse reference system comprises a first inclined ellipse and a second inclined ellipse which are concentrically arranged, and the first inclined ellipse is larger than the second inclined ellipse; determining the rotation angle of the pointer according to the running state of the vehicle; determining a first coordinate at which the pointer intersects the first inclined ellipse and a second coordinate at which the pointer intersects the second inclined ellipse according to the rotation angle; determining the position of the pointer according to the rotation angle and the first coordinate; And determining a sector area simulating the rotation of the three-dimensional pointer according to the first coordinate and the second coordinate, and drawing a tailing effect in the sector area. Optionally, the defining the double elliptical reference frame according to the instrument panel includes: setting a first standard ellipse and a second standard ellipse which are concentrically arranged in a reference system; and (3) according to an instrument panel, the first standard ellipse and the second standard brick ellipse are subjected to recumbent to obtain the first inclined ellipse and the second inclined ellipse respectively. Optionally, the determining, according to the rotation angle, a first coordinate at which the pointer intersects the first oblique ellipse and a second coordinate at which the pointer intersects the second oblique ellipse includes: Obtaining a standard circle according to the first standard ellipse; Rotating the pointer according to the rotation angle, enabling the needle tip of the pointer to be attached to the outline of the standard circle, and moving to obtain a first coordinate of the pointer crossing the first inclined ellipse and a third coordinate of the pointer crossing the standard circle; obtaining a linear difference value according to the first coordinate and the third coordinate; and translating the pointer according to the linear difference value to attach the needle tip of the pointer to the outline of the first inclined ellipse so as to obtain a second coordinate of the intersection of the pointer and the second inclined ellipse. Optionally, the determining the position of the pointer according to the rotation angle and the first coordinate includes: Setting the position of the needle tip of the pointer to the first coordinate; an angle value of the needle tip in the double elliptical reference frame is determined as the rotation angle. Optionally, the determining the sector area simulating the rotation of the three-dimensional pointer according to the first coordinate and the second coordinate includes: Acquiring a fourth coordinate and a fifth coordinate of the pointer crossing the first inclined ellipse and the second inclined ellipse when the pointer is at the initial position; sequentially connecting the first coordinate, the fourth coordinate, the fifth coordinate and the second coordinate to determine the sector area; The