design of virtual simulation training system

7
Design of Virtual Simulation Training System Hong Ai 1,a,* , Luyuan He 1,b 1 Department of Automation, Harbin University of Science and Technology, No.52 Xuefu Road, Harbin, China a [email protected], b [email protected] *Corresponding author Keywords: Virtual reality, Simulation, Unity 3D, c #, 3d Max. Abstract. Virtual training is a modern experimental teaching method in recent years. It pays attention to interactive and experimental results of experimental simulation operation. Based on Unity 3D, it designed a virtual simulation training system for measuring laser wavelengths by Michelson interferometer. Virtual simulation experiment is used to explore the basic principles and methods of operation. Try to use 3DMax software to design laboratory and laboratory equipment model. Through Unity3D software builds the experimental environment and operation of the logical relationship test algorithm. Use program to achieve shader optical visualization. It can enhance the practice of students’ practical ability to reflect the new generation of experimental teaching of the open and comprehensive features. 1. Introduction The virtual simulation training system simulates the development of 3D digital content based on the specific subject content and simulates the training environment with 3D virtual environment or 3D stereoscopic display device so that teachers and students can obtain the same or similar training experience in real world. It is a new type of teaching model and the market is broad [1] . In order to meet needs in the Internet education, this paper studies the virtual simulation system of 3D simulation based on the background of laser measurement. It shows the multi-information fusion interactive three-dimensional dynamic scene, to a certain extent, reflects the VR education intuitive and immersive [2] . 2. Unity3D engine Unity3D is a Danish company launched for a game development, three-dimensional simulation, and cross-platform development of the three-dimensional engine. The Unity3D editor runs on Windows and Mac. It is a game product and software based on Android, Windows, Wii, OSX and iOS platform released, as shown in Figure 1. Unity engine achieves a multi-platform publishing and information exchange [3] . The development environment of Unity3D is friendly and visual. It supports the c # scripting language and the model created by 3dsMax [4-5]. In this article, unity engine model rendering technology is used for different materials and different attributes of the 55 The 5th International Conference on Advanced Computer Science Applications and Technologies (ACSAT 2017) Published by CSP © 2017 the Authors

Upload: others

Post on 25-May-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Design of Virtual Simulation Training System

Design of Virtual Simulation Training System Hong Ai1,a,*, Luyuan He1,b

1 Department of Automation, Harbin University of Science and Technology, No.52 Xuefu Road, Harbin, China

a [email protected], b [email protected] *Corresponding author

Keywords: Virtual reality, Simulation, Unity 3D, c #, 3d Max.

Abstract. Virtual training is a modern experimental teaching method in recent years. It pays attention to interactive and experimental results of experimental simulation operation. Based on Unity 3D, it designed a virtual simulation training system for measuring laser wavelengths by Michelson interferometer. Virtual simulation experiment is used to explore

the basic principles and methods of operation. Try to use 3DMax software to design laboratory and laboratory equipment model. Through Unity3D software builds the experimental environment and operation of the logical relationship test algorithm. Use program to achieve shader optical visualization. It can enhance the practice of students’ practical ability to reflect the new generation of experimental teaching of the open and comprehensive features.

1. Introduction

The virtual simulation training system simulates the development of 3D digital content based on the specific subject content and simulates the training environment with 3D virtual environment or 3D stereoscopic display device so that teachers and students can obtain the same or similar training experience in real world. It is a new type of teaching model and the market is broad[1]. In order to meet needs in the Internet education, this paper studies the virtual simulation system of 3D simulation based on the background of laser measurement. It shows the multi-information fusion interactive three-dimensional dynamic scene, to a certain extent, reflects the VR education intuitive and immersive[2].

2. Unity3D engine

Unity3D is a Danish company launched for a game development, three-dimensional simulation, and cross-platform development of the three-dimensional engine. The Unity3D editor runs on Windows and Mac. It is a game product and software based on Android, Windows, Wii, OSX and iOS platform released, as shown in Figure 1. Unity engine achieves a multi-platform publishing and information exchange[3]. The development environment of Unity3D is friendly and visual. It supports the c # scripting language and the model created by 3dsMax[4-5]. In this article, unity engine model rendering technology is used for different materials and different attributes of the

55

The 5th International Conference on Advanced Computer Science Applications and Technologies (ACSAT 2017)

Published by CSP © 2017 the Authors

Page 2: Design of Virtual Simulation Training System

equipment interface sh

3. Virtua

As show(1) Throu

experinstruinstru

(2) The r(3) After

expersystem

4. 3D Ma

3D Maxwith materthe coordiposition ofThis virtuain Figure 4figures bef

in the virtuhown in Fig

F

al Simulatio

wn in Figureugh the seleriment, andument functument. eassembledthe group

riments, them.

ax Model P

x design ofrials such anate systemf the three-dal experimen4, the modefore and afte

ual training gure 2.

Figure 1 Mu

on Training

e 3: ected virtua

d functionaltion, the fu

d virtual instp of virtuale formation

Processing

f the virtuals light and

m centre podimensionant instrumenel's materialer rendering

environmen

ulti-platform

g System W

al experimel and modenctions are

trument muinstrumen

n of virtual

Figure 3

l training syshadow. 3D

oint and thal structure nt model cal rendering g are shown

nt to achiev

m release

Workflow

ent, removeel module

e reassembl

ust be groupnts, there m

experimen

Virtual sim

ystem in thD Max can he centre of

to achieve an improve process inc

n in Figure 5

ve efficient

Figure 2

e the virtuasegmentatioed to impro

ped. must be simnts is to ve

mulation sys

he three-dimadjust the p

f mass posthe same athe authenti

cludes: textu5 and Figure

3D view di

Unity opera

al instrumenon. After tove the inte

milar to therify the key

stem

mensional mproportion ition. Adju

as the real eicity of the ure, reflectie 6.

isplay. Unit

ation interfa

nt, in the fithe compleegration of

e formationey to the ex

model can bof virtual in

ust the propexperiment experiment

ion, and hig

ty operation

ace

ixed virtualtion of the

f the virtual

n of virtualxperimental

be modifiednstruments,portion andequipment.

t. As shownghlight. The

n

l e l

l l

d ,

d .

n e

56

Page 3: Design of Virtual Simulation Training System

5. Experi

The expthe thickneof the two M1 and Msurface arelight sourc

When Mhave the sreflection pstripes for laser wave

Figure 5

imental Th

perimental pess of the gacoherent lig

M2' is d, the e z, and the e S1' And S

M1 and M2ame Δ, so plane and tthe bright length λ is:

Before rend

heory

principle ofap air layer ghts is equaangle of incangle betwe

S2' distance

2' distance dS1' and S2

then form aand dark co

Figure 4 M

dering the m

f the Michelat the New

al to the lighcidence andeen the inciof 1/2. Opt

d unchanged2' issued then equidistanolor of the

Figure 7

Model render

model F

lson interfewton ring intht intensity d the angle oident light otical path di

d with all the same inclnt interfereconcentric

7 Experime

ring proces

igure 6 Aft

erometer is terference idifference. of incidenceof S1' and Sifference for

he same inclination of tnce patterncircles. M-

ental princip

s

ter the mode

shown in Fs n, and theIf the thicke of 45 degr2' and the lermula Δ:

cident anglethe light po, the thickn

-level ring f

λ=2

ple

el is rendere

Figure 7, assen the phasekness of the grees on the ens E is als

∆ 2dcos z

e of the incolymerizationess of diffeformed con

2dcos z /m

ed

suming thate differencegap film ofhalf mirroro z, d is the

(1)

cident light,on in the Eerent of the

nditions, the

m (2)

t e f r e

)

, E e e

)

57

Page 4: Design of Virtual Simulation Training System

5.1 Analysis of concentric circle fringe algorithm

Assume that the distance from the lens to the receiving screen A is M, when the incident angle is z. Radius of interference ring r:

rcos z M/ √r M (3)

The corresponding Δ is indicated by the convergence of the light beam 1 and the light beam 2 on the receiving screen. The phase difference can be written as:

∅ 4πd λ⁄ ∗ M ∅ (4)

The light intensity of the light beam 1 and the light beam 2 to the receiving screen A is I ', and the light intensity I after the polymerization is show in formula(5):

I 4I ∗ ∅ (5)

Concentric ring fringe law: when the fringes generated in the focal plane A, the corresponding experimental phenomenon will have a circle of concentric rings, each concentric ring corresponds to a radius r, and corresponds to an angle of incidence z. And each incident angle z corresponds to Δ and ∅.

5.2 concentric circles drawn

As for the formula(5), determining the constant distance M and d in the mixed light intensity I for the adjustment of the experimental variables, selecting the different values of the interference experiment, making use of shader programming to simulate the real light. And the light color, the shading effect is displayed in the form of an image in the computer. Define a method to deal with stripes to draw concentric circles by c#.

Striped color design: (1) Mixed light intensity I quantized between 0-1, stripes and color values rg b corresponding. (2) Making use of colour processing color function to distinguish between different radius

concentric fringe colours. (3) As shown in Figure 8, after the stripes are drawn, the setting d is adjustable by means of the

Michelson interferometer's coarse adjustment knob and the fine adjustment knob to rotate the angle to show the change of d on the Michelson interferometer.

6. Set up virtual training environment

Different wavelengths corresponding to different visible light, as shown in Figure 9, c# programming assign the corresponding material ball to the light to achieve different wavelengths of choice and measurement, encapsulated it into a separate class assigning to the 3D virtual instrument model. In this way, the model has the performance of the corresponding optical instruments.

58

Page 5: Design of Virtual Simulation Training System

The moscene.

(1) Pay athe flMicheall co

(2) Unifyeasier

(3) After simul

7. Virtua

Determiand projecroaming cshow the s

odel is deriv

attention tofloor ceilingelson interf

olored laser y the numbr replaceme

experimenlation result

al operation

ining experctors, apertuamera locaense of imm

F

ved from 3D

o the establig. Add virtferometer, olasers. er of maps

ent and use. ntal environts can becom

n logic rela

rimental moure apertur

ation. All umersion of V

Figure 8 Ex

Fig

DMax, the

shment of ttual laborat

ordinary sea

and the in

nment to beme more rea

ationship

odels such es, all colosing the firVR. The log

xperimental

gure 9 C# p

real image

the laboratotory interna

ats, projecto

nternal deco

e carried oalistic. The

as Michelsored laser lrst person pgic flow is s

stripes effe

rogram

as its textu

ory interior al modifier

ors and proje

orations of

out, it needvirtual lab i

on interferolasers. Initiperspectiveshown in Fi

ct

ure mapping

structure anr including ection pane

the experim

s the light is shown in

ometers, gealizing eachin the ent

gure 11.

g to form a

and the mapgray meta

els, aperture

ment to ma

operation Figure 10.

eneral seatsch model lotire virtual

a 3D virtual

p modifyingal test bed,e diaphragm

anage it for

so that the

, projectorsocation andexperiment

l

g ,

m,

r

e

s d t

59

Page 6: Design of Virtual Simulation Training System

8. Virtua

Design experimentadjust the e

Step1: transmitter

Step 2: laser beam

Step 3: Michelson are suckedsucked outrecord data

Figure 10

al training o

third-partytal interfacexperimentaenter the e

r emission w

Figure

Set the apem and diffuse

After settiinterferom

d or releaset or dischaa, and then e

Figure

Virtual trai

operation

y plug-in e shown inal equipmenexperimenta

wavelength

e 12 Exper

erture diaphe the laser bng up the v

meter is placeed by adjusarged, the eexperimenta

14 Virtual

ning enviro

interface n Figure 12nt, ready to al positionshown in F

rimental inte

hragm and sbeam, as shovirtual instred on the lasting the finexperimentaal verificati

instrument

onment F

and button2. Through operate. , set the migure 13.

erface F

short focusown in Figurument, peraser wavelene focal le

al data is reion is shown

Figure 11 E

n function,the mouse

measured c

Figure 13 L

lens to redure 14. rform the v

ength measungth helix.ecorded. Mn in Figure

Figure 15

Experimenta

, enter thee click on t

olored ligh

Laser emitter

duce the rad

virtual expeurement and

When 30 Make several

15, Figure 1

5 Experime

al logic relat

e softwarethe experim

ht to adjus

r

dius of the

eriment oped the concenconcentric l sets of ex16.

ental data re

tionship

e after themental seat,

st the laser

transmitted

eration. Thentric circlescircles are

xperimental

ecords

e ,

r

d

e s e l

60

Page 7: Design of Virtual Simulation Training System

Fig

9. Conclu

Based ocross-platfinterface. Uperfect fusinterferomonly can rebut also imreflecting t

Acknowle

*This wscience and

Reference

[1] Wan Huenvironment

[2] Chen-Yutechnology a62(3):1217-

[3] JohnstonTherapy & A

[4] Yang JiSharing Manan Example[Managemen

[5] Xiang MManagemenEconomics (

gure 16 Mi

usions

on Unity3Dform releaseUnity3D insion. In thieter measureduce the re

mprove studthe characte

dgements

work is suppd technolog

es

uagen, Gao St[J]. Chinese

uan Chen, Bacceptance us1231

n R, Weiss Allied Techno

iancheng. Renagement Me[A]. Singapor

nt Science and

Ming. A Rent University.(ICEMSE 20

ichael interf

D game enged, it is closn the three-dis paper, threment of laeal experimeent autonomeristics of V

ported by Mgy talents sp

Shuming, PeJournal of Co

ih-Yaw Shihsing a virtual

P.. Analysis ologies, 2009

esearch on Vechanism—Tre Managemed Economics

eview of ReProceedings 16)[C].Singa

ferometer o

ine developsed to the redimensionalhrough anaaser waveleent due to thmy, making

VR education

Ministry of pecial (15JD

ng Qunshengomputer & G

h, Shih-Hsienreality system

of virtual r9, 6(2):126-12

Virtual SimulTaking Mechaent University(ICEMSE 20

search on Vof the 1st Int

apore Manage

operation an

pment of vieal 3D expel simulation

alysis of thength, virtuahe damage

g use of netwn and fun.

Education HDGC020).

g. VDVAS: Graphics, 2002

n Yu.Disasterm and partial

reality techno27

lation Experianical Foundaty. Proceeding016)[C].Singa

Virtual Simulternational Cement Univer

nd measurem

irtual simulerimental enn model an

he virtual sal simulatioof limited e

work to exp

Humanities

an integrated2, 7(1): 27-35

r prevention l least square

ology applied

iment Centeration and Texgs of the 1st Iapore Manag

lation in EdConference onrsity:2016:4.

ment of num

ation, the tnvironment d the real eimulation e

on training sequipment aand the exc

and Social

d virtual desi5.

and reductios techniques[

d in educatio

r Constructioxtile EquipmInternational ement Unive

ucation and n Education, M

merical reco

training sysand user-fr

environmenexperiment system in te

and impropechange betw

l Sciences e

ign and virtu

on for explor[J].Natural Ha

on[J].Minima

on Practice ament Experime

Conference oersity:,2016:5

Teaching[AManagement

rds

tem can beriendly usernt achieve a

Michelsoneaching noter operationween people

engineering

ual assembly

ing teachers’azards, 2012

ally Invasive

and Resourceent Center ason Education.

A]. Singaporet Science and

e r a n t n, e,

g

y

’ 2,

e

e s n,

e d

61