An Intelligent Display Platform of Traditional Farming Myth’s Virtual Scene Based on Unity3D

An Intelligent Display Platform of Traditional Farming Myth’s Virtual Scene Based on Unity3D

Proceedings, 6th IFAC Conference on Bio-Robotics Proceedings, 6th IFAC Conference on Bio-Robotics Beijing, China, July 13-15, 2018 Beijing, China,6th ...

812KB Sizes 2 Downloads 46 Views

Proceedings, 6th IFAC Conference on Bio-Robotics Proceedings, 6th IFAC Conference on Bio-Robotics Beijing, China, July 13-15, 2018 Beijing, China,6th July 13-15, 2018 Proceedings, 6th IFAC Conference onAvailable Bio-Robotics online at www.sciencedirect.com Proceedings, IFAC Conference on Bio-Robotics Proceedings, 6th IFAC Conference on Bio-Robotics Beijing, China, July 13-15, Beijing, China, July 13-15, 2018 2018 Beijing, China, July 13-15, 2018

ScienceDirect

IFAC PapersOnLine 51-17 (2018) 678–682

An An Intelligent Intelligent Display Display Platform Platform of of Traditional Traditional Farming Farming An Intelligent Display Platform of Traditional Myth’s Virtual Scene Based on Unity3D An Intelligent Display Platform of Traditional Farming Myth’sDisplay VirtualPlatform Scene Based on Unity3DFarming An Intelligent of Traditional Farming Myth’s Virtual Scene Based on Unity3D Myth’s Virtual Scene Based on Unity3D Myth’s Virtual Scene Based on Unity3D Zhang Zhang Ye*, Ye*, Wang Wang JianQin**, JianQin**, Lin Lin ZhiHong*** ZhiHong*** 

 Zhang Ye*, Ye*, Wang JianQin**, JianQin**, Lin ZhiHong*** ZhiHong*** Zhang Lin Zhang Ye*, Wang Wang JianQin**, Lin ZhiHong***  ** College College of of Information Information and and Electrical ElectricalEngineering, Engineering, China China Agricultural Agricultural University, University, Beijing, China (Tel: 17801134807; e-mail: [email protected]). ** College of Information and Electrical Engineering, China Agricultural University, Beijing, China (Tel: 17801134807; e-mail: [email protected]). of and Electrical Engineering, China Agricultural University, ** of and Electrical Engineering, China Agricultural University, CO * College College of Information Information and17801134807; Electrical Engineering, China Agricultural University, Beijing, China (Tel: e-mail: [email protected]). ** College College of Information Information and Electrical Engineering, China Agricultural University, CO 100083 100083 Beijing, China (Tel: 17801134807; e-mail: [email protected]). Beijing, China (e-mail: [email protected]) Beijing, China (Tel: 17801134807; e-mail: [email protected]). ** College of Information and Electrical Engineering, China Agricultural University, CO 100083 Beijing, China (e-mail: [email protected]) ** of and Engineering, China University, CO *** of and Electrical China University, ** College College of Information Information and Electrical Electrical Engineering, China Agricultural Agricultural University, CO 100083 100083 Beijing, China (e-mail:Engineering, [email protected]) *** College College of Information Information and Electrical Engineering, China Agricultural Agricultural University, Beijing, China (e-mail: [email protected]) [email protected]) Beijing, China (e-mail: [email protected]) *** College College of Information Information and Electrical Engineering, China Agricultural Agricultural University, Beijing,and China (e-mail:Engineering, [email protected]) *** Electrical China *** College of of Information and Electrical Engineering, China Agricultural University, University, Beijing, China (e-mail: [email protected]) Beijing, China (e-mail: [email protected]) Beijing, China (e-mail: [email protected]) Abstract: Abstract: Chinese Chinese traditional traditional cultivation cultivation culture culture is is the the crystallization crystallization of of wisdom wisdom of of Chinese Chinese workers' workers' production and life. However, the current mode of communication restricts the development of farming Abstract: Chinese traditional cultivation culture is the crystallization of wisdom of Chinese production Chinese and life. traditional However, the current mode ofiscommunication restricts the development of workers' farming Abstract: cultivation culture the crystallization of wisdom of Chinese workers' culture. Therefore, a method combining virtual reality technology to develop virtual farming scenes is Abstract: Chinese traditional cultivation culture is the crystallization of wisdom of Chinese workers' production and life. the current mode of communication the development farming culture. Therefore, aHowever, method combining virtual reality technology restricts to develop virtual farmingof scenes is production and life. However, the current mode of communication restricts the development of farming proposed. In this paper, we propose a camera-following algorithm that can move along with the virtual production and life. However, the current mode of communication restricts the development of farming culture. Therefore, aa method combining virtual reality technology to develop virtual farming scenes is proposed. In this paper, we propose a camera-following algorithm that can move along with the virtual culture. Therefore, method combining virtual reality technology to develop virtual farming scenes is character movement in the scene. An automatic path finding and an obstacle avoidance culture. a method combining virtual reality to develop farming scenes is proposed. In this paper, aa camera-following algorithm that can move with the virtual characterTherefore, movement in we the propose scene. An automatic pathtechnology finding algorithm algorithm andvirtual analong obstacle avoidance proposed. In this paper, we propose camera-following algorithm that can move along with the virtual algorithm are proposed to increase the fun and authenticity of the virtual scene. The results show that the proposed. In this paper, we propose a camera-following algorithm that can move along with the virtual character movement scene. path finding algorithm and an obstacle avoidance algorithm are proposedin tothe increase theAn funautomatic and authenticity of the virtual scene. The results show that the character movement in scene. An automatic path finding algorithm and an obstacle avoidance interaction of virtual scene of farming myth is aaauthenticity new means of the spreading culture. character are movement intothe the scene. An automatic path finding algorithm andThe an results obstacle avoidance algorithm proposed increase the fun and of virtual scene. show that the interaction of virtual scene of farming myth is new means spreading culture. algorithm are proposed to the fun authenticity of the virtual scene. algorithm are proposed to increase increase themyth fun and and authenticity of the virtual culture. scene. The The results results show show that that the the interaction of virtual scene of farming is a new means of spreading © 2018, IFAC (International Federation of Automatic Control) Hosting by Elsevier Ltd. All rights reserved. interaction of virtual scene of farming myth is a new means of spreading culture. Keywords: of virtual reality, scene, automatic finding, camera culture. following. interaction virtual scenefarming of farming myth is a newpath means of spreading Keywords: virtual reality, farming scene, automatic path finding, camera following. Keywords: virtual reality, reality, farming scene, scene, automatic path path finding, camera camera following. Keywords: Keywords: virtual virtual reality, farming farming scene, automatic automatic path finding, finding, camera following. following. Museum in  Museum in Taipei, Taipei, and and provides provides other other terminal terminal interactive interactive 1. INTRODUCTION 1. INTRODUCTION services. Zhu Li has achieved the acquisition of 3D  Museum in Taipei, and provides other terminal interactive services. Zhu Li has achieved the acquisition of 3D point point Museum in Taipei, and provides other terminal interactive 1. INTRODUCTION cloud of multi-precision relics on the city of Tang Dynasty. Museum in Taipei, and provides other terminal interactive 1. INTRODUCTION China is a large agricultural country with a history of more services. Zhu Li has achieved the acquisition of 3D point cloud of multi-precision relics on the city of Tang Dynasty. 1. INTRODUCTION Zhu the acquisition of 3D China is a large agricultural country with a history of more services. services. Zhu Li Li has has achieved achieved the acquisition ofDynasty. 3D point point than five thousand years of farming civilization. The cloud of multi-precision relics on the city of Tang China is a large agricultural country with a history of more of relics on city Dynasty. than five thousand years country of farming The cloud The virtual all the China is aa large agricultural with aacivilization. history of more cloud of multi-precision multi-precision relicsreality on the the systems city of of Tang Tang Dynasty. The above-mentioned above-mentioned virtual reality systems all have have the real real cultivation culture is an indispensable part of Chinese China is large agricultural country with history of more than five thousand of farming civilization. The cultivation culture is years an indispensable part of Chinese scenes for the farming myths written by than five thousand years of farming civilization. The The above-mentioned above-mentioned virtual reality systems allare have the real real scenes for reference, reference, but but the reality farming mythsall arehave written by traditional culture. It is the wisdom of the Chinese people than five thousand years of farming civilization. The The virtual systems the cultivation culture of Chinese traditional culture. Itis is an the indispensable wisdom of thepart Chinese people text, compared with other roaming systems of cultural relics, The above-mentioned virtual reality systems all have the real cultivation culture is an indispensable part of Chinese scenes for reference, reference, but the the farming myths are written by text, compared with other roaming systems of are cultural relics, working for thousands of years. In recent years, the cultivation culture is an indispensable part of Chinese scenes for but farming myths written by traditional culture. It is the Chinese people working for thousands of wisdom years. of In the recent years, the building the can’t get real data through other scenes forscene, reference, but the farming myths are written by traditional culture. It is the wisdom of the Chinese people text, compared with other roaming of cultural relics, building scene, the study study can’t getsystems real data through other protection and inheritance of traditional farming culture have traditional culture. It is the wisdom of the Chinese people text, compared with other roaming systems of cultural relics, working for years. In recent years, the protection and thousands inheritance of traditional farming culture have ways. Therefore, one of the difficulties of this platform is that text, compared with other roaming systems of cultural relics, working for thousands of years. In recent years, the building scene, the study can’t get real data through other ways. Therefore, onestudy of thecan’t difficulties of this platform isother that attracted more from walks of life. working for thousands of traditional years. recent the building scene, the get data through protection and and inheritance of farming culture have attracted more more and more attention attention fromInall all walks culture ofyears, life. With With there isn’t aa real scene as aa can’t reference, so the study designs the building scene, study get real real data through other protection and inheritance of traditional farming have ways. Therefore, one of difficulties this platform is that there isn’t real the scene asthe reference, soof the study designs the China's "twenty four solar terms" declaration of human protection and inheritance of traditional farming culture have ways. Therefore, one of the difficulties of this platform is that attracted"twenty more and and- more more attention from declaration all walks walks of of of life.human With ways. China's four attention solar terms" virtual scene of the platform by collecting a wide range of Therefore, one of the difficulties of this platform is that attracted more from all life. With there isn’t a real scene as a reference, so the study designs virtual scene of the platform by collecting a wide range of intangible cultural heritage representative officially attracted more and- more attention from declaration all walkslist life. With there isn’t a real scene as a reference, so the study designs the the China's "twenty "twenty four solar terms" terms" of human intangible cultural heritage representative listof of officially historical data, and observing the characteristics of ancient there isn’t a real scene as a reference, so the study designs the China's four solar declaration human virtual scene of the platform by collecting a wide range of historical data, and observing the characteristics of ancient passed the review, it indicates that China's farming culture China's "twenty four solar terms" declaration of human scene of the platform by collecting aa wide of intangible cultural list officially passed the review, itheritage indicatesrepresentative that China's farming culture virtual agricultural scene, this paper, we propose cameravirtual scene of and the in platform by collecting wideaaofrange range of intangible cultural heritage representative list officially historical data, observing the characteristics ancient agricultural scene, in this paper, we propose camerahas attracted the attention of all countries in the world, and intangible cultural heritage representative list officially historical data, and observing the characteristics of ancient passed the review, it indicates that China's farming culture has attracted the attention of all countries in the world, and following algorithm, that is, the camera can follow the historical data, and observing the characteristics of ancient passed the review, it indicates that China's farming culture agriculturalalgorithm, scene, in in that this is, paper, we propose propose camerafollowing the camera can follow the has very However, limitation of passed the important review, itsignificance. indicates that China'sinthe farming culture scene, this paper, we aaa camerathe attention of all countries the world, and has aaattracted very important significance. However, the limitation of agricultural movement of the characters scene. an agricultural in that this paper, wethe cameraattracted the attention of all countries in the world, and following algorithm, algorithm, is, the in camera can Besides, follow the movement ofscene, the virtual virtual characters in thepropose scene. Besides, an the mode of communication has hindered the spread has attracted the attention of all countries in the world, and following that is, the camera can follow the has very important significance. of the aamode of communication has However, hindered the the limitation spread and automatic search algorithm and obstacle avoidance algorithm following algorithm, that is, the camera can follow the has very important significance. However, the limitation of movement of the virtual characters in the scene. Besides, an automatic search algorithm and obstacle avoidance algorithm development of farming culture and spirit. The digitization of has a very important significance. However, the limitation movement of the virtual characters in the scene. Besides, an the mode of spread and development ofcommunication farming culturehas andhindered spirit. Thethe digitization of movement for virtual characters are proposed to increase the interest and of the virtual characters in the scene. Besides, an the mode of communication has hindered the spread and automatic search algorithm and obstacle avoidance algorithm for virtual search characters are proposed to increase the interest and farming cultural resources is demonstrated through the mode of communication has hindered the spread and automatic algorithm and obstacle avoidance algorithm development of farming farming culture and and spirit. The digitization digitization of automatic farming cultural resources is spirit. demonstrated through authenticity of the virtual scene. Finally, we design a virtual search algorithm and obstacle avoidance algorithm development of culture The of for virtual characters are proposed to increase the interest and of the virtual scene. Finally, we design a virtual virtualization, can accelerate the of development ofwhich farming and The digitization of authenticity for virtual characters are to the and farming cultural cultural resources is spirit. demonstrated through virtualization, which canculture accelerate the spread spread of farming farming scene of Chinese ancient farming myth. for virtual characters are proposed proposed to increase increase the interest interest and farming resources is demonstrated through authenticity of the virtual scene. Finally, we design a virtual scene of Chinese ancient farming myth. culture and increase people's interactive experience, and farming cultural resources is demonstrated through authenticity of the virtual scene. Finally, we design a virtual virtualization, which can can accelerate the spread spread of farming farming culture and increase people's interactive experience, and authenticity of the virtual scene. Finally, we design a virtual virtualization, which accelerate the of scene of Chinese ancient farming myth. ultimately promote the inheritance and sustainable virtualization, which can the spread of farming scene ancient myth. culture and increase people's interactive experience, and ultimately promote theaccelerate inheritance and sustainable scene of of Chinese Chinese ancient farming farmingAND myth. 2. EXPERIMENTS METHODS culture and increase people's interactive experience, and 2. EXPERIMENTS AND METHODS development of farming culture. culture and increase people's interactive experience, and ultimately promote the inheritance and sustainable development of farming culture. ultimately promote the inheritance and sustainable 2. EXPERIMENTS AND METHODS ultimately promote the inheritance and sustainable 2. EXPERIMENTS AND METHODS The Unity3D development software, development of farming culture. EXPERIMENTS AND METHODS development of culture. The research research2.takes takes Unity3D as as the the development software, and and In information development of farming farming culture. technology In the the past past decades, decades, information technology is is increasingly increasingly uses 3D Max as the modeling tool. Using C# as the scripting The research takes Unity3D as tool. the development development software, and uses 3D Max as the modeling Using C# as the scripting applied to the field of digital cultural heritage, including The research takes Unity3D as the software, and In the past decades, technology is increasingly applied to the field information of digital cultural heritage, including The language, it achieves the intelligent display of the takes as tool. the development and In the past decades, information technology is increasingly uses research 3D Max Max as the theUnity3D modeling Using C# platform assoftware, the scripting scripting language, it achieves the intelligent display platform of the cultural relics, computer-assisted archeology, communication In the past decades, information technology is increasingly uses 3D as modeling tool. Using C# as the applied to the field of digital cultural heritage, including cultural relics, computer-assisted archeology, communication ancient Chinese agricultural culture. uses 3D Max as the modeling tool. Using C# as the scripting applied to the field of digital cultural heritage, including language, it achieves the intelligent display platform of the ancient Chinese agricultural culture. or display and so on, so that ordinary people can also enjoy applied to the field of digital cultural heritage, including language, it achieves the intelligent display platform of cultural relics, computer-assisted archeology, communication or display and computer-assisted so on, so that ordinary people communication can also enjoy language, it achieves the intelligent display platform of the the cultural relics, archeology, ancient Chinese agricultural culture. the convenience of technological progress through cultural relics, archeology, communication Chinese agricultural culture. or display display and computer-assisted soand on,shock so that that ordinary people can also also enjoy ancient the convenience and shock of ordinary technological progress through ancient Chinese agricultural culture. or and so on, so people can enjoy the digital display or other ways. Zhang Yan in Beijing or display soand on, so that ordinary people can also enjoy 2.1 convenience shock of technological progress through 2.1 System System Overall Overall Design Design the digital and display orshock other ways. Zhang Yan in the the Beijing the convenience and of technological progress through Forestry University who uses virtual reality technology to the convenience and shock of technological progress through System Overall Design the digital display or other ways. Zhang Yan in the Beijing Forestry University who uses virtual reality technology to 2.1 2.1 System Overall Design the digital display or other ways. Zhang Yan in the Beijing 2.1 System Overall Design of Based on the ideology design and realize the virtual landscape of the Northern Song the digital display orwho other ways. Zhang Yan in the Beijing Forestry University uses virtual reality technology to Based on the ideology of software software engineering, engineering, the the design and realize the virtual landscape of the Northern Song Forestry University who uses virtual reality technology to development of the virtual system is mainly divided into two Dynasty Royal Garden. A scientific research team in Taiwan Forestry University who uses virtual reality technology to Based on the ideology of software engineering, the design and realize the virtual landscape of the Northern Song development of the virtual system is mainly divided into two Dynasty Royal Garden. A scientific research team in Taiwan Based on the ideology of software engineering, the design and realize the landscape of Northern Song stages: the stage is the analysis and data uses computer technology to achieve the three-dimensional on first the ideology of pre-system software engineering, the design and realize the virtual virtual landscape of the the Northern Song Based development of the virtual system is mainly divided into two Dynasty Royal Garden. A scientific research team in Taiwan stages: the first stage is the pre-system analysis and data uses computer technology to achieve the three-dimensional development of the virtual system is mainly divided into two Dynasty Royal Garden. A scientific research team in Taiwan collection. Secondly, we need to set up the scene in Unity 3D virtual exhibition of cultural relics of the Imperial Palace development of the virtual system is mainly divided into two Dynasty Royal Garden. A scientific research team in Taiwan stages: theSecondly, first stage stageweisneed the to pre-system analysis and data data uses technology to achieve collection. set up the analysis scene in Unity 3D virtualcomputer exhibition of cultural relics ofthe thethree-dimensional Imperial Palace stages: the first the pre-system and uses computer technology to the three-dimensional theSecondly, first stageweis isneed the to pre-system and data uses technology to achieve achieve collection. set up up the the analysis scene in in Unity Unity 3D virtualcomputer exhibition of cultural cultural relics of ofthe thethree-dimensional Imperial Palace Palace stages: collection. Secondly, we need to set scene 3D virtual exhibition of relics the Imperial virtual exhibition of cultural relics of the Imperial Palace collection. Secondly, we need to set up the scene in Unity 3D

2405-8963 © IFAC (International Federation of Automatic Control) Copyright © 2018, 2018 IFAC 679Hosting by Elsevier Ltd. All rights reserved. Copyright 2018 responsibility IFAC 679Control. Peer review©under of International Federation of Automatic Copyright © 679 10.1016/j.ifacol.2018.08.118 Copyright © 2018 2018 IFAC IFAC 679 Copyright © 2018 IFAC 679

IFAC BIOROBOTICS 2018 Beijing, China, July 13-15, 2018

Zhang Ye et al. / IFAC PapersOnLine 51-17 (2018) 678–682

679

and realize the interactive function of each module of the system. The flow chart is shown in figure 1.

applicable objects, and select the most suitable method of creation, which can create a realistic effect.

First of all, we need to determine the functional modules of each myth from the requirements. Secondly, we need to collect and collate agricultural myths and legends. Thirdly, this study uses 3Dmax and other modeling software for 3D modeling and characters of skeleton animation production, etc., the produced model is exported to FBX format file or WAV format video file which is supported by Unity 3D. Finally, we import the exported files into the Unity project for re-development. This process mainly includes three parts: first, the construction of the scene, such as, the surrounding environment, light, sky, scene baking, etc. Second, the production of users’ UI interface, mainly including the main navigation column and the menu of function modules within the system. Third is the realization of each function module of the system. Finally, it is published as a.EXE executable file.

The virtual farming scene of this study involves many types of cultural elements, including the various mythology of the characters and other common objects and natural landscape such as water flowers, huts, etc., which can enhance the virtual environment realism. 2.3 Key Frame Animation Humanoid animation is one of the challenging subjects in the technical aspects of animation. Because the movement of human body contains multiple degrees of freedom, how to set up the degree of freedom of human motion on the animation key frame and generate highly realistic three-dimensional human animation become a hot research topic in the computer field. In this platform, the key frame animation can be intuitive expression of the ancient myths of the farming scene, so the production of animation is extremely important. Key frame animation only need to set the object's key frame positions and its attributes, which is easy to operate and use. Therefor it becomes the most basic and widely used method in computer animation. So the virtual role of the platform and other animation are used the key frame technology for production. Figure 2 is its flow chart, as shown below:

Demand Analysis

Collect information

Static Modeling of 3DS Max Dynamic Modeling of 3DS Max

FBX File PhotoShop

Map File

Bind Skin

Add Bones

Set Key Frames

Envelope and Weight

Basic Model

Unity3D Project

3D Scene

Interactive Module

UI Interface

.EXE Executable File

Whether it is an animated model

Y

N

Fig. 1. System development flow chart

Y

2.2 3D Modeling Play Animation

3ds Max is a powerful three-dimensional software that integrates modeling, animation, and rendering. It sets up a virtual world on the computer, and then the designer creates models and scenes in this virtual world, then we set the trajectory of the model, the motion of the virtual camera and other animations according to the requirements, assign the material and put on lights to render and generate pictures.

Whether it is deformed or not

N

Exporting the Fbx file

Fig. 2. Flow chart of making model 2.4 Automatic Path Finding

3D modeling is the foundation of 3D animation and visual design, and it plays an extremely important role in the beginning of all work flow. There are a lot of modeling methods in 3ds Max, such as basic modeling, composite object modeling, 2D graphics modeling, polygon modeling, NURBS modeling, and so on. Faced with so many modeling methods, we should fully understand the advantages and disadvantages of each method, grasp its characteristics and

Search is divided into uninformed search and heuristic search. Uninformed search, also known as non-heuristic search, is a no information search. Generally, it is only suitable for solving simple problems, and it is usually based on a predetermined search strategy without considering the characteristics of the problem itself. There are two kinds of

680

IFAC BIOROBOTICS 2018 680 Beijing, China, July 13-15, 2018

Zhang Ye et al. / IFAC PapersOnLine 51-17 (2018) 678–682

common uninformed search: breadth first search and depth first search.

Fig. 3. A* algorithm flow chart 2) NavMesh algorithm

Heuristic search is also known as Informed Search, which uses the heuristic information of the problem to guide the search to reduce the search scope and reduce the complexity of the problem. Among them, the commonly used method of path search is heuristic search, and A* algorithm is a typical heuristic search algorithm in artificial intelligence, which is used to search the minimum cost path from source point to target point.

At present in the 3D game, the way to manually set the waypoint is very extensive, but this method of the workload is quite large, and the navigation point only reflects the location and connectivity information, which may lead to combination of explosions and other issues. Aimed at this situation, unity adds NavMesh functionality. After using the A * algorithm to find the mesh path, we can use the light ray method or the corner point method to obtain the path points within the grid. We finally choose the relatively simple corner point method, the steps are as follows:

1) A* algorithm A* algorithm is the most effective method to solve the shortest path in the static network. The closer the value is to the actual value, the better the valuation function is obtained. The function of its valuation is as follows:

f (n)  g (n)  h(n)

First of all, we need to find the polygon at the starting point and the two ends of the edge, and then connect the two endpoints from the starting point to form two segments, that are, lineLeft and lineRight.

(1)

Second, we should continue to look for the two endpoints of the next grid in the path grid and determine whether the new left point is between lineLeft and lineRight or not, and if the result is between the two, then we update the lineLeft, otherwise it will not be updated; similarly, we do the same for the right side of the edge. The two ends of the exit edge are on the right / left side of lineRight / lineLeft, which indicates that the end point of the lineRight / lineLeft is a corner point of the path.

Among them, f (n) is the estimated function, g (n) is the shortest path from the initial point to the node n, and the h (n) is the evaluation cost of the best path from n to the target node, and the key to finding the shortest path is the selection of the evaluation function h (n). If the estimated value h (n) <= the actual value of the distance from n to the target node, then the number of nodes searched is large, and the efficiency is low, but the optimal solution can be obtained; otherwise, the number of nodes is small, but it may not find the optimal solution. The flow chart is shown in figure 3. start

Set the starting point to point P and store it in the close table

Before we reach the last grid of the path grid, we will loop through step 2.

Find all adjacent points of P

3. EXPERIMENT PROCESS AND ANALYSIS 3.1 Model and UI Interface This platform uses 3ds Max to design characters and other models. By adding the map, skeleton, skin and key frame to the character model, we realize a variety of the characters’ animation requirements. Figure 4 shows the Shen Nong model and its thinking action decomposition diagram. And the virtual platform mainly consists of six parts, as shown in Figure 5 for the UI interface, we can click the upper right corner of the menu can enter into the current UI interface, click Esc to exit the current menu interface or click on the other button which will enter into the different modules.

Whether the P point in the open table

Y

N Whether the table g value is greater than the current g value

Y

Is it in the close table ?

N

Set it to point P

Y N

Update the g value in the open table

Insert into the open table

Whether the Open table is null

Find the minimum value of the F value in the open table

N N

Y end

Y

Fig. 4. Shen Nong 's model and thinking animation

Is it the end point ?

681

IFAC BIOROBOTICS 2018 Beijing, China, July 13-15, 2018

Zhang Ye et al. / IFAC PapersOnLine 51-17 (2018) 678–682

681

reality simulation. The main purpose of path search is to find the shortest and minimum path between the starting point and the end point according to the terrain and the obstacles in the map. Figure 8 shows the comparison chart of the Fuxi’ scene added NavMesh before and after, the black part of the figure is that virtual role can’t move the location. Figure 9 shows that the virtual characters move toward the target point, but can’t escape the obstacle wood, which can be seen from the poor authenticity, so after improvement, as shown in Figure 10, the virtual role in the process of moving, such as encountered obstacles, will first avoid it, and then move toward the target node. Fig. 5. UI interface 3.2 Camera follow In the virtual scene, in order to increase the interest of myths, it is inevitable to have the move of the virtual role, however, the traditional way is to fix the camera to play the characters’ animation, as shown in Figure 6 is the picture of Shennong’s scene in which the camera does not follow the character. So we can clearly see that when the camera is stationary, and the characters move to the target point, which is outdated. Therefore, we add the camera to follow the role of movement by setting the camera's initial angle, etc. When the virtual character move in the scene after the completion of loading, the camera will automatically maintain the same distance to follow the virtual character of movement. As shown in Figure 7, the camera follows the moving chart of the characters, and it can be clearly seen that when the character moves forward, the camera moves along with it.

Fig. 8. Mesh contrast

Fig. 9. Virtual characters do not avoid obstacles

Fig. 6. The camera did not follow the characters' move Fig. 10. Virtual characters avoid obstacles 4. CONCLUSIONS This study combines the ancient farming fairy tales of the traditional cultivation culture with the virtual reality technology, and implements the virtual system based on Unity 3D platform. Compared with the traditional virtual platform, it has some characteristics:

Fig. 7. The camera moves with the characters 3.3 Virtual Roles Automatic Pathfinder and Obstacle Avoidanc

Without a physical reference, the virtual scene can’t reconstruct objects through three-dimensional scanning. We can only obtain relevant scene information by consulting a large amount of literature.

With the development of the information technology, the simply improved virtual scene picture effect and character animation has been difficult to meet the needs of users, and the virtual scene of the degree of difficulty, interesting and practical become a research focus. Among them, path search is one of the most important research fields in artificial intelligence, and it is an essential key technology in virtual

The path finding algorithm of the virtual characters proposed in this study, which can through the click of a mouse mode makes the character motion in the scene to the designated place, and we put forward the camera to follow the virtual 682

IFAC BIOROBOTICS 2018 682 Beijing, China, July 13-15, 2018

Zhang Ye et al. / IFAC PapersOnLine 51-17 (2018) 678–682

characters’ moving algorithm, it can make the camera follow the characters in the scene to move.

Symbolic Regression. Journal of Image and Graphics, 15(5), 802-807. Zhu, L., Hu, T. (2017). Study on Multi-resolution Digital Presentation for Cultural Heritage. Journal of Hubei University for Nationalities (Natural Science Edition), 35(1), 11-15.

Aiming at the problem that the virtual characters encounter obstacles in the process of finding the path, this paper proposes an algorithm to avoid obstacles. Experiments show that this algorithm achieves the function of the virtual character to avoid the obstacle when searching the target point, namely, if it encounters an obstacle, it will bypass the obstacle and then continue to find the target point, which enhances the platform's interactivity and immersion. REFERENCES Hua, R.J., Liang, J.R., Weng, Y. (2011). Study on faulttolerance seeking paths strategy with adaptivity in star networks. Computer Engineering and Applications, 47(4), 105-108. Kuo, P. J., Lein, Y. N., Su, W. H. (2013). Mobilizing 3d virtual artifacts exhibition system of national palace museum. 4, 66-69. Li, C.X., Sun, R.Z., Dai, Y.Z. (2017). Intelligent exhibition platform of Chinese ancient farming virtual scene based on Unity3d. Transactions of the Chinese Society of Agricultural Engineering (Transactions of the CSAE), 33(Supp.1), 308-314. Liu, X. M., Zhao, D., Zhao, Y. (2011). Survey on keyframe technology of data-driven human animation. Computer Engineering & Design, 32(3), 1006-1009. Liu, Z.L. (2017). Study on the heritage of Chinese traditional farming culture. Co-Operative Economy & Science, (1), 26-27. Meng, Y., Liu, B.Q. (2011). Research on Path-finding Algorithm of Player in 3D Scene. Journal of Wuhan University of Technology, 12, 125-130. Qi, Y., Zhao, Y., Yang, F. (2014). Application of a A* algorithm-based hierarchical path planning in 3D games. Electronic Design Engineering, (14), 37-39. Shen, X.X., Liu, X.M., Yue, Y.Y. (2016). Multi-Platform Oriented Downhole Operation Training Simulator. Computer Systems & Applications, 25(7), 7781. Sun, Q.Y. (2017). On Times' Value of the Farming Folkcustom Culture in Socialist Core Values. Journal of Educational Institute of Jilin Province, 33(1), 128-131. Tang, Y. (2010). Talking about 3ds max modeling methods. Sci-Tech Information Development & Economy, 20(29), 162-163. Zhang, Y.X. (2015). The Transformation and Reuse of Farming Cultural Symbols. (Doctoral dissertation, Southwest Jiaotong University). Zhang, Y., Yang, G. (2011). Design and implementation of virtual royal garden in northern song dynasty with stereoscopic display. Advanced Materials Research, 291294, 2388-2392. Zheng, L., Wu, R.W., Pan, Y.K. (2013). Design and Development of Custom Key Frame Animation in 3-D Scene. Journal of System Simulation, 25(S1), 263-267. Zhou, L., Lu, F., Zheng, N.B. (2010). A Trade off Control Approach for A* Algorithm Based on Intelligent

683