Battlefield terrain generation method and device for visualizing cyber attack-defense posture
By generating a superposition of black and white floor plans and scene models, a terrain map for cybersecurity competitions is automatically generated, solving the high cost problem caused by manual operation and improving user experience and display effects.
Patent Information
- Application Number
- CN202210567730.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2042-05-23
AI Technical Summary
In the existing technology, terrain generation in cybersecurity competitions requires manual operation, resulting in high labor costs and poor user experience.
By generating a black and white plane map with a predetermined outer contour, obtaining line data representing undulations, generating a scene model based on the line data, and superimposing the plane black and white map and the scene model, terrain maps of different shapes are automatically generated, and network terminals or attack targets are displayed on the terrain maps.
It realizes the automatic generation of terrain maps of different shapes, reduces labor costs, improves user experience, and can intuitively display the network attack and defense situation.
Smart Images

Figure CN115018998B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of network security, and in particular to a battlefield terrain generation method and device for visualizing network attack and defense posture. BACKGROUND
[0002] With the continuous development of secure network technology, network security is increasingly valued by people.
[0003] In the prior art, in a network security competition, the generation of terrain needs to be manually operated, and the shape of the terrain cannot be automatically adjusted. The entire processing process has a relatively high labor cost. SUMMARY
[0004] The present application provides a battlefield terrain generation method and device for visualizing network attack and defense posture, which is applied to network security to solve the technical problem of high labor cost and poor user experience caused by manual terrain generation in the prior art, so as to automatically generate terrain maps of different shapes by parameter adjustment, reduce labor cost, and improve user experience.
[0005] In a first aspect, the present application provides a battlefield terrain generation method for visualizing network attack and defense posture, comprising:
[0006] generating a black-and-white plane map with a predetermined outer contour;
[0007] obtaining line data representing undulations and generating a scene model based on the line data;
[0008] superimposing the black-and-white plane map and the scene model to generate a terrain map;
[0009] displaying network terminals participating in network attack and defense confrontation on the terrain map in a predetermined pattern or pattern, or displaying network terminals participating in attacks on predetermined targets on the network in a predetermined pattern or pattern on the terrain map.
[0010] Further, according to the battlefield terrain generation method for visualizing network attack and defense posture provided by the present application, the black-and-white plane map with a predetermined outer contour is generated, comprising:
[0011] obtaining a picture with a predetermined outer contour;
[0012] generating a black-and-white plane map based on the outer contour.
[0013] Further, according to the battlefield terrain generation method for visualizing network attack and defense posture provided by the present application, the scene model is generated based on the line data, comprising:
[0014] generating a black-and-white seal map according to the line data;
[0015] Parametrize the lines on the black-and-white seal map to generate a black-and-white height map;
[0016] Generate a scene model according to the black-and-white height map.
[0017] Further, the battlefield terrain generation method for visualizing network attack and defense situation provided by the present application comprises:
[0018] The black-and-white height map is processed by using an eolian corrosion algorithm to change the parameters to offset the vertices of the lines to different degrees to form concave-convex regions with a predetermined slope.
[0019] Further, the battlefield terrain generation method for visualizing network attack and defense situation provided by the present application comprises:
[0020] The black-and-white height map processed by using the eolian corrosion algorithm is height-sampled, and the black-and-white height map is processed by different gray scales according to the height information and the slope information.
[0021] Further, the battlefield terrain generation method for visualizing network attack and defense situation provided by the present application comprises:
[0022] The predetermined type of detail texture is generated by adjusting the noise parameters and the eolian corrosion parameters of the black-and-white height map.
[0023] Further, the battlefield terrain generation method for visualizing network attack and defense situation provided by the present application comprises:
[0024] The corresponding color filling is performed according to different gray scales and / or detail textures.
[0025] Further, the battlefield terrain generation method for visualizing network attack and defense situation provided by the present application comprises:
[0026] The respective to-be-filled regions are determined according to different gray scales and / or detail textures.
[0027] The to-be-filled regions are filled with preset materials and colors in the application program according to the RGBA color channel to generate a terrain map.
[0028] Further, the battlefield terrain generation method for visualizing network attack and defense situation provided by the present application comprises:
[0029] According to the relationship between each height in the black-and-white height map and a preset height threshold, the relationship between the surface slope and a preset surface slope threshold, and / or different detail texture types, the black-and-white height map is divided to determine each to-be-filled region.
[0030] Further, the battlefield terrain generation method for visualizing network attack and defense situation provided by the present application comprises:
[0031] The picture with a predetermined outer contour is a picture with a tiger shape.
[0032] Further, the battlefield terrain generation method for visualizing network attack and defense situation provided by the present application comprises:
[0033] In a second aspect, the present application further provides a battlefield terrain generation device for visualizing network attack and defense situation, comprising:
[0034] The generation module is configured to generate a black-and-white plane picture with a predetermined outer contour.
[0035] The acquisition module is configured to acquire line data representing undulations and generate a scene model based on the line data.
[0036] The superposition module is configured to superimpose the black-and-white plane picture and the scene model to generate a terrain map.
[0037] The display module is configured to display network terminals participating in network attack and defense confrontation on the terrain map in a predetermined pattern or pattern, or display network terminals participating in attack on a predetermined target on the network on the terrain map in a predetermined pattern or pattern.
[0038] In a third aspect, the present application further provides an electronic device, comprising:
[0039] The processor, the memory and the bus are connected to each other.
[0040] The processor and the memory are connected to each other through the bus.
[0041] The memory stores program instructions executable by the processor, and the processor calling the program instructions can execute the steps of the battlefield terrain generation method for visualizing network attack and defense situation as described in any one of the above.
[0042] In a fourth aspect, the present application further provides a non-transitory computer readable storage medium, which stores computer instructions, and the computer instructions make the computer execute the steps of the battlefield terrain generation method for visualizing network attack and defense situation as described above.
[0043] In a fifth aspect, the present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the battlefield terrain generation method for visualizing network attack and defense posture according to any one of the above.
[0044] The present application provides a battlefield terrain generation method and device for visualizing network attack and defense posture, the method comprising: generating a black-and-white plane map with a predetermined outer contour; acquiring line data representing undulations and generating a scene model based on the line data; superimposing the black-and-white plane map and the scene model to generate a terrain map; and displaying network terminals participating in network attack and defense confrontation on the terrain map in a predetermined pattern or pattern, or displaying network terminals participating in attacks on predetermined targets on the network in a predetermined pattern or pattern on the terrain map. The method provided by the present application can automatically generate terrain maps of different shapes by adjusting parameters, visualize network terminals, reduce labor costs, and improve user experience. BRIEF DESCRIPTION OF DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the present application or prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0046] Figure 1 is a flowchart of a battlefield terrain generation method for visualizing network attack and defense posture provided by the present application;
[0047] Figure 2 is a structural schematic diagram of a battlefield terrain generation device for visualizing network attack and defense posture provided by the present application;
[0048] Figure 3 is a structural schematic diagram of an electronic device provided by the present application. DETAILED DESCRIPTION
[0049] In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be described clearly and completely below with reference to the drawings in the present application. Obviously, the described embodiments are some embodiments of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0050] Figure 1 The battlefield terrain generation method for visualizing network attack and defense posture provided by the present application, as shown in Figure 1As shown, the battlefield terrain generation method for visualizing network attack and defense situation provided by the present application specifically comprises the following steps:
[0051] Step 101: generating a black-and-white plane graph with a predetermined outer contour.
[0052] In this embodiment, a black-and-white plane graph with a predetermined outer contour is needed to be generated, wherein the shape of the predetermined outer contour can be any shape desired by the user, such as a tiger, a lion, etc., which is not specifically limited here.
[0053] Step 101: obtaining line data representing undulations and generating a scene model based on the line data.
[0054] In this embodiment, line data representing undulations is needed to be obtained, and then a scene model is generated based on the line data, which can obtain any desired appearance modeling according to the adjustment of input parameters. It should be noted that the scene model can change the final model result by modifying any one of the input parameters.
[0055] Step 103: superimposing the black-and-white plane graph and the scene model to generate a terrain map.
[0056] In this embodiment, the obtained black-and-white plane graph and the scene model also need to be superimposed by using a parameterization tool to generate a black-and-white height map, and by adjusting the corresponding parameters through the parameterization tool, the corresponding black-and-white height map can be obtained, wherein the parameterization tool can use the same type of tool in the prior art.
[0057] Step 104: displaying the network terminal participating in the network attack and defense confrontation on the terrain map in a predetermined pattern or pattern, or displaying the network terminal participating in the attack on the predetermined target on the network in a predetermined pattern or pattern on the terrain map.
[0058] In this embodiment, the network terminal participating in the network attack and defense confrontation is displayed on the terrain map generated in step 103 in a predetermined pattern or pattern, wherein the predetermined pattern or pattern can be any shape, such as a circle, and the network terminal participating in the attack on the predetermined target on the network can also be displayed on the terrain map in a predetermined pattern or pattern, wherein the predetermined target refers to a problem-solving competition participating in network security, such as displaying the network terminal with an energy grid, and the more successful teams are, the more the number of energy grids is.
[0059] The battlefield terrain generation method for visualizing network attack and defense situation provided by the application generates a black-and-white plane graph with a predetermined outer contour, acquires line data representing undulations, and generates a scene model based on the line data. The plane black-and-white graph and the scene model are superimposed to generate a terrain map, and network terminals participating in network attack and defense confrontation are displayed on the terrain map in a predetermined pattern, or network terminals participating in attacks on predetermined targets on the network are displayed on the terrain map in a predetermined pattern. The method provided by the application can automatically generate terrain maps with different contours and different scenes by adjusting parameters, can visually display network terminals participating in network attack and defense, can display the situation of network attacks in real time in various scenes, not only intuitively displays the attack and defense situation, but also improves the experience of personnel participating in network attack and defense, is conducive to promoting the development of the network security field, and the technical solution provided by the application makes the creation of scenes more efficient and convenient.
[0060] Based on any of the above embodiments, in the present embodiment, the generation of the black-and-white plane graph with a predetermined outer contour specifically includes the following steps:
[0061] An image with a predetermined outer contour is acquired.
[0062] In the present embodiment, the acquired image with a predetermined outer contour is a black-and-white boundary graph, and the outer contour is preferably the shape of a tiger, but can also be an outer contour of other shapes, without specific limitation. Only a black-and-white boundary graph with an outer contour is needed, and a desired terrain map can be obtained by adjusting relevant parameters.
[0063] The outer contour is used to dot the image to generate a plane black-and-white graph.
[0064] In the present embodiment, the acquired image is dotted based on the outer contour to generate a plane black-and-white graph of the terrain, wherein the dotting can use existing technology, and corresponding marks are made by measuring the width and length of the pattern on the plane, which will not be described in detail.
[0065] According to the battlefield terrain generation method for visualizing network attack and defense situation provided by the application, an image with a predetermined outer contour is acquired, the image is dotted based on the predetermined outer contour to generate a plane black-and-white graph of the terrain, which provides data support for subsequent generation of a terrain map, and ensures the accuracy of the generation of the terrain map.
[0066] Based on any of the above embodiments, in the present embodiment, the generation of the scene model based on the line data includes:
[0067] According to the line data, a black-and-white seal graph is generated.
[0068] The lines on the black-and-white seal graph are parameterized in height to generate a black-and-white height graph.
[0069] generate a scene model according to the black and white height map.
[0070] In the embodiment, the black and white seal map is generated by dotting according to predetermined mountain trend line data, and the dotting can be performed according to line data of a mountain shape and trend of the mountain, and the dotting technique is not the focus of the present application and is not described herein.
[0071] In the embodiment, the black and white seal map is subjected to height parameterization by a parameterization tool to generate a black and white height map, and the corresponding parameters are adjusted by the parameterization tool to obtain the corresponding black and white height map, and the parameterization tool is not limited.
[0072] The black and white height map is processed by an erosion algorithm to form various slopes and concave-convex regions of the terrain to generate a scene model, and each region is subjected to detailed processing by adjusting the erosion parameters to obtain a terrain map filled with textures and colors. The erosion algorithm is an algorithm for calculating multiple factors such as vegetation, landform, topography, and terrain, and the parameters can be selected and calculated according to actual needs of a user, and are not limited herein.
[0073] It should be noted that when the input end inputs a black and white boundary map with a predetermined outer contour and line data representing undulations, the corresponding scene model can be obtained by adjusting the related parameters. The output effect of the terrain map can also be changed by adjusting the vertices in the black and white boundary map and the line data representing undulations, such as simulating a desert, karst landform, mountain, lake, island, and other geographical scenes.
[0074] Specifically, the line data representing undulations is dotted to generate a black and white seal map, the lines on the black and white seal map are subjected to height parameterization by a parameterization tool to generate a black and white height map, and a scene model is generated according to the black and white height map. The method provided by the present application can adjust the topography of the constructed scene by generating a black and white height map to exhibit various visual effects.
[0075] Further, in an embodiment of the present application, according to the terrain generation method for visualizing network attack and defense situations provided by the present application, the scene model is generated according to the black and white height map, and the method comprises:
[0076] The black and white height map is processed by an erosion algorithm to form concave-convex regions of a predetermined slope by changing the parameters to offset the vertices of the lines to different degrees.
[0077] In specific embodiments, it is necessary to add an erosion algorithm in the parameterized tool, to offset the vertices of the mountain trend line by different degrees by modifying parameters, to offset the surface slope of the mountain and the concave-convex part of the mountain body by different degrees, to form a concave-convex area with a predetermined slope, and to obtain a model mountain landscape with predetermined slope and concave-convex area.
[0078] According to the battlefield terrain generation method for visualizing network attack and defense situation provided in the application, the related parameters are adjusted by using the erosion algorithm, the terrain with predetermined slope and concave-convex area is automatically obtained, the efficiency and richness of the terrain map generation are improved, the cost is reduced, and the display effect in network attack and defense is improved.
[0079] Further, in an embodiment of the application, the terrain generation method for visualizing network attack and defense situation provided in the application, the generation of the scene model according to the black-and-white height map comprises:
[0080] The black-and-white height map processed by using the erosion algorithm is height-sampled, and the black-and-white height map is processed by different gray scales according to the height information and the slope information.
[0081] In this embodiment, the height of the black-and-white height map needs to be sampled, such as the height data of the Z-axis of the grid model, the height is mapped to the corresponding gray color, and finally a height map with different gray scales is generated, so that the terrain is regionally divided based on the height, which is beneficial to the subsequent processing of brightness, texture and / or color, chroma.
[0082] Further, in an embodiment of the application, the terrain generation method for visualizing network attack and defense situation provided in the application, the generation of the scene model according to the black-and-white height map comprises:
[0083] By adjusting the noise parameters and the erosion parameters corresponding to the black-and-white height map, a predetermined type of detail texture and / or gully is generated.
[0084] In this embodiment, by adjusting the noise parameters and the erosion parameters of the black-and-white height map, a predetermined type of detail texture and gully is generated, wherein the predetermined type refers to that different types of filling areas correspond to different textures, such as filling a certain snow texture in the mountain top area, and the like, wherein the noise parameters include the noise persistence CMp, the frequency multiplication CCpu and the noise point spacing CD, and the specific detail texture processing process is shown in the following embodiments and is not described in detail here.
[0085] According to the battlefield terrain generation method for visualizing network attack and defense situation provided in the application, by adjusting the noise parameters and the erosion parameters, a predetermined type of detail texture is generated, which provides data support for subsequent generation of terrain maps, and improves the efficiency of terrain map generation.
[0086] Further, in one embodiment of the present application, the generating a scene model according to the black and white height map comprises:
[0087] According to different gray scales and / or detail textures, corresponding color filling is performed.
[0088] In this embodiment, according to different gray scales and / or detail textures, corresponding color filling is performed, for example, the area under the mountain foot can be filled with green plants, shrubs and other textures.
[0089] According to the battlefield terrain generation method for visualizing network attack and defense situation provided by the present application, different predetermined types of detail textures are filled with corresponding colors, so that the terrain map is more rich in performance and better in visual experience.
[0090] Further, in one embodiment of the present application, the terrain generation method for visualizing network attack and defense situation provided by the present application, according to different gray scales and / or detail textures, corresponding color filling is performed, comprising:
[0091] According to different gray scales and / or detail textures, each to-be-filled area is determined.
[0092] According to the RGBA color channel, the to-be-filled area is filled with a preset material and color in the application program, and a terrain map is generated.
[0093] In this embodiment, the to-be-filled area of different textures is calculated according to the mountain height and surface slope, wherein each to-be-filled area can be a snow-capped mountain area, a middle steep cliff area or a mountain foot gentle slope area. According to the determined to-be-filled area, the corresponding filling texture and the corresponding color are determined, for example, the mountain foot gentle slope area needs to be filled with green trees, grassland and other textures, the snow-capped mountain area needs to be filled with snow texture, the cliff area needs to be filled with rock texture, and the flat area needs to be filled with grassland texture.
[0094] It should be noted that in this embodiment, the to-be-filled area is filled with a preset material and color in the application program unity through the RGBA color channel, and then a terrain map with detail texture is generated. Specifically, it can also be other application programs, which are not limited here.
[0095] According to the battlefield terrain generation method for visualizing network attack and defense situation provided by the present application, the to-be-filled area is filled with a preset material and color in the application program through the RGBA color channel, and a terrain map with detail texture is generated, so that the terrain map content is detailed, and the visual display effect of the terrain map is improved.
[0096] Further, in an embodiment of the present application, the method for generating a terrain for visualizing a cyber attack and defense situation according to the present application, the determination of each to-be-filled region according to different gray scales and / or detail textures comprises:
[0097] The black-and-white height map is divided according to the relationship between each height in the black-and-white height map and a preset height threshold, the relationship between a surface slope and a preset surface slope threshold, and / or different detail texture types, to determine each to-be-filled region.
[0098] In this embodiment, the black-and-white height map can be accurately divided by the preset height threshold and the slope threshold, to obtain corresponding mountain top to-be-filled regions, mountain foot to-be-filled regions, cliff to-be-filled regions, etc. Assuming that the preset height thresholds are 10 m, 20 m and 30 m respectively, and the corresponding slopes are 20%, 30% and 40% respectively, when the obtained height value is 5 m and the slope is 10%, the corresponding region is determined to be a mountain foot to-be-filled region, and the corresponding grassland texture is filled. It should be noted that the sizes of the preset height threshold and the preset slope threshold can be set according to actual needs of a user, and are not limited herein.
[0099] The method for generating a battlefield terrain for visualizing a cyber attack and defense situation according to the present application, by comparing the height value with the preset height threshold and the slope value with the preset slope threshold, determines the corresponding to-be-filled region, and directly fills the corresponding texture, thereby improving the efficiency of terrain map generation.
[0100] Further, in an embodiment of the present application, the method for generating a terrain for visualizing a cyber attack and defense situation according to the present application, the obtaining of a picture with a predetermined outer contour comprises:
[0101] The picture with the predetermined outer contour is obtained as a tiger shape.
[0102] In this embodiment, the picture with the outer contour as a tiger shape is obtained, and a terrain map with a tiger shape is obtained according to the picture with the tiger shape.
[0103] Further, in an embodiment of the present application, the method for generating a terrain for visualizing a cyber attack and defense situation according to the present application, different contour terrain maps are obtained by adjusting the shape of the picture with the predetermined outer contour.
[0104] In this embodiment, the outer contour can also be set as any shape, such as a lion, a leopard, etc., and a terrain map with a different contour shape can be obtained by adjusting the shape of the outer contour of the black-and-white boundary map, thereby improving the user experience.
[0105] The battlefield terrain generation method for visualizing network attack and defense situation provided by the present application sets the outer contour as a tiger shape or other predetermined shape, which is beneficial to overall design and individualized design of the entire terrain map.
[0106] Further, in an embodiment of the present application, the generation of the black-and-white height map is processed by using a parameterization tool, specifically, a black-and-white planar map with a predetermined outer contour is superimposed on a mountain map (noise map), then a wind erosion algorithm is added to offset the vertices of the surface slope of the mountain range and the concave-convex part of the mountain body to different degrees, and the height of the grid model Z-axis is sampled to map the height to the corresponding gray color, and finally a mountain black-and-white height map is generated.
[0107] It should be noted that the input of the above processing mode is a black-and-white boundary map with an outer contour and a mountain trend line data. If it is necessary to change the mountain shape, the output result can be changed by adjusting the black-and-white boundary map and adjusting the vertices on the line.
[0108] In the present embodiment, the corresponding detail texture is obtained by adjusting the noise parameters and the parameters of the wind erosion algorithm, such as simulating various mountains such as deserts and karst landforms. It should be noted that the filling area of different textures needs to be calculated according to the height and surface slope of the mountain body, such as the snow-covered mountain area at the top, the steep cliff area in the middle, and the gentle slope area at the foot, and different colors are assigned to different areas. Specifically, different color materials are filled in unity according to the RGBA color channel, such as filling snow texture in the mountain top area, filling rock texture in the cliff area, and filling grassland texture in the flat area. The related parameters of the wind erosion algorithm include rock hardness KHb, earthwork carrying degree KCu, weathering time KTi, height KH and slope KS. The related parameters of the noise algorithm include noise persistence CMp, frequency multiplication CCpu and noise point spacing CD.
[0109] The battlefield terrain generation method for visualizing network attack and defense situation provided by the present application is different from the traditional terrain generation process. The non-destructive modeling method adopted by the present application can generalize the terrain contour into various shapes by only providing a black-and-white boundary map with an outer contour, and can change the final model result by returning and modifying any input parameter at any time. This new parameterization process reduces the traditional terrain generation time from one week to two days, and can quickly iterate the appearance, thereby reducing the labor cost.
[0110] Figure 2 A battlefield terrain generation device for visualizing network attack and defense situation is provided for the embodiment of the present application, as shown in Figure 2 The battlefield terrain generation device for visualizing network attack and defense situation provided by the present application specifically comprises:
[0111] The generating module 201 is configured to generate a black-and-white plane graph with a predetermined outer contour;
[0112] The acquiring module 202 is configured to acquire line data representing undulations, and generate a scene model based on the line data;
[0113] The superimposing module 203 is configured to superimpose the black-and-white plane graph and the scene model to generate a terrain map;
[0114] The displaying module 204 is configured to display, on the terrain map, network terminals participating in network attack and defense confrontation in a predetermined pattern or pattern, or display, on the terrain map, network terminals participating in attacks on predetermined targets on the network in a predetermined pattern or pattern.
[0115] The battlefield terrain generation device for visualizing network attack and defense situation provided by the present application generates a black-and-white plane graph with a predetermined outer contour, acquires line data representing undulations, and generates a scene model based on the line data. The black-and-white plane graph and the scene model are superimposed to generate a terrain map. Network terminals participating in network attack and defense confrontation are displayed on the terrain map in a predetermined pattern or pattern, or network terminals participating in attacks on predetermined targets on the network are displayed on the terrain map in a predetermined pattern or pattern. The method provided by the present application can automatically generate terrain maps of different shapes through parameter adjustment, reduces labor costs, and improves user experience.
[0116] Further, the generating module 201 is further configured to:
[0117] acquire a picture with a predetermined outer contour;
[0118] generate a black-and-white plane graph based on the outer contour.
[0119] The battlefield terrain generation device for visualizing network attack and defense situation provided by the present application generates a black-and-white plane graph based on the outer contour, which improves the efficiency of terrain map generation and reduces labor costs.
[0120] Further, the generating module 201 is further configured to:
[0121] generate a black-and-white seal graph according to the line data;
[0122] height parameterize the lines on the black-and-white seal graph to generate a black-and-white height graph;
[0123] generate a scene model according to the black-and-white height graph.
[0124] The battlefield terrain generation device for visualizing network attack and defense situation provided by the application generates a scene model according to a black-and-white height map, provides data support for subsequent generation of a terrain map, improves the efficiency of terrain map generation, and reduces labor costs.
[0125] Further, the generation module 201 is further used for:
[0126] The black-and-white height map is processed by using an eolian corrosion algorithm to change parameters to offset vertices of lines to different degrees to form concave-convex regions with a predetermined slope.
[0127] The battlefield terrain generation device for visualizing network attack and defense situation provided by the application adjusts relevant parameters by using an eolian corrosion algorithm, automatically obtains a graph with a certain slope and concave-convex regions, improves the efficiency of terrain map generation, and reduces labor costs.
[0128] Further, the generation module 201 is further used for:
[0129] The black-and-white height map processed by using the eolian corrosion algorithm is height-sampled, and the black-and-white height map is processed with different gray scales according to height information and slope information.
[0130] The battlefield terrain generation device for visualizing network attack and defense situation provided by the application samples the height of the scene model, maps the height to corresponding gray colors, generates a black-and-white height map, provides data support for subsequent generation of a terrain map, and improves the efficiency of terrain map generation.
[0131] Further, the generation module 201 is further used for:
[0132] A predetermined type of detail texture and / or gully is generated by adjusting noise parameters and eolian corrosion parameters corresponding to the black-and-white height map.
[0133] The battlefield terrain generation device for visualizing network attack and defense situation provided by the application generates a predetermined type of detail texture and gully by adjusting noise parameters and eolian corrosion parameters, provides data support for subsequent generation of a terrain map, and improves the efficiency of terrain map generation.
[0134] Further, the generation module 201 is further used for:
[0135] Color filling is performed according to different gray scales and / or detail textures.
[0136] The battlefield terrain generation device for visualizing network attack and defense situation provided by the application fills a determined to-be-filled region with a preset material and color to generate a terrain map with detail textures, and improves the efficiency of terrain map generation.
[0137] Further, the generating module 201 is further used for:
[0138] determining each to-be-filled region according to different gray scales and / or detail textures;
[0139] filling the to-be-filled region with preset materials and colors in the application program according to the RGBA color channel, and generating a terrain map.
[0140] The battlefield terrain generation device for visualizing network attack and defense situation provided by the present application fills the determined to-be-filled region with preset materials and colors in the application program according to the RGBA color channel, and generates a terrain map with detail textures, thereby improving the efficiency of terrain map generation.
[0141] Further, the superimposing module is further used for:
[0142] dividing the black-and-white height map according to the relationship between each height in the black-and-white height map and a preset height threshold, the relationship between the surface slope and a preset surface slope threshold, and / or different detail texture types, and determining each to-be-filled region.
[0143] The battlefield terrain generation device for visualizing network attack and defense situation provided by the present application compares the height value with the preset height threshold and the slope value with the preset slope threshold, determines the corresponding to-be-filled region, and directly fills the corresponding texture, thereby improving the efficiency of terrain map generation.
[0144] Further, the device further comprises an obtaining module, which is used for:
[0145] obtaining a picture with a predetermined outer contour in the shape of a tiger.
[0146] The battlefield terrain generation device for visualizing network attack and defense situation provided by the present application sets the outer contour to be in the shape of a tiger, thereby improving the visual experience of users.
[0147] Further, the device is further used for obtaining a terrain map with different contours by adjusting the shape of the picture with the predetermined outer contour, thereby improving the user experience.
[0148] Since the device in the embodiment of the present application has the same principle as the method in the above-mentioned embodiment, more detailed explanation is not repeated here.
[0149] Figure 3 As shown in the electronic device entity structure schematic diagram provided in the embodiment of the present application, Figure 3 the present application provides an electronic device, which comprises a processor 301, a memory 302 and a bus 303.
[0150] The processor 301 and the memory 302 communicate with each other through the bus 303; the processor 301 is configured to invoke program instructions in the memory 302 to execute the methods provided in the above method embodiments, and is applied to network security, for example, including: generating a black-and-white plane graph with a predetermined outer contour; obtaining line data representing undulations, and generating a scene model based on the line data; superimposing the black-and-white plane graph and the scene model to generate a terrain map; displaying a network terminal participating in network attack and defense confrontation on the terrain map in a predetermined pattern or pattern, or displaying a network terminal participating in an attack on a predetermined target on the network in a predetermined pattern or pattern on the terrain map.
[0151] The embodiments of the present application provide a non-transitory computer readable storage medium storing computer instructions, the computer instructions causing the computer to execute the methods provided in the above method embodiments, and are applied to network security, for example, including: generating a black-and-white plane graph with a predetermined outer contour; obtaining line data representing undulations, and generating a scene model based on the line data; superimposing the black-and-white plane graph and the scene model to generate a terrain map; displaying a network terminal participating in network attack and defense confrontation on the terrain map in a predetermined pattern or pattern, or displaying a network terminal participating in an attack on a predetermined target on the network in a predetermined pattern or pattern on the terrain map.
[0152] The present application also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute the methods provided in the above embodiments, and are applied to network security, for example, including: generating a black-and-white plane graph with a predetermined outer contour; obtaining line data representing undulations, and generating a scene model based on the line data; superimposing the black-and-white plane graph and the scene model to generate a terrain map; displaying a network terminal participating in network attack and defense confrontation on the terrain map in a predetermined pattern or pattern, or displaying a network terminal participating in an attack on a predetermined target on the network in a predetermined pattern or pattern on the terrain map.
[0153] Those skilled in the art can understand that all or part of the steps of the above method embodiments can be completed by program instruction related hardware, and the foregoing program can be stored in a computer readable storage medium, and the program is executed to execute the steps of the above method embodiments; and the foregoing storage medium includes: ROM, RAM, magnetic disc or optical disc and various storage program codes.
[0154] It should be pointed out finally that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit the same; and although the present application has been described in detail with reference to the foregoing embodiments, it should be appreciated by those skilled in the art that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features thereof can be replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A battlefield terrain generation method for visualizing cyber attack-defense postures, characterized by, The method comprises the following steps: generating a black-and-white plane graph with a predetermined contour; acquiring line data representing undulations and generating a scene model based on the line data; superimposing the black-and-white plane graph and the scene model to generate a terrain map; displaying network terminals participating in network attack and defense confrontation on the terrain map in a predetermined pattern or pattern, or displaying network terminals participating in attacks on predetermined targets on the network in a predetermined pattern or pattern on the terrain map; the generating a black-and-white plane graph with a predetermined contour comprises: acquiring a picture with a predetermined contour; generating a black-and-white plane graph based on the contour; the acquiring a picture with a predetermined contour comprises: acquiring a picture with a predetermined contour of a tiger shape; and obtaining a terrain map with different contours by adjusting the shape of the picture with the predetermined contour; the generating a scene model based on the line data comprises: generating a black-and-white seal graph according to the line data; height parameterizing the lines on the black-and-white seal graph to generate a black-and-white height graph; generating a scene model according to the black-and-white height graph; the generating a scene model according to the black-and-white height graph comprises: processing the black-and-white height graph by using an erosion algorithm to change the parameters to offset the vertices of the lines to different degrees to form concave and convex regions with a predetermined slope.
2. The battle field terrain generation method for visualizing cyber kill chain according to claim 1, wherein, the generating a scene model according to the black-and-white height graph comprises: height sampling the black-and-white height graph processed by using the erosion algorithm, and processing the black-and-white height graph with different gray scales according to height information and slope information.
3. The battle field terrain generation method for visualizing cyber kill chain according to claim 1, wherein, the generating a scene model according to the black-and-white height graph comprises: generating a predetermined type of detail texture and gully by adjusting noise parameters and erosion parameters of the black-and-white height graph.
4. The battle field terrain generation method for visualizing cyber kill chain according to claim 3, wherein, the generating a scene model according to the black-and-white height graph comprises: performing corresponding color filling according to different gray scales and / or detail textures.
5. The battle space terrain generation method for visualizing cyber kill chain according to claim 4, wherein, the performing corresponding color filling according to different gray scales and / or detail textures comprises: determining each to-be-filled region according to different gray scales and / or detail textures; filling the to-be-filled region with a preset material and color in an application program according to RGBA color channels to generate a terrain map.
6. The battle field terrain generation method for visualizing cyber kill chain according to claim 5, wherein, the determining each to-be-filled region according to different gray scales and / or detail textures comprises: dividing the black-and-white height graph according to the relationship between each height and a preset height threshold, the relationship between a surface slope and a preset surface slope threshold, and / or different detail texture types to determine each to-be-filled region.
7. A battlefield terrain generation apparatus for visualizing cyber kill chain, the apparatus comprising: The method comprises the following steps: a generating module is configured to generate a black-and-white plane graph with a predetermined contour; an acquiring module is configured to acquire line data representing undulations and generate a scene model based on the line data; a superimposing module is configured to superimpose the black-and-white plane graph and the scene model to generate a terrain map; a display module is configured to display network terminals participating in network attack and defense confrontation on the terrain map in a predetermined pattern or pattern, or display network terminals participating in attacks on predetermined targets on the network in a predetermined pattern or pattern on the terrain map; the generating module is configured to acquire a picture with a predetermined contour; generating a black-and-white plane graph based on the outer contour; the picture with the predetermined outer contour comprises a picture with a tiger shape; and the picture with the different contour is obtained by adjusting the shape of the picture with the predetermined outer contour; the acquisition module is configured to: generate a black-and-white seal graph according to the line data; perform height parameterization on the lines on the black-and-white seal graph to generate a black-and-white height graph; and generate a scene model according to the black-and-white height graph. the scene model is generated according to the black-and-white height graph, and the scene model is generated by using an erosion algorithm to process the black-and-white height graph, so as to change the parameters to offset the vertices of the lines to different degrees to form concave-convex regions with a predetermined slope.
8. An electronic device, comprising: comprising: a processor, a memory and a bus, wherein the processor and the memory communicate with each other through the bus; the memory stores program instructions executable by the processor, and the processor calling the program instructions can execute the steps of the battlefield terrain generation method for visualizing a network attack and defense situation according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium, comprising: The non-transitory computer readable storage medium stores computer instructions, and the computer instructions make the computer execute the steps of the battlefield terrain generation method for visualizing a network attack and defense situation according to any one of claims 1 to 6.
10. A computer program product, the computer program product comprising computer executable instructions, characterised in that, The instructions, when executed, are used to execute the steps of the battlefield terrain generation method for visualizing a network attack and defense situation according to any one of claims 1 to 6.
Citation Information
Patent Citations
Visual generation method of self-adaptive combat scene
CN111145348A
Scene terrain generation method and device, storage medium and electronic device
CN114272609A