[EN] Scanning a QR Code and displaying 3D objects in Unity3D

As for the ultimate game creation program like Unity3D, it has a lot to offer as mentioned before. One of which is that the program can create games on almost every platform such as computer or mobile. This article will talk about the use on mobile phones. Of course, there must be a component that the computer does not have, such as a camera, which will discuss how to scan a QR Code to operate according to the text that can be extracted and ordered it to be rendered as a 3D object.

QR Code

Introductory bit for everyone to understand that QR Code is similar to Barcode, that is, the text is converted into a specified format which looks like a square. There are three direction points to know which side is the top and use the program to scan to extract text which can be letters, numbers, various characters, links, etc.

To decode a QR code to text, you can either scan it with a camera or save an image and use a decoder.

Figure 1 QR code of text “Hello world!! we are Jarutex!!”
Read More

[TH] การสแกน QR Code และแสดงวัตถุสามมิติใน Unity3D

สำหรับสุดยอดโปรแกรมสร้างเกมอย่าง Unity3D แล้วนั้นมีจุดเด่นมากมายดังที่เคยกล่าวไป ซึ่งข้อหนึ่งนั้นคือการที่โปรแกรมสามารถสร้างเกมได้ในแทบทุกแพลตฟอร์มไม่ว่าจะเป็น คอมพิวเตอร์หรือมือถือ ซึ่งในบทความนี้จะกล่าวถึงการใช้งานบนมือถือ ซึ่งแน่นอนว่าต้องมีอุปกรณ์ที่คอมพิวเตอร์ไม่มีเช่น กล้อง โดยจะกล่าวถึงวิธีการแสกน QR Code เพื่อสั่งงานตามข้อความที่ถอดมาได้ และสั่งให้แสดงเป็นวัตถุ 3 มิติ

QR Code

เกริ่นสักนิดก่อนเพื่อให้ทุกท่านเข้าใจว่า QR Code มีลักษณะคล้ายกับ Barcode คือมีการแปลงข้อความให้อยู่ในรูปแบบที่กำหนด โดยมีลักษณะเป็นสี่เหลี่ยมจตุรัส มีจุดบอกทิศอยู่ 3 มุม เพื่อให้รู้ว่าด้านไหนเป็นด้านบน และใช้โปรแกรมในการแสกนเพื่อถอดข้อความซึ่งเป็นได้ทั้ง ตัวอักษร ตัวเลข อักขระต่างๆ ลิงค์ ฯ

เมื่อต้องการถอดรหัส QR code เป็นข้อความสามารถทำได้ทั้งการใช้กล้องแสกน หรือ บันทึกรูปภาพและใช้โปรแกรมถอดรหัส

ภาพที่ 1 QR code ของข้อความ “Hello world!! we are Jarutex!!”
Read More