ABSTRACT
T h e r e search o f v i r t u a l s c e n e c o m m e n c e s i n 1 9 5 0 s, w h i c h i s w i d e l y a p p l i e d i n
m a n y f i e l d s s u c h a s g a mes , G I S a n d v i r t u a l e x p e r i m e n t s . M o t i o n s i m u l a t i o n h a s
a p p l i c a t i o n s i n m a n y f i e l d s s u c h a s i n d u s t r y c o n t r o l a n d m a c h i n e m a n u f a c t u r e .
The combination of the two technologies takes on characters of accuracy and real-time,
as well as interaction and immersion.
With the background of automobile ESP scene simulation platform, the problems
emerging from combination of the two technologies, such as communication and data
transformation problems, are emphatically discussed. According to dynamic model and
k i n e m a t i c s m o d e l, t r a c e t r a n s f o r m a t i o n e q u a t i o n s a r e d e d u c e d ; t h e r e f o r e
the automobile’s act in virtual scene can strictly accord with physics laws. A practical
collision detect algorithm is proposed to improve the real-time performance of virtual
scene. Meanwhile, automobile 3D model, and virtual scene elements are completed.
Communication between motion simulation and virtual scene is implemented with
U D P - B a s e d p r o t o c o l i n c l u d i n g fi e l d s e t t i n g s , e x c e p t i o ns h a n d le , f l o w c o n t r o l a n d
synchronization mechanism. Through observing the geometry relation of main parts of
t h e a u t o m o b i l e , a u t o m o b i l e 3 D m o d e l , s c e n e e l e m e n t s a r e i m p l e m e n t e d w i t h
OpenGL.
Steering models and 2DOF dynamic models for both four wheels and six wheels
automobile are studied, then automobile steering equations are deduced to transform the
par ameters which dyna mic model outputs to automobil e's coordinates and posture in
virtual scene.
C o l l i s i o n d e t e c ti o n i s c o m p l e t e d w i t h v e c t o r - c r o s s - p r o d u c t a l g o r i t h m , b y w h i c h
intersection test between 3D automobile model and other elements in virtual scene is
c o m p l e t e d , a n d c o l l i s i o n d et ec t i o n c o s t i s c u t d o w n . M e a n w h i l e , t e c h n o l o g i e s l i k e
skybox and billboard are applied to cut down the virtual scene rendering cost.
T h e a p p l i c a t i o n o f a u t o m o b i l e E S P s c e n e s i m u l a t i o n p l a t f o r m s h o w s t h a t t h e
c o m b i n a t i o n o f t w o t e c h n o l o g i e s e n a b l es h i g h i n t e r a c t i o n a n d g o o d i m m e r s i o n i n
m o t i o n s i m u l a t i o n s . I t c a n b e a p p l i e d i n a l l k i n d s o f vi r t u a l exp e r i m e n t a l pl a t f o r ms,
driving stimulation systems and campaign simulation systems, etc.
K e y W o r d:V i r t u a l S c e n e , M o t i o n S i m u l a t i o n , C o l l i s i o n D e t e c t i o n ,
OpenGL