Satellite communication link space environment attenuation rendering method, device and storage medium
By processing and rendering the attenuated data of the space environment of the satellite communication link, high-quality rendered images are generated, and the problem of distortion caused by three-dimensional amplification on the earth in the prior art is solved, and a better visualization effect is achieved.
Patent Information
- Application Number
- CN202111249221.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2041-10-26
AI Technical Summary
The existing satellite communication network simulation platform will cause distortion when enlarging pictures on three-dimensional earth, resulting in poor visualization and it is difficult to intuitively view the attenuation of satellite links affected by the space environment.
A satellite communication link space environment attenuation rendering method is proposed. By obtaining the initial attenuation data, data processing is performed to obtain the data texture object, inversely calculate the real attenuation data, and rendering it on the preset rendering style picture according to the sorting position to generate high-quality rendering images.
It realizes high-quality visualization of the attenuated data of the space environment of the satellite communication link, improves the resolution and visualization effect of the rendered pictures, and allows users to more intuitively view the spatial environment impact of the satellite link.
Smart Images

Figure CN114037789B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer image simulation, and in particular to a satellite communication link space environment attenuation rendering method, device and storage medium. Background Art
[0002] In order to facilitate users to intuitively view the impact of the space environment on satellite links, that is, the impact of rainfall, fog and other space environments on satellite links to attenuate satellite communication signals, a satellite communication network simulation platform is designed to visualize the attenuation data to assist satellite network planning and design.
[0003] In the related technology, the satellite communication network simulation platform directly renders according to the calculated attenuation data, and then loads it into the browser for display through HTML technology. However, enlarging the image on the three-dimensional earth will cause distortion, resulting in poor visualization effect. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a satellite communication link space environment attenuation rendering method, which can realize attenuation data visualization and improve the visualization effect of the rendered image.
[0005] The present invention also proposes a satellite communication link space environment attenuation rendering device.
[0006] The present invention also provides a computer-readable storage medium.
[0007] In a first aspect, an embodiment of the present invention provides a satellite communication link space environment attenuation rendering method, comprising:
[0008] Acquire initial attenuation data of the space environment, obtain the maximum value and the minimum value of the initial attenuation data, and obtain a ranking reference value;
[0009] Processing the initial attenuation data to obtain a data texture object;
[0010] Determine a first pixel value of the preset texture coordinate according to the data texture object and the preset texture coordinate;
[0011] Performing back calculation on the first pixel value to obtain real attenuation data;
[0012] Determine a ranking position of the real attenuation data according to the real attenuation data and the ranking reference value;
[0013] Determine a second pixel value of the real attenuation data according to the sorting position and the preset rendering style picture;
[0014] Rendering is performed on a preset rendering style picture according to the second pixel value of the real attenuation data and the sorting position to obtain a rendered image.
[0015] The satellite communication link space environment attenuation rendering method of the embodiment of the present invention has at least the following beneficial effects: by acquiring the initial attenuation data of the space environment, the initial attenuation data is processed to obtain a data texture object, and then the first pixel value of the preset texture coordinate is determined according to the data texture object and the preset texture coordinate, and then the first pixel value is inversely calculated to obtain the real attenuation data, and then the sorting position is determined according to the real attenuation data and the ranking reference value, and then the second pixel value of the real attenuation data is determined according to the sorting position and the preset rendering style picture, and then the rendering can be performed on the preset rendering style picture according to the second pixel value and the sorting position to obtain a rendering picture, so as to realize the visualization operation of the attenuation data and improve the visualization effect of the attenuation data.
[0016] According to some other embodiments of the present invention, the satellite communication link space environment attenuation rendering method, the initial attenuation data is processed to obtain a data texture object, including:
[0017] Amplifying the initial attenuation data by a preset multiple and taking an integer to obtain first attenuation data;
[0018] Convert the first attenuation data into a two-byte format to obtain second attenuation data;
[0019] The second attenuation data is compressed in a binary format to obtain the data texture object.
[0020] According to the satellite communication link space environment attenuation rendering method of some other embodiments of the present invention, the preset rendering style picture is generated by the following steps:
[0021] A preset rendering algorithm is used to draw a picture object with a preset picture size to obtain the preset rendering style picture.
[0022] According to some other embodiments of the present invention, the satellite communication link space environment attenuation rendering method, the first pixel value is back-calculated to obtain the real attenuation data, including:
[0023] Substitute the first pixel value into a preset calculation formula for back calculation to obtain the real attenuation data.
[0024] According to some other embodiments of the satellite communication link space environment attenuation rendering method of the present invention, determining the sorting position of the real attenuation data according to the real attenuation data and the ranking reference value includes:
[0025] Performing difference calculation on the actual attenuation data and the ranking reference value to obtain a difference;
[0026] The sorting position of the real attenuation data is determined according to the difference.
[0027] According to some other embodiments of the present invention, the satellite communication link space environment attenuation rendering method, the rendering is performed on a preset rendering style picture according to the second pixel value of the real attenuation data and the sorting position to obtain a rendered picture, including:
[0028] Determining the coordinates on the preset rendering style picture according to the sorting position of the real attenuation data;
[0029] Rendering is performed at the coordinates on the preset rendering style image according to the second pixel value of the real attenuation data to obtain the rendered image.
[0030] According to some other embodiments of the present invention, the satellite communication link space environment attenuation rendering method further includes:
[0031] Receive query coordinate information;
[0032] The corresponding initial attenuation data is determined according to the query coordinate information and the data texture object, and the initial attenuation data is displayed.
[0033] According to the satellite communication link space environment attenuation rendering method of some other embodiments of the present invention, the query coordinate information includes: longitude coordinate information and latitude coordinate information.
[0034] In a second aspect, an embodiment of the present invention provides a satellite communication link space environment attenuation rendering device, comprising:
[0035] An acquisition module, used to acquire initial attenuation data of the space environment, and acquire the maximum and minimum values of the initial attenuation data to obtain a ranking reference value;
[0036] A data processing module, used for processing the initial attenuation data to obtain a data texture object;
[0037] A first pixel calculation module, used for determining a first pixel value of the preset texture coordinate according to the data texture object and the preset texture coordinate;
[0038] A back-calculation module, used for back-calculating the first pixel value to obtain real attenuation data;
[0039] A sorting module, used to determine a sorting position of the real attenuation data according to the real attenuation data and the ranking reference value;
[0040] A second pixel calculation module, used for determining a second pixel value of the real attenuation data according to the sorting position and a preset rendering style picture;
[0041] A rendering module is used to render on a preset rendering style picture according to the second pixel value of the real attenuation data and the sorting position to obtain a rendered picture.
[0042] The satellite communication link space environment attenuation rendering device of the embodiment of the present invention has at least the following beneficial effects: by acquiring the initial attenuation data of the space environment, the initial attenuation data is processed to obtain a data texture object, and then the first pixel value of the preset texture coordinate is determined according to the data texture object and the preset texture coordinate, and then the first pixel value is inversely calculated to obtain the real attenuation data, and then the sorting position is determined according to the real attenuation data and the ranking reference value, and then the second pixel value of the real attenuation data is determined according to the sorting position and the preset rendering style picture, and then the rendering can be performed on the preset rendering style picture according to the second pixel value and the sorting position to obtain a rendering picture, so as to realize the visualization operation of the attenuation data and improve the visualization effect of the attenuation data.
[0043] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the satellite communication link space environment attenuation rendering method as described in the first aspect.
[0044] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained through the structures particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a schematic flow chart of a specific embodiment of a method for rendering a satellite communication link space environment attenuation in an embodiment of the present invention;
[0046] Figure 2 yes Figure 1 A schematic flow chart of a specific embodiment of step S200;
[0047] Figure 3 yes Figure 1 A schematic flow chart of a specific embodiment of step S500;
[0048] Figure 4 yes Figure 1 A flowchart of a specific embodiment of step S600;
[0049] Figure 5It is a schematic flow chart of another specific embodiment of the satellite communication link space environment attenuation rendering method in an embodiment of the present invention;
[0050] Figure 6 It is a module block diagram of a specific embodiment of a satellite communication link space environment attenuation rendering device in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the embodiments to clearly and completely describe the concept of the present invention and the technical effects produced, so as to fully understand the purpose, characteristics and effects of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, other embodiments obtained by those skilled in the art without creative work are all within the scope of protection of the present invention.
[0052] In the description of the present invention, if it involves a description of orientation, for example, the orientation or position relationship indicated by "upper", "lower", "front", "back", "left", "right", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. If a feature is referred to as being "set", "fixed", "connected", or "installed" on another feature, it can be directly set, fixed, or connected to the other feature, or it can be indirectly set, fixed, connected, or installed on the other feature.
[0053] In the description of the embodiments of the present invention, if "several" is involved, it means more than one, if "multiple" is involved, it means more than two, if "greater than", "less than" or "exceed" is involved, it should be understood as not including the number itself, if "above", "below" or "within" is involved, it should be understood as including the number itself. If "first" or "second" is involved, it should be understood as being used to distinguish technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0054] Satellite communication links are easily affected by the space environment. For example, rain, fog and other environments will cause attenuation of communication signals. The satellite communication network simulation platform needs to visualize the attenuation data and view the attenuation value at any location to assist in satellite network planning and design. In traditional satellite communication network simulation platforms, the calculated attenuation data is directly rendered into images or rendered using front-end canvas technology, and then loaded into the browser for display using HTML technology. However, the resolution of images directly rendered from attenuation data is limited, and the efficiency of generating images is low. Zooming in on the three-dimensional earth will cause distortion, and the visualization effect is not very good.
[0055] First, refer to Figure 1 An embodiment of the present invention discloses a method for rendering a satellite communication link space environment attenuation, including but not limited to steps S100 to S700.
[0056] S100, obtaining initial attenuation data of the space environment, obtaining the maximum value and the minimum value of the initial attenuation data, and obtaining a ranking reference value;
[0057] S200, processing the initial attenuation data to obtain a data texture object;
[0058] S300, determining a first pixel value of a preset texture coordinate according to a data texture object and a preset texture coordinate;
[0059] S400, performing back calculation on the first pixel value to obtain real attenuation data;
[0060] S500, determining a ranking position of the real attenuation data according to the real attenuation data and the ranking reference value;
[0061] S600, determining a second pixel value of the real attenuation data according to the sorting position and the preset rendering style image;
[0062] S700 , rendering is performed on a preset rendering style image according to the second pixel value and the sorting position of the real attenuation data to obtain a rendered image.
[0063] Among them, the initial attenuation data of the space environment reflects the impact of the space environment on satellite communications, and the data texture object is obtained after the initial attenuation data is processed, and the data texture object is the texture object of the initial attenuation data, that is, the initial attenuation data is represented by another format. Then, the first pixel value of the preset texture coordinates is determined according to the data texture object and the preset texture coordinates, and then the first pixel value is inversely calculated to obtain the real attenuation data, and the sorting position is determined according to the relationship between the numerical value of the real attenuation data and the ranking reference value, and then the second pixel value of the real attenuation data is determined according to the sorting position and the preset rendering picture, that is, the specific value of each pixel in the preset rendering picture is determined, and the rendering image can be rendered on the preset rendering style picture according to the second pixel value of the real attenuation data. Therefore, the attenuation data is presented in a visual form, and the visualization effect of the rendered picture is improved.
[0064] Reference Figure 2 In some embodiments, step S200 includes but is not limited to steps S210 to S230.
[0065] S210, amplifying the initial attenuation data by a preset multiple and taking an integer to obtain first attenuation data;
[0066] S220, converting the first attenuation data into a two-byte format to obtain second attenuation data;
[0067] S230: compress the second attenuation data in a binary format to obtain a data texture object.
[0068] Since the initial attenuation data of the satellite network caused by the space environment is relatively small, the initial attenuation data is amplified by a preset multiple and then an integer is taken to obtain the first attenuation data, and then the first attenuation data is formatted in two bytes to obtain the second attenuation data, and the second attenuation data can be used to represent the pixel value, and then the second attenuation data is compressed in binary format to obtain a data texture object. In short, the data texture object is each pixel value of the texture map created by the program.
[0069] For example, if the initial attenuation data is 1.132 and 1.206, assuming that the preset multiple is 100 times, the initial attenuation data is magnified 100 times to obtain 113.2 and 120.6, and then 113.2 and 120.6 are taken as integers, and 113.2 and 120.6 are rounded to integers to obtain the first attenuation data of 113 and 121. Then the first attenuation data is processed into two bytes in unsigned integer format, and the unsigned integer is 0-127, so the second attenuation data is also 113 and 121, and then the second attenuation data is compressed in binary format to obtain data texture objects, that is, 113 and 121 are converted into binary, and the data texture objects obtained are 1110001 and 1111001. Therefore, the data texture object is represented in binary form to facilitate the calculation of the second pixel value corresponding to each texture coordinate.
[0070] In some embodiments, the preset rendering style image is generated by the following steps:
[0071] A preset drawing algorithm is used to draw a picture object with a preset picture size to obtain a preset rendering style picture.
[0072] Since the satellite communication link space environment attenuation rendering is mainly image rendering, it is necessary to first determine the preset rendering style image before rendering the initial attenuation data on the preset rendering style image to achieve the visualization operation of the initial attenuation data. Among them, the image object is drawn with a preset image size by using a preset drawing algorithm to obtain a rendering style image as a carrier of the initial attenuation data rendering.
[0073] Specifically, the preset drawing algorithm is a canvas algorithm, and a picture object is drawn by the canvas algorithm. In the present embodiment, the preset picture size is 256*10 pixels, so a picture object with a gradient color transition of 256*10 pixels in width and height is drawn by the canvas algorithm to obtain a preset rendering style picture. After the preset rendering style picture is drawn, the data texture object, the preset rendering style picture and the ranking reference value are used as constant values of the custom fragment shader on the custom fragment shader. The custom fragment shader can determine the basic rendering picture according to the data texture object, the preset rendering style picture and the ranking reference value, so as to calculate the pixel value of each pixel and then perform rendering to complete the visualization of the initial attenuation data.
[0074] In some embodiments, step S400 includes but is not limited to the following steps:
[0075] The first pixel value is substituted into a preset calculation formula for back calculation to obtain the real attenuation data.
[0076] In the custom fragment shader, the first pixel value is determined according to the preset texture coordinates and the data texture object. Since the first pixel value is directly obtained according to the initial attenuation data, the first pixel value is substituted into the preset calculation formula for reverse calculation to obtain the real attenuation data. The real attenuation data is different from the initial attenuation data, but the difference between the real attenuation data and the initial attenuation data is within the error range, so the second pixel value of the real rendering calculated according to the real attenuation data can obtain a clearer rendering image.
[0077] Specifically, the preset calculation formula is:
[0078] Z=(pixel.r*255.0*256.0+pixel.a*255.0) / N;
[0079] In the formula, pixel.r and pixel.a are the first pixel values, and N is the magnification factor. Therefore, substituting the first pixel value into the preset calculation formula can obtain real attenuation data with clearer rendering, and then rendering the image according to the real attenuation data to obtain a clearer rendered image.
[0080] Reference Figure 3 In some embodiments, step S500 includes but is not limited to step S510 and step S520.
[0081] S510, performing difference calculation on the actual attenuation data and the ranking reference value to obtain the difference;
[0082] S520: Determine the sorting position of the real attenuation data according to the difference.
[0083] Since the ranking reference value is the maximum and minimum value in the initial attenuation data, and the ranking reference value is also a constant value in the custom fragment shader, it is necessary to determine the ranking of each real attenuation data in the rendering style picture. The real attenuation data and the ranking reference value need to be compared to obtain the ranking of the real attenuation data. Therefore, by calculating the difference between the real attenuation data and the ranking reference value, where the ranking reference value is the maximum and minimum value, the real attenuation data and the maximum and minimum values are calculated to obtain the difference, and then the sorting position of the real attenuation data is determined according to the difference. If the difference between the real attenuation data and the maximum value is a positive number, the real attenuation data is located in front of the maximum value, otherwise, the real attenuation data is located behind the maximum value, if the difference between the real attenuation data and the minimum value is a negative number, the real attenuation data is located behind the minimum value, if the difference between the real attenuation data and the minimum value is a positive number and the difference with the maximum value is a negative number, then the sorting position of the real attenuation data is between the minimum value and the maximum value. Therefore, by determining the sorting position of the real attenuation data according to the difference, it is easy to know the position of the real attenuation data on the rendering style picture, so as to render the corresponding position.
[0084] Reference Figure 4 In some embodiments, step S700 includes but is not limited to step S710 and step S720.
[0085] S710, determining the coordinates on the preset rendering style image according to the sorting position of the real attenuation data;
[0086] S720 , rendering is performed at coordinates on the preset rendering style image according to the second pixel value of the real attenuation data to obtain a rendered image.
[0087] The sorting position of the real attenuation data is determined, that is, the coordinates corresponding to the real attenuation data on the preset rendering style image are determined. Since the second pixel value of the real attenuation data on the preset rendering style image has been determined, rendering is directly performed at the coordinates corresponding to the preset rendering style image according to the second pixel value to obtain a rendered image. Therefore, the real attenuation data is obtained by processing the initial attenuation data, and then rendering is performed according to the real attenuation data to realize visualization of the real attenuation data. Moreover, the initial attenuation data is enlarged and then rendered, and the resulting rendered image is clearer.
[0088] Specifically, a fragment shader and a vertex shader are used to render the preset rendering style image according to the second pixel value and the sorting position to obtain a rendered image, so that the rendered image is clearer and the attenuation data visualization effect is improved. A three-dimensional rendering model is constructed based on multiple rendering images, so that the user can view the attenuation data through the three-dimensional rendering model.
[0089] Reference Figure 5 In some embodiments, the satellite communication link space environment attenuation rendering method further includes:
[0090] S800, receiving query coordinate information;
[0091] S900 , determining corresponding initial attenuation data according to the query coordinate information and the data texture object, and displaying the initial attenuation data.
[0092] When it is necessary to view the attenuation data at different locations, the query coordinate information is received, and the corresponding initial attenuation data is determined according to the query coordinate information and the data texture object, and then the initial attenuation data is substituted into steps S100 to S7O0 to obtain the corresponding rendering image, so as to realize the attenuation data query at any location, and the user can easily and quickly realize satellite communication link analysis and reference.
[0093] The query coordinate information includes: longitude coordinate information and latitude coordinate information. The data texture object includes coordinate information and corresponding initial attenuation data, so the initial attenuation data of the corresponding position can be accurately obtained according to the longitude coordinate information and latitude coordinate information, and then the corresponding rendering image is regenerated according to the initial attenuation data, so that the user can query the attenuation data of any position and view the attenuation data visually, so that the user can easily and quickly realize satellite communication link analysis and reference.
[0094] Reference below Figures 1 to 5 The satellite communication link space environment attenuation rendering method according to the embodiment of the present invention is described in detail with a specific embodiment. It is worth noting that the following description is only an exemplary description and is not a specific limitation of the invention.
[0095] The initial attenuation data of the space environment is obtained, the maximum and minimum values of the initial attenuation data are obtained, and the ranking reference value is obtained. The initial attenuation data is amplified according to a preset multiple and then an integer is taken to obtain the first attenuation data, and then the first attenuation data is formatted in two bytes to obtain the second attenuation data, and the second attenuation data is compressed in binary format to obtain a data texture object. A gradient color transition image object with a width and height of 256*10 pixels is drawn through the canvas algorithm to obtain a preset rendering style image, and the first pixel value is determined according to the preset texture coordinates and the data texture object in the custom fragment shader, and the first pixel value is substituted into the preset calculation formula for reverse calculation to obtain the real attenuation data, and the difference between the real attenuation data and the ranking reference value is calculated, where the ranking reference value is the maximum value and the minimum value, that is, the difference between the real attenuation data and the maximum value and the minimum value is calculated to obtain the difference, and then the sorting position of the real attenuation data is determined according to the difference. The coordinates corresponding to the real attenuation data on the preset rendering style image are determined according to the sorting position. Therefore, rendering is performed at the corresponding coordinates on the preset rendering style image according to the second pixel value to obtain a rendered image. The initial attenuation data is processed to obtain real attenuation data, and then rendering is performed according to the real attenuation data to realize visualization of the real attenuation data. The initial attenuation data is enlarged and then rendered, so that the rendered image obtained is clearer.
[0096] Second, refer to Figure 6 The embodiment of the present invention also discloses a satellite communication link space environment attenuation rendering device, comprising:
[0097] The acquisition module 100 is used to acquire the initial attenuation data of the space environment, and acquire the maximum and minimum values of the initial attenuation data to obtain a ranking reference value;
[0098] The data processing module 200 is used to process the initial attenuation data to obtain a data texture object;
[0099] A first pixel calculation module 300, used to determine a first pixel value of a preset texture coordinate according to the data texture object and the preset texture coordinate;
[0100] The back-calculation module 400 is used to perform back-calculation processing on the first pixel value to obtain real attenuation data;
[0101] A sorting module 500, used to determine a sorting position of the real attenuation data according to the real attenuation data and a ranking reference value;
[0102] A second pixel calculation module 600, used to determine a second pixel value of the real attenuation data according to the sorting position and the preset rendering style picture;
[0103] The rendering module 700 is used to render on a preset rendering style picture according to the second pixel value and the sorting position of the real attenuation data to obtain a rendered picture.
[0104] By acquiring the initial attenuation data of the spatial environment, the initial attenuation data is processed to obtain a data texture object, and then the first pixel value of the preset texture coordinates is determined according to the data texture object and the preset texture coordinates, and the first pixel value is inversely calculated to obtain the real attenuation data, and then the sorting position is determined according to the real attenuation data and the ranking reference value, and then the second pixel value of the real attenuation data is determined according to the sorting position and the preset rendering style picture, and then the rendering can be performed on the preset rendering style picture according to the second pixel value and the sorting position to obtain a rendering picture, so as to realize the visualization operation of the attenuation data and improve the visualization effect of the attenuation data.
[0105] Among them, the specific operation process of the satellite communication link space environment attenuation rendering device refers to the space environment rendering method of the first aspect, and will not be repeated here.
[0106] In a third aspect, an embodiment of the present invention further discloses a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the satellite communication link space environment attenuation rendering method as described in the first aspect.
[0107] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0108] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0109] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Various changes can be made within the knowledge of ordinary technicians in the relevant technical field without departing from the purpose of the present invention. In addition, the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
Claims
1. A satellite communication link space environment attenuation rendering method, characterized in that: include: Acquire initial attenuation data of the space environment, obtain the maximum value and the minimum value of the initial attenuation data, and obtain a ranking reference value; Processing the initial attenuation data to obtain a data texture object; Determine a first pixel value of the preset texture coordinate according to the data texture object and the preset texture coordinate; Performing back calculation on the first pixel value to obtain real attenuation data; Determine a ranking position of the real attenuation data according to the real attenuation data and the ranking reference value; Determine a second pixel value of the real attenuation data according to the sorting position and the preset rendering style picture; Rendering is performed on a preset rendering style picture according to the second pixel value of the real attenuation data and the sorting position to obtain a rendered image; The step of processing the initial attenuation data to obtain a data texture object includes: Amplifying the initial attenuation data by a preset multiple and taking an integer to obtain first attenuation data; Convert the first attenuation data into a two-byte format to obtain second attenuation data; Compressing the second attenuation data in a binary format to obtain the data texture object; The step of determining the first pixel value of the preset texture coordinate according to the data texture object and the preset texture coordinate comprises: Determine the first pixel value in the custom fragment shader according to the preset texture coordinates and the data texture object; The back-calculating the first pixel value to obtain real attenuation data includes: Substituting the first pixel value into a preset calculation formula for back calculation to obtain the real attenuation data; The preset calculation formula is: Z=(pixel.r*255.0*256.0+pixel.a*255.0) / N; Where pixel.r and pixel.a are the first pixel values, and N is the magnification factor; The determining the ranking position of the real attenuation data according to the real attenuation data and the ranking reference value comprises: Performing difference calculation on the actual attenuation data and the ranking reference value to obtain a difference; The sorting position of the real attenuation data is determined according to the difference.
2. The satellite communication link space environment attenuation rendering method according to claim 1, characterized in that: The preset rendering style image is generated by the following steps: A preset rendering algorithm is used to draw a picture object with a preset picture size to obtain the preset rendering style picture.
3. The satellite communication link space environment attenuation rendering method according to any one of claims 1 to 2, characterized in that: The rendering is performed on a preset rendering style picture according to the second pixel value of the real attenuation data and the sorting position to obtain a rendered picture, including: Determining the coordinates on the preset rendering style picture according to the sorting position of the real attenuation data; Rendering is performed at the coordinates on the preset rendering style image according to the second pixel value of the real attenuation data to obtain the rendered image.
4. The satellite communication link space environment attenuation rendering method according to any one of claims 1 to 3, characterized in that: Also includes: Receive query coordinate information; The corresponding initial attenuation data is determined according to the query coordinate information and the data texture object, and the initial attenuation data is displayed.
5. The satellite communication link space environment attenuation rendering method according to claim 4, characterized in that: The query coordinate information includes: longitude coordinate information and latitude coordinate information.
6. A satellite communication link space environment attenuation rendering device, characterized in that: Applied to the satellite communication link space environment attenuation rendering method according to any one of claims 1 to 5, the device comprises: An acquisition module, used to acquire initial attenuation data of the space environment, and acquire the maximum and minimum values of the initial attenuation data to obtain a ranking reference value; A data processing module, used for processing the initial attenuation data to obtain a data texture object; A first pixel calculation module, used for determining a first pixel value of the preset texture coordinate according to the data texture object and the preset texture coordinate; A back-calculation module, used for back-calculating the first pixel value to obtain real attenuation data; A sorting module, used to determine a sorting position of the real attenuation data according to the real attenuation data and the ranking reference value; A second pixel calculation module, used for determining a second pixel value of the real attenuation data according to the sorting position and a preset rendering style picture; A rendering module is used to render on a preset rendering style picture according to the second pixel value of the real attenuation data and the sorting position to obtain a rendered picture.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the satellite communication link space environment attenuation rendering method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Three-dimensional seabed environment real-time dynamic rendering method and rendering system
CN110706325A
Large-scale scene infrared imaging real-time simulation method for airborne enhanced synthetic vision system
CN111223191A