6. ช
Yongpiphat, S. M.S. (Information Technology and Management), November 2016,
Graduate School, Bangkok University.
Virtual Reality Driving License Test (43 pp)
Advisor: Phattanapon Rhienmora, Ph.D.
ABSTRACT
Driving License testing system in Thailand is now facing a problem of an
overwhelming numbers of people who comes in for the test. There are numerous
applicators that failed the test and need to go back for more practices before
entering the test again. Since the test usually take almost all-day for the applicator
to finish to process, therefore, having a effect to many worker that need to be
absent at work or take a day-off in order to attend the test. To solve the issue, we
are to replace a new technology over the driving practice system by using a Virtual
Reality (VR) tools and gadgets together with a Driving Wheel handle that connected
to a computer to enhanced the feeling and real-life driving experience. The Virtual
Reality will be exactly the same with the real driving test for users to practice before
the actual test without using a real car. This Virtual Driving system is developed
under 'Unity3D', which is one of the most famous software that has a great number
of libraries, tools and functions to support the project. Our project developers were
running a demo testing over a group of 10 users and said that they are comfortable
with the demo, with a great satisfaction received from the testing users, the quality
of the Virtual Reality of a Driving License Test System is guaranteed.
Keywords: Virtual Reality, Unity3D, LogitechG29, Oculus Rift, Driving License of
Thailand
21. 10
2.4 งานที่เกี่ยวข้องเรื่องการจาลองการฝึกขับรถ
2.4.1 Gran Turismo 5 เป็นเกมที่จาลองการขับขี่ในรูปแบบการขับขี่รถแข่งในสนามแข่ง
โดยมีการเชื่อมต่อกับระบบ Car Controller และสามารถใช้รวมกับแว่น Virtual Reality ได้ แต่ขอ
จากัดของเกมที่ใช้เพื่อการแข่งขันจึงไม่มีระบบทดสอบหรือฝึกหัดการขับขี่
ภาพที่ 2.4: ภาพเกม Gran turismo 5
ที่มา: Gran turismo 5. (n.d.). Retrieved from https://iedeiblog.com/tag/gran-turismo-5/.
2.4.2 Project Cars เป็นเกมขับขี่รถยนต์ที่เข้ามาในระบบ Game Console PlayStation 4
ที่มีความเสมือนจริงที่เกิดจากภาพบนจอ ไม่สามารถเชื่อมต่อกับระบบ Virtual Reality และไม่มี
ระบบฝึกหัดขับขี่
22. 11
ภาพที่ 2.5: ภาพเกม Project Cars
ที่มา: Project cars. (n.d.). Retrieved from http://www.gamespot.com/project-cars/.
2.4.3 City Car ถือว่าเป็นเกมที่มีความครบถ้วนของความเสมือนจริง จุดประสงค์ของเกม
City car ทาขึ้นเพื่อใช้ทดสอบและฝึกหัดขับขี่รถยนต์โดยเฉพาะ โดยระบบเกมสามารถเชื่อมต่อกับ
แว่น Virtual Reality ได้และต่ออุปกรณ์ขับขี่อย่าง Car Controller และยังมีรูปแบบทดสอบการขับขี่
แต่ไม่มีระบบของประเทศไทย จะมีแต่ในรูปแบบสากลทั่วไป
ภาพที่ 2.6: ภาพเกม City car
24. 13
บทที่ 3
สถาปัตยกรรม
3.1 Unity3D
ภาพที่ 3.1: ภาพสถาปัตยกรรมระบบ
ตารางที่ 3.1: เครื่องคอมพิวเตอร์สาหรับพัฒนาระบบ
ประเภทของระบบ ความต้องการของระบบ
Operation System Windows 7 SP1+, 8, 10; Mac OS X 10.8+.
Graphics processing unit Graphics card with DX9 (shader model
2.0) capabilities. Anything made since
2004 should work.
Computer processing unit Quad core intel or AMD
RAM 4GB or 8GB
Input
Files.FBX
Files.JPG,.BMP
Development
C# Coding
Rewired Input
IK Driver
Driving License
Game Simulation
25. 14
ตารางที่ 3.2: เครื่องคอมพิวเตอร์สาหรับใช้งานระบบ
ประเภทของระบบ ความต้องการของระบบ
Operation System Windows 7 SP1+, 8, 10; Mac OS X 10.8+.
Graphics processing unit Graphics card with DX9 (shader model
2.0) capabilities. Anything made since
2004 should work.
Computer processing unit CPU: SSE2 instruction set support.
RAM 4GB or 8GB
3.2 Oculus Rift DK2
ภาพที่ 3.2: ภาพ Oculus Rift DK2
ที่มา: Oculus Rift. (n.d.). Retrieved from http://www.vrheadsets3d.com/oculus-
rift/oculus-rift-news/second-life-ready-for-oculus-rift-dk2/.
ตารางที่ 3.3: ความต้องการของระบบ
ประเภทของระบบ ความต้องการของระบบ
Operation System Windows 7 SP1 64 bit or newer
Video Card NVIDIA GTX 970 / AMD R9 290 equivalent
or greater
Video Output Compatible HDMI 1.3 video output
USB Ports 3x USB 3.0 ports plus 1x USB 2.0 port
Computer processing unit Intel i5-4590 equivalent or greater
Memory 8GB+ RAM
26. 15
3.3 Logitech G29
ภาพที่ 3.3: ภาพอุปกรณ์ Logitech G 29
ที่มา: Logitech G29. (2558, 14 กรกฏาคม). สืบค้นจาก http://www.gump.in.th/web/
product/detail.php?ProductId=2392.
ตารางที่ 3.4: ความต้องการของระบบ
ประเภทของระบบ ความต้องการของระบบ
Operation System Windows® 8.1, Windows 8 or Windows 7
Powered USB Port Internet connection and 150MB hard
drive space (for optional software
download)
Games that support Logitech® force
feedback racing wheel
38. 27
4.1.4.6 การสิ้นสุดเกม ต้องบังคับรถยนต์เข้าสู่เส้น Finish เพื่อสิ้นสุดการทดสอบโดย
เมื่อเข้าเส้น Finish จะแสดงหน้า Interface ดังนี้
User Interface รายละเอียด
You Win แสดงว่าสิ้นสุดการทดสอบ
Your Score แสดงคะแนนที่ได้ทั้งหมด
Retry เริ่มต้นการทดสอบใหม่
Main Menu กลับสู่หน้า Main Menu
ภาพที่ 4.11: ภาพการทางานระบบ You Win
4.1.4.7 การสิ้นสุดเกม Game Over เมื่อคะแนนน้อยกว่า 0 คะแนน จะแสดงหน้า
Interface ดังต่อไปนี้
User Interface รายละเอียด
Game Over แสดงว่าสิ้นสุดการทดสอบ
Retry เริ่มต้นการทดสอบใหม่
Main Menu กลับสู่หน้า Main Menu
39. 28
ภาพที่ 4.12: ภาพการทางานระบบ Game Over
4.1.4.8 การใช้งาน Pause Mode ใช้งานโดยการกดปุ่ม Escape จะหยุดเกมทั้ง
หมดแล้วแสดงหน้า
Pause Menu ภายในหน้า Pause Menu มีปุ่มการใช้งานดังต่อไปนี้
ปุ่มการใช้งาน คาสั่งการทางาน
Resume กลับเข้าสู้การใช้งาน Free Run Mode
Restart เริ่มต้นการใช้งาน Free Run Mode ใหม่
Main Menu กลับสู่หน้า Main Menu
Exit ออกจากโปรแกรม
ภาพที่ 4.13: ภาพการทางานระบบ Pause Mode
47. 36
บรรณานุกรม
Logitech G29. (2558, 14 กรกฏาคม). สืบค้นจาก http://www.gump.in.th/web/product/
detail.php?ProductId=2392.
Davis, B. A., Bryla, K., & Benton, P. A. (2015). Oculus rift in action. Retrieved from
http://manning-content.s3.amazonaws.com/download/0/05b4e77-1259-4201-
9728-58ef46911f28/OculusRift_ch13.pdf.
Gran turismo 5. (n.d.). Retrieved from https://iedeiblog.com/tag/gran-turismo-5/.
Gruyer, D., Choi, S., Boussard, C., D’Andrea-Novel, B. (2014). From virtual to reality,
how to prototype, test and evaluate new ADAS. IEEE Intelligent Vehicles
Symposium Proceedings, (pp. 261-267). N.P.: n.p.
Kim, S. L., Suk, H J., Kang, J. H., Jung, J. M., Laine, T., & Westlin, J. (2014). Using Unity
3D to facilitate mobile augmented reality game development. In Internet of
Things (WF-IoT), 2014 IEEE World Forum on. N.P.: n.p.
Lempereur, M., Pudlo, P., Gorce, P., & Lepoutre, F.-X. (2003). Optimization approach
for the simulation of car accessibility movement. In Systems, Man and
Cybernetics, IEEE International Conference on Vol. 1 (pp. 843-848). N.P.: n.p.
Lim, C. J., Han, W. D., & Guen, J. Y. (2014). Educational game making-tool
development using Unity3D engine: Birth of game. Journal of Korea Game
Society, 14, 29-38.
Lu, G. P., Xue, G. H., & Chen, Z. (2011). Design and Implementation of Virtual
Interactive Scene Based on Unity 3D. In Advanced Materials Research Vols.
317-319 (pp. 2162-2167). N.P.: n.p.
Nemec, M., Wlosok, J., & Fasuga, R. (2014). Virtual 3D simulation of a car in traffic. In
IEEE 12th IEEE International Conference on Emerging eLearning Technologies
and Applications (ICETA), (pp. 349-354). N.P.: n.p.
Norton, T. (2013). Learning C# by developing game with Unity 3D. Birmingham: PackT.
Oculus Rift. (n.d.). Retrieved from http://www.vrheadsets3d.com/oculus-rift/oculus-
rift-news/second-life-ready-for-oculus-rift-dk2/.
48. 37
Oller, R. (2010). Augmented reality. Retrieved from
http://www.123seminarsonly.com/Seminar-Reports/021/44664310-
Augmented-Reality.pdf.
Project cars. (n.d.). Retrieved from http://www.gamespot.com/project-cars/.
Sagredo-Olivenza, I., Flórez-Puga, G., Gómez-Martín, M. A., & González-Calero, P.
(2015). Supporting the construction of a GUI component. International
Journal of Creative Interfaces and Computer Graphics, 18.
Schönauer, C., Pintaric, T., Kaufmann, H., Jansen-Kosterink, S., & Vollenbroek-Hutten,
M. (2011). Chronic pain rehabilitation with a serious game using multimodal
input. In Virtual Rehabilitation (ICVR), 2011 International Conference on. N.P.:
n.p.
Unity3D. (n.d.). Retrieved from https://unity3d.com/unity/engine-features.