A dynamic progress bar drawing method based on opengl-es
What is AI technical title?
AI technical title is built by Patsnap AI team. It summarizes the technical point description of the patent document.
A progress bar and dynamic technology, applied in the direction of program control devices, instruments, user interface execution, etc., can solve the problems of low screen frame rate, complex development difficulty, large amount of code, etc.
Active Publication Date: 2021-09-10
XIDIAN UNIV
View PDF6 Cites 0 Cited by
Summary
Abstract
Description
Claims
Application Information
AI Technical Summary
This helps you quickly interpret patents by identifying the three key elements:
Problems solved by technology
Method used
Benefits of technology
Problems solved by technology
[0004] The purpose of the present invention is to propose a dynamic progress bar drawing method based on OpenGL-ES, to solve the low drawing efficiency caused by directly using native API drawing when using OpenGL-ES to draw the dynamic progress bar in the digital instrument panel at present, Low screen frame rate, large amount of code and complex development problems
Method used
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more
Image
Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
Click on the blue label to locate the original text in one second.
Reading with bidirectional positioning of images and text.
Smart Image
Examples
Experimental program
Comparison scheme
Effect test
Embodiment 1
[0050]In this embodiment, the number n=4 of the mask texture mask is taken, the read data source is the vehicle speed, and the arc-shaped progress bar is used as the display mode, which specifically includes the following steps:
[0051] 1. Process the progress bar texture plane.tga, mask texture mask1.tga, mask2.tga, mask3.tga, mask4.tga to be displayed into a transparent background, and the color of the mask texture mask1~4 needs to be consistent with the dashboard background Color remains consistent.
[0052] Here, as long as the background of the picture is in a transparent background format, and can cooperate with the following texture loading function to realize the loading of the picture, it is not limited to the tga format, and can use png, jpg and other formats, but since the tga format picture is the current international The graphics and image industry is a relatively common file format, so the tga format is used for pictures.
[0053] 2. Use the OpenGL-ES native A...
Embodiment 2
[0062] Similarly, in this embodiment, the texture loading and texture binding steps are similar to those described in Embodiment 1, the read data source is the car water temperature, the number of mask texture masks is set to n=1, and the progress is linear bar as the display method.
[0063] In the linear progress bar, the mask texture mask and the progress bar texture move in parallel to achieve a dynamic occlusion effect. The read water temperature value X ranges from 0 to A, and A=100; the full scale range of the progress bar is 0 to B, Take B=100; then the moving distance of the mask texture mask is X*B / A, that is, X scales.
[0064] Since the color of the mask texture mask is consistent with the color of the screen background, and it is located at the same position as the complete linear progress bar texture, when it moves in parallel according to the data size, it will block the progress bar texture in real time, so as to realize the progress The effect of dynamic incr...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More
PUM
Login to View More
Abstract
The present invention relates to a method for drawing a dynamic progress bar based on OpenGL-ES, comprising the following steps: Step 1: draw a shader at a specified position, including a vertex shader and a fragment shader; Step 2: read a texture picture, and use it as The array is stored in the code; Step 3: Bind the read texture with the shader; Step 4: Render the drawn picture to the screen and refresh the screen; Step 5: Read real-time data; Step 6: According to Read the real-time data, transform the mapping matrix corresponding to the texture, and jump to step 3. Compared with the drawing method of the dynamic progress bar in the prior art, the present invention significantly reduces the occupancy rate of CPU and GPU, releases processor resources; and reduces the development difficulty and code amount of the digital instrument panel UI in the embedded system, reduces The development cost is reduced, and the development efficiency is improved; and compared with the default anti-aliasing function of OpenGL-ES, the lines drawn by this method have no aliasing and the effect is controllable.
Description
technical field [0001] The invention relates to the field of digital instrument panels, in particular to an OpenGL-ES-based dynamic progress bar drawing method. Background technique [0002] With the progress of the times, the fields of automobile driving and aerospace have also developed rapidly, and their intelligence is getting higher and higher, and the information that needs to be included in the dashboard is also increasing; while the traditional mechanical dashboard can The area is limited, and it is difficult to contain the increasing display information. Therefore, the digital instrument panel, as a program to change the visible area and display information, must be the development trend of related fields in the future. Among the numerous information, information such as speed, fuel level, and temperature have higher priority. Faced with a large amount of displayed information, the user's attention is often distracted by low-priority information, which affects the u...
Claims
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More
Application Information
Patent Timeline
Application Date:The date an application was filed.
Publication Date:The date a patent or application was officially published.
First Publication Date:The earliest publication date of a patent with the same application number.
Issue Date:Publication date of the patent grant document.
PCT Entry Date:The Entry date of PCT National Phase.
Estimated Expiry Date:The statutory expiry date of a patent right according to the Patent Law, and it is the longest term of protection that the patent right can achieve without the termination of the patent right due to other reasons(Term extension factor has been taken into account ).
Invalid Date:Actual expiry date is based on effective date or publication date of legal transaction data of invalid patent.