Disclosure of Invention
The invention aims to overcome the technical problems in the prior art and provides a method for manufacturing a virtual scene by using a VR (virtual reality) technology.
The invention adopts the following technical scheme:
a method for realizing virtual scene making of a cable head by utilizing VR technology comprises the following steps:
s1, constructing the 3D model
3D software is used for constructing a 3D tool model and a 3D cable model;
the 3D tool model is a 3D model of a tool used in the cable head manufacturing process;
the 3D cable model is an operation object of the 3D tool model, and different 3D tool models perform different operation actions on the 3D cable model;
s2, server system construction
The server system comprises a scene module, a man-machine interaction module and a data module; the scene module comprises an acquisition action library, a model library and a standard action library; a 3D tool model and a 3D cable model are stored in the model library;
the acquisition action library is connected with the model library, the model library is connected with the standard action library, and the standard action library is connected with the data module; the human-computer interaction module is connected with the data module;
s3, building a virtual scene system for cable head manufacturing
The cable head manufacturing virtual scene system comprises VR wearable equipment, communication connection equipment and a server system;
the VR wearable device comprises a VR handle, VR glasses and a locator; the communication connection equipment comprises an action communication module and a scene communication module;
the VR handle is connected with the action communication module, and the action communication module is connected with the collection action library; VR glasses, locater all are connected with scene communication module, and scene communication module is connected with scene module.
Preferably, the VR glasses and the locator help a user to be in a virtual scene; the positioning instrument feeds back position information of a user, the information is transmitted into the scene module through the scene communication module, and the processed information is fed back to the VR glasses through the scene communication module.
Preferably, the VR handle collects the action information of the two hands of the user, and the action information is transmitted to the collection action library through the action communication module; the method comprises the steps that an action library is collected, action information is transmitted to a model library, and corresponding actions are performed on a 3D tool model or a 3D cable model; the action information is carried forward to the standard action library and is transmitted to the data module together with the standard action in the standard action library.
Preferably, after the 3D working model completes all actions on the 3D cable model, the data module compares all action information with the standard action library to generate an operation score corresponding to each action information.
Preferably, the server system further comprises a text prompt module; the text prompt module makes operational text prompt for the user according to the corresponding action of the user on the 3D working model or the 3D cable model and in combination with the content of the standard action library; the text prompt is fed back to the VR glasses via the scene communication module.
Preferably, the 3D tool model comprises a 3D cable cutter, a 3D hacksaw, a 3D wire stripper, a 3D branch glove, a 3D insulating sleeve, a 3D welding gun and a 3D heating air gun.
Preferably, the 3D tool model and the 3D cable model are both created using the Unity3D virtual reality engine.
The action principle of the invention is as follows:
the invention relates to a method for realizing a virtual scene of a cable head by utilizing a VR (virtual reality) technology. The 3D cable model is an operation object of the 3D tool model, different 3D tool models have different operations on the 3D cable model, for example, a 3D hacksaw can cut the 3D cable model, and then the cut 3D cable model appears; the 3D wire stripper can perform wire stripping operation on the 3D cable model, and then the stripped 3D cable model appears. The using sequence of the 3D tool models is the sequence of the tools used in the cable head manufacturing process, and the 3D cable models gradually change in shape after being operated by the 3D tool models in a certain sequence, and finally become a complete cable head.
The server system is used for carrying various hardware and software, so that the virtual scene for manufacturing the whole cable head can be displayed. The server system can publish the cable head manufacturing process displayed by using the 3D tool model and the 3D cable model, store the action information sent by the user, compare the action information of the user with data in a standard action library, and even score the action information. And a text prompt module can be carried to prompt the user.
The VR handle can select and simulate various 3D tool models to perform a series of operations on the 3D cable model. VR glasses can show various virtual scenes in front of the user, and the user can be personally on the scene to carry out the manufacturing process of the cable head. VR glasses and locater help the user to put into virtual scene, accomplish position shift and visual angle conversion through scene communication module.
The man-machine interaction module is mainly a UI interface, is equivalent to an operation interface, and is used for carrying out operation selection on each program or function in the service system.
The invention has the following beneficial effects:
according to the invention, through the construction of a virtual scene system for manufacturing the cable head, the whole process of manufacturing the cable head is experienced or trained by using VR wearable equipment; the VR technology is adopted to realize the training of the whole cable head manufacturing process, so that not only is the waste of raw materials avoided, but also the whole learning process is safer, and the whole cable head manufacturing process can be displayed more clearly and intuitively; the user can repeatedly experience and train the whole process of cable head manufacturing, various operation steps in the process of cable head manufacturing are helped to be learned, and the user is effectively familiar with and practical skills are improved.
Detailed Description
The present invention will be further described with reference to specific examples, which are illustrative of the invention and are not to be construed as limiting the invention.
As shown in fig. 1, a method for implementing a virtual scene by a cable head using VR technology includes the following steps:
s1, constructing the 3D model
Building a 3D tool model and a 3D cable model by using a Unity3D virtual reality engine system; the 3D tool model is a 3D model of a tool used in the cable head manufacturing process and comprises a 3D cable cutter, a 3D hacksaw, a 3D wire stripper, a 3D branch glove, a 3D insulating sleeve, a 3D welding gun and a 3D heating air gun.
The 3D cable model is an operation object of the 3D tool model, and different 3D tool models perform different operation actions on the 3D cable model.
S2, server system construction
The server system comprises a scene module, a man-machine interaction module, a data module and a character prompt module. The scene module comprises an acquisition action library, a model library and a standard action library; a 3D tool model and a 3D cable model are stored in the model library; the acquisition action library is connected with the model library, the model library is connected with the standard action library, and the standard action library is connected with the data module; the human-computer interaction module is connected with the data module.
S3, building a virtual scene system for cable head manufacturing
The cable head manufacturing virtual scene system comprises VR wearable equipment, communication connection equipment and a server system.
The VR wearable device comprises a VR handle, VR glasses and a locator; the communication connection device comprises an action communication module and a scene communication module.
The VR handle is connected with the action communication module, and the action communication module is connected with the collection action library; VR glasses, locater all are connected with scene communication module, and scene communication module is connected with scene module. VR glasses and a positioning instrument help a user to be placed in a virtual scene; the positioning instrument feeds back position information of a user, the information is transmitted into the scene module through the scene communication module, and the processed information is fed back to the VR glasses through the scene communication module.
The VR handle collects the action information of the two hands of the user and transmits the action information to the collection action library through the action communication module; the method comprises the steps that an action library is collected, action information is transmitted to a model library, and corresponding actions are performed on a 3D tool model or a 3D cable model; the action information is carried forward to the standard action library and is transmitted to the data module together with the standard action in the standard action library.
And when the 3D working model finishes all actions of the 3D cable model, the data module compares all action information with the standard action library to generate an operation score corresponding to each action information.
The text prompt module makes operational text prompt for the user according to the corresponding action of the user on the 3D working model or the 3D cable model and in combination with the content of the standard action library; the text prompt is fed back to the VR glasses via the scene communication module.
The technical solution of the present invention is not limited to the above-mentioned specific embodiments, and all technical modifications made according to the technical solution of the present invention fall within the scope of the present invention.