Demonstration method, device, computer equipment and computer readable storage medium
By storing three-dimensional models and disassembly animations of industrial equipment in computer equipment and realizing the processing of animation playback requests, the problem that students in the prior art cannot understand the previous disassembly steps and low learning efficiency is solved, and efficient industrial equipment disassembly training is achieved, which is suitable for online training of different body types of equipment.
Patent Information
- Application Number
- CN202210400003.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-15
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2042-04-15
AI Technical Summary
The existing industrial equipment dismantling training methods mainly rely on live videos, which leads to students not being able to understand the previous dismantling steps when watching the video, which is inefficient in learning, and cannot be suitable for online training of large industrial equipment.
By storing the animation corresponding to each disassembly step of the three-dimensional model of the device to be demonstrated in the computer device and implementing the processing of the animation playback request, the animations before and after the target disassembly step are controlled to play in positive order and reverse order, ensuring that the user can clearly understand the execution order of each disassembly step.
It improves students' learning efficiency and allows users to clearly know the execution order of each disassembly step. It is suitable for online training of industrial equipment of different sizes, improving the flexibility of training.
Smart Images

Figure CN114663557B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of teaching demonstration, and in particular to a demonstration method, device, computer equipment and computer-readable storage medium. Background Art
[0002] Industrial equipment disassembly training is often achieved by having trainees watch pre-recorded real-person operation videos. However, this method can only be applied to the disassembly training of small industrial equipment, and when watching the video, trainees can only control the video to start playing from a certain point in time, and cannot know what disassembly steps have been performed before this point in time. Therefore, they need to watch the video repeatedly, which has low learning efficiency. Summary of the invention
[0003] In view of this, the present invention provides a demonstration method, apparatus, computer device and computer-readable storage medium, which are used to improve the current situation in which the existing industrial equipment disassembly training has too many restrictions, resulting in low learning efficiency for trainees.
[0004] In a first aspect, an embodiment of the present invention provides a demonstration method, which is applied to a computer device, wherein the computer device stores an animation corresponding to each disassembly step of a three-dimensional model of a device to be demonstrated, and the method comprises:
[0005] In response to the animation playback request, determine a target disassembly step corresponding to the animation playback request;
[0006] The animation corresponding to each disassembly step before the target disassembly step is controlled to be played in positive order, and the animation corresponding to each disassembly step after the target disassembly step is controlled to be played in reverse order.
[0007] Optionally, in an implementation manner provided by an embodiment of the present invention, before responding to the animation playback request and determining the target disassembly step corresponding to the animation playback request, the method further includes:
[0008] Obtain a three-dimensional model of the device to be demonstrated;
[0009] According to the disassembly steps of the device to be demonstrated, an animation corresponding to each disassembly step of the three-dimensional model is produced.
[0010] Optionally, in an implementation manner provided by an embodiment of the present invention, the computer device stores a disassembly animation of the three-dimensional model of the device to be demonstrated, the disassembly animation includes an animation corresponding to each disassembly step, the computer device also stores a start play time and an end play time of each of the animations, and the animation play request includes the disassembly animation play time;
[0011] The step of responding to the animation playback request and determining a target disassembly step corresponding to the animation playback request includes:
[0012] Get the animation playback request;
[0013] According to the disassembly animation playing time in the animation playing request and the start playing time and the end playing time of each of the animations, the target disassembly step corresponding to the animation playing request is determined.
[0014] Optionally, in an implementation manner provided by an embodiment of the present invention, controlling the animation corresponding to each disassembly step before the target disassembly step to be played in positive order, and controlling the animation corresponding to each disassembly step after the target disassembly step to be played in reverse order, includes:
[0015] If the animation playback request is the first response, or the target disassembly step is inconsistent with the target disassembly step corresponding to the animation playback request responded to last time, then the animation corresponding to each disassembly step before the target disassembly step is controlled to be played in forward order, and the animation corresponding to each disassembly step after the target disassembly step is controlled to be played in reverse order.
[0016] Furthermore, in an implementation manner provided by an embodiment of the present invention, the computer device stores a disassembly animation of the three-dimensional model of the device to be demonstrated, the disassembly animation includes an animation corresponding to each disassembly step, and the animation playback request includes a disassembly animation playback time;
[0017] After responding to the animation play request and determining the target disassembly step corresponding to the animation play request, the method further includes:
[0018] If the target disassembly step is consistent with the target disassembly step corresponding to the animation play request responded to last time, the animation corresponding to the target disassembly step is controlled to be played according to the disassembly animation play time of the last animation play request and the disassembly animation play time of the animation play request.
[0019] Optionally, in an implementation manner provided by an embodiment of the present invention, the animation is loaded and rendered based on a three.js graphics framework.
[0020] Optionally, in an implementation manner provided by an embodiment of the present invention, the method further includes:
[0021] Respond to the view adjustment request and control the animation playback view to make corresponding adjustments.
[0022] In a second aspect, an embodiment of the present invention provides a demonstration device, which is applied to a computer device, wherein the computer device stores an animation corresponding to each disassembly step of a three-dimensional model of a device to be demonstrated, and the device comprises:
[0023] A play response module, used to respond to an animation play request and determine a target disassembly step corresponding to the animation play request;
[0024] The playing module is used to control the animation corresponding to each disassembly step before the target disassembly step to be played in forward order, and to control the animation corresponding to each disassembly step after the target disassembly step to be played in reverse order.
[0025] In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program runs on the processor, it executes any one of the demonstration methods disclosed in the first aspect.
[0026] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program runs on a processor, it executes any of the demonstration methods disclosed in the first aspect.
[0027] In the demonstration method provided by an embodiment of the present invention, a computer device is based on the pre-stored animation corresponding to each disassembly step of the three-dimensional model of the device to be demonstrated, so that when a user-triggered animation playback request is received and the target disassembly step corresponding to the animation playback request is determined, the animation corresponding to each disassembly step before the target disassembly step is controlled to be played in forward order, and the animation corresponding to each disassembly step after the target disassembly step is controlled to be played in reverse order.
[0028] Based on this, the embodiment of the present invention enables the user to clearly know the disassembly steps that should be performed before and after the target disassembly steps, thereby improving the user's learning efficiency; and, the embodiment of the present invention stores all animations of the three-dimensional model of the equipment to be demonstrated in the computer device, so that the disassembly training of industrial equipment of different sizes can be completed online, thereby improving the flexibility of the disassembly training. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.
[0030] Figure 1 A schematic diagram showing a flow chart of a first demonstration method provided by an embodiment of the present invention is shown;
[0031] Figure 2 An animated Gantt chart provided by an embodiment of the present invention is shown;
[0032] Figure 3 A schematic diagram of a flow chart of a second demonstration method provided by an embodiment of the present invention is shown;
[0033] Figure 4A schematic diagram showing a flow chart of a third demonstration method provided by an embodiment of the present invention is shown;
[0034] Figure 5 A schematic structural diagram of a demonstration device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0035] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.
[0036] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0037] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.
[0038] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.
[0039] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.
[0040] Reference Figure 1 , showing a flow chart of a first demonstration method provided by an embodiment of the present invention, the demonstration method provided by an embodiment of the present invention is applied to a computer device, and the computer device stores an animation corresponding to each disassembly step of a three-dimensional model of a device to be demonstrated.
[0041] It is understandable that, compared with small industrial equipment, the disassembly of large industrial equipment is usually completed by multiple staff members. Therefore, if a real-life disassembly operation video of large industrial equipment is shot, it must be shot from the perspectives of multiple staff members, resulting in multiple videos. If the disassembly training requires users to watch videos from multiple perspectives, it will be difficult for users to clearly understand the relationship between the disassembly steps in different videos and to reasonably understand the disassembly process of shared equipment. In addition, large industrial equipment cannot be disassembled because it is in a working state for a long time, so it is impossible to produce a corresponding real-life disassembly video.
[0042] Based on the above reasons, the embodiment of the present invention first three-dimensionally models the industrial equipment used to demonstrate the disassembly process, that is, the equipment to be demonstrated. After obtaining the three-dimensional model, animations corresponding to each disassembly step of the three-dimensional model are produced based on the three-dimensional model, and all animations are stored in a computer device so that the computer device can play the animations at the appropriate time. As a result, the embodiment of the present invention enables the disassembly training of industrial equipment of different sizes to be completed online; and the disassembly training of equipment in working state or equipment in non-working state can be realized through corresponding animations, making the disassembly training more flexible.
[0043] Based on this, the demonstration method provided by the embodiment of the present invention includes:
[0044] S110, responding to the animation play request, determining a target disassembly step corresponding to the animation play request.
[0045] That is, after receiving the animation playback request, the computer device in the embodiment of the present invention will determine which disassembly step of the three-dimensional model the user wants to know based on the animation playback request, that is, the target disassembly step, and then the computer device will play the animation corresponding to the target disassembly step.
[0046] S120, controlling the animation corresponding to each disassembly step before the target disassembly step to be played in a forward order, and controlling the animation corresponding to each disassembly step after the target disassembly step to be played in a reverse order.
[0047] That is, the embodiment of the present invention plays the animations corresponding to the steps before and after the control target disassembly step before playing the animation corresponding to the target disassembly step.
[0048] To better illustrate the playback logic provided by the embodiment of the present invention, please refer to Figure 2 , shows an animated Gantt chart provided by an embodiment of the present invention, wherein the vertical axis is the step name and the horizontal axis is the time in seconds.
[0049] Furthermore, when the user wants to play the animation corresponding to step 4, steps 1 to 3 will be played one by one in positive order, that is, the animation from the 0th second to the 4.5th second will be played, and steps 5 to 8 will be played one by one in reverse order, that is, the animation from the 9th second to the 5.5th second will be played.
[0050] As a result, when the user watches the animation corresponding to any disassembly step, the animations corresponding to other disassembly steps will match the animation corresponding to the current disassembly step. For example, when the user watches the animation corresponding to step 4, the animations corresponding to the steps before step 4 must be played in forward order, and the animations corresponding to the steps after step 4 must be played in reverse order, so that the user clearly knows the disassembly steps that should be performed before and after step 4.
[0051] In addition, it is understandable that if there are no other steps before or after the target disassembly step, the control steps to be executed by the computer device can be set according to the actual situation. For example, in one feasible way, if there are no other steps before or after the target disassembly step, the computer device only controls the animation corresponding to each disassembly step before the target disassembly step to be played in positive order, or controls the animation corresponding to each disassembly step after the target disassembly step to be played in reverse order.
[0052] Optionally, in order to ensure the effect of disassembly training and the user's experience when watching the animation, in a feasible method provided by an embodiment of the present invention, specific reference may be made to Figure 3 , shows a schematic flow chart of a second demonstration method provided by an embodiment of the present invention, that is, S120 includes:
[0053] S121, if the animation playback request is the first response, or the target disassembly step is inconsistent with the target disassembly step corresponding to the animation playback request responded to last time, then control the animation corresponding to each disassembly step before the target disassembly step to be played in forward order, and control the animation corresponding to each disassembly step after the target disassembly step to be played in reverse order.
[0054] That is, after receiving the animation playback request, the computer device in the embodiment of the present invention will determine whether the user triggers the animation playback request for the first time. If not, it will also determine whether the target disassembly step corresponding to the currently received animation playback request is consistent with the target disassembly step corresponding to the last received animation playback request, such as whether the user wanted to watch the animation corresponding to step 1 last time, and the user wants to watch the animation corresponding to step 3 this time.
[0055] If the user triggers the animation playback request for the first time, that is, the animation playback request is responded to for the first time, or the target disassembly step corresponding to the current animation playback request is inconsistent with the target disassembly step corresponding to the animation playback request responded to last time, then in order to ensure that the user can clearly know the steps to be executed before and after the target disassembly step, the embodiment of the present invention controls the animation corresponding to each disassembly step before the target disassembly step to be played in forward order, and controls the animation corresponding to each disassembly step after the target disassembly step to be played in reverse order.
[0056] If it is not the first time that the animation playback request is triggered, and the target disassembly step corresponding to the current animation playback request is consistent with the target disassembly step corresponding to the last responded animation playback request, the computer device can play the animation corresponding to the target disassembly step normally.
[0057] In order to further ensure the user's experience when watching animation, in a feasible method provided in an embodiment of the present invention, specific reference can be made to Figure 4 , showing a flow chart of a third demonstration method provided by an embodiment of the present invention, in which the computer device stores a disassembly animation of the three-dimensional model of the device to be demonstrated, the disassembly animation includes an animation corresponding to each disassembly step, and the animation playback request includes a disassembly animation playback time;
[0058] Based on this, after S110, the method further includes:
[0059] S130, if the target disassembly step is consistent with the target disassembly step corresponding to the animation play request responded last time, then control the animation corresponding to the target disassembly step to play according to the disassembly animation play time of the last animation play request and the disassembly animation play time of the animation play request.
[0060] It is understandable that when the target disassembly step corresponding to the animation playback request triggered by the user last time is consistent with the target disassembly step corresponding to the animation playback request triggered currently, it means that the user wants to watch a certain segment in the animation corresponding to the same target disassembly step. Therefore, the computer device will play according to the play time in the animation playback request triggered by the user last time and the play time in the animation playback request triggered currently by the user, thereby ensuring that the user can watch the corresponding segment. Exemplarily, if the play time in the animation playback request responded last time is the 1st second, and the play time in the animation playback request responded this time is the 2nd second, then the computer device will play the animation from the 1st second to the 2nd second.
[0061] In the demonstration method provided by an embodiment of the present invention, a computer device is based on the pre-stored animation corresponding to each disassembly step of the three-dimensional model of the device to be demonstrated, so that when a user-triggered animation playback request is received and the target disassembly step corresponding to the animation playback request is determined, the animation corresponding to each disassembly step before the target disassembly step is controlled to be played in forward order, and the animation corresponding to each disassembly step after the target disassembly step is controlled to be played in reverse order.
[0062] Based on this, the embodiment of the present invention enables the user to clearly know the disassembly steps that should be performed before and after the target disassembly steps, thereby improving the user's learning efficiency; and, the embodiment of the present invention stores all animations of the three-dimensional model of the equipment to be demonstrated in the computer device, so that the disassembly training of industrial equipment of different sizes can be completed online, thereby improving the flexibility of the disassembly training.
[0063] Optionally, in an implementation manner provided by an embodiment of the present invention, before S110, the method further includes:
[0064] Obtain a three-dimensional model of the device to be demonstrated;
[0065] According to the disassembly steps of the device to be demonstrated, an animation corresponding to each disassembly step of the three-dimensional model is produced.
[0066] That is, the embodiment of the present invention first obtains the three-dimensional model of each device to be demonstrated, and then generates an animation corresponding to the disassembly of the three-dimensional model according to the disassembly steps of the device.
[0067] It is understandable that the method for obtaining the three-dimensional model of the device to be demonstrated can be set according to actual conditions. In a feasible method provided by an embodiment of the present invention, the three-dimensional model of the device to be demonstrated is obtained by three-dimensionally scanning the device to be demonstrated.
[0068] Furthermore, after the computer device obtains the three-dimensional model, the computer device will also determine the disassembly steps of the device according to the received operation instructions, and generate animations corresponding to the disassembly steps of the three-dimensional model. For example, when the computer device receives the operation instruction of "Step 1: Disassemble the upper panel of the device", the upper panel of the three-dimensional model will be disassembled accordingly, and the disassembly process will be made into a corresponding animation.
[0069] Optionally, to ensure that the computer device can accurately determine the target disassembly step, in an implementation manner provided by an embodiment of the present invention, the computer device stores a disassembly animation of the three-dimensional model of the device to be demonstrated, the disassembly animation includes an animation corresponding to each disassembly step, the computer device also stores a start play time and an end play time of each of the animations, and the animation play request includes the disassembly animation play time;
[0070] The S110 includes:
[0071] Get the animation playback request;
[0072] According to the disassembly animation playing time in the animation playing request and the start playing time and the end playing time of each of the animations, the target disassembly step corresponding to the animation playing request is determined.
[0073] That is, the computer device in the embodiment of the present invention stores each animation, and also stores the start playing time and the end playing time of each animation. Figure 2 Taking the animated Gantt chart shown as an example, the computer device stores that the starting playing time of step 1 is 0 seconds and the ending playing time is 2 seconds, and the starting playing time of step 3 is 2 seconds and the ending playing time is 4 seconds.
[0074] Furthermore, after storing the start play time and the end play time of each step, if the computer device receives an animation play request carrying the play time, the target disassembly step that the user wants to watch will be determined according to the play time. For example, when the play time in the animation play request is 5.25 seconds, and 5.25 seconds belongs to step 4, the computer device determines that the target disassembly step is step 4.
[0075] Therefore, the computer device in the embodiment of the present invention can accurately locate the target disassembly steps corresponding to the animation playback request based on the start playback time and the end playback time of each animation, and can ensure the reasonable playback of the animation.
[0076] Optionally, to further provide flexibility in disassembly training, in a feasible manner provided in an embodiment of the present invention, the animation is loaded and rendered based on a three.js graphics framework.
[0077] It is understandable that three.js is a graphics framework based on WebGL (Web Graphics Library) encapsulation, which is widely used in the design of 3D applications in browsers. The embodiment of the present invention is based on the three.js graphics framework, so that the browser can execute the demonstration method provided by the embodiment of the present invention. As a result, the hardware requirements for users to watch the disassembly animation are reduced, the cost of disassembly training is lowered, and the flexibility of disassembly training is also improved.
[0078] Optionally, in order to improve the training effect of disassembly training, in a feasible manner provided in an embodiment of the present invention, the method further includes:
[0079] Respond to the view adjustment request and control the animation playback view to make corresponding adjustments.
[0080] That is, the computer device in the embodiment of the present invention is also equipped with a preset viewing angle adjustment interface, and when the computer device receives a viewing angle adjustment request, it will adjust the viewing angle of the current animation accordingly, so that the user can observe the disassembly process of the industrial equipment based on different viewing angles.
[0081] Furthermore, in a feasible manner provided by an embodiment of the present invention, the viewing angle adjustment of the animation is implemented through the camera viewing angle of three.js.
[0082] Corresponding to the demonstration method provided in the embodiment of the present invention, the embodiment of the present invention also provides a demonstration device, referring to Figure 5 , shows a schematic diagram of the structure of a demonstration device provided by an embodiment of the present invention. The demonstration device 200 provided by an embodiment of the present invention is applied to a computer device, and the computer device stores an animation corresponding to each disassembly step of a three-dimensional model of a device to be demonstrated. The device includes:
[0083] A play response module 210 is used to respond to an animation play request and determine a target disassembly step corresponding to the animation play request;
[0084] The playing module 220 is used to control the animation corresponding to each disassembly step before the target disassembly step to be played in forward order, and control the animation corresponding to each disassembly step after the target disassembly step to be played in reverse order.
[0085] Optionally, in an implementation manner provided by an embodiment of the present invention, the device further includes:
[0086] A model acquisition module, used to acquire a three-dimensional model of the device to be demonstrated;
[0087] A production module is used to produce an animation corresponding to each disassembly step of the three-dimensional model according to the disassembly steps of the device.
[0088] Optionally, in an implementation manner provided by an embodiment of the present invention, the computer device stores a disassembly animation of the three-dimensional model of the device to be demonstrated, the disassembly animation includes an animation corresponding to each disassembly step, the computer device also stores a start play time and an end play time of each of the animations, and the animation play request includes the disassembly animation play time;
[0089] The playback response module includes:
[0090] The request acquisition submodule is used to obtain animation playback requests;
[0091] The determination submodule is used to determine the target disassembly step corresponding to the animation playback request according to the disassembly animation playback time in the animation playback request and the start playback time and the end playback time of each animation.
[0092] Optionally, in an implementation manner provided by an embodiment of the present invention, the playback module is also used to control the animation corresponding to each disassembly step before the target disassembly step to be played in forward order, and control the animation corresponding to each disassembly step after the target disassembly step to be played in reverse order if the animation playback request is a first response, or the target disassembly step is inconsistent with the target disassembly step corresponding to the animation playback request of the last response.
[0093] Furthermore, in an implementation manner provided by an embodiment of the present invention, the computer device stores a disassembly animation of the three-dimensional model of the device to be demonstrated, the disassembly animation includes an animation corresponding to each disassembly step, and the animation playback request includes a disassembly animation playback time;
[0094] The device also includes:
[0095] The animation playing module is used to control the animation corresponding to the target disassembly step to play according to the disassembly animation playing time of the last animation playing request and the disassembly animation playing time of the animation playing request if the target disassembly step is consistent with the target disassembly step corresponding to the animation playing request responded to last time.
[0096] Optionally, in an implementation manner provided by an embodiment of the present invention, the animation is loaded and rendered based on a three.js graphics framework.
[0097] Optionally, in an implementation manner provided by an embodiment of the present invention, the device further includes:
[0098] The viewing angle adjustment module is used to respond to the viewing angle adjustment request and control the animation playback viewing angle to make corresponding adjustments.
[0099] The demonstration device provided in the embodiment of the present application can achieve Figure 1 The corresponding method embodiments demonstrate the various processes of the method and can achieve the same technical effect. To avoid repetition, they are not described again here.
[0100] The embodiment of the present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is run on the processor, the computer program executes the following steps: Figure 1 The demonstration method disclosed in the corresponding method embodiment.
[0101] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run on a processor, the computer program executes the following steps: Figure 1 The demonstration method disclosed in the corresponding method embodiment.
[0102] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow chart, and the combination of boxes in the structure diagram and / or the flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0103] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0104] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0105] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A demonstration method, characterized in that: Applied to a computer device, the computer device stores an animation corresponding to each disassembly step of a three-dimensional model of a device to be demonstrated and a disassembly animation of the three-dimensional model of the device to be demonstrated, the disassembly animation includes the animation corresponding to each disassembly step, the animation playback request includes the disassembly animation playback time, and the method includes: In response to the animation playback request, determine a target disassembly step corresponding to the animation playback request; Control the animation corresponding to each disassembly step before the target disassembly step to be played in forward order, and control the animation corresponding to each disassembly step after the target disassembly step to be played in reverse order; Among them, controlling the animation corresponding to each disassembly step before the target disassembly step to play in positive order, and controlling the animation corresponding to each disassembly step after the target disassembly step to play in reverse order, includes: If the animation playback request is the first response, or the target disassembly step is inconsistent with the target disassembly step corresponding to the animation playback request responded to last time, then the animation corresponding to each disassembly step before the target disassembly step is controlled to be played in positive order, and the animation corresponding to each disassembly step after the target disassembly step is controlled to be played in reverse order; If the target disassembly step is consistent with the target disassembly step corresponding to the animation play request responded to last time, the animation corresponding to the target disassembly step is controlled to be played according to the disassembly animation play time of the last animation play request and the disassembly animation play time of the animation play request.
2. The demonstration method according to claim 1, characterized in that: Before the step of responding to the animation playback request and determining the target disassembly step corresponding to the animation playback request, the method further includes: Obtain a three-dimensional model of the device to be demonstrated; According to the disassembly steps of the device to be demonstrated, an animation corresponding to each disassembly step of the three-dimensional model is produced.
3. The demonstration method according to claim 1, characterized in that: The computer device stores a disassembly animation of the three-dimensional model of the device to be demonstrated, the disassembly animation includes an animation corresponding to each disassembly step, the computer device also stores a start play time and an end play time of each animation, and the animation play request includes the disassembly animation play time; The step of responding to the animation playback request and determining a target disassembly step corresponding to the animation playback request includes: Get animation playback request; According to the disassembly animation playing time in the animation playing request and the start playing time and the end playing time of each of the animations, the target disassembly step corresponding to the animation playing request is determined.
4. The demonstration method according to claim 1, characterized in that: The animation is loaded and rendered based on the three.js graphics framework.
5. The demonstration method according to claim 1, characterized in that: The method further comprises: Respond to the view adjustment request and control the animation playback view to make corresponding adjustments.
6. A demonstration device, characterized in that: Applied to a computer device, the computer device stores an animation corresponding to each disassembly step of a three-dimensional model of a device to be demonstrated and a disassembly animation of the three-dimensional model of the device to be demonstrated, the disassembly animation includes the animation corresponding to each disassembly step, the animation playback request includes the disassembly animation playback time, and the device includes: A play response module, used to respond to an animation play request and determine a target disassembly step corresponding to the animation play request; A playback module, used to control the animation corresponding to each disassembly step before the target disassembly step to be played in forward order, and control the animation corresponding to each disassembly step after the target disassembly step to be played in reverse order; The playback module is further configured to control the animation corresponding to each disassembly step before the target disassembly step to be played in forward order, and control the animation corresponding to each disassembly step after the target disassembly step to be played in reverse order if the animation playback request is responded to for the first time, or the target disassembly step is inconsistent with the target disassembly step corresponding to the animation playback request responded to last time; The animation playing module is used to control the animation corresponding to the target disassembly step to play according to the disassembly animation playing time of the last animation playing request and the disassembly animation playing time of the animation playing request if the target disassembly step is consistent with the target disassembly step corresponding to the animation playing request responded to last time.
7. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is run on the processor, the presentation method according to any one of claims 1 to 5 is executed.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is run on a processor, the presentation method according to any one of claims 1 to 5 is executed.
Citation Information
Patent Citations
Operation video output and browse method in three-dimensional assembly simulation
CN106056654A
Video playing method and device, intelligent playing equipment and storage medium
CN110719524A