56
DAFTAR PUSTAKA
Alexa. 2010. Sejarah augmented reality. http://anugrahalam.com. Diaksespada tanggal 15 juni 2015
Anonim.2015.pengertian virtual reality. Diakses pada tanggal 06 juni 2015.
Anonim.2014.uml-diagram.http://www.uml-diagrams.org. Diakses pada tanggal 20 juni 2015.
Anonim.2015.Pengertian Augmented Reality. http://www.it-jurnal.com Diakses pada tanggal 12 maret 2015.
Blender.2015.Tutorial membuat 3D, www.blender.org. Diakses pada tanggal 15 maret 2015.
Blender.2015.About, www.blender.org. Diakses pada tanggal 18 maret 2015.
Developer vuforia.2015.pembuatan database marker. www.developer.vuforia.com Diakses pada tanggal 4 April 2015.
Efendi, ilham. 2014. Pengertian Augmented Reality (AR). http://www.it-jurnal.com.
Diakses pada tanggal 18 juni 2015.
Fajar, Febriyan. 2014. Advanced Mobile Interactive Augmented Reality. Solo: Buku AR Online.
Laksono, alfan puji. 2012. Teori dasar animasi tutorial blender modeling karakter.
Jakarta: seamolec blender ganesha.
Sridianti.2015. 29 Fungsi Organ Tubuh Manusia bagian dalam.
http://www.sridianti.com. Diakses pada tanggal 14 Juli 2015.
Sholiq. 2006. Pemodelan sistem informasi berorientasi objek dengan UML.
Yogyakarta: Graha Ilmu.
Tim Polindra.2013. Panduan Pelaksanaan Tugas Akhir Program Diploma 3. Politeknik Negeri Indramayu.
Unity 3D.2015.Unity 3D. www.unity3D.com Diakses pada tanggal 16 maret 2015.
Unity 3D.2015.Standalone hardware stats 2015-04.http://stats.unity3d.com
57 LAMPIRAN
58 Lampiran 1 : Script Program Main Menu
using UnityEngine;
using System.Collections;
public class main_menu : MonoBehaviour { public GUISkin guiSkin;
void OnGUI(){
GUI.skin = guiSkin;
GUI.Box (new Rect (new Rect (Screen.width / 4.4f, Screen.height /4.1f, Screen.width / 1.7f,
Screen.height / 1.69f)), "Main Menu");
if (GUI.Button (new Rect (Screen.width/3.1f, Screen.height/2.55f, Screen.width/2.5f,
Screen.height/12), "MULAI AR")) {
Application.LoadLevel (1);
}
if (GUI.Button (new Rect (Screen.width/3.1f, Screen.height/2, Screen.width/2.5f, Screen.height/12),
"PANDUAN")) {
Application.LoadLevel (4);
}
if (GUI.Button (new Rect (Screen.width/3.1f, Screen.height/1.65F, Screen.width/2.5f,
Screen.height/12), "ABOUT")) {
Application.LoadLevel (2);
}
if (GUI.Button (new Rect (Screen.width/3.1f, Screen.height/1.40f, Screen.width/2.5f,
Screen.height/12), "Exit")) {
Application.Quit();
} }
}
59 Lampiran 2 : Script Program Panduan
using UnityEngine;
using System.Collections;
public class panduan : MonoBehaviour {
public Texture images1,images2,images3;
public Vector2 scrollPosition = Vector2.zero;
public bool show = false;
public GUISkin guiSkin;
public Texture2D home;
void OnGUI() {
GUI.skin = guiSkin;
if (show == false) {
GUI.BeginGroup (new Rect(Screen.width / 2 - 200, Screen.height /2 - 250, 800, 500));
GUI.Box (new Rect (0, 50, 405, 360),
"PANDUAN");
scrollPosition = GUI.BeginScrollView (new Rect(30, 0, 350, 390), scrollPosition, new Rect (0, 0, 1150, 200));
GUI.DrawTexture (new Rect (0, 90, 350, 250), images1);
GUI.DrawTexture (new Rect (400, 90, 350, 250), images2);
GUI.DrawTexture (new Rect (800, 90, 350, 250), images3);
//GUI.DrawTexture (new Rect (1200, 90, 350, 250), images4);
GUI.EndScrollView ();
GUI.EndGroup ();
60 if (GUI.Button (new Rect (20, 10, 170, 90),home, "KEMBALI")) {
Application.LoadLevel(0);
} }
} }
Lampiran 3 : Script Program About
using UnityEngine;
using System.Collections;
public class about : MonoBehaviour { public Texture image1;
public GUISkin guiSkin;
public Texture2D home;
public bool show = false;
void OnGUI() {
GUI.skin = guiSkin;
if (show == false) {
GUI.BeginGroup (new Rect (Screen.width / 2 - 200, Screen.height / 2 - 250, 800, 500));
GUI.Box (new Rect (0, 50, 405, 360),
"ABOUT");
GUI.DrawTexture( new Rect (25,90,350,300),image1);
GUI.EndGroup();
}
if (GUI.Button (new Rect(20, 10, 170, 90),home, "KEMBALI")){
61 Application.LoadLevel(0);
} }
}
Lampiran 4 : Script Program pemanggilan background
using UnityEngine;
using System.Collections;
public class background : MonoBehaviour { public Texture backgroundTexture;
void OnGUI(){
GUI.DrawTexture(new
Rect(0,0,Screen.width,Screen.height),backgroundTexture)
; } }
Lampiran 5 : Script Program Pemanggilan Tombol Kembali
using UnityEngine;
using System.Collections;
public class tombolkembali : MonoBehaviour { public int capture;
public Texture2D captured;
public Texture2D home;
void OnGUI(){
if (GUI.Button (new Rect (120, 0, 230, 120), captured, "Capture")) {
capture++;
62 string filename =
capture+ "images.png";
Application.CaptureScreenshot (filename);
if
(QCARRuntimeUtilities.IsPlayMode ()) {
Debug.Log ("Saved screenshot to " + filename);
} else {
Debug.Log ("
Saved screenshot to " + Application.persistentDataPath + "/" + filename);
} }
//baris,kolom,panjang,lebar
if (GUI.Button (new Rect (20, 10, 170, 90),home,
"KEMBALI")) {
Application.LoadLevel (0);
} }
}
Lampiran 6 : Script Program pemanggilan 3D Empedu
using UnityEngine;
using System.Collections;
public class empedu : MonoBehaviour { public Transform target1;
public string info1;
public bool show = false;
public Texture2D exit;
public Texture2D clip1;
public Texture2D clip2;
public AudioClip myclip;
63 public bool hilang=false;
public bool hilang2=false;
void Update(){
if (Input.GetMouseButton (0)) {
Ray ray = Camera.main.ScreenPointToRay (Input.mousePosition);
RaycastHit hit;
if (Physics.Raycast (ray, out hit)) { if (hit.transform == target1) {
show = true;
hilang = true;
//hilang2 = true;
} }
} }
void OnGUI(){
if(show==true){
GUI.BeginGroup(new Rect (Screen.width / 2 - 200,Screen.height / 2 - 250,800,500));
GUI.Box(new
Rect(0,50,405,360),"Informasi");
if(GUI.Button(new Rect(0,50,120,120), exit, ""))
{
show=false;
}
if (hilang == true){
if (hilang2 == false){
if(GUI.Button(new Rect(125,50,120,45), clip1, "")){
this.gameObject.AddComponent<AudioSource> ();
this.GetComponent<AudioSource> ().clip = myclip;
this.GetComponent<AudioSource> ().Play ();
64 hilang=true;
hilang2=true;
} }else
if(hilang2==true){
if(GUI.Button(new Rect(125,50,120,45), clip2, "")){
this.gameObject.AddComponent<AudioSource> ();
this.GetComponent<AudioSource> ().clip = myclip;
this.GetComponent<AudioSource> ().Stop ();
hilang=true;
hilang2=false;
} }
}
// GUI.Label(new Rect(25,80,350,600),info1);
GUI.Label(new Rect(25,120,350,300),info1);
GUI.EndGroup();
} }
}
Lampiran 7 : Script Program pemanggilan 3D Hati
using System.Collections;
public class hatii : MonoBehaviour { public Transform target1;
public string info1;
public bool show = false;
public Texture2D exit;
public Texture2D clip1;
public Texture2D clip2;
public AudioClip myclip;
public bool hilang=false;
public bool hilang2=false;
void Update(){
if (Input.GetMouseButton (0)) {
65 Ray ray = Camera.main.ScreenPointToRay (Input.mousePosition);
RaycastHit hit;
if (Physics.Raycast (ray, out hit)) { if (hit.transform == target1) {
show = true;
hilang = true;
//hilang2 = true;
} }
} }
void OnGUI(){
if(show==true){
GUI.BeginGroup(new Rect (Screen.width / 2 - 200,Screen.height / 2 - 250,800,500));
GUI.Box(new
Rect(0,50,405,360),"Informasi");
if(GUI.Button(new Rect(0,50,120,120), exit, ""))
{
show=false;
}
if (hilang == true){
if (hilang2 == false){
if(GUI.Button(new Rect(125,50,120,45), clip1, "")){
this.gameObject.AddComponent<AudioSource> ();
this.GetComponent<AudioSource>
().clip = myclip;
this.GetComponent<AudioSource>
().Play ();
hilang=true;
hilang2=true;
} }else
if(hilang2==true){
if(GUI.Button(new Rect(125,50,120,45), clip2, "")){
this.gameObject.AddComponent<AudioSource> ();
66 this.GetComponent<AudioSource>
().clip = myclip;
this.GetComponent<AudioSource>
().Stop ();
hilang=true;
hilang2=false;
} }
}
// GUI.Label(new Rect(25,80,350,600),info1);
GUI.Label(new Rect(25,120,350,300),info1);
GUI.EndGroup();
} }
}
67 Lampiran 8 : Kumpulan gambar 3D organ tubuh manusia
Gambar 3D Kerongkongan Gambar 3D Hati
Gambar 3D Lambung Gambar 3D Empedu
68
Gambar 3D Pangkreas Gambar 3D Paru-paru
Gambar 3D Usus Halus Gambar 3D Usus Besar
69 Gambar 3D Seluruh Organ Tubuh
70 Lampiran 9 : Implementasi
Implementasi menu utama Implementasi Menu AR
Implementasi Menu Panduan Implementasi Menu Panduan
71 Lampiran 10 : Marker yang digunakan