CN116605046A - Automobile instrument and method for generating water ripple animation - Google Patents
Automobile instrument and method for generating water ripple animation Download PDFInfo
- Publication number
- CN116605046A CN116605046A CN202310491258.5A CN202310491258A CN116605046A CN 116605046 A CN116605046 A CN 116605046A CN 202310491258 A CN202310491258 A CN 202310491258A CN 116605046 A CN116605046 A CN 116605046A
- Authority
- CN
- China
- Prior art keywords
- water ripple
- stripe pattern
- animation
- ripple animation
- dimensional model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60K—ARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
- B60K35/00—Instruments specially adapted for vehicles; Arrangement of instruments in or on vehicles
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60K—ARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
- B60K35/00—Instruments specially adapted for vehicles; Arrangement of instruments in or on vehicles
- B60K35/20—Output arrangements, i.e. from vehicle to user, associated with vehicle functions or specially adapted therefor
- B60K35/28—Output arrangements, i.e. from vehicle to user, associated with vehicle functions or specially adapted therefor characterised by the type of the output information, e.g. video entertainment or vehicle dynamics information; characterised by the purpose of the output information, e.g. for attracting the attention of the driver
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T13/00—Animation
- G06T13/20—3D [Three Dimensional] animation
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60K—ARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
- B60K2360/00—Indexing scheme associated with groups B60K35/00 or B60K37/00 relating to details of instruments or dashboards
- B60K2360/16—Type of output information
- B60K2360/167—Vehicle dynamics information
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60K—ARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
- B60K2360/00—Indexing scheme associated with groups B60K35/00 or B60K37/00 relating to details of instruments or dashboards
- B60K2360/20—Optical features of instruments
- B60K2360/27—Optical features of instruments using semi-transparent optical elements
Landscapes
- Engineering & Computer Science (AREA)
- Chemical & Material Sciences (AREA)
- Combustion & Propulsion (AREA)
- Transportation (AREA)
- Mechanical Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
Description
技术领域technical field
本发明涉及汽车电子技术,特别涉及一种汽车仪表及其生成水波纹动画的方法。The invention relates to automobile electronic technology, in particular to an automobile instrument and a method for generating water ripple animation.
背景技术Background technique
随着汽车电子技术的发展,越来越多的车辆装配了全液晶的汽车仪表,以能够在汽车仪表上显示更丰富的信息。例如,可以在汽车仪表上显示水波纹动画来进行高级驾驶辅助系统(Advanced Driver Assistance System,ADAS)的提示,例如车辆起步提示,车辆变道提示等。With the development of automotive electronics technology, more and more vehicles are equipped with full LCD automotive instrumentation to display richer information on the automotive instrumentation. For example, the water ripple animation can be displayed on the instrument panel of the car to provide prompts for the Advanced Driver Assistance System (ADAS), such as prompts for starting the vehicle, prompting for changing lanes, and so on.
水波纹动画是指具有波纹往前移动,在前面的波纹尚未完全消失,后面新的波纹又出现的效果的动画。目前为了实现三维效果的水波纹动画,大多是通过编写复杂的着色器(Shader)算法来实现。着色器除了要实现进行水波纹动画的图案,还需要计算透明度变化、运动轨迹等,才能实现水波纹动画。这种着色器算法开发难度高并且对硬件平台的性能要求很高。The water ripple animation refers to the animation that has the effect that the ripples move forward, the ripples in the front have not completely disappeared, and the new ripples appear in the back. At present, in order to realize the water ripple animation of the three-dimensional effect, most of them are realized by writing complex shader (Shader) algorithms. In addition to realizing the pattern for water ripple animation, the shader also needs to calculate transparency changes, motion trajectories, etc. to realize water ripple animation. This kind of shader algorithm is difficult to develop and has high requirements on the performance of the hardware platform.
发明内容Contents of the invention
本发明解决的问题是提供一种汽车仪表及其生成水波纹动画的方法,其具有实现简单、对硬件性能要求低和易复用等特点中的一种或多种。The problem to be solved by the present invention is to provide an automobile meter and its method for generating water ripple animation, which has one or more of the characteristics of simple implementation, low requirement on hardware performance, and easy reuse.
为了解决上述问题,本发明的一方面提供了一种在汽车仪表上生成水波纹动画的方法,其包括:生成对应于水波纹动画区域的三维模型;将条纹图案以沿第一方向步进的方式贴附于所述三维模型中的一个或多个面以生成所述水波纹动画。In order to solve the above problems, an aspect of the present invention provides a method for generating water ripple animation on an automobile instrument, which includes: generating a three-dimensional model corresponding to the water ripple animation area; The method is attached to one or more surfaces in the three-dimensional model to generate the water ripple animation.
本发明的另一方面提供了一种汽车仪表,其包括:一个或多个中央处理器;一个或多个图形处理器;以及其上存储有多个指令的计算机可读存储介质,所述多个指令响应于由所述一个或多个处理器和/或所述一个或多个图形处理器执行而实现如前述的在汽车仪表上生成水波纹动画的方法。Another aspect of the present invention provides an automotive instrument, which includes: one or more central processing units; one or more graphics processors; and a computer-readable storage medium storing multiple instructions thereon, the multiple In response to being executed by the one or more processors and/or the one or more graphics processors, the instructions implement the aforementioned method for generating water ripple animation on a car instrument.
本发明的又一方面提供了一种非易失性计算机可读存储介质,其上存储有适于一个或多个处理器和/或一个或多个图形处理器执行的多个指令,所述多个指令响应于由所述一个或多个处理器和/或所述一个或多个图形处理器执行而实现如前述的在汽车仪表上生成水波纹动画的方法。Yet another aspect of the present invention provides a non-volatile computer-readable storage medium storing a plurality of instructions suitable for execution by one or more processors and/or one or more graphics processors, the The plurality of instructions are executed by the one or more processors and/or the one or more graphics processors to implement the aforementioned method for generating water ripple animation on a car instrument.
与现有技术相比,上述方案具有以下优点:Compared with the prior art, the above scheme has the following advantages:
本发明的在汽车仪表上生成水波纹动画的方法通过贴图的方式来生成水波纹动画,无需通过着色器来生成水波纹图案,只需提供对应的水波纹图片,这大大降低了着色器的复杂度,减小了性能开销。同时,在需要改变图案效果时,只需替换贴附的图片即可,着色器重复利用率高,降低了变更的工作量。The method for generating the water ripple animation on the automobile instrument of the present invention generates the water ripple animation by means of texture maps, without using a shader to generate the water ripple pattern, and only needs to provide the corresponding water ripple picture, which greatly reduces the complexity of the shader , reducing performance overhead. At the same time, when you need to change the pattern effect, you only need to replace the attached picture, and the reuse rate of the shader is high, which reduces the workload of the change.
附图说明Description of drawings
图1例示了根据本发明一个或多个实施例的汽车仪表的示例性框图;FIG. 1 illustrates an exemplary block diagram of an automotive instrument cluster according to one or more embodiments of the present invention;
图2例示了根据本发明一个或多个实施例的在汽车仪表上生成水波纹动画的方法的示例性流程图;FIG. 2 illustrates an exemplary flow chart of a method for generating water ripple animation on an automobile instrument according to one or more embodiments of the present invention;
图3例示了根据本发明一个或多个实施例的起步提醒的水波纹动画的关键帧示意图;Fig. 3 illustrates a schematic diagram of key frames of a water ripple animation of a starting reminder according to one or more embodiments of the present invention;
图4例示了根据本发明一个或多个实施例的三维模型示意图;FIG. 4 illustrates a schematic diagram of a three-dimensional model according to one or more embodiments of the present invention;
图5例示了根据本发明一个或多个实施例的条纹图案;Figure 5 illustrates a stripe pattern according to one or more embodiments of the invention;
图6例示了根据本发明一个或多个实施例的三维模型示意图;FIG. 6 illustrates a schematic diagram of a three-dimensional model according to one or more embodiments of the present invention;
图7例示了根据本发明一个或多个实施例的条纹图案;Figure 7 illustrates a stripe pattern according to one or more embodiments of the invention;
图8例示了根据本发明一个或多个实施例的变道提醒的水波纹动画的关键帧示意图;Fig. 8 illustrates a key frame schematic diagram of a water ripple animation of a lane change reminder according to one or more embodiments of the present invention;
图9例示了根据本发明一个或多个实施例的三维模型示意图;FIG. 9 illustrates a schematic diagram of a three-dimensional model according to one or more embodiments of the present invention;
图10例示了根据本发明一个或多个实施例的条纹图案。Figure 10 illustrates a stripe pattern according to one or more embodiments of the invention.
具体实施方式Detailed ways
在下面的描述中,阐述了许多具体细节以便使所属技术领域的技术人员更全面地了解本发明。但是,对于所属技术领域内的技术人员明显的是,本发明的实现可不具有这些具体细节中的一些。此外,应当理解的是,本发明并不限于所介绍的特定实施例。相反,可以考虑用下面的特征和要素的任意组合来实施本发明,而无论它们是否涉及不同的实施例。因此,下面的方面、特征、实施例和优点仅作说明之用而不应被看作是权利要求的要素或限定,除非在权利要求中明确提出。In the following description, numerous specific details are set forth in order to enable those skilled in the art to fully understand the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without some of these specific details. Furthermore, it should be understood that the invention is not limited to the particular embodiments described. Instead, it is conceivable to implement the present invention in any combination of the following features and elements, regardless of whether they relate to different embodiments. Accordingly, the following aspects, features, embodiments and advantages are by way of illustration only and should not be considered elements or limitations of the claims unless explicitly stated in the claims.
图1例示了根据本发明一个或多个实施例的汽车仪表的示例性框图。参考图1所示,汽车仪表100包括处理器110和计算机可读介质120。处理器110可以执行计算机可读介质120上存储有的多个指令以执行一个或多个动作,从而实现各种功能。例如,处理器110可以执行多个指令以生成水波纹动画。处理器110还可以从计算机可读介质120读取数据,和/或将数据存储至计算机可读介质120中。处理器110可以包括中央处理器(CentralProcessing Unit,CPU)111和图形处理器(Graphics Processing Unit,GPU)112。中央处理器111用于对通用计算需求进行处理。图形处理器112用于对图形处理需求进行处理。一般而言,中央处理器111通过调用图形处理器112的应用程序接口(application programminginterface,API)将图形处理需求发送给图形处理器112,并接收图形处理器112的处理结果。计算机可读介质120可以包括内存(Memory)121和/或存储器(Storage)122。内存121的示例包括易失性存储介质,例如随机存取存储器(Random Access Memory,RAM)等。存储器122的示例包括非易失性存储介质,例如只读存储器(Read Only Memory,ROM)、闪存、光盘、磁盘等。FIG. 1 illustrates an exemplary block diagram of an automotive instrument cluster according to one or more embodiments of the present invention. Referring to FIG. 1 , an automotive instrument 100 includes a processor 110 and a computer readable medium 120 . The processor 110 may execute a plurality of instructions stored on the computer-readable medium 120 to perform one or more actions, thereby implementing various functions. For example, the processor 110 may execute a plurality of instructions to generate water ripple animation. The processor 110 can also read data from and/or store data into the computer-readable medium 120 . The processor 110 may include a central processing unit (Central Processing Unit, CPU) 111 and a graphics processing unit (Graphics Processing Unit, GPU) 112 . The central processing unit 111 is used for processing general computing requirements. The graphics processor 112 is used for processing graphics processing requirements. Generally speaking, the central processing unit 111 sends a graphics processing requirement to the graphics processor 112 by calling an application programming interface (application programming interface, API) of the graphics processor 112 , and receives a processing result of the graphics processor 112 . The computer readable medium 120 may include a memory (Memory) 121 and/or a storage (Storage) 122 . Examples of the memory 121 include volatile storage media such as random access memory (Random Access Memory, RAM) and the like. Examples of the memory 122 include non-volatile storage media, such as read only memory (Read Only Memory, ROM), flash memory, optical disk, magnetic disk, and the like.
汽车仪表100还可以包括显示屏幕130。显示屏幕130用于显示各种交互界面。例如,显示屏幕130可以显示车速信息、转速信息、剩余电量信息等基础信息中的一种或多种。显示屏幕130还可以显示各类动画,例如本发明将展开描述的水波纹动画等,以对驾驶员进行起步、变道等提醒。The automotive instrument cluster 100 may also include a display screen 130 . The display screen 130 is used to display various interactive interfaces. For example, the display screen 130 may display one or more of basic information such as vehicle speed information, rotational speed information, and remaining power information. The display screen 130 can also display various animations, such as the water ripple animation described in the present invention, to remind the driver of starting, changing lanes, etc.
汽车仪表100还可以包括I/O接口140。I/O接口140用于输入和/或输出信号、数据或信息。例如,汽车仪表100可以通过I/O接口140与外部设备进行有线或无线的数据交互。在一个或多个实施例中,汽车仪表100内部可以没有显示屏幕130,而是通过I/O接口140与外部的显示屏幕进行交互,以使外部的显示屏幕显示交互界面。与显示屏幕130一样,外部显示屏可以显示车速信息、转速信息、剩余电量信息等基础信息中的一种或多种。同样地,外部显示屏还可以显示各类动画,例如本发明将展开描述的水波纹动画等,以对驾驶员进行起步、变道等提醒。The automotive instrument 100 may also include an I/O interface 140 . The I/O interface 140 is used to input and/or output signals, data or information. For example, the car instrument 100 can perform wired or wireless data interaction with external devices through the I/O interface 140 . In one or more embodiments, the automotive instrument 100 may not have a display screen 130 inside, but interacts with an external display screen through the I/O interface 140, so that the external display screen displays an interactive interface. Like the display screen 130, the external display screen can display one or more of basic information such as vehicle speed information, rotational speed information, and remaining power information. Similarly, the external display screen can also display various animations, such as the water ripple animation described in the present invention, to remind the driver to start, change lanes, etc.
在各种实现中,汽车仪表100可以采用各种不同的配置。例如,汽车仪表100可以被实现为具有显示屏的独立汽车仪表,不带显示屏的汽车仪表控制单元,或者车载域控制器、高性能计算单元中的仪表模块等。In various implementations, the automotive instrument 100 can take various configurations. For example, the automotive instrument 100 can be implemented as an independent automotive instrument with a display screen, an automotive instrument control unit without a display screen, or an on-vehicle domain controller, an instrument module in a high-performance computing unit, and the like.
图2例示了根据本发明一个或多个实施例的在汽车仪表上生成水波纹动画的方法的示例性流程图。在汽车仪表上生成水波纹动画的方法200示例性地可以在如图1所示的汽车仪表100中实现。例如,在汽车仪表上生成水波纹动画的方法200可以以指令的形式(例如应用)存储在计算机可读介质120中,并且由处理器110调用和/或实现。参考图2所示,在汽车仪表上生成水波纹动画的方法200包括如下步骤:Fig. 2 illustrates an exemplary flow chart of a method for generating water ripple animation on an automobile instrument according to one or more embodiments of the present invention. The method 200 for generating water ripple animation on an automobile instrument can be implemented in the automobile instrument 100 as shown in FIG. 1 , for example. For example, the method 200 for generating an animation of water ripples on an automobile instrument may be stored in the computer-readable medium 120 in the form of instructions (such as an application), and invoked and/or implemented by the processor 110 . Referring to Fig. 2, a method 200 for generating water ripple animation on a car instrument includes the following steps:
步骤210:生成对应于水波纹动画区域的三维模型;Step 210: generating a three-dimensional model corresponding to the water ripple animation area;
步骤220:将条纹图案以沿第一方向步进的方式贴附于三维模型中的一个或多个面以生成水波纹动画。Step 220: Attach the stripe pattern to one or more surfaces in the 3D model in a manner of stepping along the first direction to generate a water ripple animation.
在汽车仪表上生成水波纹动画的方法200通过贴图的方式来生成水波纹动画,无需通过着色器来生成水波纹图案,只需提供对应的水波纹图片,这大大降低了着色器的复杂度,减小了性能开销。同时,在需要改变图案效果时,只需替换贴附的图片即可,着色器重复利用率高,降低了变更的工作量。The method 200 for generating a water ripple animation on a car instrument generates a water ripple animation by means of a map, without using a shader to generate a water ripple pattern, and only needs to provide a corresponding water ripple picture, which greatly reduces the complexity of the shader, Reduced performance overhead. At the same time, when you need to change the pattern effect, you only need to replace the attached picture, and the reuse rate of the shader is high, which reduces the workload of the change.
起步提醒start reminder
图3例示了根据本发明一个或多个实施例的起步提醒的水波纹动画的关键帧示意图。参考图3所示,起步提醒的水波纹动画中为倒V字形的水波纹。倒V字形的水波纹一开始在车头前方出现,然后往前移动,移动到某一位置处淡化、消失,如此往复循环。Fig. 3 illustrates a schematic diagram of key frames of a water ripple animation of a starting reminder according to one or more embodiments of the present invention. Referring to FIG. 3 , the water ripple animation of the starting reminder is an inverted V-shaped water ripple. The inverted V-shaped water ripple first appears in front of the front of the car, then moves forward, fades and disappears at a certain position, and repeats this cycle.
在一个或多个实施例中,如图4所示,在步骤210生成的三维模型300包括用于贴附条纹图案的一个平面310。需要说明的是,图4所示的三维模型300为一个平面,但可以理解,三维模型300可以为任何形状,只要用于贴附条纹图案的面为平面即可。例如,三维模型300可以为三棱柱、四棱柱、五棱柱等,这些三维模型各自至少包含用于贴附条纹图案的一个平面。相应地,条纹图案为具有层叠设置的多个倒V字形条纹的图案,如图5所示。其中,条纹图案中的条纹从上到下透明度渐变。In one or more embodiments, as shown in FIG. 4 , the three-dimensional model 300 generated in step 210 includes a plane 310 for attaching the stripe pattern. It should be noted that the three-dimensional model 300 shown in FIG. 4 is a plane, but it can be understood that the three-dimensional model 300 can be in any shape, as long as the surface for attaching the stripe pattern is a plane. For example, the three-dimensional model 300 may be a triangular prism, a quadrangular prism, a pentagonal prism, etc., and each of these three-dimensional models includes at least one plane for attaching the stripe pattern. Correspondingly, the stripe pattern is a pattern having a plurality of inverted V-shaped stripes arranged in layers, as shown in FIG. 5 . Wherein, the stripes in the stripe pattern gradually change in transparency from top to bottom.
在步骤220,将图5所示的条纹图案以沿第一方向步进的方式贴附于三维模型300中的平面310上,以生成如图3所示的水波纹动画。其中,第一方向是指水波纹前进的方向。其中,步进的方式是指在水波纹淡化、消失前,一帧图像中条纹图案贴附于平面310的第一位置处,下一帧图像中条纹图案贴附于平面310的第二位置处,沿第一方向第二位置相对于第一位置更靠前。举例而言,利用着色器将条纹图案贴附于三维模型上,以三维模型中的一个顶点为例,在初始帧将该顶点对应于纹理图案的UV坐标(0,0)的颜色(即采样),在第二帧将该顶点对应于纹理图案的UV坐标(0,0.01)的颜色,在第三帧将该顶点对应于纹理图案的UV坐标(0,0.02)的颜色,以此类推。也就是说,水波纹前进的方向对应于V坐标轴的方向。对于同一顶点随着帧数的递增,其采样的纹理图案的V坐标也相应递增。In step 220 , the stripe pattern shown in FIG. 5 is pasted on the plane 310 in the three-dimensional model 300 by stepping along the first direction, so as to generate the water ripple animation as shown in FIG. 3 . Wherein, the first direction refers to the direction in which the water ripples advance. Among them, the stepping method means that before the water ripple fades and disappears, the stripe pattern in one frame of image is attached to the first position of the plane 310, and the stripe pattern in the next frame of image is attached to the second position of the plane 310 , the second position is more forward than the first position along the first direction. For example, a shader is used to attach a stripe pattern to a 3D model. Taking a vertex in the 3D model as an example, the vertex corresponds to the color of the UV coordinate (0, 0) of the texture pattern in the initial frame (that is, sampling ), the vertex corresponds to the color of the UV coordinate (0, 0.01) of the texture pattern in the second frame, the vertex corresponds to the color of the UV coordinate (0, 0.02) of the texture pattern in the third frame, and so on. That is to say, the direction in which the water ripples advance corresponds to the direction of the V coordinate axis. For the same vertex, as the number of frames increases, the V coordinate of its sampled texture pattern also increases accordingly.
在一个或多个实施例中,如图6所示,在步骤210生成的三维模型包括用于贴附条纹图案的两个平面320,330,这两个平面320,330呈倒V字形。需要说明的是,图6所示的三维模型300为呈倒V字形的两个平面320,330,但可以理解,三维模型300可以为任何形状,只要用于贴附条纹图案的两个平面呈倒V字形即可。例如,三维模型300可以为三棱柱、四棱柱、五棱柱、六棱柱等。相应地,条纹图案为具有多个平行的直线条纹的图案,如图7所示。其中,条纹图案中的条纹从上到下透明度渐变。In one or more embodiments, as shown in FIG. 6 , the three-dimensional model generated in step 210 includes two planes 320 , 330 for attaching the stripe pattern, and the two planes 320 , 330 are in an inverted V shape. It should be noted that the three-dimensional model 300 shown in FIG. 6 is two planes 320, 330 in the shape of an inverted V, but it can be understood that the three-dimensional model 300 can be in any shape, as long as the two planes for attaching the stripe pattern are in the shape of Make an inverted V shape. For example, the three-dimensional model 300 may be a triangular prism, a quadrangular prism, a pentagonal prism, a hexagonal prism, and the like. Correspondingly, the stripe pattern is a pattern having a plurality of parallel straight stripes, as shown in FIG. 7 . Wherein, the stripes in the stripe pattern gradually change in transparency from top to bottom.
在步骤220,将图7所示的条纹图案以沿第一方向步进的方式贴附于三维模型300中的两个平面320,330上,以生成如图3所示的水波纹动画。其中,第一方向是指水波纹前进的方向。其中,步进的方式是指在水波纹淡化、消失前,一帧图像中条纹图案贴附于两个平面320,330的第一位置处,下一帧图像中条纹图案贴附于两个平面320,330的第二位置处,沿第一方向第二位置相对于第一位置更靠前。举例而言,利用着色器将条纹图案贴附于三维模型上,以三维模型中的一个顶点为例,在初始帧将该顶点对应于纹理图案的UV坐标(0,0)的颜色(即采样),在第二帧将该顶点对应于纹理图案的UV坐标(0,0.01)的颜色,在第三帧将该顶点对应于纹理图案的UV坐标(0,0.02)的颜色,以此类推。也就是说,水波纹前进的方向对应于V坐标轴的方向。对于同一顶点随着帧数的递增,其采样的纹理图案的V坐标也相应递增。In step 220 , the stripe pattern shown in FIG. 7 is pasted on the two planes 320 , 330 in the 3D model 300 by stepping along the first direction, so as to generate the water ripple animation as shown in FIG. 3 . Wherein, the first direction refers to the direction in which the water ripples advance. Among them, the stepping method means that before the water ripple fades and disappears, the stripe pattern in one frame of image is attached to the first position of the two planes 320, 330, and the stripe pattern in the next frame of image is attached to the two planes. At the second position of 320, 330, the second position is more forward than the first position along the first direction. For example, a shader is used to attach a stripe pattern to a 3D model. Taking a vertex in the 3D model as an example, the vertex corresponds to the color of the UV coordinate (0, 0) of the texture pattern in the initial frame (that is, sampling ), the vertex corresponds to the color of the UV coordinate (0, 0.01) of the texture pattern in the second frame, the vertex corresponds to the color of the UV coordinate (0, 0.02) of the texture pattern in the third frame, and so on. That is to say, the direction in which the water ripples advance corresponds to the direction of the V coordinate axis. For the same vertex, as the number of frames increases, the V coordinate of its sampled texture pattern also increases accordingly.
变道提醒lane change reminder
图8例示了根据本发明一个或多个实施例的变道提醒的水波纹动画的关键帧示意图。参考图8所示,变道提醒的水波纹动画为直线条纹的水波纹。直线条纹的水波纹一开始在一个车道出现,然后往前移动,在然后移动倒相邻车道并继续往前移动,移动到某一位置处开始淡化、消失,如此往复循环。Fig. 8 illustrates a schematic diagram of key frames of a water ripple animation for a lane change reminder according to one or more embodiments of the present invention. Referring to FIG. 8 , the water ripple animation of the lane change reminder is the water ripple of straight lines. The water ripples of straight stripes first appear in one lane, then move forward, then move down to the adjacent lane and continue to move forward, move to a certain position and start to fade and disappear, and so on.
在一个或多个实施例中,如图9所示,在步骤210生成的三维模型400为跨相邻车道的弯曲三维模型。该弯曲三维模型包括用于贴附条纹图案的一个平面410。需要说明的是,图9所示的三维模型400为弯曲平面,但可以理解,三维模型400可以为任何形状,只要用于贴附条纹图案的面为平面即可。例如,三维模型400可以为弯曲矩形体。在一个或多个实施例中,条纹图案为具有多个平行的直线条纹的图案,如图10所示。其中,条纹图案中的条纹从上到下透明度渐变。In one or more embodiments, as shown in FIG. 9 , the three-dimensional model 400 generated in step 210 is a curved three-dimensional model spanning adjacent lanes. The curved three-dimensional model includes a plane 410 for attaching the stripe pattern. It should be noted that the three-dimensional model 400 shown in FIG. 9 is a curved plane, but it can be understood that the three-dimensional model 400 can be in any shape, as long as the surface for attaching the stripe pattern is a plane. For example, the three-dimensional model 400 may be a curved rectangular body. In one or more embodiments, the stripe pattern is a pattern having a plurality of parallel straight-line stripes, as shown in FIG. 10 . Wherein, the stripes in the stripe pattern gradually change in transparency from top to bottom.
在步骤220,将图10所示的条纹图案以沿第一方向步进的方式贴附于三维模型400中的平面410上,以生成如图8所示的水波纹动画。其中,第一方向是指水波纹前进的方向。其中,步进的方式是指在水波纹淡化、消失前,一帧图像中条纹图案贴附于平面410的第一位置处,下一帧图像中条纹图案贴附于平面410的第二位置处,沿第一方向第二位置相对于第一位置更靠前。举例而言,利用着色器将条纹图案贴附于三维模型上,以三维模型中的一个顶点为例,在初始帧将该顶点对应于纹理图案的UV坐标(0,0)的颜色(即采样),在第二帧将该顶点对应于纹理图案的UV坐标(0,0.01)的颜色,在第三帧将该顶点对应于纹理图案的UV坐标(0,0.02)的颜色,以此类推。也就是说,水波纹前进的方向对应于V坐标轴的方向。对于同一顶点随着帧数的递增,其采样的纹理图案的V坐标也相应递增。。In step 220, the stripe pattern shown in FIG. 10 is pasted on the plane 410 in the three-dimensional model 400 by stepping along the first direction, so as to generate the water ripple animation as shown in FIG. 8 . Wherein, the first direction refers to the direction in which the water ripples advance. Wherein, the stepping method means that before the water ripple fades and disappears, the stripe pattern in one frame of image is attached to the first position of the plane 410, and the stripe pattern in the next frame of image is attached to the second position of the plane 410 , the second position is more forward than the first position along the first direction. For example, a shader is used to attach a stripe pattern to a 3D model. Taking a vertex in the 3D model as an example, the vertex corresponds to the color of the UV coordinate (0, 0) of the texture pattern in the initial frame (that is, sampling ), the vertex corresponds to the color of the UV coordinate (0, 0.01) of the texture pattern in the second frame, the vertex corresponds to the color of the UV coordinate (0, 0.02) of the texture pattern in the third frame, and so on. That is to say, the direction in which the water ripples advance corresponds to the direction of the V coordinate axis. For the same vertex, as the number of frames increases, the V coordinate of its sampled texture pattern also increases accordingly. .
在本发明中,贴附的图片中的条纹的透明度渐变是在图片中直接实现,无需在着色器中操作,同样降低了着色器的复杂度,减小了性能开销。另外,本发明利用动态移动UV坐标的方式进行贴图,降低了对运动轨迹运算的复杂度。In the present invention, the transparency gradient of the stripes in the attached picture is directly implemented in the picture without operating in the shader, which also reduces the complexity of the shader and reduces the performance overhead. In addition, the present invention utilizes the method of dynamically moving UV coordinates to map, which reduces the complexity of motion trajectory calculation.
在一个或多个实施例中,步骤220中是利用着色器将条纹图案贴附于三维模型中的一个或多个面。具体地,其通过步进地调整对应于第一方向的纹理坐标以将条纹图案以沿第一方向步进的方式贴附于三维模型中的一个或多个面。In one or more embodiments, in step 220 , a shader is used to attach the stripe pattern to one or more surfaces in the 3D model. Specifically, it adjusts the texture coordinates corresponding to the first direction step by step to attach the stripe pattern to one or more surfaces in the three-dimensional model in a stepwise manner along the first direction.
在一个或多个实施例中,在汽车仪表上生成水波纹动画的方法200是在汽车仪表100的图形处理器112上实现。In one or more embodiments, the method 200 for generating a water ripple animation on an automotive instrument panel is implemented on the graphics processor 112 of the automotive instrument panel 100 .
虽然本发明已以较佳实施例披露如上,但本发明并非限定于此。任何本领域技术人员,在不脱离本发明的精神和范围内所作的各种更动与修改,均应纳入本发明的保护范围内,因此本发明的保护范围应当以权利要求所限定的范围为准。Although the present invention has been disclosed above with preferred embodiments, the present invention is not limited thereto. Any person skilled in the art, without departing from the various changes and modifications made within the spirit and scope of the present invention, all should be included in the protection scope of the present invention, so the protection scope of the present invention should be defined by the claims. allow.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310491258.5A CN116605046A (en) | 2023-04-28 | 2023-04-28 | Automobile instrument and method for generating water ripple animation |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310491258.5A CN116605046A (en) | 2023-04-28 | 2023-04-28 | Automobile instrument and method for generating water ripple animation |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116605046A true CN116605046A (en) | 2023-08-18 |
Family
ID=87684555
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310491258.5A Pending CN116605046A (en) | 2023-04-28 | 2023-04-28 | Automobile instrument and method for generating water ripple animation |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116605046A (en) |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE102013010818A1 (en) * | 2013-06-28 | 2013-12-12 | Daimler Ag | Method for inserting textures in road surface diagram and/or in view field of driver of vehicle, involves determining a situation in front of vehicle road surface and inserting textures in determined road surface on display device |
| CN105894564A (en) * | 2016-03-30 | 2016-08-24 | 百度在线网络技术(北京)有限公司 | Pavement texture generation method and apparatus |
| CN109754451A (en) * | 2018-12-29 | 2019-05-14 | 北京金山安全软件有限公司 | Image processing method and device, electronic equipment and storage medium |
| CN112710321A (en) * | 2020-12-21 | 2021-04-27 | 戴姆勒股份公司 | Intersection guiding method and intersection guiding device |
| WO2022130028A1 (en) * | 2020-12-17 | 2022-06-23 | Wayray Ag | Graphical user interface and user experience elements for head up display devices |
| CN114742927A (en) * | 2022-03-25 | 2022-07-12 | 网易(杭州)网络有限公司 | Water ripple generation method, device, electronic device and storage medium |
| CN115471622A (en) * | 2022-09-15 | 2022-12-13 | 腾讯科技(深圳)有限公司 | Map texture generation method and device, electronic equipment and storage medium |
-
2023
- 2023-04-28 CN CN202310491258.5A patent/CN116605046A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE102013010818A1 (en) * | 2013-06-28 | 2013-12-12 | Daimler Ag | Method for inserting textures in road surface diagram and/or in view field of driver of vehicle, involves determining a situation in front of vehicle road surface and inserting textures in determined road surface on display device |
| CN105894564A (en) * | 2016-03-30 | 2016-08-24 | 百度在线网络技术(北京)有限公司 | Pavement texture generation method and apparatus |
| CN109754451A (en) * | 2018-12-29 | 2019-05-14 | 北京金山安全软件有限公司 | Image processing method and device, electronic equipment and storage medium |
| WO2022130028A1 (en) * | 2020-12-17 | 2022-06-23 | Wayray Ag | Graphical user interface and user experience elements for head up display devices |
| CN112710321A (en) * | 2020-12-21 | 2021-04-27 | 戴姆勒股份公司 | Intersection guiding method and intersection guiding device |
| CN114742927A (en) * | 2022-03-25 | 2022-07-12 | 网易(杭州)网络有限公司 | Water ripple generation method, device, electronic device and storage medium |
| CN115471622A (en) * | 2022-09-15 | 2022-12-13 | 腾讯科技(深圳)有限公司 | Map texture generation method and device, electronic equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108351864B (en) | concave tessellation | |
| CN104871246B (en) | Multi-mode memory access technique for performing graphics processing unit-based memory transfer operations | |
| CN105487848B (en) | Display refresh method and system for 3D application | |
| WO2010088029A2 (en) | Single-pass bounding box calculation | |
| US6894695B2 (en) | Apparatus and method for acceleration of 2D vector graphics using 3D graphics hardware | |
| CN103021007B (en) | A kind of method that animation is play and device | |
| US7898549B1 (en) | Faster clears for three-dimensional modeling applications | |
| CN1322475C (en) | Methods and apparatus for creating motion illusion | |
| CN108399646A (en) | A kind of image rendering method and device | |
| CN101303849A (en) | A method and device for fast and flicker-free display of sparse graphics of arbitrary shapes that can be overlapped | |
| CN110599564A (en) | Image display method and device, computer equipment and storage medium | |
| CN105023234A (en) | Figure acceleration method based on storage optimization of embedded system | |
| CN112580213B (en) | Method and device for generating display image of electric field lines, and storage medium | |
| JP2004348169A (en) | Dynamic adjustment of sample density and / or several rendering passes in a graphics system | |
| CN116605046A (en) | Automobile instrument and method for generating water ripple animation | |
| CN109978749B (en) | Graphics processor, rendering system and method for operating a graphics processor | |
| CN106326186B (en) | A system-on-chip, graphics rendering method, middle layer and embedded device | |
| CN102592261B (en) | Method and system for displaying vector graphics | |
| JP6058216B2 (en) | Drawing apparatus, drawing method, and drawing program | |
| JP2010176608A (en) | Drawing processing apparatus | |
| CN102568024A (en) | Picture animation displaying method and device | |
| JP2002157604A (en) | Texture drawing method, entertainment device, and recording medium | |
| US20080165208A1 (en) | 3-Dimensional graphic processing apparatus and operating method thereof | |
| WO2008032603A1 (en) | Image processing device, image processing integrated circuit, image processing system, input assembler device, and input assembling integrated circuit | |
| JP5875327B2 (en) | Image display device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information |
Country or region after: China Address after: 241009 Tianzhu Road, Anhui, Wuhu No. 18 Applicant after: Oumeiwei Automotive Electronics (Wuhu) Co., Ltd. Address before: 241009 Tianzhu Road, Anhui, Wuhu No. 18 Applicant before: Continental automotive body electronic system (Wuhu) Co.,Ltd. Country or region before: China |
|
| CB02 | Change of applicant information |