CN111105477B - Drawing method of 2D virtual pointer of full liquid crystal instrument - Google Patents

Drawing method of 2D virtual pointer of full liquid crystal instrument Download PDF

Info

Publication number
CN111105477B
CN111105477B CN201911166910.6A CN201911166910A CN111105477B CN 111105477 B CN111105477 B CN 111105477B CN 201911166910 A CN201911166910 A CN 201911166910A CN 111105477 B CN111105477 B CN 111105477B
Authority
CN
China
Prior art keywords
pointer
pixel point
color
shader
dynamic change
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.)
Active
Application number
CN201911166910.6A
Other languages
Chinese (zh)
Other versions
CN111105477A (en
Inventor
车强
王大伟
邓舸
宋丹丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aerospace Hi Tech Holding Group Co Ltd
Original Assignee
Aerospace Hi Tech Holding Group Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Aerospace Hi Tech Holding Group Co Ltd filed Critical Aerospace Hi Tech Holding Group Co Ltd
Priority to CN201911166910.6A priority Critical patent/CN111105477B/en
Publication of CN111105477A publication Critical patent/CN111105477A/en
Application granted granted Critical
Publication of CN111105477B publication Critical patent/CN111105477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

A drawing method of a 2D virtual pointer of a full liquid crystal instrument belongs to the drawing field of the 2D virtual pointer of the full liquid crystal instrument. The method solves the problems that the traditional pointer drawing method uses a drawing algorithm to write complicated and the virtual pointer style is static and can not be dynamically represented. The color values of all the pixel points in the shader module are dynamically changed by utilizing the pointer color dynamic change function in the shader module, so that the color change of each pixel point along with time is realized, and as long as the pointer pattern is fixed, the display color of the pointer on the display is dynamically changed along with time by changing the color value of each pixel point along with time under the pattern, so that the pointer color is rich and colorful and dynamic, the pointer has a static part and a dynamic part, and the pointer is easy to realize and has stronger expressive force. The method is mainly used for drawing the virtual pointer.

Description

Drawing method of 2D virtual pointer of full liquid crystal instrument
Technical Field
The invention belongs to the field of drawing of 2D virtual pointers of full liquid crystal instruments.
Background
There are roughly two ways to implement a full liquid crystal meter 2D pointer.
A pure picture method, namely using a manufactured 2D pointer picture to represent a pointer, has the defects of unchanged picture content, namely what is shown in an automobile instrument when the picture content is designed, and the pointer is actually static when the numerical value such as the speed of a vehicle is unchanged, and basically does not exert the advantages of a full liquid crystal instrument by simulating the pointer of a traditional mechanical meter.
The other is a pure drawing method, and the method adopts code writing, namely, corresponding functions are written through the code, and the code runs in the GPU, so that the method has higher flexibility. However, the drawing of the pointer is realized by the codes completely, the algorithm required by drawing is quite complex, the implementation is not easy, the difficulty is quite high, and the calculated amount is quite large.
In summary, two virtual pointer drawing methods have drawbacks that need to be addressed.
Disclosure of Invention
The invention provides a 2D virtual pointer drawing method of a full liquid crystal instrument, which aims to solve the problems that a drawing algorithm used by a traditional pointer drawing method is complicated to write, a virtual pointer pattern is static and cannot be dynamically represented.
The drawing method of the 2D virtual pointer of the full liquid crystal instrument is realized based on a CPU, a GPU and a flash module in the automobile instrument, wherein the GPU comprises a controller and N shader modules;
m pointer pattern pictures and a pointer color dynamic change function are stored in the flash module, the M pointer pattern pictures are different, each pointer pattern picture corresponds to one pointer pattern, and M is more than or equal to 3;
the positions of all the pixel points on each pointer pattern picture correspond to the positions of all the pixel points on the automobile instrument display one by one;
the drawing method comprises the following steps:
step one, a CPU of an automobile instrument is used for receiving a theme change instruction, calling a corresponding pointer pattern picture from a flash module according to the received theme change instruction, extracting a color value of each pixel point in the called pointer pattern picture and a position corresponding to each pixel point, and loading the color value of each pixel point in the extracted pointer pattern picture and the position corresponding to each pixel point into any one of the shader modules in the GPU;
the CPU of the automobile instrument is also used for sending a function call instruction to a controller in the GPU according to the received theme change instruction;
step two, the controller in the GPU calls the pointer color dynamic change function from the flash module according to the received function call instruction, and loads the called pointer color dynamic change function in the shader module in the step one;
and dynamically changing the color values of all the pixel points in the shader module by using a pointer color dynamic change function in the shader module, and sending the color value of each pixel point after the dynamic change and the position corresponding to the pixel point to a display of an automobile instrument, thereby completing the drawing of the virtual pointer pattern of the full liquid crystal instrument.
Preferably, the shader module includes a fragment shader and a vertex shader;
the fragment shader is used for loading the called pointer color dynamic change function, loading the color value of each pixel point in the extracted pointer pattern picture, dynamically changing the color value of each pixel point in the extracted pointer pattern picture by using the pointer color dynamic change function, and sending the color value of each pixel point after dynamic change and the position corresponding to the pixel point to a display of an automobile instrument;
and the vertex shader is used for storing the position of each pixel point extracted from the pointer pattern picture, and sending the position corresponding to each pixel point to a display of the automobile instrument.
Preferably, the pointer color dynamic change function is a sine function, an exponential function, a power function, a polynomial, or a combination of the above.
The color value of each pixel point in the color applicator module is dynamically changed by utilizing the pointer color dynamic change function in the color applicator module, so that the color change of each pixel point along with time is realized, and the display color of the pointer on the display is dynamically changed along with time by changing the color value of each pixel point along with time under the fixed pointer pattern as long as the pointer pattern is fixed, so that the pointer is rich and colorful in color display, full of dynamic, has a static part and a dynamic part, is easy to realize and has stronger expressive force.
The invention draws the dynamic part by applying the function on the basis of the 2D mapping, realizes the dynamic change of the pointer and has simple whole drawing process.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other.
The 2D virtual pointer drawing method of the full liquid crystal instrument according to the present embodiment,
the drawing method is realized based on a CPU, a GPU and a flash module in an automobile instrument, wherein the GPU comprises a controller and N shader modules;
m pointer pattern pictures and a pointer color dynamic change function are stored in the flash module, the M pointer pattern pictures are different, each pointer pattern picture corresponds to one pointer pattern, and M is more than or equal to 3;
the positions of all the pixel points on each pointer pattern picture correspond to the positions of all the pixel points on the automobile instrument display one by one;
the drawing method comprises the following steps:
step one, a CPU of an automobile instrument is used for receiving a theme change instruction, calling a corresponding pointer pattern picture from a flash module according to the received theme change instruction, extracting a color value of each pixel point in the called pointer pattern picture and a position corresponding to each pixel point, and loading the color value of each pixel point in the extracted pointer pattern picture and the position corresponding to each pixel point into any one of the shader modules in the GPU;
the CPU of the automobile instrument is also used for sending a function call instruction to a controller in the GPU according to the received theme change instruction;
step two, the controller in the GPU calls the pointer color dynamic change function from the flash module according to the received function call instruction, and loads the called pointer color dynamic change function in the shader module in the step one;
and dynamically changing the color values of all the pixel points in the shader module by using a pointer color dynamic change function in the shader module, and sending the color value of each pixel point after the dynamic change and the position corresponding to the pixel point to a display of an automobile instrument, thereby completing the drawing of the virtual pointer pattern of the full liquid crystal instrument.
In this embodiment, the GPU is an image processor, and the flash module is a flash memory of an automobile instrument.
The invention dynamically changes the color values of all the pixel points in the color applicator module by utilizing the dynamic change function of the pointer color in the color applicator module, thereby realizing the color change of each pixel point along with time, and the display color of the pointer on the display is dynamically changed along with time by changing the color value of each pixel point along with time under the fixed pointer pattern as long as the pointer pattern is fixed, so that the pointer is rich and colorful, full of dynamic, has a static part and a dynamic part, is easy to realize and has stronger expressive force.
The invention draws the dynamic part by applying the function on the basis of the pure 2D mapping, realizes the dynamic change of the pointer and has simple whole drawing process.
Further, the shader module includes a fragment shader and a vertex shader;
the fragment shader is used for loading the called pointer color dynamic change function, loading the color value of each pixel point in the extracted pointer pattern picture, dynamically changing the color value of each pixel point in the extracted pointer pattern picture by using the pointer color dynamic change function, and sending the color value of each pixel point after dynamic change and the position corresponding to the pixel point to a display of an automobile instrument;
and the vertex shader is used for storing the position of each pixel point extracted from the pointer pattern picture, and sending the position corresponding to each pixel point to a display of the automobile instrument.
Further, the pointer color dynamic change function is a sine function, an exponential function, a power function, a polynomial, or a combination of the above. For example, when the dynamic change function of the color of the pointer is a sine function, the color value of each pixel point can be periodically changed along with time and is reflected on the automobile instrument display, and the pointer displayed on the display is periodically changed from bright to dark to bright, so that the pointer dynamically changes the color under the same pattern, and the pointer is rich and colorful and is full of dynamic.
Although the invention herein has been described with reference to particular embodiments, it is to be understood that these embodiments are merely illustrative of the principles and applications of the present invention. It is therefore to be understood that numerous modifications may be made to the illustrative embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that the different dependent claims and the features described herein may be combined in ways other than as described in the original claims. It is also to be understood that features described in connection with separate embodiments may be used in other described embodiments.

Claims (2)

1. The drawing method of the 2D virtual pointer of the full liquid crystal instrument is realized based on a CPU, a GPU and a flash module in the automobile instrument, wherein the GPU comprises a controller and N shader modules;
the flash module is characterized in that M pointer pattern pictures and a pointer color dynamic change function are stored in the flash module, the M pointer pattern pictures are different, each pointer pattern picture corresponds to one pointer pattern, and M is more than or equal to 3;
the positions of all the pixel points on each pointer pattern picture correspond to the positions of all the pixel points on the automobile instrument display one by one;
the drawing method comprises the following steps:
step one, a CPU of an automobile instrument is used for receiving a theme change instruction, calling a corresponding pointer pattern picture from a flash module according to the received theme change instruction, extracting a color value of each pixel point in the called pointer pattern picture and a position corresponding to each pixel point, and loading the color value of each pixel point in the extracted pointer pattern picture and the position corresponding to each pixel point into any one of the shader modules in the GPU;
the CPU of the automobile instrument is also used for sending a function call instruction to a controller in the GPU according to the received theme change instruction;
step two, the controller in the GPU calls the pointer color dynamic change function from the flash module according to the received function call instruction, and loads the called pointer color dynamic change function in the shader module in the step one;
dynamically changing color values of all pixel points in the shader module by using a pointer color dynamic change function in the shader module, and sending the color value of each pixel point after the dynamic change and the position corresponding to the pixel point to a display of an automobile instrument, thereby completing drawing of a virtual pointer pattern of the full liquid crystal instrument;
the shader module includes a fragment shader and a vertex shader;
the fragment shader is used for loading the called pointer color dynamic change function, loading the color value of each pixel point in the extracted pointer pattern picture, dynamically changing the color value of each pixel point in the extracted pointer pattern picture by using the pointer color dynamic change function, and sending the color value of each pixel point after dynamic change and the position corresponding to the pixel point to a display of an automobile instrument;
and the vertex shader is used for storing the position of each pixel point extracted from the pointer pattern picture, and sending the position corresponding to each pixel point to a display of the automobile instrument.
2. The method for drawing a 2D virtual pointer of a full liquid crystal meter according to claim 1, wherein the pointer color dynamic change function is a sine function, an exponential function, a power function, a polynomial, or a combination of the above.
CN201911166910.6A 2019-11-25 2019-11-25 Drawing method of 2D virtual pointer of full liquid crystal instrument Active CN111105477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911166910.6A CN111105477B (en) 2019-11-25 2019-11-25 Drawing method of 2D virtual pointer of full liquid crystal instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911166910.6A CN111105477B (en) 2019-11-25 2019-11-25 Drawing method of 2D virtual pointer of full liquid crystal instrument

Publications (2)

Publication Number Publication Date
CN111105477A CN111105477A (en) 2020-05-05
CN111105477B true CN111105477B (en) 2023-04-28

Family

ID=70421051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911166910.6A Active CN111105477B (en) 2019-11-25 2019-11-25 Drawing method of 2D virtual pointer of full liquid crystal instrument

Country Status (1)

Country Link
CN (1) CN111105477B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112116678B (en) * 2020-08-09 2023-08-22 东风电驱动系统有限公司 Irregular virtual pointer display method of liquid crystal instrument and liquid crystal instrument
CN112395025B (en) * 2020-12-10 2024-04-09 一汽解放汽车有限公司 Spiral pointer drawing method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930564A (en) * 2011-09-08 2013-02-13 微软公司 Visual shader designer
CN107615755A (en) * 2015-05-19 2018-01-19 麦克赛尔株式会社 Head mounted display, head-up display and image display method

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499007A (en) * 2009-03-11 2009-08-05 南京联创科技股份有限公司 Method for implementing map outline marker based on object-oriented programming language technology
CN102681945B (en) * 2012-05-04 2014-11-26 西安电子科技大学 Method for implementing embedded type pointer virtual instrument
US9286647B2 (en) * 2013-03-12 2016-03-15 Nvidia Corporation Pixel shader bypass for low power graphics rendering
US9928565B2 (en) * 2014-04-21 2018-03-27 Qualcomm Incorporated Flex rendering based on a render target in graphics processing
CN105513110A (en) * 2016-01-11 2016-04-20 南京师范大学 GPU-based method for drawing linetype map symbol with gradually-varied width
CN107133907A (en) * 2016-02-26 2017-09-05 龙芯中科技术有限公司 Pattern drawing method and device
US10650544B2 (en) * 2017-06-09 2020-05-12 Sony Interactive Entertainment Inc. Optimized shadows in a foveated rendering system
CN109358852B (en) * 2018-08-31 2021-08-20 惠州市德赛西威汽车电子股份有限公司 Method for realizing skin changing of vehicle-mounted GUI (graphical user interface) by using shader
CN208745759U (en) * 2018-09-27 2019-04-16 航天科技控股集团股份有限公司 Mechanical pointer liquid crystal instrument disk

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930564A (en) * 2011-09-08 2013-02-13 微软公司 Visual shader designer
CN107615755A (en) * 2015-05-19 2018-01-19 麦克赛尔株式会社 Head mounted display, head-up display and image display method

Also Published As

Publication number Publication date
CN111105477A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN111105477B (en) Drawing method of 2D virtual pointer of full liquid crystal instrument
CN109840931B (en) Batch rendering method, device and system for skeletal animation and storage medium
US20080284798A1 (en) Post-render graphics overlays
US20130106882A1 (en) Methods, systems, and data structures for generating a rasterizer
EP2245598B1 (en) Multi-buffer support for off-screen surfaces in a graphics processing system
US9442780B2 (en) Synchronization of shader operation
US10257487B1 (en) Power efficient video playback based on display hardware feedback
CN103003839B (en) Split storage of anti-aliased samples
CN110908560B (en) GPU-based virtual pointer style drawing method for all-liquid crystal instrument
TW201537555A (en) Avoiding sending unchanged regions to display
US10580151B2 (en) Tile-based low-resolution depth storage
CN113313802B (en) Image rendering method, device and equipment and storage medium
EP4290464A1 (en) Image rendering method and apparatus, and electronic device and storage medium
CN115375815A (en) Shadow rendering method and device, electronic equipment and storage medium
CN111915712A (en) Illumination rendering method and device, computer readable medium and electronic equipment
CN107038729A (en) A kind of digital meter panel method for drafting based on OpenGL ES
US10789913B2 (en) Arbitrary block rendering and display frame reconstruction
CN114902286A (en) Method and apparatus for facilitating region of interest tracking of motion frames
US8766986B1 (en) Efficient caching and drawing of objects whose rendering properties change frequently
US11610372B2 (en) Methods and apparatus for multiple lens distortion correction
CN110892383A (en) Delayed batch processing of incremental constant loads
CN117435521B (en) Texture video memory mapping method, device and medium based on GPU rendering
CN114996491A (en) Method and system for optimizing display performance of all-liquid-crystal instrument
CN116998145A (en) Method and apparatus for saliency-based frame color enhancement
CN116820413A (en) Method and device for visual large-screen meteor special effect background plug-in

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
GR01 Patent grant
GR01 Patent grant