| Virtual experiment is a simulated interactive learning environment that allows students to complete laboratory experiments and theoretical learning without entering the laboratory.From the perspective of space,virtual experiments are divided into two-dimensional virtual experiments and three-dimensional virtual experiments.Whether in terms of sensory experience and expression,three-dimensional virtual experiments are more spatial,more three-dimensional,and have real-time interactivity,high immersion,and strong conception.It is a hot research direction in recent years.Experimental teaching in the virtual world can improve the learning efficiency of experimental learners.However,traditional human-computer interaction methods such as mouse and keyboard are still used in human-computer interaction,which can no longer meet the new interactive needs.In the actual manipulation of virtual experiments,especially in the control of finer part models,the accuracy is poor,the interaction is limited,and the complex interaction steps will bring high learning costs,resulting in inconvenience and low efficiency.Therefore,this article uses chinese voice interaction to complete auxiliary operations such as the selection,control,and assembly of instruments in virtual experiments,and conducts research on key technologies such as modeling of scenes and virtual instruments in virtual experiments and assembly between instruments,The assembly relationship diagram and assembly sequence tree are used to constrain the assembly relationship and assembly sequence between the experimental instruments,and improve the fluency and accuracy of the interaction between humans and the virtual experimental environment.In addition,setting up semantic objects provides higher-level interactive information.In the virtual scene,the assembly tree structure and semantic information are used to guide the assembly process with voice,text prompts,and experimental schematic diagrams,thereby effectively supporting the completion of interactive tasks.This effectively guarantees the learning efficiency of the experimenter.In terms of experimental simulation,there is no mechanism for automatic generation of experimental schematics.It becomes unrealistic to manually draw different experimental schematic diagrams for different virtual experiments,which is time-consuming and labor-intensive and inefficient.For this reason,the instruments in the experiment are classified and characterized,and the common,independent,and modular shapes are set as primitives and constitute the primitive library.Use the graphic element library,assembly sequence,connectable nodes and assembly relationship information to automatically generate the best matching combination graph and experimental schematic diagram to assist learners to speed up the understanding of the experiment,so as to guide the experimenter’s operation process,improve the fluency of the operation and reduce user operation error rate.The object-oriented method is used to analyze and solve the problem of the combination of various common primitives.The singleton mode is used to design the auxiliary class of primitive combination and the simple factory mode is used to manage all primitive classes.Moreover,it is very convenient to edit,generate and manage all the graphic elements by constructing a virtual experimental graphic element library,which has the advantages of intuitiveness,reusability and more flexibility in the generation of experimental schematic diagrams. |