Flight training device instrument display system and dynamic rendering method based on vector graphics, computer equipment, and storage medium
Through the dynamic rendering method of flight training device instruments based on vector graphics, the problems of low display quality and low rendering efficiency of instrument displays in dynamic environments are solved, high-precision, real-time instrument display is achieved, and the accuracy and stability of the display are improved.
Patent Information
- Application Number
- CN202511045317.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-29
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-07-29
AI Technical Summary
In a dynamic simulation environment, existing technologies have low instrument display quality and rendering efficiency. Bitmap images produce jagged edges when scaled, and resource usage increases exponentially with resolution, resulting in system response delays. Dynamic effects are limited by the integrity of pre-rendered frame sequences, making it difficult to achieve smooth real-time transitions.
A vector graphics-based dynamic rendering method for flight training device instruments is adopted. By obtaining cockpit layout, vector graphics elements, carrier status and environmental terrain information, light field data is generated and converted into optical adjustment parameters. Combined with the long short-term memory model, the rendering time is predicted, the detail level is dynamically adjusted, the rendering instructions and edge shading are optimized, and high-quality instrument images are generated.
It achieves high-precision, real-time instrument display in complex environments, ensures that the displayed content is synchronized with the actual status, improves the accuracy and stability of the display, optimizes system performance, and ensures the clear display of key information and the smoothness of the system.
Smart Images

Figure CN120543445B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vector graphics technology, and in particular to a flight training device instrument display system and dynamic rendering method, computer equipment, and storage medium based on vector graphics. Background Art
[0002] In dynamic simulation environments, real-time rendering of high-precision instruments must adapt to complex lighting changes and rapid status updates while ensuring clarity and smoothness of the display. Especially during intense sports or extreme weather conditions, the system must be able to resist interference and adapt to multiple resolutions to ensure accurate and real-time operation interpretation.
[0003] The current mainstream solution uses pre-generated bitmap sequences, using a graphics processor to switch and interpolate instrument bitmap images in real time between different states. This solution relies on a high-resolution bitmap resource library and utilizes hardware acceleration for bitmap blending and scaling to simulate dynamic display effects.
[0004] Bitmap images produce jagged edges when scaled, affecting the recognition of key data; resource usage increases exponentially with resolution, resulting in system response delays; dynamic effects are limited by the integrity of pre-rendered frame sequences, making it difficult to achieve smooth real-time transitions, and display continuity is insufficient when complex environments change. Summary of the Invention
[0005] The present application provides a flight training device instrument display system and dynamic rendering method based on vector graphics, computer equipment, and storage medium, to solve the problems of low display quality and low rendering efficiency of instrument displays in dynamic environments in the prior art.
[0006] In a first aspect, the present application provides a method for dynamic rendering of flight training device instruments based on vector graphics, comprising:
[0007] Obtain cockpit instrument layout information, vector graphic element information, carrier real-time status information, and carrier environment meteorological and topographic information;
[0008] generating light field data based on the meteorological and topographic information, converting the light field data into optical adjustment parameters, and generating compensation data based on the optical adjustment parameters;
[0009] Mapping the carrier real-time status information to corresponding vector graphic elements in the vector graphic element information to update display properties of the vector graphic elements;
[0010] Calculating target position coordinates of each vector graphic element in a display coordinate system according to the instrument layout information and the vector graphic element information;
[0011] Using a long short-term memory model to predict a generation time prediction value of a vector graphic element of a next frame, and dynamically adjusting the level of detail of the vector graphic element of the next frame according to the generation time prediction value;
[0012] Combining the updated display attributes, the adjusted level of detail, the position coordinates, and the compensation data, an instrument image is rendered and generated, and the instrument image is output to a display screen.
[0013] Optionally, the rendering and generating the instrument image by combining the updated display attributes, the adjusted level of detail, the position coordinates, and the compensation data includes:
[0014] determining a visual state of the vector graphics element based on the updated display properties;
[0015] Determine simplified rendering instructions based on the adjusted level of detail;
[0016] Locating the spatial distribution of the vector graphic elements according to the position coordinates;
[0017] Modifying edge shading parameters of vector graphics elements using the compensation data;
[0018] generating pixel-level instrument image data based on the spatial distribution, the visual state, the modified edge shading parameters, and the simplified rendering instructions;
[0019] The pixel-level instrument image data is synthesized to output an instrument image.
[0020] Optionally, generating pixel-level instrument image data based on the spatial distribution, the visual state, the modified edge shading parameter, and the simplified rendering instruction includes:
[0021] determining a scan line filling area based on the spatial distribution;
[0022] In the scan line filling area, a pixel filling value is calculated pixel by pixel according to the color attribute and transparency parameter in the visual state;
[0023] Performing anti-aliasing processing based on the pixel fill value and the modified edge shading parameter to generate pixel transition information;
[0024] According to the sampling density parameter in the simplified rendering instruction, the vector graphics element containing the pixel transition information is discretized to output pixel-level instrument image data.
[0025] Optionally, performing anti-aliasing processing based on the pixel filling value and the modified edge shading parameter to generate pixel transition information includes:
[0026] Dividing the scan line filling area into a plurality of pixel blocks, and creating a pixel partition in each pixel block;
[0027] Based on the modified edge shading parameters, the brightness and darkness compensation values corresponding to the edge areas in the pixel partitions are calculated;
[0028] determining a main body shading reference for each pixel block based on the pixel fill values of all pixels in each pixel partition;
[0029] The brightness and darkness compensation value is weightedly mixed with the main body shading reference to generate pixel transition information.
[0030] Optionally, mapping the real-time status information of the carrier to corresponding vector graphic elements in the vector graphic element information to update display properties of the vector graphic elements includes:
[0031] extracting data type and status parameters from the carrier real-time status information;
[0032] Determining the logical association between each vector graphic element and each instrument functional area according to the instrument layout information;
[0033] Based on the logical association relationship, matching the data type with the attribute type in the vector graphic element information;
[0034] When the data type successfully matches the attribute type, the state parameter is converted into a dynamic parameter value corresponding to the vector graphic element according to a preset association rule;
[0035] The dynamic parameter value is stored in the attribute storage structure of the vector graphic element to complete the update of the display attribute.
[0036] Optionally, calculating the target position coordinates of each vector graphic element in a display coordinate system according to the instrument layout information and the vector graphic element information includes:
[0037] parsing the instrument layout information to obtain reference position coordinates;
[0038] Extracting initial relative position parameters and current dynamic parameters from the vector graphics element information;
[0039] Performing coordinate transformation calculation on the initial relative position parameters according to the current dynamic parameters to obtain updated relative position parameters;
[0040] The updated relative position parameters are superimposed on the reference position coordinates, and the target position coordinates of each vector graphic element in the display coordinate system are output.
[0041] Optionally, the predicting a generation time prediction value of the vector graphic element of the next frame by using the long short-term memory model, and dynamically adjusting the detail level of the vector graphic element of the next frame according to the generation time prediction value, includes:
[0042] Obtaining the generation time of multiple historical images to form a generation time sequence;
[0043] Inputting the generation time-consuming sequence into a long short-term memory model, and outputting a generation time prediction value of each vector graphic element of the next frame;
[0044] For the vector graphic elements whose generation time prediction value exceeds the set time threshold, the detail level of the vector graphic elements of the next frame is dynamically adjusted by reducing anti-aliasing sampling.
[0045] In a second aspect, the present application provides a flight training device instrument display system based on vector graphics, comprising:
[0046] An acquisition module is used to obtain cockpit instrument layout information, vector graphic element information, carrier real-time status information, and meteorological and topographic information of the carrier's environment;
[0047] a generating module, configured to generate light field data based on the meteorological and topographic information, convert the light field data into optical adjustment parameters, and generate compensation data based on the optical adjustment parameters;
[0048] A mapping module, configured to map the real-time state information of the carrier to corresponding vector graphic elements in the vector graphic element information, so as to update display properties of the vector graphic elements;
[0049] a calculation module, configured to calculate the target position coordinates of each vector graphic element in a display coordinate system based on the instrument layout information and the vector graphic element information;
[0050] A prediction module, configured to use a long short-term memory model to predict a generation time prediction value of a vector graphic element of a next frame, and dynamically adjust the level of detail of the vector graphic element of the next frame according to the generation time prediction value;
[0051] The output module is used to render and generate an instrument image by combining the updated display attributes, the adjusted detail level, the position coordinates and the compensation data, and output the instrument image to a display screen.
[0052] In a third aspect, the present application provides a computing device comprising a processor and a memory, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute a method for dynamic rendering of flight training device instruments based on vector graphics as described in any one of the first aspects.
[0053] In a fourth aspect, the present application provides a computer storage medium having computer program instructions stored thereon, wherein the computer program instructions, when executed by a processor, implement the method for dynamic rendering of flight training device instruments based on vector graphics as described in any one of the first aspects.
[0054] In the present application, a method for dynamic rendering of flight training device instruments based on vector graphics is provided, the method comprising: obtaining cockpit instrument layout information, vector graphics element information, carrier real-time status information, and meteorological and topographical information of the carrier's environment; generating light field data based on the meteorological and topographical information, converting the light field data into optical adjustment parameters, and generating compensation data based on the optical adjustment parameters; mapping the carrier real-time status information to corresponding vector graphics elements in the vector graphics element information to update the display properties of the vector graphics elements; calculating the target position coordinates of each vector graphics element in the display coordinate system based on the instrument layout information and the vector graphics element information; using a long short-term memory model to predict a generation time prediction value of the vector graphics elements of the next frame, and dynamically adjusting the detail level of the vector graphics elements of the next frame based on the generation time prediction value; rendering and generating an instrument image in combination with the updated display properties, the adjusted detail level, the position coordinates, and the compensation data, and outputting the instrument image to a display screen.
[0055] The technical solution provided by this application has the following beneficial effects:
[0056] This application establishes a basic framework for instrument display, providing data support for subsequent graphics rendering. It generates optical compensation parameters through environmental data analysis to enhance the visibility of instruments under complex lighting conditions. It dynamically links flight status data with graphic elements to ensure that the displayed content is synchronized with the actual status. It accurately locates the display position of each graphic element to ensure the accuracy and consistency of the instrument layout. It balances rendering quality and real-time performance, optimizing system performance while ensuring the clarity of key information. It integrates various processing results to generate the final display image, providing high-quality, interference-resistant visual output.
[0057] Furthermore, the present application also comprehensively generates pixel-level instrument image data and completes the final synthetic output by determining the visual state of graphic elements, formulating simplified rendering instructions, accurately locating spatial distribution, optimizing edge shading processing, and other steps.
[0058] In addition, this solution ensures the dynamic response capability of the instrument display and maintains good visual effects in complex environments. At the same time, it ensures the smoothness of system operation through intelligent optimization mechanisms, and overall improves the accuracy and stability of the display.
[0059] These and other aspects of the present application will become more readily apparent from the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0061] Figure 1 A flowchart of a method for dynamic rendering of flight training device instruments based on vector graphics provided in an embodiment of the present application;
[0062] Figure 2 A schematic diagram of the structure of a flight training device instrument dynamic rendering system based on vector graphics provided in an embodiment of the present application;
[0063] Figure 3 A schematic diagram of the structure of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0065] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this document or may be executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit "first" and "second" to being different types.
[0066] Existing instrument rendering for flight training devices often relies on bitmap technology. Key drawbacks include: bitmap images are limited to a fixed resolution, resulting in jagged edges during dynamic scaling, affecting the accuracy of interpreting critical flight parameters; pre-generated bitmap sequences consume significant storage resources, increasing system response latency; and the static nature of images necessitates that real-time status updates rely on interpolation between frames, making it difficult to maintain display consistency and smoothness in complex weather conditions. These issues stem from the inherent limitations of bitmap technology in adapting to dynamic environments, necessitating a new rendering solution that balances high precision with real-time performance.
[0067] In response to the above-mentioned defects, this application proposes a method for dynamic rendering of flight training device instruments based on vector graphics. Its innovation lies in generating compensation data through light field data conversion, and combining it with a real-time performance optimization strategy predicted by a long short-term memory model to achieve adaptive rendering of instrument displays. Specifically, the resolution dependency is eliminated through the lossless scaling characteristics of vector graphic elements, the dynamic detail level adjustment is used to balance rendering quality and real-time performance, and the display stability under complex lighting is enhanced with the help of optical compensation data. This method breaks through the static limitations of bitmap technology and simultaneously improves resource usage, dynamic effects, and environmental adaptability in three dimensions - it not only solves the problems of image distortion and delay, but also ensures display continuity in highly dynamic scenes, providing a more accurate and reliable visual interaction foundation for flight training.
[0068] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0069] Figure 1 A flowchart of a method for dynamic rendering of flight training device instruments based on vector graphics is provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:
[0070] Step 101: Acquire cockpit instrument layout information, vector graphic element information, carrier real-time status information, and carrier environment meteorological and topographic information.
[0071] In step 101, instrument layout information represents data defining the position, size, and relationship of each instrument on the display interface, including instrument type and reference coordinates. Vector graphic element information represents mathematically defined data describing instrument graphics (such as needles and scales), including geometric shapes, color attributes, and more. Unlike bitmap images, vector graphics are created based on mathematical equations and geometric shapes (such as points, lines, curves, and polygons). Vector graphics are characterized by their lossless scalability to any size because they are defined not by pixels but by paths. This makes vector graphics ideal for applications requiring high precision and scalability. Common vector graphics formats include SVG and Adobe Illustrator. Real-time vehicle status information represents data reflecting the current motion state of a vehicle (such as a flight training device), including altitude, speed, attitude angle, and more. A flight training device is a device used for pilot training and skill development. It simulates various actual flight conditions, including but not limited to aircraft operating characteristics, weather conditions, navigation systems, and emergency response. Using a flight training device allows pilots to practice operations in a safe environment and improve their ability to handle various flight scenarios. The relationship between the carrier and the cockpit is not the same concept. The carrier refers to the moving equipment (such as an aircraft), and the cockpit refers to its control cabin. The two are subordinate to each other. Weather and terrain information refers to external data that affects the display effect, such as ambient lighting, cloud distribution, and terrain elevation.
[0072] In this embodiment, the system first reads instrument layout information from a configuration file to determine the display area and hierarchical relationship of each instrument. It also loads a predefined library of vector graphics elements to obtain mathematical descriptions of these elements. It then receives real-time motion parameters of the vehicle through a data interface and collects meteorological and topographic data from environmental sensors. Together, these data form the basic input for rendering.
[0073] For example, during flight simulation, the system parses the altimeter center coordinates as (150, 200) from the layout configuration, loads the pointer in the vector graphics library and defines it as a 30-pixel straight line; obtains the carrier altitude value of 3200 meters in real time; and measures the current light intensity of 800 lux through the environmental sensor.
[0074] Step 102: generating light field data based on the meteorological and topographic information, converting the light field data into optical adjustment parameters, and generating compensation data based on the optical adjustment parameters.
[0075] In step 102, light field data represents data describing the distribution characteristics of light in the environment, including light intensity and direction. Optical adjustment parameters represent parameters used to adjust the display effect, such as brightness compensation coefficients. Compensation data is a set of optical adjustment parameters generated to offset ambient light interference. These parameters include edge brightness enhancement coefficients, contrast correction values, and other optical compensation parameters. These data are generated by processing light field data converted from meteorological and topographic information and fall under the category of optical compensation data.
[0076] In an embodiment of the present application, the system generates light field data through radiation transfer model calculation based on the illumination and terrain data in the meteorological and terrain information; converts the light field data into optical adjustment parameters according to preset mapping rules; and finally generates compensation data for subsequent edge shading enhancement.
[0077] For example, a light intensity of 800 lux is input into the light field model, and the light field distribution matrix is calculated. This is converted into optical adjustment parameters using the formula K = 1.2 × L / L_max (where K is the compensation coefficient, L is the local illumination value, and L_max is the maximum illumination threshold), and the output edge compensation coefficient is 1.2.
[0078] Step 103: Map the carrier real-time status information to corresponding vector graphic elements in the vector graphic element information to update display properties of the vector graphic elements.
[0079] In step 103, the display attributes refer to the visual characteristic parameters of the vector graphic elements, including color, rotation angle, transparency, etc., which are obtained by converting the real-time status information of the carrier through preset mapping rules, such as converting the altitude value into the pointer angle and the speed value into digital display content.
[0080] In an embodiment of the present application, the attribute type (such as pointer angle) of the corresponding vector graphic element is matched according to the data type of the real-time status information of the carrier (such as height value); dynamic parameter values are generated through preset conversion rules (such as height value × 0.12 = angle); and updated to the attribute storage structure of the graphic element.
[0081] For example, the altitude value of 3200 meters is converted to 384 degrees using the formula angle = altitude × 0.12, and the rotation properties of the altimeter pointer are updated.
[0082] Step 104: Calculate the target position coordinates of each vector graphic element in the display coordinate system according to the instrument layout information and the vector graphic element information.
[0083] In step 104 , the target position coordinates are the final positioning points of the vector graphic elements on the display screen, which are obtained by superimposing the reference position coordinates with the dynamically calculated relative offsets, ensuring that each element is accurately arranged according to the layout.
[0084] In an embodiment of the present application, the instrument layout information is parsed to obtain the reference coordinates; the initial offset is extracted from the vector graphic element information; the updated offset is calculated in combination with the current dynamic parameters (such as the rotation angle); and the reference coordinates are superimposed to obtain the final display position.
[0085] For example, the altimeter base coordinates are (150, 200), the initial pointer offset is (0, -30), and after rotating 384° the new offset is (-28.9, 9.3), and the final position is (121.1, 209.3).
[0086] Step 105: Utilize the long short-term memory model to predict a generation time prediction value of the vector graphic elements of the next frame, and dynamically adjust the detail level of the vector graphic elements of the next frame according to the generation time prediction value.
[0087] In step 105, a time prediction value is generated, representing the rendering time of the next frame predicted by the LSTM model. The level of detail (LOD) represents the geometric complexity of a graphic element and is determined by the rendering time predicted by the LSTM model. When the predicted rendering time exceeds a threshold, the number of control points or contour accuracy of non-core elements is reduced to balance quality and performance.
[0088] In an embodiment of the present application, a historical rendering time sequence is collected and input into a long short-term memory model; the next frame time is predicted; if it exceeds a threshold, the geometric complexity of non-core elements is reduced (such as reducing curve control points).
[0089] For example, if the prediction time of 24ms exceeds the threshold of 22ms, the altimeter scale control points will be reduced from 32 to 16.
[0090] Step 106: Rendering and generating an instrument image based on the updated display attributes, the adjusted level of detail, the position coordinates, and the compensation data, and outputting the instrument image to a display screen.
[0091] In step 106, the level of detail (LOD) represents the geometric complexity of the graphic element, determined by the rendering time predicted by the LSTM model. When the predicted time exceeds a threshold, the number of control points or outline accuracy of non-core elements is reduced to balance quality and performance. Display attributes refer to the variable visual characteristics of vector graphic elements (such as pointer angle and digital content); the "display" is the physical output device. The relationship between the three is that the spatial data of the graphic element calculated based on the "display attributes" is ultimately rendered as a visual image on the "display."
[0092] In an embodiment of the present application, elements are positioned according to position coordinates; updated visual attributes are loaded; compensation data is applied to enhance edges; rendering is performed according to simplified instructions; and a final image is synthesized for output.
[0093] For example, the altimeter pointer is positioned at the coordinates (121.1, 209.3), and the red color (255, 0, 0) is enhanced to (255, 51, 51) by a compensation factor of 1.2, and then synthesized and output to the display.
[0094] This method solves the image distortion problem through the lossless scaling characteristics of vector graphics, uses environmental compensation and dynamic detail adjustment to ensure display stability and real-time performance under complex lighting conditions, achieves smooth rendering of high-precision instrument displays, and improves the realism and operational reliability of training simulations.
[0095] To address the real-time rendering problem of instrument displays in highly dynamic environments, in some embodiments, step 106 , wherein the step of rendering and generating an instrument image by combining the updated display attributes, the adjusted level of detail, the position coordinates, and the compensation data, includes:
[0096] Step 201: Determine the visual state of the vector graphic element based on the updated display properties.
[0097] In step 201 , the visual state refers to the final appearance characteristics of the vector graphic element, including visualization parameters such as color, rotation state, and transparency, which are directly determined by the updated display properties.
[0098] In an embodiment of the present application, the system reads updated display attribute data, such as pointer angle, digital content, etc., converts these parameters into specific visual representations of graphic elements, and determines the final display style of each element.
[0099] Step 202: Determine simplified rendering instructions based on the adjusted level of detail.
[0100] In step 202 , the simplified rendering instruction is an optimization control command for the graphic elements according to the predicted rendering load, and includes control parameters such as the geometry simplification level and sampling accuracy.
[0101] In an embodiment of the present application, the system selects a corresponding optimization strategy based on the rendering time predicted by the long short-term memory model, such as reducing the number of curve segments of non-critical instrument elements or reducing texture details, and generates specific simplified operation instructions.
[0102] Step 203: Locate the spatial distribution of the vector graphic elements according to the position coordinates.
[0103] In step 203, the spatial distribution describes the positional arrangement relationship of all vector graphic elements in the display interface, and the display area of each element is accurately located through the position coordinates.
[0104] In the embodiment of the present application, the system places each graphic element at a corresponding position in the display buffer according to the calculated target position coordinates, thereby establishing a complete instrument space layout.
[0105] Step 204: Modify edge shading parameters of the vector graphic element using the compensation data.
[0106] In step 204 , the edge shading parameters are adjustment data used to enhance the visibility of the edges of the graphics, including brightness compensation values, contrast enhancement coefficients, and the like.
[0107] In an embodiment of the present application, the system applies compensation data generated by light field data to adjust the shading of edge pixels of graphic elements, and uses a weighted blending algorithm to keep the edges clearly visible under complex lighting.
[0108] Step 205: Generate pixel-level instrument image data based on the spatial distribution, the visual state, the modified edge shading parameters, and the simplified rendering instructions.
[0109] In step 205 , the pixel-level instrument image data is a discrete pixel set obtained by converting the vector graphics, and includes the color and transparency information of each pixel.
[0110] In an embodiment of the present application, the system locates graphic elements according to spatial distribution, combines visual state and edge shading parameters, fills the interior of the graphic through a scan line algorithm, and performs piecewise approximation on complex curves according to simplified instructions, ultimately generating a complete pixel data matrix.
[0111] Step 206: synthesize the pixel-level instrument image data and output an instrument image.
[0112] In step 206 , image synthesis is a process of superimposing and fusing all processed pixel data in the display order.
[0113] In an embodiment of the present application, the system performs transparency blending processing on multiple layers of pixel data, transfers the final synthesized image frame to the display buffer, and completes the output. Specific process: the system first generates an independent pixel data block for each instrument element, which contains color values and transparency information; then all elements are stacked in order from the bottom layer to the top layer, and for pixels in the overlapping area, the upper and lower layer colors are mixed according to the transparency ratio of the upper layer elements; finally, all mixed pixels are arranged according to the screen resolution to form a complete two-dimensional image matrix, which is transmitted to the corresponding pixel points of the physical screen through the display interface for luminous display. For example, when processing the altimeter rendering: first draw the gray pixel matrix (200,200,200) of the dial background, and superimpose the red pointer pixels (255,0,0,0.8) with transparency on it. Perform blending calculations on overlapping pixels: red component: 255×0.8 + 200×0.2 = 236, green component: 0×0.8 + 200×0.2 = 40, blue component: 0×0.8 + 200×0.2 = 40, and write the result (236,40,40) to the corresponding position of the display buffer. After scanning all 1920×1080 pixel positions, the entire frame image is transmitted to the display.
[0114] Here's a specific example:
[0115] During the flight simulation, the system determines that the visual state of the altimeter pointer is rotated 384 degrees and displayed in red based on the updated display properties. The angle is calculated from the altitude value of 3200 meters using the formula angle = altitude × 0.12, where 0.12 is the preset conversion factor. Based on the predicted rendering time of 24 milliseconds exceeding the 22 millisecond threshold, a simplified rendering instruction is generated to reduce the number of contour control points of the altimeter scale from 32 to 16. The pointer spatial distribution is located according to the calculated target position coordinates (121.1, 209.3), which are obtained by superimposing the base position (150, 200) and the rotated offset (-28.9, 9.3), where the offset is calculated by trigonometric function, and the formula is x The y-offset is 30×sin384° and the y-offset is -30×cos384°. The compensation coefficient 1.2 generated by the light field model is used to modify the pointer edge shading parameters, and the original red (255, 0, 0) is enhanced to (255, 51, 51). The compensation calculation formula is K=1.2×L / L_max, where L is the measured illumination value of 800 lux and L_max is the maximum illumination threshold of 1000 lux set by the system. Based on the above processing results, the system first uses the scan line algorithm to fill the pointer area, then optimizes the outline of the scale line according to the simplified instructions, and finally synthesizes the processed pixel data with the dial background through transparency blending, outputs the final instrument image to the display device, and completes the full process rendering from data to image.
[0116] In the embodiment of the present application, the solution achieves stable rendering of instrument images in complex environments through dynamic visual state control, adaptive detail optimization and precise spatial positioning, which not only ensures the clear display of key information, but also ensures the real-time response of the system, thereby improving the display quality and operating experience.
[0117] To solve the problem of accurate conversion from vector graphics to pixel images, in some embodiments, step 205: generating pixel-level instrument image data based on the spatial distribution, the visual state, the modified edge shading parameters, and the simplified rendering instructions, includes:
[0118] Step 301: Determine a scan line filling area based on the spatial distribution.
[0119] In step 301, the scan line filling area refers to the vertical projection range of the graphics to be rendered on the screen, and the boundary is determined by the spatial distribution coordinates of the graphic elements.
[0120] In an embodiment of the present application, the system calculates the highest and lowest points of the vector graphic element in the display area based on the target position coordinates of the vector graphic element, determines the vertical scanning range that needs to be processed, and defines the operation area for subsequent line-by-line rendering.
[0121] Step 302: In the scan line filling area, a pixel filling value is calculated pixel by pixel according to the color attribute and transparency parameter in the visual state.
[0122] In step 302, the color attribute refers to the base display color of the vector graphic element, such as the red (255,0,0) color of the altimeter needle. This attribute is derived from the element's initial color defined in the instrument configuration file. The transparency parameter, which ranges from 0 (fully transparent) to 1 (opaque), is derived from the dynamic transparency parameter associated with transparency in the carrier status information (e.g., an alarm triggers a 30% transparency flash). The pixel fill value, which contains both color and transparency data, reflects the final display effect of each point within the graphic.
[0123] In an embodiment of the present application, the system calculates the display value of each pixel point row by row from the top to the bottom of the graphic within the scan line range according to the basic color and transparency defined by the visual state to complete the preliminary coloring of the graphic body.
[0124] Step 303: performing anti-aliasing processing based on the pixel filling value and the modified edge shading parameter to generate pixel transition information.
[0125] In step 303, pixel transition information is mixed shading data of edge areas of graphics to eliminate jagged appearance.
[0126] In an embodiment of the present application, the system mixes the internal fill color with the modified edge shading parameters in proportion to the distance in the edge area of the graphic to generate a smooth color transition band, making the graphic outline natural and soft.
[0127] Step 304: Discretize the vector graphics elements containing the pixel transition information according to the sampling density parameter in the simplified rendering instruction, and output pixel-level instrument image data.
[0128] In step 304, the sampling density parameter represents the level of detail when converting the vector graphics curve into pixels. The value ranges from 0% to 100% and is derived from the comparison of the rendering time predicted by the long short-term memory model with a preset threshold. When the predicted time exceeds the threshold, the density is proportionally reduced, for example, from the default 100% to 50%, which means that the number of sampling points is halved. Discretization is the process of converting vector graphics into a pixel matrix and is controlled by the sampling density.
[0129] In an embodiment of the present application, the system performs piecewise approximation processing on the outline of the graphic according to the sampling density required by the simplified instruction, converts the curve into an appropriate number of straight line segments, and finally outputs a pixel data block enclosed by these line segments. In the specific implementation process, when processing the altimeter pointer rendering, the system divides the pointer contour curve into 16 straight line segments for approximation. The endpoint coordinates of each straight line segment are calculated by the curve formula. For example, the starting coordinates of the third straight line segment are (120, 205) and the end coordinates are (122, 203). For the sub-pixel units in the edge area of each straight line segment, different color mixing weights are assigned according to the distance from the edge. The unit with a width of 0.2 pixels from the edge adopts a mixture of 60% foreground color and 40% background color, and the unit with a width of 0.5 pixels adopts a mixture of 90% foreground color and 10% background color. Finally, the 1920×1080 resolution image data composed of these discrete line segments and mixed pixels is output, so that the pointer edge presents a smooth transition effect.
[0130] Here's a specific example:
[0131] During the flight simulation, the system determines that the scan line filling range is 205 to 215 pixels in the vertical direction based on the spatial distribution of the altimeter pointer. The range is calculated by the pointer endpoint coordinates (121.1, 209.3) and the length parameter. In the filling area, each pixel is filled row by row from top to bottom according to the red (255, 0, 0) and fully opaque attributes set by the visual state. For the pointer edge area, the system mixes the basic red with the edge enhancement color (255, 51, 51) compensated by the light field. The mixing ratio uses the formula W=d / D, where W is the edge color weight and d is the pixel to pixel. The distance to the edge, D is the preset transition area width of 5 pixels, and the mixing ratio at 2 pixels away from the edge is 40% edge color plus 60% base color; according to the 50% sampling density required by the simplification instruction, the pointer outline is simplified from the default 32-segment curve to 16 straight lines, and the coordinates of the endpoints of each straight line are calculated using the curve formula. For example, the starting point of the third straight line is (120,208) and the end point is (122,206); in the final generated pixel data, the pointer body remains pure red, and the edge presents a smooth brightness gradient. After being synthesized with the dial background, it is output to the display device to achieve a high-quality and performance-optimized instrument display effect.
[0132] In the embodiment of the present application, the solution optimizes rendering efficiency while ensuring graphics quality through regional rendering and intelligent edge processing, and achieves high-fidelity conversion of vector graphics to pixel data, so that the instrument display maintains clear and sharp main features while having a natural and smooth edge effect.
[0133] To further improve the display quality of the instrument image edge, in some embodiments, step 303: performing anti-aliasing processing based on the pixel fill value and the modified edge shading parameter to generate pixel transition information includes:
[0134] Step 401: Divide the scan line filling area into multiple pixel blocks, and create pixel partitions in each pixel block.
[0135] In step 401 , pixel blocks refer to a number of square processing units that divide the scan line area, and each block includes a number of pixel partitions as basic units for anti-aliasing processing.
[0136] In an embodiment of the present application, the system divides the graphic area to be rendered into several square blocks of the same size, and further subdivides each block into smaller pixel partition grids, providing an operational basis for subsequent refined edge processing.
[0137] Step 402: Calculate the brightness and darkness compensation value corresponding to the edge area in the pixel partition based on the modified edge shading parameter.
[0138] In step 402, the brightness compensation value is a brightness adjustment calculated based on the edge shading parameters, used to improve the visibility of the edge area under different lighting conditions. The edge area refers to the sub-area within the pixel partition that intersects the boundary of the vector graphic element. Its range is determined by the following process: first, the path of the vector graphic edge crossing the pixel partition is detected. Then, a strip area of a preset width (e.g., 1 / 4 pixel width on each side) is extended in both directions from the path as the center. This strip area is the edge area, and its width is positively correlated with the sharpness coefficient in the edge shading parameters.
[0139] In an embodiment of the present application, the system calculates the brightness compensation value that needs to be added to each edge partition based on the compensation coefficient in the edge shading parameters and the relative position relationship between the pixel partition and the edge of the graphic, so that the edge can be clearly seen in different environments. For example, in the rendering of the flight altitude indicator pointer, the system detects that the pointer edge passes through the upper left 1 / 4 area of a certain pixel partition. Based on the glare compensation coefficient +0.3 (strong light environment) in the edge shading parameters and the distance ratio of 0.25 between the edge area and the center line of the pointer, the system calculates that the brightness value of the edge area needs to be increased by 0.3×(1-0.25)=0.225. Finally, this brightness compensation is superimposed on the original pixel fill value, so that the brightness of the pointer edge in rain and fog is increased by 22.5% without affecting the color of the main area.
[0140] Step 403: Determine a main body shading reference for each pixel block according to the pixel filling values of all pixels in each pixel partition.
[0141] In step 403, the main body coloring reference is the standard display color of the internal area of the graphic, which is directly determined by the pixel fill value.
[0142] In an embodiment of the present application, the system analyzes the color data of the internal partitions of each pixel block, excludes the edge interference area, and takes the average value as the main reference color of the block to provide a reference standard for subsequent mixing processing.
[0143] Step 404: weight-mix the brightness and darkness compensation value with the main body shading reference to generate pixel transition information.
[0144] In step 404, weighted blending is a process of proportionally adjusting the compensation value and the reference color according to the pixel position.
[0145] In an embodiment of the present application, the system dynamically adjusts the mixing ratio of the brightness compensation value and the main reference color according to the distance relationship between the pixel partition and the edge. The closer to the edge, the greater the weight of the compensation value, and finally generates pixel display data with a smooth transition.
[0146] Here's a specific example:
[0147] During the flight simulation, the system determines that the scan line filling range is 205 to 215 pixels in the vertical direction based on the spatial distribution of the altimeter pointer. This range is calculated by the pointer endpoint coordinates x=121.1, y=209.3 and the length parameter 10 pixels using the formula y_start=y0-L / 2, y_end=y0+L / 2, where y0 is the vertical coordinate of the pointer center 209.3, and L is the pointer length 10 pixels. Within the filling area, each pixel is filled row by row from top to bottom according to the red parameter 255, 0, 0 and the fully opaque attribute set by the visual state. For the pointer edge area, the system mixes the basic red 255, 0, 0 with the edge enhancement color 255, 51, 51 after light field compensation. The mixing ratio is calculated using the formula W=d / D, where W is the edge color weight, d is the distance from the pixel to the edge, and D is the preset transition area width of 5 pixels. This formula means that the closer to the edge, the higher the proportion of edge color. For example, the mixing ratio at 2 pixels from the edge is 0.4 edge color plus 0.6 basic color.
[0148] In the embodiment of the present application, the solution effectively eliminates the jagged phenomenon of the graphic edges through partition processing and dynamic mixing technology, so that the instrument display can maintain a clear and smooth visual effect under various lighting conditions, thereby improving the quality and realism of the display.
[0149] To solve the problem of accurate synchronization between the instrument display status and the carrier motion status in a flight training device, in some embodiments, step 103: mapping the carrier real-time status information to corresponding vector graphic elements in the vector graphic element information to update the display attributes of the vector graphic elements, includes:
[0150] Step 501: extracting data type and status parameters from the carrier real-time status information.
[0151] In step 501, the data type refers to the classification identifier of the carrier status information, such as altitude, speed, etc. The status parameter refers to a specific numerical value, such as an altitude value of 3000 meters.
[0152] In the embodiment of the present application, the system first parses the received carrier real-time status data packet, identifies the different types of status information contained therein and their corresponding values, and provides structured input for subsequent matching processing.
[0153] Step 502: Determine the logical association between each vector graphic element and each instrument functional area according to the instrument layout information.
[0154] In step 502, the logical association relationship is the subordinate relationship between each instrument functional area (such as the altimeter and airspeed indicator areas) defined in the instrument layout information and the specific graphic elements (such as the pointer and scale lines) in the vector graphic element information, which is pre-established through the layout configuration file.
[0155] In the embodiment of the present application, by querying the instrument layout configuration table, a list of correspondences between each functional instrument area and the vector graphic elements it contains is established to clarify the scope of the status information.
[0156] Step 503: Based on the logical association relationship, match the data type with the attribute type in the vector graphic element information.
[0157] In step 503, the attribute type refers to the category of display characteristics of the vector graphic element that can be modified, such as rotation angle, color value, etc.
[0158] In the embodiment of the present application, the system compares the data type extracted in step 501 with the graphic element attribute type determined in step 502, and selects the target attribute items that need to be updated, such as the height value corresponding to the pointer rotation angle.
[0159] Step 504: When the data type matches the attribute type successfully, the state parameter is converted into a dynamic parameter value corresponding to the vector graphic element according to a preset association rule.
[0160] In step 504, the association rule refers to a method for converting state parameters to graphic attributes, such as a linear mapping formula. This specifically refers to the dynamic parameter value corresponding to the currently matched single vector graphic element, meaning that each conversion process is only performed on the specific element whose data type and attribute type successfully match, rather than processing all elements simultaneously. Dynamic parameter values refer to numerical values converted from the real-time state information of the carrier and used to control the specific display characteristics of the vector graphic element, such as the pointer rotation angle, digital display content, or color depth. These values directly determine the dynamic expression of the graphic element on the screen and are key intermediate data for achieving the visualization of state information.
[0161] In an embodiment of the present application, when the data type and the attribute type are successfully matched, the corresponding algorithm in the preset conversion rule library is called to convert the state parameters into dynamic parameter values that can be directly used by the graphic elements, completing the conversion of data into visual attributes.
[0162] Step 505: Store the dynamic parameter value into the attribute storage structure of the vector graphic element to complete the update of the display attribute.
[0163] In step 505, the attribute storage structure is a predefined data organization form in the vector graphic element information, which is used to store dynamic display parameters of various graphic elements. It is created and memory space is allocated according to the instrument configuration file when the system is initialized.
[0164] In an embodiment of the present application, the system writes the converted dynamic parameter value into the storage location of the corresponding graphic element, triggering real-time update of the display attribute to ensure that subsequent rendering uses the latest data.
[0165] Here's a specific example:
[0166] During the flight simulation, the system first identifies the altitude value of 3,200 meters from the real-time data transmitted by the carrier and marks it as a vertical position data type. At the same time, it determines from the instrument layout configuration that the pointer element contained in the altimeter area is associated with the vertical position data; the vertical position data type is matched with the rotation angle attribute of the pointer element. After confirming that the match is successful, the angle calculation formula in the preset conversion rule library is called: angle = altitude × 0.12, where altitude is the real-time carrier altitude value obtained and 0.12 is the preset conversion factor. This formula converts the 3,200-meter altitude value into a 384-degree rotation angle parameter; the system then writes this rotation angle parameter into the rotation attribute storage location of the pointer element to complete the update of the pointer display state. At this time, the pointer will adjust its display direction according to the new rotation parameter; at the same time, the system continues to process the state mapping of other instrument elements, such as directly storing the airspeed value of 280 knots into the content attribute of the airspeed meter digital display, ensuring that all instrument elements can reflect the current motion state of the carrier in real time and provide accurate display attribute data for subsequent coordinate calculation and image rendering.
[0167] In the embodiment of the present application, the solution realizes the precise mapping of the carrier motion state to the instrument display. Through structured data processing and regular conversion mechanism, it ensures real-time visual feedback of state changes, while avoiding manual configuration errors and improving the authenticity and intuitive operation of training simulation.
[0168] To further improve the accuracy of calculating the positions of instrument display elements, in some embodiments, step 104: calculating the target position coordinates of each vector graphic element in the display coordinate system based on the instrument layout information and the vector graphic element information, includes:
[0169] Step 601: parse the instrument layout information to obtain reference position coordinates.
[0170] In step 601, the reference position coordinates refer to the fixed reference point position data of the instrument in the display interface, which is used to determine the relative positions of other graphic elements.
[0171] In the embodiment of the present application, the system parses the reference coordinate points of each instrument from a pre-stored instrument layout configuration file as a starting basis for subsequent position calculations.
[0172] Step 602: extracting initial relative position parameters and current dynamic parameters from the vector graphic element information.
[0173] In step 602, the initial relative position parameter refers to the original offset data of the graphic element relative to the reference coordinates. The current dynamic parameter refers to the dynamically changing value obtained through state information mapping, such as the rotation angle.
[0174] In an embodiment of the present application, the system extracts the initial position offset parameters of each element from the vector graphics library, and simultaneously obtains the dynamic change parameters generated after state mapping processing, providing complete input for coordinate transformation.
[0175] Step 603: performing coordinate transformation calculation on the initial relative position parameters according to the current dynamic parameters to obtain updated relative position parameters.
[0176] In step 603, coordinate transformation calculation refers to the process of performing geometric operations on the initial position according to dynamic parameters.
[0177] In an embodiment of the present application, the system selects a corresponding transformation algorithm according to the type of the current dynamic parameter. For example, the rotation angle uses trigonometric functions to calculate the new offset, and converts the initial relative position parameter into an updated offset parameter that adapts to the latest state.
[0178] Step 604: superimpose the updated relative position parameters on the reference position coordinates, and output the target position coordinates of each vector graphic element in the display coordinate system.
[0179] In step 604, the superposition calculation refers to the process of performing a synthesis operation on the relative offset and the reference coordinates.
[0180] In an embodiment of the present application, the system algebraically adds the updated relative position parameters to the reference position coordinates, and ultimately outputs the precise position data of the graphic element in the global display coordinate system for use by the rendering engine. For example, the system reads the altimeter dial reference coordinates (150, 200) as the reference position, obtains the initial pointer offset (0, -30) and the current rotation angle of 384 degrees, calculates the offset after rotation as (-28.9, 9.3) through trigonometric functions, and adds this offset to the reference coordinates to obtain the final position of the pointer endpoint (121.1, 209.3), which is used for subsequent rendering positioning.
[0181] Here's a specific example:
[0182] During flight simulation, the system first obtains the altimeter's reference position coordinates (150, 200) from the pre-stored instrument layout configuration. These coordinates represent the fixed position of the dial center point on the display screen. The system then extracts the initial relative position parameters of the altimeter pointer from the vector graphics element library, including a pointer length of 30 pixels and an endpoint offset of (0, -30) corresponding to an initial angle of 0 degrees. At this point, the system has obtained the pointer's current rotation angle parameter of 384 degrees through state mapping. Using the trigonometric formulas (x offset = length × sin (angle) and y offset = -length × cos (angle), where the length is 30 pixels and the angle is 384 degrees), the system calculates the new offset after rotation to (-28.9, 9.3). This new offset is then added to the reference coordinates: 150 plus -28.9 yields 121.1, and 200 plus 9.3 yields 209.3. Ultimately, the target position coordinates of the pointer endpoint in the display coordinate system are determined to be (121.1, 209.3).
[0183] In the embodiment of the present application, the solution achieves precise positioning of instrument elements under various state changes through hierarchical calculation and dynamic parameter fusion, ensures the accuracy of the spatial relationship of display elements in complex dynamic scenes, and lays the foundation for position calculation for high-quality graphics rendering.
[0184] To further improve rendering efficiency and ensure display smoothness, in some embodiments, step 105: using the long short-term memory model to predict the generation time prediction value of the vector graphic elements of the next frame, and dynamically adjusting the detail level of the vector graphic elements of the next frame based on the generation time prediction value, includes:
[0185] Step 701: Obtain the generation time of multiple historical images to form a generation time sequence.
[0186] In step 701, the historical image refers to the system's most recently rendered instrument image frames (e.g., the most recent 10 frames). The rendering engine's built-in timer records the rendering time, generating a time series of data [18ms, 19ms, 17ms...] for predictive analysis. The rendering time series refers to the chronologically ordered collection of the system's recorded rendering times for the historical frames.
[0187] In an embodiment of the present application, the system continuously monitors and records the length of time from the start of rendering to the completion of output of the most recent frames of images, forming an ordered time data sequence to provide an input basis for the prediction model.
[0188] Step 702: Input the generation time-consuming sequence into a long short-term memory model, and output a generation time prediction value of each vector graphic element of the next frame.
[0189] In step 702, the long short-term memory model refers to a prediction model that can process time series data, and the generated time prediction value refers to an estimated value of the time required for rendering the next frame output by the model.
[0190] In an embodiment of the present application, the system inputs the collected generation time-consuming sequence into a pre-trained prediction model, and the model outputs a prediction result of the rendering time of each graphic element in the next frame by analyzing the changing trend of the time series.
[0191] Step 703: For the vector graphic elements whose generation time prediction value exceeds the set time threshold, dynamically adjust the detail level of the vector graphic elements of the next frame by reducing anti-aliasing sampling.
[0192] In step 703 , the time threshold refers to a preset maximum allowable rendering time, and reducing anti-aliasing sampling refers to reducing the level of refinement of graphics edge processing.
[0193] In an embodiment of the present application, the system compares the prediction result with the set threshold, and reduces the complexity of details by reducing the computational effort of edge smoothing for graphic elements that may time out, thereby ensuring that the overall rendering time is controlled within a reasonable range.
[0194] Here's a specific example:
[0195] During the flight simulation, the system first records the rendering time data of the most recent frames of images to form a time series [18 milliseconds, 19 milliseconds, 17 milliseconds, 20 milliseconds, 21 milliseconds, 19 milliseconds, 22 milliseconds, 20 milliseconds, 23 milliseconds, 21 milliseconds]. The time consumption of each frame is obtained by the time difference from the start of rendering to the completion of image output by the system's built-in timer. The time series is input into a pre-trained long-short-term memory prediction model. The model analyzes the time change trend and outputs the predicted rendering time of each graphic element in the next frame. The altimeter scale line is predicted to be 8 milliseconds, the pointer is predicted to be 6 milliseconds, and the background is predicted to be 7 milliseconds, totaling 21 milliseconds. Since the total predicted time is close to the set threshold of 22 milliseconds, the system predicts the altimeter scale line to be 8 milliseconds, the pointer is predicted to be 6 milliseconds, and the background is predicted to be 7 milliseconds, totaling 21 milliseconds. Optimization measures are initiated for the degree line element, reducing its edge anti-aliasing processing from the original 4 sampling points to 2 sampling points. The number of sampling points is calculated using the formula N_new=N_original×T_threshold / T_predicted, where N_new is the adjusted number of sampling points, N_original is the original number of sampling points, T_threshold is the time threshold, and T_predicted is the predicted time. After calculation, the number of sampling points is reduced from 4 to 2. After the optimization is implemented, the actual measured total rendering time of the next frame is 20 milliseconds, which not only ensures the display accuracy of important elements such as the altimeter pointer, but also maintains the overall rendering efficiency, so that the system keeps running smoothly.
[0196] In the embodiment of the present application, the solution effectively controls the consumption of rendering resources through intelligent prediction and dynamic adjustment mechanisms while ensuring the display quality of key information, ensures the real-time and stability of the system response under different load conditions, and improves the user experience in complex scenarios.
[0197] Figure 2 A schematic diagram of a flight training device instrument display system based on vector graphics is provided in an embodiment of the present application, such as Figure 2 As shown, the system includes:
[0198] The acquisition module 21 is used to obtain cockpit instrument layout information, vector graphic element information, carrier real-time status information, and meteorological and topographic information of the environment in which the carrier is located.
[0199] The generating module 22 is configured to generate light field data based on the meteorological and topographic information, convert the light field data into optical adjustment parameters, and generate compensation data based on the optical adjustment parameters.
[0200] The mapping module 23 is configured to map the real-time status information of the carrier to corresponding vector graphic elements in the vector graphic element information, so as to update display properties of the vector graphic elements.
[0201] The calculation module 24 is configured to calculate the target position coordinates of each vector graphic element in the display coordinate system according to the instrument layout information and the vector graphic element information.
[0202] The prediction module 25 is used to predict the generation time prediction value of the vector graphic elements of the next frame by using the long short-term memory model, and dynamically adjust the detail level of the vector graphic elements of the next frame according to the generation time prediction value.
[0203] The output module 26 is configured to render and generate an instrument image based on the updated display attributes, the adjusted level of detail, the position coordinates, and the compensation data, and output the instrument image to a display screen.
[0204] An embodiment of the present application can also provide another instrument display system for a flight trainer based on vector graphics, which includes: a vector graphics library, an instrument configuration file, a data interface module, a graphics rendering engine, and a display module. The vector graphics library is used to store predefined instrument graphic elements, including instrument panels, scale lines, pointers, numbers, etc., and all graphic elements are described using vector graphics. The instrument configuration file is used to define the layout, graphic element attributes, data binding relationships, etc. of each instrument. The data interface module is used to receive real-time data from the flight simulation model, such as altitude, speed, attitude, etc. The graphics rendering engine is used to extract corresponding graphic elements from the vector graphics library based on the instrument configuration file and real-time data, perform coordinate transformation, attribute calculation, and finally render and generate instrument images. The display module is used to output the rendered instrument image to a display device.
[0205] Figure 2 The instrument display system of the flight training device based on vector graphics can be executed Figure 1 The implementation principles and technical effects of the vector graphics-based flight training device instrument display method described in the illustrated embodiment will not be elaborated upon. The specific manner in which the various modules and units in the vector graphics-based flight training device instrument display system in the aforementioned embodiment perform their operations has been described in detail in the related embodiments of the method and will not be further elaborated upon here.
[0206] In one possible design, Figure 2 The flight training device instrument display system based on vector graphics of the embodiment shown can be implemented as a computing device, such as Figure 3 As shown, the computing device may include a storage component 31 and a processing component 32;
[0207] The storage component 31 stores one or more computer instructions, wherein the one or more computer instructions are called and executed by the processing component 32 .
[0208] The processing component 32 is used to perform the above Figure 1 The embodiment provides a flight training device instrument display method based on vector graphics.
[0209] The processing component 32 may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented as one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.
[0210] The storage component 31 is configured to store various types of data to support operations on the terminal. The storage component can be implemented by any type of volatile or non-volatile memory device, or a combination thereof, such as static random-access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0211] Of course, a computing device may also include other components, such as input / output interfaces, display components, communication components, etc.
[0212] The input / output interface provides an interface between the processing component and the peripheral interface module, which can be an output device, an input device, etc.
[0213] The communication component is configured to facilitate, among other things, wired or wireless communications between the computing device and other devices.
[0214] Among them, the computing device can be a physical device or an elastic computing host provided by a cloud computing platform, etc. In this case, the computing device can refer to a cloud server, and the above-mentioned processing components, storage components, etc. can be basic server resources rented or purchased from the cloud computing platform.
[0215] The present application also provides a computer storage medium storing a computer program, wherein the computer program can achieve the above-mentioned Figure 1 The illustrated embodiment is a method for displaying flight training device instruments based on vector graphics.
[0216] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0217] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0218] Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented using software plus a necessary general-purpose hardware platform, or of course, hardware. Based on this understanding, the essence of the above technical solution, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for causing a computer device (such as a personal computer, server, or network device) to execute the methods described in each embodiment or certain portions of the embodiments.
[0219] Finally, it should be noted that 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, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for dynamic rendering of flight training device instruments based on vector graphics, characterized in that: include: Obtain cockpit instrument layout information, vector graphic element information, carrier real-time status information, and carrier environment meteorological and topographic information; generating light field data based on the meteorological and topographic information, converting the light field data into optical adjustment parameters, and generating compensation data based on the optical adjustment parameters; Mapping the carrier real-time status information to corresponding vector graphic elements in the vector graphic element information to update display properties of the vector graphic elements; Calculating target position coordinates of each vector graphic element in a display coordinate system according to the instrument layout information and the vector graphic element information; Using a long short-term memory model to predict a generation time prediction value of a vector graphic element of a next frame, and dynamically adjusting the level of detail of the vector graphic element of the next frame according to the generation time prediction value; Combining the updated display attributes, the adjusted level of detail, the position coordinates, and the compensation data, an instrument image is rendered and generated, and the instrument image is output to a display screen.
2. The method according to claim 1, characterized in that The rendering and generating of the instrument image by combining the updated display attributes, the adjusted level of detail, the position coordinates, and the compensation data includes: determining a visual state of the vector graphics element based on the updated display properties; Determine simplified rendering instructions based on the adjusted level of detail; Locating the spatial distribution of the vector graphic elements according to the position coordinates; Modifying edge shading parameters of vector graphics elements using the compensation data; generating pixel-level instrument image data based on the spatial distribution, the visual state, the modified edge shading parameters, and the simplified rendering instructions; The pixel-level instrument image data is synthesized to output an instrument image.
3. The method according to claim 2, characterized in that The generating pixel-level instrument image data based on the spatial distribution, the visual state, the modified edge shading parameter, and the simplified rendering instruction includes: determining a scan line filling area based on the spatial distribution; In the scan line filling area, a pixel filling value is calculated pixel by pixel according to the color attribute and transparency parameter in the visual state; Performing anti-aliasing processing based on the pixel fill value and the modified edge shading parameter to generate pixel transition information; According to the sampling density parameter in the simplified rendering instruction, the vector graphics element containing the pixel transition information is discretized to output pixel-level instrument image data.
4. The method according to claim 3, characterized in that The anti-aliasing process is performed based on the pixel filling value and the modified edge shading parameter to generate pixel transition information, including: Dividing the scan line filling area into a plurality of pixel blocks, and creating a pixel partition in each pixel block; Based on the modified edge shading parameters, the brightness and darkness compensation values corresponding to the edge areas in the pixel partitions are calculated; determining a main body shading reference for each pixel block based on the pixel fill values of all pixels in each pixel partition; The brightness and darkness compensation value is weightedly mixed with the main body shading reference to generate pixel transition information.
5. The method according to claim 1, wherein Mapping the real-time state information of the carrier to corresponding vector graphic elements in the vector graphic element information to update display properties of the vector graphic elements includes: extracting data type and status parameters from the carrier real-time status information; Determining the logical association between each vector graphic element and each instrument functional area according to the instrument layout information; Based on the logical association relationship, matching the data type with the attribute type in the vector graphic element information; When the data type successfully matches the attribute type, the state parameter is converted into a dynamic parameter value corresponding to the vector graphic element according to a preset association rule; The dynamic parameter value is stored in the attribute storage structure of the vector graphic element to complete the update of the display attribute.
6. The method according to claim 1, characterized in that Calculating the target position coordinates of each vector graphic element in the display coordinate system according to the instrument layout information and the vector graphic element information includes: parsing the instrument layout information to obtain reference position coordinates; Extracting initial relative position parameters and current dynamic parameters from the vector graphics element information; Performing coordinate transformation calculation on the initial relative position parameters according to the current dynamic parameters to obtain updated relative position parameters; The updated relative position parameters are superimposed on the reference position coordinates, and the target position coordinates of each vector graphic element in the display coordinate system are output.
7. The method according to claim 1, characterized in that The method of using the long short-term memory model to predict a generation time prediction value of the vector graphic element of the next frame, and dynamically adjusting the detail level of the vector graphic element of the next frame according to the generation time prediction value, includes: Obtaining the generation time of multiple historical images to form a generation time sequence; Inputting the generation time-consuming sequence into a long short-term memory model, and outputting a generation time prediction value of each vector graphic element of the next frame; For the vector graphic elements whose generation time prediction value exceeds the set time threshold, the detail level of the vector graphic elements of the next frame is dynamically adjusted by reducing anti-aliasing sampling.
8. A flight training device instrument display system based on vector graphics, characterized in that: include: An acquisition module is used to obtain cockpit instrument layout information, vector graphic element information, carrier real-time status information, and meteorological and topographic information of the carrier's environment; a generating module, configured to generate light field data based on the meteorological and topographic information, convert the light field data into optical adjustment parameters, and generate compensation data based on the optical adjustment parameters; A mapping module, configured to map the real-time state information of the carrier to corresponding vector graphic elements in the vector graphic element information, so as to update display properties of the vector graphic elements; a calculation module, configured to calculate the target position coordinates of each vector graphic element in a display coordinate system based on the instrument layout information and the vector graphic element information; A prediction module, configured to use a long short-term memory model to predict a generation time prediction value of a vector graphic element of a next frame, and dynamically adjust the level of detail of the vector graphic element of the next frame according to the generation time prediction value; The output module is used to render and generate an instrument image by combining the updated display attributes, the adjusted detail level, the position coordinates and the compensation data, and output the instrument image to a display screen.
9. A computing device, characterized in that The method comprises a processing component and a storage component; the storage component stores one or more computer instructions; the one or more computer instructions are used to be called and executed by the processing component to implement the method for dynamic rendering of flight training device instruments based on vector graphics as described in any one of claims 1 to 7.
10. A computer storage medium, characterized in that A computer program is stored, and when the computer program is executed by a computer, the method for dynamic rendering of flight training device instruments based on vector graphics according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Simulator real-time rendering scene generation method and system
CN119963786A
Improved aircraft flat panel display system
WO2002103292A1