Method, product, device and storage medium for generating three-dimensional animation of server products
By formatting the server product process file to generate assembly rules and importing the 3D model, the assembly animation is automatically generated, which solves the problem of difficulty in visually displaying the assembly process in the existing technology and improves design and production efficiency and animation quality.
Patent Information
- Application Number
- CN202410822887.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-25
AI Technical Summary
Existing server product process files are difficult to visually display the assembly process and cannot be directly used to generate three-dimensional animations, resulting in low design and production efficiency.
By filtering and formatting the part assembly sequence and action description in the server product process file, an assembly rule file is generated and imported into the 3D model, the target parts and tools are identified, the 3D assembly animation is automatically generated, and errors are automatically detected and repaired. picture.
It improves the visualization and production efficiency of server product design, improves the quality and design efficiency of 3D animation, and ensures the accuracy and consistency of the assembly process.
Smart Images

Figure CN118379400B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of three-dimensional animation technology, and in particular to a method, product, computer device and storage medium for generating three-dimensional animation of a server product. Background Art
[0002] In the process of server product development, design, and production, server product process documents specify in detail the operation methods, technical requirements, and precautions of each component, and are an important guide for the assembly of server products. However, current server product process documents are usually only used for material management and production planning, and are often just text descriptions. It is difficult to intuitively display the assembly process of server products, and cannot be directly used to generate 3D animations of products. Therefore, how to combine server product process documents with 3D animation generation technology to improve the visualization and production efficiency of server product design has become an urgent problem to be solved in the industry. Summary of the invention
[0003] Based on this, it is necessary to provide a method, product, computer equipment and storage medium for generating three-dimensional animation of server products, which can realize the generation of three-dimensional animation of server products and achieve visualization during server product design to improve production efficiency.
[0004] In one aspect, a method for generating a three-dimensional animation of a server product is provided, the method comprising:
[0005] Filter the parts assembly sequence, assembly path and assembly action description text in the server product process file;
[0006] Filling the description texts of each assembly action in a predetermined format according to the parts assembly sequence to form an assembly rule file, and converting each assembly rule file into a data text;
[0007] The data text corresponding to the target component to be displayed is imported into the three-dimensional model. The three-dimensional model reads the data in the data text to identify the corresponding target part, calls the target tool required to assemble the target part according to the data in the data text, and generates an assembly three-dimensional animation according to the assembly path.
[0008] In one embodiment, the step of filling in the content of each assembly action description text according to a predetermined format according to the parts assembly sequence to form an assembly rule file, and converting each assembly rule file into a data text comprises:
[0009] Obtain components and tools for disassembling and assembling the server product according to the parts assembly sequence, assembly path, and assembly action description text in the server product process file;
[0010] Setting a predetermined format of the component and the tool;
[0011] Filling the description text with assembly content according to the predetermined format to form an assembly rule file;
[0012] Convert the filled assembly content into parent and child files according to the described rules.
[0013] In one embodiment, the step of setting the predetermined format of the component and the tool comprises:
[0014] Setting rules for coordinate axes of the component and the tool;
[0015] Setting the model, size and torque range of the tool;
[0016] Numerical setting of the rotation and displacement actions of the component and the tool;
[0017] Setting values for pressing, popping up, lifting, inserting and pulling out actions of the components and the tools;
[0018] Rules are set for the names of the components and the tools.
[0019] In one embodiment, the step of setting rules for the coordinate axes of the component and the tool includes:
[0020] The coordinate axes of the component and the tool are set to have an X-axis, a Y-axis, and a Z-axis, wherein the X-axis represents a displacement in a horizontal direction, the Y-axis represents a displacement in a vertical direction, and the Z-axis represents a displacement in a direction perpendicular to the X-axis and the Y-axis;
[0021] The values of the coordinate axes of the component and the tool are set according to the vertical placement or horizontal placement of the component and the tool.
[0022] In one embodiment, the step of setting the model, size and torque range of the tool includes:
[0023] Setting a tool number for the model of the tool, wherein the tool number includes a category number and a quantity number;
[0024] According to the model of the tool, an abutment portion adapted to the component is obtained, and a size value of the tool and a size value of the abutment portion are set;
[0025] The torque range value of the tool is set, and the action to be performed can be determined as installation or disassembly according to the positive and negative values of the torque.
[0026] In one embodiment, the step of setting the numerical values of the rotation and displacement actions of the component and the tool comprises:
[0027] The rotation directions of the component and the tool are divided into clockwise and counterclockwise, and the displacement values are associated with the rotation angle values;
[0028] The assembly action is determined according to the rotation direction, rotation angle value and displacement value of the component and the tool, and the tool is removed after the assembly action is completed.
[0029] In one embodiment, the step of converting the filled assembly content into a parent file and a child file according to the rule comprises:
[0030] Save the component as a parent file, and define the name of the parent file as the component name;
[0031] The action of each part included in the component is saved as a child file, and the child file is associated with the parent file according to the assembly order of the parts.
[0032] In one embodiment, the step of importing the data text corresponding to the target component to be displayed into the three-dimensional model, the three-dimensional model reading the data in the data text to identify the corresponding target part, and calling the target tool required for assembling the target part according to the data in the data text includes:
[0033] Get the parent file corresponding to the target component to be displayed;
[0034] Importing the parent file into the three-dimensional model, searching for the child file in the parent file, and reading the child file to identify the corresponding target part;
[0035] Acquire a target tool matching the target part according to the cross-sectional image of the target part;
[0036] The target part and the target tool are aligned with each other in coordinate axes, and the setting position and force direction of the target tool on the target part are set.
[0037] In one embodiment, the step of importing the data text corresponding to the target component to be displayed into the three-dimensional model, the three-dimensional model reading the data in the data text to identify the corresponding target part, and calling the target tool required for assembling the target part according to the data in the data text further includes:
[0038] Acquire the name of the target part according to the cross-sectional image of the target part, and compare the name of the target part with the component name corresponding to the parent file for self-checking;
[0039] When the name of the target part is consistent with the component name corresponding to the parent file, the target tool required for assembling the target part is called to control the assembly action of the target part.
[0040] In one embodiment, the method further comprises:
[0041] The assembly three-dimensional animation is played, and whether there is an error screen in the assembly three-dimensional animation is detected. If there is an error screen, the assembly three-dimensional animation is repaired according to the type of the error screen.
[0042] In one embodiment, the step of playing the assembly 3D animation, detecting whether there is an error screen in the assembly 3D animation, and if there is an error screen, repairing the assembly 3D animation according to the type of the error screen comprises:
[0043] Defining error types in assembly 3D animation, including geometry intersection or animation path problems;
[0044] In response to penetration or overlap between detected objects appearing in the assembly three-dimensional animation, determining that the error type is geometric body intersection;
[0045] In response to unnatural animation transition or jitter in the object movement between key frames in the assembly three-dimensional animation, determining that the error type is an animation path problem;
[0046] When it is detected that there is an error picture in the assembly three-dimensional animation or it does not conform to a predetermined format, the playing of the assembly three-dimensional animation is stopped and an alarm signal is issued;
[0047] The error picture in the assembly three-dimensional animation is repaired according to the error type corresponding to the error picture determined.
[0048] In one embodiment, the step of repairing the error screen in the assembly three-dimensional animation according to the error type corresponding to the error screen determined comprises:
[0049] When it is detected that a component crossover occurs, the animation curve generated by the movement between the components is adjusted to avoid penetration or overlap. If a component crossover still occurs, the data of the sub-level file corresponding to the component that causes penetration or overlap is re-read;
[0050] When an animation path problem is detected, the displacement interval of consecutive frames on the original animation curve is identified, and the error sensitivity level is determined according to the degree of unnatural animation transition or jitter. The degree of frame adjustment is obtained according to the error sensitivity level, and the frame interval is increased on the animation curve according to the frame adjustment degree until the picture is smooth.
[0051] In one embodiment, the method further comprises:
[0052] The file saving parameters for exporting the assembly three-dimensional animation are set, and the assembly three-dimensional animation is exported and saved according to the file saving parameters.
[0053] In another aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0054] Filter the parts assembly sequence, assembly path and assembly action description text in the server product process file;
[0055] Filling the description texts of each assembly action in a predetermined format according to the parts assembly sequence to form an assembly rule file, and converting each assembly rule file into a data text;
[0056] The data text corresponding to the target component to be displayed is imported into the three-dimensional model. The three-dimensional model reads the data in the data text to identify the corresponding target part, calls the target tool required to assemble the target part according to the data in the data text, and generates an assembly three-dimensional animation according to the assembly path.
[0057] In another aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:
[0058] Filter the parts assembly sequence, assembly path and assembly action description text in the server product process file;
[0059] Filling the description texts of each assembly action in a predetermined format according to the parts assembly sequence to form an assembly rule file, and converting each assembly rule file into a data text;
[0060] The data text corresponding to the target component to be displayed is imported into the three-dimensional model. The three-dimensional model reads the data in the data text to identify the corresponding target part, calls the target tool required to assemble the target part according to the data in the data text, and generates an assembly three-dimensional animation according to the assembly path.
[0061] In another aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0062] Filter the parts assembly sequence, assembly path and assembly action description text in the server product process file;
[0063] Filling the description texts of each assembly action in a predetermined format according to the parts assembly sequence to form an assembly rule file, and converting each assembly rule file into a data text;
[0064] The data text corresponding to the target component to be displayed is imported into the three-dimensional model. The three-dimensional model reads the data in the data text to identify the corresponding target part, calls the target tool required to assemble the target part according to the data in the data text, and generates an assembly three-dimensional animation according to the assembly path.
[0065] The above-mentioned method, product, computer equipment and storage medium for generating three-dimensional animation of server products form an assembly rule file by filling in the content of each assembly action description text in a predetermined format according to the parts assembly sequence of the server product process file, and converting each assembly rule file into a data text. The corresponding target parts can be obtained by importing data text, which improves processing efficiency, and the target tools required for assembling the target parts can be called to automatically generate assembly three-dimensional animation, realize visualization of the assembly process, automatically detect and repair error screens, and improve the quality of assembly three-dimensional animation. Based on assembly three-dimensional animation, design efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0067] Figure 1 A schematic diagram of the structure of a system for generating a three-dimensional animation of a server product that implements a method for generating a three-dimensional animation of a server product in one embodiment of the present application;
[0068] Figure 2 This is a schematic diagram of a cross-sectional image of a screwdriver in one embodiment of the present application;
[0069] Figure 3 This is a schematic diagram of a cross-sectional image of a screw in one embodiment of the present application;
[0070] Figure 4 A schematic diagram of a flow chart of a method for generating a three-dimensional animation of a server product by a system for generating a three-dimensional animation of a server product in one embodiment of the present application;
[0071] Figure 5 A schematic diagram of a process for generating a three-dimensional animation of a server product in one embodiment of the present application;
[0072] Figure 6In one embodiment of the present application, each assembly action description text is filled in with content according to a predetermined format to form an assembly rule file according to the parts assembly sequence, and each assembly rule file is converted into a flow chart of a data text step;
[0073] Figure 7 A flowchart of the steps of setting the predetermined format of the components and the tool in one embodiment of the present application;
[0074] Figure 8 In one embodiment of the present application, a data text corresponding to a target component to be displayed is imported into a three-dimensional model, the three-dimensional model reads data in the data text to identify the corresponding target part, and a flow chart of a target tool step required for assembling the target part is called according to the data in the data text;
[0075] Fig. 9 This is a diagram of the internal structure of a computer device in one embodiment of the present application. DETAILED DESCRIPTION
[0076] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0077] As described in the background technology, in the process of developing server product operation and maintenance video materials, the product 3D animation is developed through some 3D animation production software. From the establishment of the server 3D model to the production of 3D animation, the entire process requires manual operation, which is cumbersome and time-consuming, resulting in low efficiency in the output of operation and maintenance video materials. With the complexity of server product design and the diversification of configuration types, in the process of developing operation and maintenance video materials, the assembly relationship of server components involved is becoming more and more cumbersome, and the server product process files cannot be effectively used for assembly animation matching, resulting in errors in the assembly relationship of server product 3D model components, and inconsistency with the actual server product component assembly relationship and assembly method.
[0078] Example 1
[0079] To solve the above problems, Example 1 of the present invention creatively proposes a method for generating a three-dimensional animation of a server product, which is implemented by generating a three-dimensional animation system for a server product. The system calls the server product process file to generate a three-dimensional animation script file, imports the script file into the three-dimensional software, and automatically generates the corresponding server product three-dimensional animation by reading the script. The video operation and maintenance engineers no longer need to animate the server product three-dimensional model, and the automatically generated server product three-dimensional assembly animation is consistent with the assembly action described in the server product process file, which reduces the workload of the video operation and maintenance project and improves the development quality and efficiency of the video data. At the same time, it realizes the visualization of the server product process file, which is more intuitive and efficient in the market.
[0080] The method for generating a three-dimensional animation of a server product provided in this application can be applied to Figure 1 The three-dimensional animation system of the server product is shown in the figure. The three-dimensional animation system of the server product is divided into five modules: a three-dimensional script conversion module 1, an image text recognition module 2, an animation action module 3, an automatic error correction module 4 and an output preset module 5.
[0081] The 3D script conversion module 1 converts the text description of the disassembly and assembly steps in the server product process file into an automatically readable data format. The video engineer screens and optimizes the parts assembly sequence, assembly path, and assembly action description required in the server product process file, and fills in the content according to the rules established in the 3D script conversion module 1. A component is saved as a parent file, and the actions of each component involved in this component need to be saved as a child file. The order of the child files needs to be consistent with the order of the disassembly and assembly steps, that is, there will be multiple child files under a component parent file. The specific rules of the 3D script conversion module 1 are as follows.
[0082] First, set rules based on all the object coordinate axes used for disassembling and assembling server components:
[0083] The coordinate axes X, Y, and Z represent the three directions in space. The X axis usually represents the displacement in the horizontal direction, that is, the left and right direction. The Y axis usually represents the displacement in the vertical direction, that is, the up and down direction. The Z axis represents the direction perpendicular to the X and Y axes, that is, the front and back direction. When the component is placed vertically, the coordinate axes are x-axis = e, y-axis = f, and z-axis = g. When the component is horizontal, the coordinate axes are x-axis = -e, y-axis = -f, and z-axis = -g.
[0084] Secondly, set the values according to the various screwdriver models and sizes used to disassemble and assemble server components:
[0085] The cross screwdriver is a1, when the cross screwdriver bit is PH2=a1 PH2, when the cross screwdriver bit is PH1=a1PH1. The slotted screwdriver is a2, when the slotted screwdriver bit is SL1.5=a2 SL1.5, the slotted screwdriver bit is SL1.7=a2SL1.7. The socket screwdriver is a3, when the socket screwdriver bit is H6.5=a3 H6.5, when the socket screwdriver bit is H7=a3H7. The plum screwdriver is a4, when the plum screwdriver bit is T20=a4 T20, when the plum screwdriver bit is T30=a4 T30.
[0086] Furthermore, set the value according to the torque requirements of the screwdriver used to disassemble and assemble server components:
[0087] Torque 1.1 =1.8±0.4 kgf.cm=b1, torque 1.2 =-1.8±0.4 kgf.cm=-b1;
[0088] Torque 2.1 =2.0±0.5 kgf.cm=b2, Torque 2.1 =-2.0±0.5 kgf.cm=-b2;
[0089] Torque 3.1 =4.0±0.5 kgf.cm=b3, Torque 3.1 =-4.0±0.5 kgf.cm=-b3;
[0090] Torque 4.1 =6.0±0.5 kgf.cm=b4, Torque 4.1 =-6.0±0.5 kgf.cm=-b4;
[0091] Torque 5.1 =9.0±0.5 kgf.cm=b5, Torque 5.1 =-9.0±0.5 kgf.cm=-b5;
[0092] When the torque value is a positive number, the action performed by b1, b2, b3, b4, and b5 is installation. When the torque value is a complex number, the action performed by -b1, -b2, -b3, -b4, and -b5 is disassembly.
[0093] In addition, set the values according to the rotation and displacement actions used in disassembling and assembling server components:
[0094] Clockwise is S, 90°=b, 180°=c, 360°=d. When rotating 90° clockwise=Sb, when rotating 180° clockwise=Sc, when rotating 360° clockwise=Sd, the resulting displacement range = -W≤5cm. When the displacement range is ≤5cm, the component will stay in the picture after displacement.
[0095] Counterclockwise is N, 90°=b, 180°=c, 360°=d. When rotating 90° counterclockwise = Nb, when rotating 180° counterclockwise = Nc, when rotating 360° counterclockwise = Nd, the displacement range = W ≥ 5cm. When the displacement range is ≥ 5cm, the picture will be removed after the part moves.
[0096] For example, the action description is "Use a PH2 Phillips screwdriver to install a Phillips screw with a torque requirement of 4.0±0.5kgf.cm and rotate 90 degrees clockwise" = a1 PH2, b3, Sb-W≤5cm.
[0097] In addition, numerical settings are performed based on the pressing, popping, lifting, inserting, and pulling actions generated by disassembling and assembling server components:
[0098] The pressing force is A. When pressing the inside of the chassis and components, the resistance value is 100 = A100, and the resistance value of the push-out after pressing is 0 = A0. For example, the action description is "the button is pressed inward and then bounces outward" = A100, A0.
[0099] Lifting is T. When the part needs to be lifted vertically and moved out of the picture, the displacement range of T = W ≥ 5cm, that is, TW ≥ 5cm. If the part only needs to be lifted partially and is still in the picture, the displacement range of T = W ≤ 5cm, that is, TW ≤ 5cm. For example, the action description is "lift vertically and move out of the picture" = efg, TW ≥ 5cm.
[0100] Placement = F. When the component needs to be placed in the corresponding position in the picture, the displacement range generated by F = W≤5cm, that is, FW≤5cm, and the resistance value changes from A0 to A100 = A0- A100.
[0101] Pull out is L. When the part needs to be pulled out horizontally and moved out of the screen, the displacement range generated by L = W ≥ 3cm, that is, LW ≥ 3cm. If the part only needs to be pulled out partially and is still in the screen, the displacement range generated by L = W ≤ 3cm, that is, LW ≤ 3cm. For example, the action description is "pull out horizontally 3cm" = -efg, LW ≤ 3cm. Note that when filling in, the data is separated by commas, and the rules are separated by semicolons. The filling order should be consistent with the order of disassembly and assembly steps in the product process file. The data should be filled in the coordinate axis first, and the action setting is completed with a period.
[0102] Finally, set rules based on the names of all components used to disassemble and assemble server components:
[0103] The Phillips screwdriver is a1, the slotted screwdriver is a2, the socket screwdriver is a3, the Torx screwdriver is a4, the Phillips screw is a11, the slotted screw is a22, the socket screw is a33, the Torx screw is a44, the 3.5-inch hard drive module is 1, the 2.5-inch module is 2, the hard drive tray switch is 3, the hard drive tray handle is 4, the hard drive is 5, the hard drive tray is 6, the hard drive tray and hard drive with screws are 7, the screw-free hard drive tray and hard drive with PUSH button are 8, the screw-free hard drive tray and hard drive with "RELEASE" buckle are 9, the 3.5-inch hard drive tray and 2.5-inch hard drive are 10, the hard drive slot is 11, the power supply is 12, the power supply handle is 13, the power supply buckle is 14, the OCP 3.0 network card is 15, the hot-swap button corresponding to the OCP 3.0 network card is 16, the hand-screw on the OCP 3.0 network card is 17, the OCP 3.0 The network card handle is 18, the chassis cover is 19, the chassis cover thumb screw is 20, the chassis cover lock safety screw is 21, the chassis cover lock handle is 22, and so on to maintain the naming rules in the three-dimensional script conversion module 1.
[0104] The image text recognition module 2 records the cross-sectional images of all parts and tools. The system automatically recognizes and calls the corresponding parts through the cross-sectional images. Each cross-sectional image has a unique name. The image and part names in the rule are kept consistent as a self-check condition to avoid part call errors caused by only using the image section. Figure 2 is the cross-section image of the screwdriver, Figure 3 It is a cross-sectional image of a screw. For example, the description is "Use a cross-shaped screwdriver with a torque of 2.1 =2.0±0.5 kgf.cm, and tighten the screw vertically in a clockwise direction." It is converted into a data format according to the rules of the three-dimensional script conversion module 1, that is, "efg, a1 PH2, b2, SW≤5cm". When a1 appears in the data, the image text recognition module 2 will find a1, i.e., the cross-sectional image of the cross-shaped screwdriver, and at the same time, it will find the cross-sectional image of the corresponding cross-shaped screw, and call the cross-shaped screwdriver and cross-shaped screw in the model. At the same time, the image text recognition module 2 stipulates that the cross-sectional vertex is opposite to the cross-sectional vertex, and the coordinate axis in the data is efg, i.e., the vertical coordinate. The image text recognition module 2 aligns the coordinate axis vertically with the called cross-shaped screwdriver and cross-shaped screw according to the cross section. Therefore, through the cross-sectional image recognition and the defined coordinate axis rules, the object position and force direction can be automatically identified.
[0105] The animation action module 3 finds the parent of the data text converted by the three-dimensional script conversion module 1 of the corresponding model according to the data text converted by the three-dimensional script conversion module 1, drags the required child text of the three-dimensional animation data of the component model to the three-dimensional model of the corresponding component model, and the system automatically reads the data in the child text, and applies it to the three-dimensional model in combination with the image text recognition module 2 to automatically generate the corresponding three-dimensional animation.
[0106] The automatic error correction module 4 includes three functions: error type definition, error detection mechanism, and automatic repair. The error type definition defines the error types that may occur in the three-dimensional animation with clear error identification and description so that they can be detected and identified in the software. These errors include geometric intersections and animation path problems. Geometric intersections are used to detect penetration or overlap between objects. Animation path problems analyze the movement of objects between key frames to detect unnatural animation transitions or jitters. After the error self-check function automatically generates a three-dimensional animation, the system will automatically play it for self-checking. Once it is identified that it does not meet the predetermined rules or conditions, it will stop automatically playing. The screen will prompt a description of the problem that does not meet the predetermined rules or conditions and an alarm sound will sound. Automatic repair function, after the error prompt appears, according to the problem description, the image text recognition module 2 system automatically flows to the three-dimensional script conversion module 1, re-reads the sub-level data file with errors for repair. For example, when it is detected that a component crosses, that is, the pressure value G generated between the components is ≥ 100, and the coordinates of the vertices of the section of component 1 and the coordinates of the vertices of the section of component 2 overlap, the system automatically adjusts the animation curve generated by the movement of the object to avoid penetration or overlap. If an error still occurs, the system will flow to the three-dimensional script conversion module 1 to re-read and apply the data rules. When an unnatural animation transition is detected, the system automatically identifies the displacement interval of consecutive frames on the original animation curve, and reduces unnecessary jitter by increasing the frame interval on the animation curve to make the picture smoother. User control and custom options can also be set in this module. Contains switch options to provide options to enable or disable the automatic error correction function. Error level setting, you can set the error sensitivity level to control the strictness of automatic error correction.
[0107] The output preset module 5 saves the automatically generated three-dimensional animation and outputs a video file that can be directly viewed. When entering the system, there will be file saving related settings, and the file saving preset, saving format, saving location, and image quality size are set according to the needs. After checking the save preset function, when the video file is output, the system will save the three-dimensional animation path of this file to the preset function as the animation path preset material. When encountering the same three-dimensional animation next time, there is no need to fill in the rules and directly select the preset function to find the corresponding animation path preset material, and directly call the animation path to generate the animation. The settings related to file saving preset, saving format, saving location, and image quality size are the same as other general settings, and can be set according to needs.
[0108] like Figure 4 Establish a specific workflow diagram for generating a three-dimensional animation system for server products. For example, if you need to make a "replacement of a 3.5-inch hard disk (with a screw bracket)", first select the description of the disassembly and assembly actions of this part of the components from the process file: "To disassemble the 3.5-inch hard disk module, press the hard disk bracket switch button, the hard disk bracket handle will automatically pop open, pull the hard disk module out horizontally by 3CM, and wait for at least 30 seconds before pulling out the hard disk module completely. To disassemble the hard disk, separate the hard disk bracket with screws and the hard disk, use a cross screwdriver to unscrew the 4 fixing screws on both sides of the hard disk bracket, take the hard disk out of the hard disk bracket and put it in an anti-static bag. To install the hard disk, separate the hard disk bracket with screws and the hard disk, take the spare hard disk out of the anti-static bag and place it correctly on the hard disk bracket, and use a cross screwdriver to tighten the 4 fixing screws on both sides of the hard disk. To install the hard disk module, fully open the hard disk bracket handle, push the hard disk module into the hard disk slot, and close the hard disk bracket handle until the hard disk module is locked." According to the rules defined in the three-dimensional script conversion module 1, the description of the component disassembly and assembly action is converted into data text for content filling:
[0109] 1. “Press the hard disk tray switch button” 3 = -efg, AW≤3cm, A100;
[0110] 2. “The hard disk tray handle pops open automatically” 4 = -efg, AW≤3cm;
[0111] 3. "Pull out the hard disk module horizontally 3CM" 1 = -efg, LW ≤ 3cm;
[0112] 4. “Wait for at least 30 seconds before removing all hard disk modules” 1 = -efg, 30s, LW ≥ 3cm;
[0113] 5. "Use a Phillips screwdriver to unscrew the four fixing screws on both sides of the hard disk bracket" 6 = -efg, a1 PH2, -b4, NW≥5cm, 4 a11;
[0114] 6. “Take the hard disk out of the hard disk tray and put it into an antistatic bag” 5 = efg, TW ≥ 5cm.
[0115] 7. “Take the spare hard disk out of the antistatic bag and place it correctly on the hard disk tray” 5 = efg, FW ≤ 5cm, A0- A100;
[0116] 8. "Use a Phillips screwdriver to tighten the 4 fixing screws on both sides of the hard disk" 6 = -efg, a1 PH2, +b4, SW≤5cm, 4 a11;
[0117] 9. “Fully open the hard disk tray handle” 4 = -efg, AW≤3cm, A100-A0;
[0118] 10. “Push the hard disk module into the hard disk slot” 5= -efg, FW≤5cm, A0- A100;
[0119] 11. “Close the handle of the hard disk tray until the hard disk module is locked” 4 = -efg, AW≤3cm, A0- A100.
[0120] After filling in the rules, the three-dimensional script conversion module 1 will be saved as the content in Table 1 below. The parent file can be saved with a customized name according to user needs to facilitate subsequent searches. At the same time, the system will generate child files based on the rules of each day in the parent file, and associate them with the parent file for automatic error correction module 4.
[0121] Table 1
[0122]
[0123] Open the 3D model that needs to be animated, here is the 3.5-inch hard disk module 3D model, drag the saved 3D script conversion module 1 file onto the model, and the system will automatically generate a disassembly and assembly animation for replacing a 3.5-inch hard disk (with a screw bracket) based on the data description. When the system reads data to generate animations, it will pass through the image and text recognition module 2 to call tools and define the positional relationship between components. When "Use a Phillips screwdriver to unscrew the 4 fixing screws on both sides of the hard disk bracket" 6 = -efg, a1 PH2, -b4, NW≥5cm, 4 a11; the data contains a Phillips screwdriver a1 PH2 and 4 Phillips screws 4 a11, the image text recognition module 2 recognizes the cross-sectional view of the Phillips screwdriver in the cross-sectional view library through the data a1 PH2 and calls out the Phillips screwdriver tool model; the fixing screws on the hard disk module are in the horizontal direction, and -efg in the data indicates that the coordinate axis is in the horizontal direction, and the called Phillips screwdriver is placed in the horizontal direction; at the same time, the system recognizes the cross-sectional view of the Phillips screwdriver and the cross-sectional view of the Phillips screw through the image text recognition module 2, and according to the horizontal placement, the cross-sectional vertices of the two components are matched with each other. The image text recognition module 2 recognizes that there are cross sections of 4 Phillips screws in the picture, so the same number of Phillips screwdrivers will be called.
[0124] After automatically generating the disassembly and assembly animation of replacing a 3.5-inch hard disk (with a screw bracket), enter the automatic error correction module 4, use the error self-check function to automatically play the generated animation for animation self-check, if no error prompt appears, it means that the generated animation is normal and can enter the output preset module 5 for video output. If an error prompt appears, according to the system prompt, the automatic error correction module 4 analyzes whether it is a geometric intersection problem or an animation path problem according to the defined error type. If a geometric intersection problem occurs, for example, there is an overlapping part between the cross screwdriver and the cross screw, the system will detect that the pressure value G≥100 is generated between the cross screwdriver and the cross screw, and the image and text recognition module 2 recognizes that the vertex coordinates of the cross screwdriver cross section and the cross screw cross section vertex coordinate axis do not correspond point to point. As described above, it is determined that there is a problem of cross-overlapping of parts between the cross screwdriver and the cross screw. The system automatically adjusts the vertex coordinates of the cross screwdriver cross section to correspond point to point with the cross screw cross section vertex coordinate axis, and then tests whether the pressure value G is 0. When the pressure value is 0, it means that the repair is correct. If an error still occurs after more than two tests, the system will flow to the three-dimensional script conversion module 1 to re-read and apply the data rules. If there is an animation path problem, for example, "Use a cross screwdriver to unscrew the 4 fixing screws on both sides of the hard disk bracket" 6 = -efg, a1 PH2, -b4, NW≥5cm, 4 a11; according to the data description "-b4, NW≥5cm", when the torque value is -b4, the action performed is disassembly, NW≥5cm counterclockwise and the displacement generated is ≥5cm, that is, the cross screwdriver should be rotated counterclockwise and moved out of the screen. If the automatically generated animation changes to clockwise execution "torque value changes to b4", the action becomes installation, and the displacement generated will be ≤5cm. At the same time, the cross screwdriver and the cross screw will produce a mutual pressure value G≥100. The system will report an error. The system will transfer the data flow with the error to the three-dimensional script conversion module 1, find the corresponding sub-level data, and re-read and apply the data rules. At the same time, when an unnatural animation transition is detected, the system automatically identifies the displacement interval of the continuous frames on the original animation curve, and reduces unnecessary jitter by increasing the frame interval on the animation curve to make the picture smoother. After the automatic repair is completed, a playback test is performed. If an error still occurs after more than two tests, the system will flow to the three-dimensional script conversion module 1 to re-read and apply the data rules.
[0125] After the repair is completed, enter the output preset module 5, and make relevant settings for file saving preset, saving format, saving location, image quality and size according to needs. After checking the save preset function, the system will save the animation path of this file "Replace 3.5-inch hard disk (with screw bracket)" to the preset function as the animation path preset material. When you encounter the same 3D animation next time, you do not need to fill in the rules and directly select the preset function to find the corresponding animation path preset material and directly call the animation path to generate the animation.
[0126] Through the present invention, three-dimensional models and animations can be quickly generated according to product process files, without the need to manually produce three-dimensional animations. By reading and optimizing the data of the relevant configured process files, video operation and maintenance engineers can automatically realize the production of three-dimensional models and animations of relevant configured server products, improve the visualization of product design and the efficiency of video data development, reduce production costs, and improve the quality of video data development and customer satisfaction. It can automatically generate three-dimensional animations according to the server product process files, and video operation and maintenance engineers do not need to manually operate animation production, which improves the work efficiency of video operation and maintenance engineers. The assembly method between the various components of the generated three-dimensional animation is consistent with the description in the server product process file, which ensures the uniqueness of the server product three-dimensional animation, realizes the automatic generation of server product three-dimensional animation, and improves the accuracy of server product three-dimensional animation. At the same time, the three-dimensional animation can intuitively display the assembly process of the product, help customers better understand the structure and assembly relationship of the product, thereby promoting the sales and promotion of the product.
[0127] In other words, the three-dimensional script conversion module 1 is used to screen the parts assembly sequence, assembly path and assembly action description text in the server product process file; according to the parts assembly sequence, each assembly action description text is filled in according to a predetermined format to form an assembly rule file, and each assembly rule file is converted into a data text.
[0128] The image text recognition module 2 and the animation action module 3 are used to import the data text corresponding to the target component to be displayed into the three-dimensional model. The three-dimensional model reads the data in the data text to identify the corresponding target part, calls the target tool required to assemble the target part according to the data in the data text, and generates an assembly three-dimensional animation according to the assembly path.
[0129] The automatic error correction module 4 is used to play the assembly 3D animation, detect whether there is an error picture in the assembly 3D animation, and if there is an error picture, repair the assembly 3D animation according to the type of the error picture.
[0130] In this embodiment, the steps of filling in the content of each assembly action description text according to a predetermined format to form an assembly rule file according to the parts assembly sequence, and converting each assembly rule file into a data text include:
[0131] Obtain components and tools for disassembling and assembling the server product according to the parts assembly sequence, assembly path, and assembly action description text in the server product process file;
[0132] Setting a predetermined format of the component and the tool;
[0133] Filling the description text with assembly content according to the predetermined format to form an assembly rule file;
[0134] Convert the filled assembly content into parent and child files according to the described rules.
[0135] In this embodiment, the step of setting the predetermined format of the component and the tool includes:
[0136] Setting rules for coordinate axes of the component and the tool;
[0137] Setting the model, size and torque range of the tool;
[0138] Numerical setting of the rotation and displacement actions of the component and the tool;
[0139] Setting values for pressing, popping up, lifting, inserting and pulling out actions of the components and the tools;
[0140] Rules are set for the names of the components and the tools.
[0141] In this embodiment, the step of setting rules for the coordinate axes of the component and the tool includes:
[0142] The coordinate axes of the component and the tool are set to have an X-axis, a Y-axis, and a Z-axis, wherein the X-axis represents a displacement in a horizontal direction, the Y-axis represents a displacement in a vertical direction, and the Z-axis represents a displacement in a direction perpendicular to the X-axis and the Y-axis;
[0143] The values of the coordinate axes of the component and the tool are set according to the vertical placement or horizontal placement of the component and the tool.
[0144] In this embodiment, the step of setting the model, size and torque range of the tool includes:
[0145] Setting a tool number for the model of the tool, wherein the tool number includes a category number and a quantity number;
[0146] According to the model of the tool, an abutment portion adapted to the component is obtained, and a size value of the tool and a size value of the abutment portion are set;
[0147] The torque range value of the tool is set, and the action to be performed can be determined as installation or disassembly according to the positive and negative values of the torque.
[0148] In this embodiment, the step of setting the numerical values of the rotation and displacement actions of the component and the tool includes:
[0149] The rotation directions of the component and the tool are divided into clockwise and counterclockwise, and the displacement values are associated with the rotation angle values;
[0150] The assembly action is determined according to the rotation direction, rotation angle value and displacement value of the component and the tool, and the tool is removed after the assembly action is completed.
[0151] In this embodiment, the step of converting the filled-in assembly content into a parent file and a child file according to the rule includes:
[0152] Save the component as a parent file, and define the name of the parent file as the component name;
[0153] The action of each part included in the component is saved as a child file, and the child file is associated with the parent file according to the assembly order of the parts.
[0154] In this embodiment, the steps of importing the data text corresponding to the target component to be displayed into the three-dimensional model, the three-dimensional model reading the data in the data text to identify the corresponding target part, and calling the target tool required for assembling the target part according to the data in the data text include:
[0155] Get the parent file corresponding to the target component to be displayed;
[0156] Importing the parent file into the three-dimensional model, searching for the child file in the parent file, and reading the child file to identify the corresponding target part;
[0157] Acquire a target tool matching the target part according to the cross-sectional image of the target part;
[0158] The target part and the target tool are aligned with each other in coordinate axes, and the setting position and force direction of the target tool on the target part are set.
[0159] In this embodiment, the step of importing the data text corresponding to the target component to be displayed into the three-dimensional model, the three-dimensional model reading the data in the data text to identify the corresponding target part, and calling the target tool required for assembling the target part according to the data in the data text also includes:
[0160] Acquire the name of the target part according to the cross-sectional image of the target part, and compare the name of the target part with the component name corresponding to the parent file for self-checking;
[0161] When the name of the target part is consistent with the component name corresponding to the parent file, the target tool required for assembling the target part is called to control the assembly action of the target part.
[0162] In this embodiment, the step of playing the assembly 3D animation, detecting whether there is an error screen in the assembly 3D animation, and if there is an error screen, repairing the assembly 3D animation according to the type of the error screen includes:
[0163] Define the types of errors that may occur in assembly 3D animation, including geometry intersection or animation path problems;
[0164] In response to penetration or overlap between detected objects appearing in the assembly three-dimensional animation, determining that the error type is geometric intersection;
[0165] In response to unnatural animation transition or jitter in the object movement between key frames in the assembly three-dimensional animation, determining that the error type is an animation path problem;
[0166] When it is detected that there is an error picture in the assembly three-dimensional animation or it does not conform to a predetermined format, the playing of the assembly three-dimensional animation is stopped and an alarm signal is issued;
[0167] The error picture in the assembly three-dimensional animation is repaired according to the error type corresponding to the error picture determined.
[0168] In this embodiment, the step of repairing the error screen in the assembly 3D animation according to the error type corresponding to the error screen determined comprises:
[0169] When it is detected that a component crossover occurs, the animation curve generated by the movement between the components is adjusted to avoid penetration or overlap. If a component crossover still occurs, the data of the sub-level file corresponding to the component that causes penetration or overlap is re-read;
[0170] When an animation path problem is detected, the displacement interval of consecutive frames on the original animation curve is identified, and the error sensitivity level is determined according to the degree of unnatural animation transition or jitter. The degree of frame adjustment is obtained according to the error sensitivity level, and the frame interval is increased on the animation curve according to the frame adjustment degree until the picture is smooth.
[0171] In this embodiment, the output preset module 5 is used to set file saving parameters for exporting the assembly 3D animation, and export and save the assembly 3D animation according to the file saving parameters.
[0172] In the above-mentioned server product three-dimensional animation system, the server product process file is filled with the content of each assembly action description text in a predetermined format according to the parts assembly sequence to form an assembly rule file, and each assembly rule file is converted into a data text. The corresponding target parts can be obtained by importing data text, which improves processing efficiency, and the target tools required for assembling the target parts can be called to automatically generate assembly three-dimensional animation, realize visualization of the assembly process, automatically detect and repair error screens, improve the quality of assembly three-dimensional animation, and improve design efficiency based on assembly three-dimensional animation.
[0173] Example 2
[0174] In Example 2, combined Figure 4 ,like Figure 5 As shown, a method for generating a three-dimensional animation of a server product is provided, comprising the following steps:
[0175] Step S1, screening the parts assembly sequence, assembly path and assembly action description text in the server product process file;
[0176] Step S2, filling in the content of each assembly action description text according to a predetermined format according to the parts assembly sequence to form an assembly rule file, and converting each assembly rule file into a data text;
[0177] Step S3, importing the data text corresponding to the target component to be displayed into the three-dimensional model, the three-dimensional model reads the data in the data text to identify the corresponding target part, calls the target tool required to assemble the target part according to the data in the data text, and generates an assembly three-dimensional animation according to the assembly path.
[0178] In this embodiment, the server product process file is filled with the content of each assembly action description text in a predetermined format according to the parts assembly sequence to form an assembly rule file, and each assembly rule file is converted into a data text. The corresponding target parts can be obtained by importing the data text, which improves the processing efficiency, and the target tools required for assembling the target parts can be called to automatically generate an assembly three-dimensional animation, realize the visualization of the assembly process, automatically detect and repair error screens, and can improve the quality of the assembly three-dimensional animation. Based on the assembly three-dimensional animation, the design efficiency can be improved.
[0179] like Figure 6 As shown, in this embodiment, the steps of filling in the content of each assembly action description text according to a predetermined format according to the parts assembly sequence to form an assembly rule file, and converting each assembly rule file into a data text include:
[0180] Step S21, obtaining components and tools for disassembling and assembling the server product according to the parts assembly sequence, assembly path, and assembly action description text in the server product process file;
[0181] Step S22, setting a predetermined format of the component and the tool;
[0182] Step S23, filling in the description text with assembly content according to the predetermined format to form an assembly rule file;
[0183] Step S24: converting the filled-in assembly content into a parent file and a child file according to the rule.
[0184] By first setting a predetermined format, and then using the predetermined format to fill in the assembly content to form an assembly rule file, the filled-in assembly content is converted into an automatically readable data text. The converted data text contains a parent file and a child file, which can facilitate assembly search of each component.
[0185] like Figure 7 As shown, in this embodiment, the step of setting the predetermined format of the component and the tool includes:
[0186] Step S221, setting rules for the coordinate axes of the component and the tool;
[0187] Step S222, setting the model, size and torque range of the tool;
[0188] Step S223, setting numerical values for the rotation and displacement actions of the component and the tool;
[0189] Step S224, setting numerical values for the pressing, popping, lifting, inserting, and pulling actions of the component and the tool;
[0190] Step S225, setting rules for the names of the components and the tools.
[0191] It is understandable that the steps of setting the predetermined formats of the components and the tools correspond to the specific rules of the three-dimensional script conversion module 1 of Example 1. The details can be found above and will not be elaborated here.
[0192] In this embodiment, the step of setting rules for the coordinate axes of the component and the tool includes:
[0193] The coordinate axes of the component and the tool are set to have an X-axis, a Y-axis, and a Z-axis, wherein the X-axis represents a displacement in a horizontal direction, the Y-axis represents a displacement in a vertical direction, and the Z-axis represents a displacement in a direction perpendicular to the X-axis and the Y-axis;
[0194] The values of the coordinate axes of the component and the tool are set according to the vertical placement or horizontal placement of the component and the tool.
[0195] In this embodiment, the step of setting the model, size and torque range of the tool includes:
[0196] Setting a tool number for the model of the tool, wherein the tool number includes a category number and a quantity number;
[0197] According to the model of the tool, an abutment portion adapted to the component is obtained, and a size value of the tool and a size value of the abutment portion are set;
[0198] The torque range value of the tool is set, and the action to be performed can be determined as installation or disassembly according to the positive and negative values of the torque.
[0199] In this embodiment, the step of setting the numerical values of the rotation and displacement actions of the component and the tool includes:
[0200] The rotation directions of the component and the tool are divided into clockwise and counterclockwise, and the displacement values are associated with the rotation angle values;
[0201] The assembly action is determined according to the rotation direction, rotation angle value and displacement value of the component and the tool, and the tool is removed after the assembly action is completed.
[0202] In this embodiment, the step of converting the filled-in assembly content into a parent file and a child file according to the rule includes:
[0203] Save the component as a parent file, and define the name of the parent file as the component name;
[0204] The action of each part included in the component is saved as a child file, and the child file is associated with the parent file according to the assembly order of the parts.
[0205] This application uses a parent-child file method to save the disassembly actions of each component in a tree structure, which is convenient for finding files.
[0206] like Figure 8 As shown, in this embodiment, the data text corresponding to the target component to be displayed is imported into the three-dimensional model, the three-dimensional model reads the data in the data text to identify the corresponding target part, and the target tool required for assembling the target part is called according to the data in the data text. The steps include:
[0207] Step S31, obtaining the parent file corresponding to the target component to be displayed;
[0208] Step S32, importing the parent file into the three-dimensional model, searching for the child file in the parent file, and reading the child file to identify the corresponding target part;
[0209] Step S33, acquiring a target tool matching the target part according to the cross-sectional image of the target part;
[0210] Step S36, setting the setting position and force direction of the target tool on the target part.
[0211] like Figure 8 As shown, in this embodiment, the step of importing the data text corresponding to the target component to be displayed into the three-dimensional model, the three-dimensional model reading the data in the data text to identify the corresponding target part, and calling the target tool required for assembling the target part according to the data in the data text also includes:
[0212] Step S34, obtaining the name of the target part according to the cross-sectional image of the target part, and comparing the name of the target part with the component name corresponding to the parent file for self-checking;
[0213] Step S35, when the name of the target part is consistent with the component name corresponding to the parent file, the target tool required for assembling the target part is called to control the assembly action of the target part.
[0214] The above steps S31-S35 realize the acquisition of the target tool by using the cross-sectional image in combination with the parent-child file method, and perform self-checking through name comparison to avoid tool calling errors.
[0215] In this embodiment, the step of controlling the actions of the target part and the target tool and generating the assembly 3D animation according to the assembly path includes:
[0216] Acquire the assembly or disassembly sequence of the components of the target component to be displayed according to the assembly path;
[0217] Configure the target tool sequence used in each step according to the assembly or disassembly sequence;
[0218] Combining the components of the target component with the target tool and setting corresponding assembly actions;
[0219] The target component parts are assembled using the target tool through corresponding assembly actions to generate an assembly three-dimensional animation.
[0220] The present application can realize automatic generation of assembly three-dimensional animation by reasonably setting the components, target tools and corresponding assembly actions of the target component by utilizing the assembly path, thereby improving the efficiency of automatic animation generation.
[0221] like Figure 5 As shown, in this embodiment, the method for generating a three-dimensional animation of a server product further includes:
[0222] Step S4, playing the assembly 3D animation, detecting whether there is an error screen in the assembly 3D animation, and if there is an error screen, repairing the assembly 3D animation according to the type of the error screen.
[0223] In this embodiment, the step of playing the assembly 3D animation, detecting whether there is an error screen in the assembly 3D animation, and if there is an error screen, repairing the assembly 3D animation according to the type of the error screen includes:
[0224] Define the types of errors that may occur in assembly 3D animation, including geometry intersection or animation path problems;
[0225] In response to penetration or overlap between detected objects appearing in the assembly three-dimensional animation, determining that the error type is geometric intersection;
[0226] In response to unnatural animation transition or jitter in the object movement between key frames in the assembly three-dimensional animation, determining that the error type is an animation path problem;
[0227] When it is detected that there is an error picture in the assembly three-dimensional animation or it does not conform to a predetermined format, the playing of the assembly three-dimensional animation is stopped and an alarm signal is issued;
[0228] The error picture in the assembly three-dimensional animation is repaired according to the error type corresponding to the error picture determined.
[0229] In this embodiment, the step of repairing the error screen in the assembly 3D animation according to the error type corresponding to the error screen determined comprises:
[0230] When it is detected that a component crossover occurs, the animation curve generated by the movement between the components is adjusted to avoid penetration or overlap. If a component crossover still occurs, the data of the sub-level file corresponding to the component that causes penetration or overlap is re-read;
[0231] When an animation path problem is detected, the displacement interval of consecutive frames on the original animation curve is identified, and the error sensitivity level is determined according to the degree of unnatural animation transition or jitter. The degree of frame adjustment is obtained according to the error sensitivity level, and the frame interval is increased on the animation curve according to the frame adjustment degree until the picture is smooth.
[0232] like Figure 5 As shown, in this embodiment, the method for generating a three-dimensional animation of a server product further includes:
[0233] Step S5, setting file saving parameters for exporting the assembly three-dimensional animation, and exporting and saving the assembly three-dimensional animation according to the file saving parameters.
[0234] Specifically, make relevant settings for file saving preset, saving format, saving location, and image quality size according to needs. After checking the Save Preset function, the assembly 3D animation will be saved in the Preset function according to the animation path as the animation path preset material. When you encounter the same 3D animation next time, you do not need to fill in the rules and directly select the Preset function to find the corresponding animation path preset material and directly call the animation path to generate the animation.
[0235] In the above-mentioned method for generating a three-dimensional animation of a server product, an assembly rule file is formed by filling in the content of each assembly action description text in a predetermined format according to the parts assembly sequence in the server product process file, and each assembly rule file is converted into a data text. The corresponding target parts can be obtained by importing the data text, which improves the processing efficiency, and the target tools required for assembling the target parts can be called to automatically generate an assembly three-dimensional animation, realize the visualization of the assembly process, automatically detect and repair error screens, improve the quality of the assembly three-dimensional animation, and improve the design efficiency based on the assembly three-dimensional animation.
[0236] It should be understood that although Figure 5-Figure 8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 5-Figure 8 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0237] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data for generating three-dimensional animation of server products. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for generating three-dimensional animation of a server product is implemented.
[0238] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0239] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0240] Filter the parts assembly sequence, assembly path and assembly action description text in the server product process file;
[0241] Filling the description texts of each assembly action in a predetermined format according to the parts assembly sequence to form an assembly rule file, and converting each assembly rule file into a data text;
[0242] The data text corresponding to the target component to be displayed is imported into the three-dimensional model. The three-dimensional model reads the data in the data text to identify the corresponding target part, calls the target tool required to assemble the target part according to the data in the data text, and generates an assembly three-dimensional animation according to the assembly path.
[0243] For specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the above limitations on the method for generating three-dimensional animation of server products, which will not be repeated here.
[0244] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0245] Filter the parts assembly sequence, assembly path and assembly action description text in the server product process file;
[0246] Filling the description texts of each assembly action in a predetermined format according to the parts assembly sequence to form an assembly rule file, and converting each assembly rule file into a data text;
[0247] The data text corresponding to the target component to be displayed is imported into the three-dimensional model. The three-dimensional model reads the data in the data text to identify the corresponding target part, calls the target tool required to assemble the target part according to the data in the data text, and generates an assembly three-dimensional animation according to the assembly path.
[0248] For specific limitations on the steps implemented when the processor executes the computer program, please refer to the above limitations on the method for generating three-dimensional animation of server products, which will not be repeated here.
[0249] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0250] Filter the parts assembly sequence, assembly path and assembly action description text in the server product process file;
[0251] Filling the description texts of each assembly action in a predetermined format according to the parts assembly sequence to form an assembly rule file, and converting each assembly rule file into a data text;
[0252] The data text corresponding to the target component to be displayed is imported into the three-dimensional model. The three-dimensional model reads the data in the data text to identify the corresponding target part, calls the target tool required to assemble the target part according to the data in the data text, and generates an assembly three-dimensional animation according to the assembly path.
[0253] For specific limitations on the steps implemented when the computer program is executed by the processor, please refer to the above limitations on the method for generating three-dimensional animation of server products, which will not be repeated here.
[0254] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0255] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0256] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for generating a three-dimensional animation of a server product, characterized in that: The method comprises: Filter the parts assembly sequence, assembly path and assembly action description text in the server product process file; Filling the description texts of each assembly action in a predetermined format according to the parts assembly sequence to form an assembly rule file, and converting each assembly rule file into a data text; Importing data text corresponding to the target component to be displayed into the three-dimensional model, the three-dimensional model reads data in the data text to identify the corresponding target part, calls the target tool required for assembling the target part according to the data in the data text, controls the actions of the target part and the target tool, and generates an assembly three-dimensional animation according to the assembly path; Play the assembly 3D animation, detect whether there is an error screen in the assembly 3D animation, and if there is an error screen, repair the assembly 3D animation according to the type of the error screen; set user control and customization options, the user control and customization options include switch options and error level settings, the switch option is used to enable or disable the automatic error correction function, and the error level setting is used to set the error sensitivity level; The step of playing the assembly 3D animation, detecting whether there is an error screen in the assembly 3D animation, and repairing the assembly 3D animation according to the type of the error screen if there is an error screen comprises: Defining error types in assembly 3D animation, including geometry intersection or animation path problems; In response to penetration or overlap between detected objects appearing in the assembly three-dimensional animation, determining that the error type is geometric body intersection; In response to unnatural animation transition or jitter in the object movement between key frames in the assembly three-dimensional animation, determining that the error type is an animation path problem; When it is detected that there is an error picture in the assembly three-dimensional animation or it does not conform to a predetermined format, the playing of the assembly three-dimensional animation is stopped and an alarm signal is issued; Repairing the error picture in the assembly three-dimensional animation according to the error type corresponding to the error picture determined; Wherein, the step of repairing the error screen according to the error type corresponding to the error screen in the assembly three-dimensional animation comprises: When it is detected that a component crossover occurs, the animation curve generated by the movement between the components is adjusted to avoid penetration or overlap. If a component crossover still occurs, the data of the sub-level file corresponding to the component that causes penetration or overlap is re-read; When an animation path problem is detected, the displacement interval of consecutive frames on the original animation curve is identified, and the error sensitivity level is determined according to the degree of unnatural animation transition or jitter. The degree of frame adjustment is obtained according to the error sensitivity level, and the frame interval is increased on the animation curve according to the frame adjustment degree until the picture is smooth.
2. The method for generating a three-dimensional animation of a server product according to claim 1, characterized in that: The step of filling in the content of each assembly action description text according to a predetermined format to form an assembly rule file according to the parts assembly sequence, and converting each assembly rule file into a data text comprises: Obtain components and tools for disassembling and assembling the server product according to the parts assembly sequence, assembly path, and assembly action description text in the server product process file; Setting a predetermined format of the component and the tool; Filling the description text with assembly content according to the predetermined format to form an assembly rule file; Convert the filled assembly content into parent and child files according to the described rules.
3. The method for generating a three-dimensional animation of a server product according to claim 2, characterized in that: The step of setting the predetermined format of the component and the tool comprises: Setting rules for coordinate axes of the component and the tool; Setting the model, size and torque range of the tool; Numerical setting of the rotation and displacement actions of the component and the tool; Setting values for pressing, popping up, lifting, inserting and pulling out actions of the component and the tool; Rules are set for the names of the components and the tools.
4. The method for generating a three-dimensional animation of a server product according to claim 3, characterized in that: The step of setting rules for the coordinate axes of the component and the tool comprises: The coordinate axes of the component and the tool are set to have an X-axis, a Y-axis, and a Z-axis, wherein the X-axis represents a displacement in a horizontal direction, the Y-axis represents a displacement in a vertical direction, and the Z-axis represents a displacement in a direction perpendicular to the X-axis and the Y-axis; The values of the coordinate axes of the component and the tool are set according to the vertical placement or horizontal placement of the component and the tool.
5. The method for generating a three-dimensional animation of a server product according to claim 3, characterized in that: The step of setting the numerical value of the model, size and torque range of the tool includes: Setting a tool number for the model of the tool, wherein the tool number includes a category number and a quantity number; According to the model of the tool, an abutment portion adapted to the component is obtained, and a size value of the tool and a size value of the abutment portion are set; The torque range value of the tool is set, and the action to be performed can be determined as installation or disassembly according to the positive and negative values of the torque.
6. The method for generating a three-dimensional animation of a server product according to claim 3, characterized in that: The step of setting the numerical value of the rotation and displacement of the component and the tool comprises: The rotation directions of the component and the tool are divided into clockwise and counterclockwise, and the displacement values are associated with the rotation angle values; The assembly action is determined according to the rotation direction, rotation angle value and displacement value of the component and the tool, and the tool is removed after the assembly action is completed.
7. The method for generating a three-dimensional animation of a server product according to claim 2, characterized in that: The step of converting the filled assembly content into a parent file and a child file according to the rule comprises: Save the component as a parent file, and define the name of the parent file as the component name; The action of each part included in the component is saved as a child file, and the child file is associated with the parent file according to the assembly order of the parts.
8. The method for generating a three-dimensional animation of a server product according to claim 7, characterized in that: The steps of importing the data text corresponding to the target component to be displayed into the three-dimensional model, the three-dimensional model reading the data in the data text to identify the corresponding target part, and calling the target tool required for assembling the target part according to the data in the data text include: Get the parent file corresponding to the target component to be displayed; Importing the parent file into the three-dimensional model, searching for the child file in the parent file, and reading the child file to identify the corresponding target part; Acquire a target tool matching the target part according to the cross-sectional image of the target part; The target part and the target tool are aligned with each other in coordinate axes, and the setting position and force direction of the target tool on the target part are set.
9. The method for generating a three-dimensional animation of a server product according to claim 8, characterized in that: The step of importing the data text corresponding to the target component to be displayed into the three-dimensional model, the three-dimensional model reading the data in the data text to identify the corresponding target part, and calling the target tool required for assembling the target part according to the data in the data text also includes: Acquire the name of the target part according to the cross-sectional image of the target part, and compare the name of the target part with the component name corresponding to the parent file for self-checking; When the name of the target part is consistent with the component name corresponding to the parent file, the target tool required for assembling the target part is called to control the assembly action of the target part.
10. The method for generating a three-dimensional animation of a server product according to claim 1, characterized in that: The method further comprises: The file saving parameters for exporting the assembly three-dimensional animation are set, and the assembly three-dimensional animation is exported and saved according to the file saving parameters.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
12. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Three-dimensional assembly process teaching method and system based on ergonomic simulation analysis
CN111159872A
Product model explosion disassembly and assembly sequence development method and editor
CN114429522A
