A 3D visualization method, device and computer-readable storage medium
By acquiring and adjusting the virtual location and rendering parameters of the 3D model, efficient 3D visualization in the data center computer room is solved, and the problem of low 3D visualization efficiency in the existing technology is improved, and the flexibility and efficiency of rendering are improved.
Patent Information
- Application Number
- CN202111394582.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-23
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2041-11-23
AI Technical Summary
In the prior art, the 3D visualization efficiency of data center computer rooms is low, and requires complex and cumbersome preprocessing steps, including 3D modeling and rendering of imported and non-imported models, resulting in inefficiency.
By obtaining the 3D model in the target visual scene, adjusting the virtual location, generating the virtual scene, and adjusting the rendering parameters according to the user's real-time adjustment instructions, the interface and parameterized 3D rendering method is realized, and rendering flexibility and efficiency are improved.
It shortens the time for 3D visualization, improves efficiency, enables the rendering effect to change according to user's wishes, reduces cumbersomeness, and improves the flexibility and efficiency of 3D rendering.
Smart Images

Figure CN114329689B_ABST
Abstract
Description
[Technical field]
[0001] The present application relates to the field of computer technology, and in particular to a 3D visualization method, device, and computer-readable storage medium. [Background technology]
[0002] A data center is a globally collaborative network of specific devices that is used to transmit, accelerate, display, calculate and store data information on the Internet infrastructure. A data center computer room generally includes many buildings, equipment and devices, such as walls, floors, doors and windows, air conditioners, power distribution cabinets, storage cabinets, network cabinets, fire hydrants and fire extinguishers. In order to effectively monitor and control the data center computer room and achieve good operation and maintenance of the data center computer room, the operation and maintenance personnel usually perform 3D visualization of the data center computer room, that is, 3D modeling and 3D rendering of each building, equipment and device in the data center computer room, and display the entire data center computer room to the operation and maintenance personnel in the form of a 3D model, so that the operation and maintenance personnel can review the overall picture of the data center computer room at any time and clearly grasp the location of each building, equipment and device; in this way, the operation and maintenance personnel can monitor the data center computer room more intuitively, such as fault location, fault alarm, fault identification and hardware maintenance.
[0003] In the related art, when a data center room is visualized in 3D, it is necessary to perform 3D modeling on each building, equipment and device therein, that is, a 3D model of each building, equipment and device is required. Specifically, 3D models can be divided into imported models and non-imported models; wherein, the imported model represents a model produced by other modeling software and exported to the corresponding monitoring software of the data center room, and the non-imported model represents a model produced by the corresponding monitoring software of the data center room. For the imported model, during 3D visualization, complex and cumbersome preprocessing is required, such as mapping of each structure in each model, manual binding of measurement points, and rendering such as light and shadow, texture and baking, which results in low efficiency of 3D visualization; for the non-imported model, during 3D visualization, not only complex and cumbersome preprocessing is required like the imported model, but also 3D modeling of each building, equipment and device is required in the corresponding monitoring software of the data center room, which will be less efficient than 3D visualization based on the imported model.
[0004] Therefore, it is necessary to improve the above 3D visualization method. [Summary of the invention]
[0005] The present application provides a 3D visualization method, device, and computer-readable storage medium, aiming to solve the problem of low efficiency of 3D visualization in related technologies.
[0006] In order to solve the above technical problems, the first aspect of the embodiment of the present application provides a 3D visualization method, including:
[0007] Acquire a 3D model corresponding to an object in a target visualization scene; wherein the target visualization scene includes at least one of the objects;
[0008] Referring to the target visualization scene, adjusting the virtual position of the 3D model to generate a virtual scene corresponding to the target visualization scene;
[0009] According to the received adjustment instruction, the rendering parameters of the 3D model are adjusted in real time to complete the 3D rendering of the virtual scene.
[0010] A second aspect of an embodiment of the present application provides an electronic device, comprising a storage device and at least one processor, wherein the storage device is used to store at least one program, and when the at least one program is executed by the at least one processor, the at least one processor executes the 3D visualization method as described in the first aspect of the embodiment of the present application.
[0011] A third aspect of an embodiment of the present application provides a computer-readable storage medium, on which executable instructions are stored. When the executable instructions are executed, the 3D visualization method described in the first aspect of the embodiment of the present application is performed.
[0012] From the above description, it can be seen that compared with the related art, the beneficial effects of the present application are:
[0013] When the target visualization scene is 3D visualized, first obtain the corresponding 3D model of the object in the target visualization scene; then refer to the target visualization scene, adjust the virtual position of the 3D model, and generate the virtual scene corresponding to the target visualization scene; finally, according to the received adjustment instruction, adjust the rendering parameters of the 3D model in real time to complete the 3D rendering of the virtual scene. Among them, when the virtual scene is 3D rendered, it is necessary to perform 3D rendering on each 3D model separately. At this time, the user can input the adjustment instruction in real time (such as inputting the value in the parameter box corresponding to the rendering parameter in real time, etc.) to achieve the real-time adjustment of the rendering parameters of each 3D model. It can be seen that the present application performs 3D rendering of the virtual scene in an interfaced and parameterized manner. Compared with the traditional 3D visualization technology, the user needs to continuously debug the rendering-related devices such as cameras and lights to complete the 3D rendering of the virtual scene that meets the expectations. It not only improves the flexibility of 3D rendering, so that the effect of 3D rendering can be changed at any time according to the user's wishes, but also reduces the cumbersomeness of 3D rendering, thereby shortening the time of 3D visualization and improving the efficiency of 3D visualization.
Brief Description of the Drawings
[0014] In order to more clearly illustrate the technical solutions in the related technologies or the embodiments of the present application, the drawings required for use in the description of the related technologies or the embodiments of the present application will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, not all embodiments. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0015] Figure 1 A first flow chart of a 3D visualization method provided in an embodiment of the present application;
[0016] Figure 2 Provided in the embodiments of this application Figure 1 A first flow chart of step 200;
[0017] Figure 3 Provided in the embodiments of this application Figure 1 A second flow chart of step 200;
[0018] Figure 4 A second flow chart of the 3D visualization method provided in the embodiment of the present application;
[0019] Figure 5 Provided in the embodiments of this application Figure 4 Schematic diagram of the process of step 700;
[0020] Figure 6 Provided in the embodiments of this application Figure 5 Schematic diagram of the process of step 710;
[0021] Figure 7 Provided in the embodiments of this application Figure 6 Schematic diagram of the process of step 714;
[0022] Figure 8 A module block diagram of an electronic device provided in an embodiment of the present application;
[0023] Fig. 9 A module block diagram of a computer-readable storage medium provided in an embodiment of the present application. [Specific implementation method]
[0024] In order to make the purpose, technical solutions and advantages of the present application more obvious and easy to understand, the present application will be clearly and completely described below in conjunction with the embodiments of the present application and the corresponding drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. It should be understood that the various embodiments of the present application described below are only used to explain the present application and are not used to limit the present application, that is, based on the various embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present application. In addition, the technical features involved in the various embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.
[0025] In the related art, when a data center room is visualized in 3D, it is necessary to perform 3D modeling on each building, equipment and device therein, that is, a 3D model of each building, equipment and device is required. Specifically, 3D models can be divided into imported models and non-imported models; wherein, the imported model represents a model produced by other modeling software and exported to the corresponding monitoring software of the data center room, and the non-imported model represents a model produced by the corresponding monitoring software of the data center room. For the imported model, during 3D visualization, complex and cumbersome preprocessing is required, such as mapping of each structure in each model, manual binding of measurement points, and rendering such as light and shadow, texture and baking, which results in low efficiency of 3D visualization; for the non-imported model, during 3D visualization, not only complex and cumbersome preprocessing is required like the imported model, but also 3D modeling of each building, equipment and device is required in the corresponding monitoring software of the data center room, which will be less efficient than 3D visualization based on the imported model. To this end, an embodiment of the present application provides a 3D visualization method, which can be used to perform 3D visualization on a target visualization scene including at least one object; wherein the target visualization scene represents a scene that needs to be monitored and controlled, and the target visualization scene may include but is not limited to a data center room, a communication base station, a heating network, and oil production. As an example, when the target visualization scene is a data center room, the objects therein may include but are not limited to walls, floors, doors and windows, air conditioners, power distribution cabinets, storage cabinets, network cabinets, fire hydrants, and fire extinguishers.
[0026] See also Figure 1 , Figure 1 A first flow chart of a 3D visualization method provided in an embodiment of the present application; Figure 1 As can be seen from the figure, the 3D visualization method includes the following steps 100 to 300.
[0027] Step 100: Obtain the corresponding 3D model of the object in the target visualization scene.
[0028] In the embodiment of the present application, when the target visualization scene is 3D visualized, it is necessary to first obtain the corresponding 3D model of each object in the target visualization scene. It can be understood that when the target visualization scene includes multiple objects, the obtained 3D model includes multiple objects. Assuming that the target visualization scene includes two objects, a and b, the obtained 3D model also includes two, a′ and b′; wherein a corresponds to a′, and b corresponds to b′.
[0029] Step 200: Referring to the target visualization scene, the virtual position of the 3D model is adjusted to generate a virtual scene corresponding to the target visualization scene.
[0030] In an embodiment of the present application, after obtaining the corresponding 3D models of each object in the target visualization scene, it is also necessary to refer to the target visualization scene to adjust the virtual position of each 3D model, so as to generate a virtual scene corresponding to the target visualization scene. It can be understood that the target visualization scene and the objects therein exist in the real space, and the acquired 3D models exist in the virtual space. At this time, the virtual position of each 3D model in the virtual space can be adjusted with reference to the target visualization scene, so as to generate a virtual scene including all 3D models and corresponding to the target visualization scene. Specifically, the virtual position of each 3D model in the virtual space can be adjusted accordingly with reference to the physical position of each object in the target visualization scene, so that the virtual position of each 3D model in the virtual scene is consistent with the physical position of each object in the target visualization scene, which is equivalent to mapping the target visualization scene and the objects therein to the virtual scene and the 3D models therein.
[0031] Step 300: According to the received adjustment instruction, the rendering parameters of the 3D model are adjusted in real time to complete the 3D rendering of the virtual scene.
[0032] In an embodiment of the present application, after generating a virtual scene corresponding to the target visualization scene, it is also necessary to adjust the rendering parameters of each 3D model in real time according to the received adjustment instructions, so as to complete the 3D rendering of each 3D model, that is, complete the 3D rendering of the virtual scene, so that the virtual scene and the 3D models therein are more consistent with the target visualization scene and the objects therein.
[0033] Here, it is necessary to explain that the adjustment instructions are input by the user in real time, such as inputting a value in the parameter box corresponding to the rendering parameter in real time, and sliding the adjustment slider on the adjustment bar corresponding to the rendering parameter (similar to the progress bar and the slider on the progress bar when playing a video) in real time, so as to achieve real-time adjustment of the rendering parameters of each 3D model, and then achieve 3D rendering of the virtual scene; wherein, since the 3D rendering of the virtual scene is based on the adjustment instructions input by the user in real time, the 3D rendering of the virtual scene actually adopts an interface-based and parameterized rendering method. It can be understood that when the user inputs the adjustment instructions in real time, the rendering effect of each 3D model can be observed intuitively. Then, when the user observes that the rendering effect of each 3D model has reached the expected level, the user can stop inputting the adjustment instructions, that is, no longer adjust the rendering parameters of each 3D model, so that each 3D model maintains the current rendering effect. At this time, the 3D rendering of each 3D model is completed, that is, the 3D rendering of the virtual scene is completed.
[0034] When the embodiment of the present application performs 3D visualization on the target visualization scene, the corresponding 3D model of each object in the target visualization scene is first obtained; then the virtual position of each 3D model is adjusted with reference to the target visualization scene, thereby generating a virtual scene corresponding to the target visualization scene; finally, the rendering parameters of each 3D model are adjusted in real time according to the received adjustment instructions, thereby completing the 3D rendering of the virtual scene. Among them, when performing 3D rendering on the virtual scene, each 3D model needs to be rendered in 3D separately. At this time, the user can input the adjustment instructions in real time, thereby realizing the real-time adjustment of the rendering parameters of each 3D model, and then realizing the 3D rendering of each 3D model, and when the user inputs the adjustment instructions in real time, the rendering effect of each 3D model can be intuitively observed. It can be seen that the embodiment of the present application performs 3D rendering of the virtual scene in an interface-based and parameterized manner. Compared with the traditional 3D visualization technology, which requires the user to constantly debug rendering-related devices such as cameras and lights in order to complete the 3D rendering of the virtual scene that meets the expectations, this not only improves the flexibility of 3D rendering, so that the effect of 3D rendering can be changed at any time according to the user's wishes, but also reduces the tediousness of 3D rendering, thereby shortening the time of 3D visualization and improving the efficiency of 3D visualization.
[0035] As an implementation, obtaining the 3D model corresponding to the object in step 100 may include: receiving the imported 3D model corresponding to the object. In this implementation, the 3D model corresponding to each object in the target visualization scene is modeled by external modeling software and imported into the user end after the modeling is completed.
[0036] On this basis, please refer to Figure 2 , Figure 2 Provided in the embodiments of this application Figure 1 A first flow chart of step 200; from Figure 2 As can be seen from the figure, step 200 may include the following steps 210 to 220.
[0037] Step 210: Based on the spatial analysis algorithm of the geographic information system, a mapping relationship between the 3D model and the object is established with reference to the physical position of the object.
[0038] In this embodiment, when adjusting the virtual position of each 3D model, it is necessary to first establish a mapping relationship between the 3D model and the corresponding object based on the spatial analysis algorithm (SA) of the Geographic Information System (GIS), with reference to the physical position of each object; wherein the mapping relationship represents the consistency between the virtual position of the 3D model and the physical position of the corresponding object under the same viewing angle. Assuming that the target visualization scene includes two objects, a and b, and the virtual scene includes two 3D models, a′ corresponding to a and b′ corresponding to b, at this time, the mapping relationship between the established 3D model and the corresponding object includes a mapping relationship between a and a′, and b mapping relationship between b and b′.
[0039] Here, it is necessary to explain that the object in the target visualization scene can include at least one component, so the 3D model corresponding to the object in the virtual scene can also include at least one virtual component; as an example, when the target visualization scene is a data center computer room, the network cabinet therein includes a shell, and installation panels, plug-ins, plug-ins, electronic components and mechanical parts located in the shell, all of which are components that make up the network cabinet. It can be understood that for the target visualization scene, the physical position of each object in the target visualization scene is different due to different viewing angles, such as different placement positions of objects, different orientations of the outer surfaces of objects, different orientations of the outer surfaces of components in the objects, etc.; accordingly, for the virtual scene, the virtual position of each 3D model in the virtual scene is also different due to different viewing angles. Therefore, in order to ensure that the virtual scene and the 3D models therein are consistent with the target visualization scene and the objects therein, it is necessary to adjust the virtual position of each 3D model in the virtual scene so that at the same viewing angle, the virtual position of each 3D model in the virtual scene is consistent with the physical position of each object in the target visualization scene. For example, the placement of the 3D model in the virtual scene is consistent with the placement of the corresponding object in the target visualization scene, and the orientation of the outer surface of each virtual component in the 3D model is consistent with the orientation of the outer surface of each component in the corresponding object.
[0040] Specifically, this embodiment establishes a mapping relationship between a 3D model and a corresponding object by using a spatial analysis algorithm of a geographic information system and referring to the physical position of each object in a target visualization scene. Compared with the traditional 3D visualization technology, which requires a one-to-one approach to establish a mapping relationship between a 3D model and a corresponding object (i.e., first establish a mapping relationship between a certain object and a corresponding 3D model, then establish a mapping relationship between the next object and a corresponding 3D model, and so on), this embodiment can quickly and batch-establish a mapping relationship between a 3D model and a corresponding object, thereby further shortening the time of 3D visualization and improving the efficiency of 3D visualization.
[0041] Step 220: Adjust the virtual position of the 3D model according to the mapping relationship.
[0042] In this embodiment, after the mapping relationship between the 3D model and the corresponding object is established, the virtual position of each 3D model needs to be adjusted according to the established mapping relationship. It can be understood that the mapping relationship between the 3D model and the corresponding object is established in this embodiment, and since the established mapping relationship represents the consistency between the virtual position of the 3D model and the physical position of the corresponding object under the same viewing angle, as long as the mapping relationship between the 3D model and the corresponding object is established, the virtual position of each 3D model can be adjusted according to the established mapping relationship, so that under the same viewing angle, the virtual position of each 3D model in the virtual scene is consistent with the physical position of each object in the target visualization scene, that is, the virtual scene and the 3D model therein are consistent with the target visualization scene and the objects therein.
[0043] Furthermore, after adjusting the virtual position of each 3D model, a virtual scene corresponding to the target visualization scene can be generated. At this time, the virtual scene and the 3D models therein are consistent with the target visualization scene and the objects therein. Then, after generating the virtual scene corresponding to the target visualization scene (i.e., after step 220), the 3D visualization method provided in the embodiment of the present application may also include: based on the spatial analysis algorithm of the geographic information system, referring to the object information of the object, setting the model information of the 3D model accordingly; wherein the object information may include but is not limited to the name and number of the corresponding object, and the model information may include but is not limited to the name and number of the corresponding model.
[0044] In this embodiment, each object in the target visualization scene has corresponding object information; similarly, each 3D model in the virtual scene also has corresponding model information; wherein, the object information and the model information are consistent, and the difference between the two is that the object information is the information of the object, and the model information is the information of the 3D model. As an example, when the target visualization scene is a data center computer room, the object in the target visualization scene may be a network cabinet, and the object information of the network cabinet may include the name "network cabinet", and when the network cabinet includes multiple, in order to facilitate distinction, the object information of the network cabinet may also include a number, in this case, each network cabinet has a different number; similarly, the 3D model in the virtual scene may be a network cabinet model, and the model information of the network cabinet model may include the name "network cabinet", and when the network cabinet model includes multiple, in order to facilitate distinction, the model information of the network cabinet model may also include a number, in this case, each network cabinet model has a different number.
[0045] Specifically, this embodiment sets model information for each 3D model in the virtual scene by using the spatial analysis algorithm of the geographic information system and referring to the object information of each object in the target visualization scene. Compared with the traditional 3D visualization technology, which requires a one-to-one approach to complete the setting of model information for each 3D model in the virtual scene (i.e., first set model information for the corresponding 3D model based on the object information of one object, then set model information for the corresponding 3D model based on the object information of the next object, and so on), this embodiment can quickly and batch-set model information for each 3D model, thereby further shortening the time of 3D visualization and improving the efficiency of 3D visualization.
[0046] As another implementation, obtaining the corresponding 3D model of the object in step 100 may include: performing 3D modeling on the object based on the Three.js engine to obtain the corresponding 3D model of the object; wherein Three.js is a 3D engine running in a browser, which includes various objects such as cameras, lights and shadows, and materials, and can be used to create various 3D scenes. In this implementation, the corresponding 3D model of each object in the target visualization scene is modeled by the user on the user side using the Three.js engine, rather than being imported from an external modeling software to the user side.
[0047] On this basis, please refer to Figure 3 , Figure 3 Provided in the embodiments of this application Figure 1 A second flow chart of step 200; Figure 3 As can be seen from the figure, step 200 may include the following steps 210 ′ to 220 ′.
[0048] Step 210 ′: receiving a position adjustment instruction associated with the physical position of the object.
[0049] In this embodiment, when adjusting the virtual position of each 3D model, it is necessary to first receive a position adjustment instruction associated with the physical position of the object, that is, receive a position adjustment instruction inputted with reference to the physical position of each object, so as to subsequently adjust the virtual position of each 3D model according to the received adjustment instruction. It can be understood that since the 3D model is no longer imported by an external modeling software, but is directly modeled on the user side using the Three.js engine, there is no incompatibility between the 3D model and the user side. Then, in the process of modeling the object using the Three.js engine, and after the object is modeled using the Three.js engine, the user can adjust the virtual position of the 3D model and the virtual position of each component in the 3D model according to his own wishes. For example, the user can input a position adjustment instruction according to his own wishes to adjust the virtual position of the 3D model and the virtual position of each component in the 3D model. Of course, it is not limited to this. In addition to using the Three.js engine to adjust the virtual position of the 3D model and the virtual position of each component within the 3D model, users can also customize the size, material, dimensions and view (such as front view, top view and perspective view, etc.) of the 3D model according to their wishes.
[0050] Step 220 ′: adjust the virtual position of the 3D model according to the position adjustment instruction.
[0051] In this embodiment, after receiving the position adjustment instruction, the virtual position of each 3D model needs to be adjusted according to the received position adjustment instruction. It can be understood that if the received position adjustment instruction is obtained by referring to the physical position of each object, then after adjusting the virtual position of each 3D model according to the received position adjustment instruction, the virtual position of each 3D model in the virtual scene and the physical position of each object in the target visualization scene under the same viewing angle will be consistent, that is, the virtual scene and the 3D models therein will be consistent with the target visualization scene and the objects therein.
[0052] Furthermore, after adjusting the virtual position of each 3D model and generating a virtual scene corresponding to the target visualization scene (i.e., after step 220′), the 3D visualization method provided in the embodiment of the present application may further include: receiving a setting instruction for object information associated with the object, i.e., receiving a setting instruction for object information input of a reference object; according to the setting instruction, setting the model information of the 3D model accordingly; wherein the object information may include but is not limited to the name and number of the corresponding object, and the model information may include but is not limited to the name and number of the corresponding model.
[0053] In this embodiment, each object in the target visualization scene has corresponding object information; similarly, each 3D model in the virtual scene also has corresponding model information; wherein, the object information and the model information are consistent, and the difference between the two is that the object information is the information of the object, and the model information is the information of the 3D model. As an example, when the target visualization scene is a data center computer room, the object in the target visualization scene may be a network cabinet, and the object information of the network cabinet may include the name "network cabinet", and when the network cabinet includes multiple, in order to facilitate distinction, the object information of the network cabinet may also include a number, in this case, each network cabinet has a different number; similarly, the 3D model in the virtual scene may be a network cabinet model, and the model information of the network cabinet model may include the name "network cabinet", and when the network cabinet model includes multiple, in order to facilitate distinction, the model information of the network cabinet model may also include a number, in this case, each network cabinet model has a different number.
[0054] Specifically, since the 3D model is no longer imported by external modeling software, but is directly modeled on the user side using the Three.js engine, there is no incompatibility between the 3D model and the user side. Therefore, in the process of modeling the object using the Three.js engine, and after the object is modeled using the Three.js engine, the user can set the model information of the 3D model according to his own wishes. For example, the user can input a setting instruction according to his own wishes to achieve the setting of the model information of the 3D model. It can be understood that if the received setting instruction is obtained by referring to the object information of each object, then after the model information of each 3D model is set according to the received setting instruction, the model information of the 3D model will be consistent with the object information of the corresponding object.
[0055] It should be understood that the above-mentioned implementation mode is only a preferred implementation of the embodiment of the present application, and is not the only limitation of the method of obtaining the 3D model and the specific process of step 200 in the embodiment of the present application; in this regard, those skilled in the art can flexibly set it according to the actual application scenario based on the embodiment of the present application.
[0056] See also Figure 4 , Figure 4 A second flow chart of the 3D visualization method provided in the embodiment of the present application, that is, the embodiment of the present application also provides another 3D visualization method, which is also used to perform 3D visualization on a target visualization scene including at least one object; Figure 4 As can be seen from the figure, the other 3D visualization method includes the following steps 400 to 700.
[0057] Step 400: Obtain the corresponding 3D model of the object in the target visualization scene.
[0058] In the embodiment of the present application, step 400 is consistent with step 100 shown in the previous text. For the relevant explanation of step 400, please refer to the relevant explanation of step 100 in the previous text, and the embodiment of the present application will not be repeated here.
[0059] Step 500: Referring to the target visualization scene, the virtual position of the 3D model is adjusted to generate a virtual scene corresponding to the target visualization scene.
[0060] In the embodiment of the present application, step 500 is consistent with step 200 shown in the previous text. For the relevant explanation of step 500, please refer to the relevant explanation of step 200 in the previous text, and the embodiment of the present application will not be repeated here.
[0061] Step 600: According to the received adjustment instruction, the rendering parameters of the 3D model are adjusted in real time to complete the 3D rendering of the virtual scene.
[0062] In the embodiment of the present application, step 600 is consistent with step 300 shown in the previous text. For the relevant explanation of step 600, please refer to the relevant explanation of step 300 in the previous text, and the embodiment of the present application will not be repeated here.
[0063] Step 700 : referring to the physical measuring points of the object, the virtual measuring points of the 3D model are configured accordingly.
[0064] In the embodiment of the present application, each object in the target visualization scene includes at least one physical measurement point; similarly, each 3D model in the virtual scene also includes at least one virtual measurement point; wherein the virtual position of the virtual measurement point on the 3D model relative to the 3D model is consistent with the physical position of the physical measurement point on the corresponding object relative to the object. In actual applications, each virtual measurement point can display the measurement point data of the corresponding physical measurement point, so that the user can monitor the target visualization scene and the objects therein in real time through the measurement point data displayed by each virtual measurement point.
[0065] Based on this, in order to realize real-time monitoring of the target visualization scene and the objects therein, the embodiment of the present application refers to the physical measurement points of each object in the target visualization scene, and configures the virtual measurement points of each 3D model in the virtual scene accordingly, so that each 3D model has virtual measurement points corresponding to the physical measurement points of the corresponding object. It can be seen that the embodiment of the present application adopts an automated configuration method when configuring virtual measurement points for each 3D model in the virtual scene, which can further shorten the time of 3D visualization and improve the efficiency of 3D visualization compared to the traditional 3D visualization technology, which requires the user to manually configure virtual measurement points for each 3D model in order to complete the configuration of the virtual measurement points of each 3D model.
[0066] As an implementation method, please refer to Figure 5 , Figure 5 Provided in the embodiments of this application Figure 4 Schematic diagram of the process of step 700; from Figure 5 As can be seen from the figure, step 700 may include the following steps 710 to 720.
[0067] Step 710: Determine a corresponding target template from a preset template library according to the target visualization scene.
[0068] In this embodiment, when the virtual measuring points of each 3D model are configured accordingly with reference to the physical measuring points of each object, it is necessary to first determine the corresponding target template from the preset template library according to the target visualization scene; wherein the preset template library includes multiple physical measuring point templates, the target template is any one of the multiple physical measuring point templates, and there is a corresponding relationship between the target visualization scene and the physical measuring point template in the preset template library.
[0069] Step 720: Configure the virtual measuring points of the 3D model accordingly according to the target template.
[0070] In this embodiment, after determining the target template corresponding to the target visualization scene from the preset template library, it is also necessary to configure the virtual measuring points of each 3D model in the virtual scene accordingly according to the determined target template. It can be understood that since the objects included in the same or similar target visualization scenes (such as a data center computer room) will not have a large difference, the physical measuring points of each object in the target visualization scene can be used in advance to create a physical measuring point template, and the created physical measuring point template can be stored in the preset template library, so that when the same or similar target visualization scene is encountered later, the corresponding physical measuring point template can be directly called from the preset template library as the target template, and the corresponding virtual measuring points can be configured for each 3D model in the virtual scene according to the called target template.
[0071] As an implementation method, please refer to Figure 6 , Figure 6 Provided in the embodiments of this application Figure 5 Schematic diagram of the process of step 710; from Figure 6 As can be seen from the figure, step 710 may include the following steps 711 to 714.
[0072] Step 711: According to the target visualization scene, search for a corresponding target template from a preset template library.
[0073] In this embodiment, when determining the corresponding target template from the preset template library according to the target visualization scene, it is necessary to first search for the corresponding target template from the preset template library according to the target visualization scene. At this time, there are two situations, one is that the preset template library has a physical measurement point template corresponding to the target visualization scene, that is, the target template exists, and the other is that the preset template library does not have a physical measurement point template corresponding to the target visualization scene, that is, the target template does not exist.
[0074] Step 712: If the target template is found, the target template is called.
[0075] In this embodiment, after searching for the corresponding target template from the preset template library according to the target visualization scene, if the physical measurement point template corresponding to the target visualization scene is found, that is, the target template is found, the physical measurement point template found is called as the target template, so that the virtual measurement points of each 3D model can be configured accordingly using the target template later; wherein, the physical measurement point template corresponding to the target visualization scene can be called as the target template in a copying manner. It can be understood that if the physical measurement point template is used, it is very likely that the relevant information of the physical measurement point template will be destroyed. Therefore, in order to ensure that the physical measurement point template in the preset template library can be reused, it is necessary to copy the physical measurement point template from the preset template library as the target template, rather than directly using the physical measurement point template in the preset template library as the target template.
[0076] Step 713: If the target template is not found, the similarities between the multiple entity measurement point templates and the entity measurement points of the object are respectively obtained.
[0077] In this embodiment, after searching for the corresponding target template from the preset template library according to the target visualization scene, if the physical measurement point template corresponding to the target visualization scene is not found, that is, the target template is not found, the similarity between each physical measurement point template in the preset template library and the physical measurement points of each object in the target visualization scene is obtained respectively; wherein the similarity represents the degree of proximity between the physical measurement point template and the physical measurement points of each object in the target visualization scene, and the higher the similarity, the higher the degree of proximity between the physical measurement point template and the physical measurement points of each object in the target visualization scene.
[0078] Step 714: Determine a target template from multiple entity measurement point templates based on the similarity.
[0079] In this embodiment, after respectively obtaining the similarity between each entity measurement point template in the preset template library and the entity measurement points of each object in the target visualization scene, it is also necessary to determine an entity measurement point template from multiple entity measurement point templates in the preset template library as a target template according to the similarity between each entity measurement point template in the preset template library and the entity measurement points of each object in the target visualization scene. For example, determine the entity measurement point template with the highest similarity from multiple entity measurement point templates in the preset template library as the target template, so that the target template can be used to subsequently configure the virtual measurement points of each 3D model accordingly.
[0080] As an implementation method, please refer to Figure 7 , Figure 7 Provided in the embodiments of this application Figure 6 Flow chart of step 714 in Figure 7 As can be seen from the figure, step 714 may include the following steps 7141 to 7142.
[0081] Step 7141: Compare the similarity with a preset similarity threshold.
[0082] In this embodiment, according to the similarity between each entity measurement point template in the preset template library and the entity measurement points of each object in the target visualization scene, when determining an entity measurement point template from multiple entity measurement point templates in the preset template library as the target template, it is necessary to first obtain a preset similarity threshold related to the similarity, and then compare each similarity with the similarity threshold respectively, and obtain a comparison result.
[0083] Step 7142: According to the comparison result, select an entity measurement point template whose similarity is greater than a similarity threshold from the multiple entity measurement point templates as a target template.
[0084] In this embodiment, after comparing each similarity with the similarity threshold, it is also necessary to select a physical measurement point template whose similarity is greater than the similarity threshold from multiple physical measurement point templates in the preset template library according to the comparison result, and if the selected physical measurement point template whose similarity is greater than the similarity threshold includes only one, then the physical measurement point template whose similarity is greater than the similarity threshold is used as the target template, so that the virtual measurement points of each 3D model can be configured accordingly using the target template later.
[0085] Furthermore, when there are multiple entity measurement point templates with similarity greater than the similarity threshold, the historical usage times of the multiple entity measurement point templates with similarity greater than the similarity threshold can be obtained respectively; wherein the historical usage times represent the number of times the entity measurement point template is called. Then, according to the historical usage times, the entity measurement point template with the highest historical usage times is determined as the target template from the multiple entity measurement point templates with similarity greater than the similarity threshold, so that the target template can be used to configure the virtual measurement points of each 3D model accordingly.
[0086] In addition, when there is no entity measurement point template corresponding to the target visualization scene in the preset template library, that is, when there is no target template, we cannot find the entity measurement point template corresponding to the target visualization scene from the preset template library, that is, we cannot find the target template from the preset template library. In this regard, the embodiment of the present application determines an entity measurement point template as the target template from the preset template library by the similarity between each entity measurement point template in the preset template library and the entity measurement points of each object in the target visualization scene; or, determines an entity measurement point template as the target template from the preset template library by the similarity between each entity measurement point template in the preset template library and the entity measurement points of each object in the target visualization scene, and a similarity threshold value related to the similarity; or, determines an entity measurement point template as the target template from the preset template library by the similarity between each entity measurement point template in the preset template library and the entity measurement points of each object in the target visualization scene, a similarity threshold value related to the similarity, and the historical usage times of multiple entity measurement point templates in the preset template library whose similarity is greater than the similarity threshold value. It can be understood that no matter which method is used to determine a physical measurement point template from the preset template library as a target template, there are slight differences between the determined target template and the physical measurement points of each object in the target visualization scene. At this time, after the virtual measurement points of each 3D model in the virtual scene are configured accordingly according to the determined target template, there will also be slight differences between the virtual measurement points of each 3D model in the virtual scene and the physical measurement points of each object in the target visualization scene.
[0087] In view of this, in order to ensure the consistency between the virtual measuring points of each 3D model in the virtual scene and the physical measuring points of each object in the target visualization scene, after step 720, the 3D visualization method provided in the embodiment of the present application may also include: receiving a measuring point adjustment instruction associated with the difference index between the physical measuring points of the target template and the object; adjusting the virtual measuring points of the 3D model according to the measuring point adjustment instruction; wherein the difference index represents the difference between the physical measuring points of the target template and the object. It can be understood that when there is a difference between the physical measuring points of the target template and the objects in the target visualization scene, the user can input the measuring point adjustment instruction in real time according to the difference (i.e., the difference index) between the physical measuring points of the target template and the objects in the target visualization scene. At this time, after the virtual measuring points of each 3D model in the virtual scene are adjusted accordingly according to the input measuring point adjustment instruction, the virtual measuring points of each 3D model in the virtual scene will match the physical measuring points of each object in the target visualization scene, that is, the virtual measuring points of each 3D model in the virtual scene and the physical measuring points of each object in the target visualization scene have consistency.
[0088] It should be understood that the above implementation is only a preferred implementation of the embodiment of the present application, and is not the only limitation of the configuration process of the virtual measuring points of the 3D model in the embodiment of the present application; in this regard, those skilled in the art can flexibly set it according to the actual application scenario based on the embodiment of the present application.
[0089] See also Figure 8 , Figure 8 A module block diagram of an electronic device provided in an embodiment of the present application.
[0090] like Figure 8 As shown, an embodiment of the present application further provides an electronic device 800, comprising a storage device 810 and at least one processor 820; wherein the storage device 810 is used to store at least one program, and when the at least one program is executed by the at least one processor 820, the at least one processor 820 executes the 3D visualization method provided in the embodiment of the present application.
[0091] In some embodiments, the electronic device 800 may further include a bus 830 for communication connection between the storage device 810 and the at least one processor 820 .
[0092] See also Fig. 9 , Fig. 9 A module block diagram of a computer-readable storage medium provided in an embodiment of the present application.
[0093] like Fig. 9As shown, the embodiment of the present application further provides a computer-readable storage medium 900, on which executable instructions 910 are stored. When the executable instructions 910 are executed, the 3D visualization method provided in the embodiment of the present application is executed.
[0094] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0095] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk), etc.
[0096] It should be noted that each embodiment in the present application is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For product-type embodiments, since they are similar to method-type embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method-type embodiments.
[0097] It should also be noted that, in the present application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of further restrictions, the elements defined by the statement "comprise one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements.
[0098] The above description of the disclosed embodiments enables professionals and technicians in the field to implement or use the present application. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined in the present application can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown in the present application, but will conform to the widest range consistent with the principles and novel features disclosed in the present application.
Claims
1. A 3D visualization method, characterized in that: include: Acquire a 3D model corresponding to an object in a target visualization scene; wherein the target visualization scene includes at least one of the objects; Referring to the target visualization scene, adjusting the virtual position of the 3D model to generate a virtual scene corresponding to the target visualization scene; According to the received adjustment instruction, the rendering parameters of the 3D model are adjusted in real time to complete the 3D rendering of the virtual scene; Referring to the physical measuring points of the object, the virtual measuring points of the 3D model are configured accordingly; the virtual positions of the virtual measuring points of the 3D model relative to the 3D model are consistent with the physical positions of the physical measuring points on the object relative to the object; The step of configuring the virtual measuring points of the 3D model accordingly with reference to the physical measuring points of the object includes: According to the target visualization scene, a corresponding target template is determined from a preset template library; wherein the preset template library includes a plurality of entity measurement point templates, and the target template is any one of the plurality of entity measurement point templates; If the target template is found, the target template is called; If the target template is not found, the similarities between the multiple physical measurement point templates and the physical measurement points of the object are respectively obtained; the similarities are compared with a preset similarity threshold; when the physical measurement point template with the similarity greater than the similarity threshold includes one, the corresponding physical measurement point template is used as the target template; when the physical measurement point template with the similarity greater than the similarity threshold includes multiple physical measurement point templates, the historical usage times of the multiple physical measurement point templates with the similarity greater than the similarity threshold are respectively obtained; according to the historical usage times, the physical measurement point template with the highest historical usage times is determined as the target template from the multiple physical measurement point templates with the similarity greater than the similarity threshold; According to the target template, the virtual measuring points of the 3D model are configured accordingly; receiving a measurement point adjustment instruction associated with a difference indicator between the target template and the physical measurement point of the object; The virtual measuring points of the 3D model are adjusted according to the measuring point adjustment instruction.
2. The 3D visualization method according to claim 1, characterized in that: The step of obtaining the corresponding 3D model of the object in the target visualization scene comprises: Receive the corresponding 3D model of the object in the imported target visualization scene; The adjusting the virtual position of the 3D model with reference to the target visualization scene includes: Based on a spatial analysis algorithm of a geographic information system, a mapping relationship between the 3D model and the object is established with reference to the physical position of the object; wherein the mapping relationship represents the consistency between the virtual position of the 3D model and the physical position of the object at the same viewing angle; The virtual position of the 3D model is adjusted according to the mapping relationship.
3. The 3D visualization method according to claim 2, characterized in that: After generating the virtual scene corresponding to the target visualization scene, the method further includes: Based on the spatial analysis algorithm, the model information of the 3D model is set accordingly with reference to the object information of the object; wherein both the object information and the model information include a name and a number.
4. The 3D visualization method according to claim 1, characterized in that: The step of obtaining the corresponding 3D model of the object in the target visualization scene comprises: Based on the Three.js engine, 3D modeling is performed on the objects in the target visualization scene to obtain the corresponding 3D models of the objects; The adjusting the virtual position of the 3D model with reference to the target visualization scene includes: receiving a position adjustment instruction associated with a physical position of the object; According to the position adjustment instruction, the virtual position of the 3D model is adjusted; After generating the virtual scene corresponding to the target visualization scene, the method further includes: receiving a setting instruction of object information associated with the object; According to the setting instruction, the model information of the 3D model is set accordingly; wherein the object information and the model information both include a name and a number.
5. An electronic device, characterized in that: The invention comprises a storage device and at least one processor, wherein the storage device is used to store at least one program, and when the at least one program is executed by the at least one processor, the at least one processor executes the method according to any one of claims 1 to 4.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores executable instructions, and when the executable instructions are executed, the method according to any one of claims 1 to 4 is performed.
Citation Information
Patent Citations
Virtual workshop model for mapping true production conditions and information merging displaying method
CN107885336A
Hospital logistics energy consumption target object monitoring method, hospital logistics energy consumption target object monitoring device, computer equipment and storage medium
CN111128357A